SUBDIRS_INSTALL is already listed as a subtarget for bininstall
[asterisk-bristuff.git] / configure
blobdab4bd9b10317b861fb57edf04d0816bd9223b68
1 #! /bin/sh
2 # From configure.ac Revision: 107408 .
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_ZAPTEL_VLDTMF
903 PBX_ZAPTEL_TRANSCODE
904 EDITLINE_LIB
905 PBX_H323
906 PBX_IXJUSER
907 GTKCONFIG
908 PBX_GTK
909 GTK_INCLUDE
910 GTK_LIB
911 PKGCONFIG
912 PBX_GTK2
913 GTK2_INCLUDE
914 GTK2_LIB
915 CURL_CONFIG
916 LTLIBOBJS'
917 ac_subst_files=''
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
928 CXXFLAGS
930 CXXCPP'
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
979 ac_prev=
980 ac_dashdash=
981 for ac_option
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
990 case $ac_option in
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *) ac_optarg=yes ;;
993 esac
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
999 ac_dashdash=yes ;;
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 esac
1308 done
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1383 /^X\(\/\/\)$/{
1384 s//\1/
1387 /^X\(\/\).*/{
1388 s//\1/
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1396 else
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1488 cat <<\_ACEOF
1490 System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of asterisk 1.4:";;
1499 esac
1500 cat <<\_ACEOF
1502 Optional Features:
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-dev-mode Turn on developer mode
1506 --disable-largefile omit support for large files
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1513 --with-curl=PATH use cURL files in PATH
1514 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1515 --with-curses=PATH use curses files in PATH
1516 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1517 PATH
1518 --with-gsm=PATH use GSM files in PATH , or 'internal'
1519 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1520 --with-imap=PATH use UW IMAP Toolkit files in PATH
1521 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1522 --with-kde=PATH use KDE files in PATH
1523 --with-ltdl=PATH use libtool files in PATH
1524 --with-misdn=PATH use mISDN User Library files in PATH
1525 --with-nbs=PATH use Network Broadcast Sound files in PATH
1526 --with-ncurses=PATH use ncurses files in PATH
1527 --with-netsnmp=PATH use Net-SNMP files in PATH
1528 --with-newt=PATH use newt files in PATH
1529 --with-odbc=PATH use unixODBC files in PATH
1530 --with-ogg=PATH use OGG files in PATH
1531 --with-osptk=PATH use OSP Toolkit files in PATH
1532 --with-oss=PATH use Open Sound System files in PATH
1533 --with-popt=PATH use popt files in PATH
1534 --with-postgres=PATH use PostgreSQL files in PATH
1535 --with-pri=PATH use ISDN PRI files in PATH
1536 --with-pwlib=PATH use PWlib files in PATH
1537 --with-h323=PATH use OpenH323 files in PATH
1538 --with-radius=PATH use Radius Client files in PATH
1539 --with-speex=PATH use Speex files in PATH
1540 --with-speexdsp=PATH use Speexdsp files in PATH
1541 --with-sqlite=PATH use SQLite files in PATH
1542 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1543 --with-ssl=PATH use OpenSSL files in PATH
1544 --with-tds=PATH use FreeTDS files in PATH
1545 --with-termcap=PATH use Termcap files in PATH
1546 --with-tinfo=PATH use Term Info files in PATH
1547 --with-tonezone=PATH use tonezone files in PATH
1548 --with-usb=PATH use usb files in PATH
1549 --with-vorbis=PATH use Vorbis files in PATH
1550 --with-vpb=PATH use Voicetronix API files in PATH
1551 --with-z=PATH use zlib files in PATH
1552 --with-zaptel=PATH use Zaptel files in PATH
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1570 Report bugs to <www.asterisk.org>.
1571 _ACEOF
1572 ac_status=$?
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" || continue
1579 ac_builddir=.
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1597 case $srcdir in
1598 .) # We are building in place.
1599 ac_srcdir=.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1606 *) # Relative name.
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630 cat <<\_ACEOF
1631 asterisk configure 1.4
1632 generated by GNU Autoconf 2.61
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1639 "Asterisk"
1640 _ACEOF
1641 exit
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1647 It was created by asterisk $as_me 1.4, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1650 $ $0 $@
1652 _ACEOF
1653 exec 5>>config.log
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1677 _ASUNAME
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1685 done
1686 IFS=$as_save_IFS
1688 } >&5
1690 cat >&5 <<_ACEOF
1693 ## ----------- ##
1694 ## Core tests. ##
1695 ## ----------- ##
1697 _ACEOF
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_configure_args=
1706 ac_configure_args0=
1707 ac_configure_args1=
1708 ac_must_keep_next=false
1709 for ac_pass in 1 2
1711 for ac_arg
1713 case $ac_arg in
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1717 continue ;;
1718 *\'*)
1719 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 esac
1721 case $ac_pass in
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1727 else
1728 case $ac_arg in
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 esac
1737 -* ) ac_must_keep_next=true ;;
1738 esac
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1742 esac
1743 done
1744 done
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1756 echo
1758 cat <<\_ASBOX
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1762 _ASBOX
1763 echo
1764 # The following way of writing the cache mishandles newlines in values,
1766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in #(
1769 *${as_nl}*)
1770 case $ac_var in #(
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 esac
1774 case $ac_var in #(
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1777 esac ;;
1778 esac
1779 done
1780 (set) 2>&1 |
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1783 sed -n \
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 ;; #(
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790 esac |
1791 sort
1793 echo
1795 cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800 echo
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1811 if test -n "$ac_subst_files"; then
1812 cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817 echo
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1829 if test -s confdefs.h; then
1830 cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835 echo
1836 cat confdefs.h
1837 echo
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1842 } >&5
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 exit $exit_status
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 else
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1892 shift
1893 for ac_site_file
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1899 . "$ac_site_file"
1901 done
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1909 case $cache_file in
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1912 esac
1914 else
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1917 >$cache_file
1920 ac_header_list="$ac_header_list utime.h"
1921 # Check that the precious variables saved in the cache have kept the same
1922 # value.
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1930 set,)
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1934 ,set)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,);;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1948 fi;;
1949 esac
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1952 case $ac_new_val in
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1955 esac
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1959 esac
1961 done
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 # cross-compile macros
2003 ac_aux_dir=
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 break
2009 elif test -f "$ac_dir/install.sh"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 break
2013 elif test -f "$ac_dir/shtool"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 break
2018 done
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2061 *-*-*) ;;
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2065 esac
2066 build=$ac_cv_build
2067 ac_save_IFS=$IFS; IFS='-'
2068 set x $ac_cv_build
2069 shift
2070 build_cpu=$1
2071 build_vendor=$2
2072 shift; shift
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2075 build_os=$*
2076 IFS=$ac_save_IFS
2077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2087 else
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2097 case $ac_cv_host in
2098 *-*-*) ;;
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2102 esac
2103 host=$ac_cv_host
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_host
2106 shift
2107 host_cpu=$1
2108 host_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 host_os=$*
2113 IFS=$ac_save_IFS
2114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2118 # check existence of the package
2121 # specify output header file
2122 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2129 cat >>confdefs.h <<\_ACEOF
2130 #define _GNU_SOURCE 1
2131 _ACEOF
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2161 done
2162 done
2163 IFS=$as_save_IFS
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2171 else
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2179 ac_ct_CC=$CC
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2217 CC=""
2218 else
2219 case $cross_compiling:$ac_tool_warned in
2220 yes:)
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2297 continue
2299 ac_cv_prog_CC="cc"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2305 IFS=$as_save_IFS
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2310 shift
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2315 shift
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323 { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2325 else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2359 IFS=$as_save_IFS
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2367 else
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2373 test -n "$CC" && break
2374 done
2376 if test -z "$CC"; then
2377 ac_ct_CC=$CC
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 else
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2417 test -n "$ac_ct_CC" && break
2418 done
2420 if test "x$ac_ct_CC" = x; then
2421 CC=""
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433 CC=$ac_ct_CC
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler --version >&5") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compiler -v >&5") 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2470 case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2488 main ()
2492 return 0;
2494 _ACEOF
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2499 # of exeext.
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort. b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions. Remove them first so a
2511 # subsequent execution test works.
2512 ac_rmfiles=
2513 for ac_file in $ac_files
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2518 esac
2519 done
2520 rm -f $ac_rmfiles
2522 if { (ac_try="$ac_link_default"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link_default") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2536 # Autoconf.
2537 for ac_file in $ac_files ''
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2543 [ab].out )
2544 # We found the default executable, but exeext='' is most
2545 # certainly right.
2546 break;;
2547 *.* )
2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2549 then :; else
2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # We set ac_cv_exeext here because the later test for it is not
2553 # safe: cross compilers may not add the suffix if given an `-o'
2554 # argument, so we may need to know it at that point already.
2555 # Even if this section looks crufty: it has the advantage of
2556 # actually working.
2557 break;;
2559 break;;
2560 esac
2561 done
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2564 else
2565 ac_file=''
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2581 ac_exeext=$ac_cv_exeext
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 cross_compiling=no
2601 else
2602 if test "$cross_compiling" = maybe; then
2603 cross_compiling=yes
2604 else
2605 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_link") 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; then
2639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644 test -f "$ac_file" || continue
2645 case $ac_file in
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 break;;
2649 * ) break;;
2650 esac
2651 done
2652 else
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 main ()
2684 return 0;
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compile") 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in conftest.o conftest.obj conftest.*; do
2699 test -f "$ac_file" || continue;
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703 break;;
2704 esac
2705 done
2706 else
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2722 ac_objext=$OBJEXT
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2736 main ()
2738 #ifndef __GNUC__
2739 choke me
2740 #endif
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2763 ac_compiler_gnu=yes
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 ac_compiler_gnu=no
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 ac_save_c_werror_flag=$ac_c_werror_flag
2786 ac_c_werror_flag=yes
2787 ac_cv_prog_cc_g=no
2788 CFLAGS="-g"
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 main ()
2801 return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && {
2818 test -z "$ac_c_werror_flag" ||
2819 test ! -s conftest.err
2820 } && test -s conftest.$ac_objext; then
2821 ac_cv_prog_cc_g=yes
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 CFLAGS=""
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2865 CFLAGS="-g"
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2874 main ()
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compile") 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } && {
2895 test -z "$ac_c_werror_flag" ||
2896 test ! -s conftest.err
2897 } && test -s conftest.$ac_objext; then
2898 ac_cv_prog_cc_g=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918 CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920 if test "$GCC" = yes; then
2921 CFLAGS="-g -O2"
2922 else
2923 CFLAGS="-g"
2925 else
2926 if test "$GCC" = yes; then
2927 CFLAGS="-O2"
2928 else
2929 CFLAGS=
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 ac_cv_prog_cc_c89=no
2938 ac_save_CC=$CC
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <stdarg.h>
2946 #include <stdio.h>
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2953 char **p;
2954 int i;
2956 return p[i];
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2960 char *s;
2961 va_list v;
2962 va_start (v,p);
2963 s = g (p, va_arg (v,int));
2964 va_end (v);
2965 return s;
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2969 function prototypes and stuff, but not '\xHH' hex character constants.
2970 These don't provoke an error unfortunately, instead are silently treated
2971 as 'x'. The following induces an error, until -std is added to get
2972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2973 array size at least. It's necessary to write '\x00'==0 to get something
2974 that's true only with -std. */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978 inside strings and character constants. */
2979 #define FOO(x) 'x'
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 int argc;
2987 char **argv;
2989 main ()
2991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2993 return 0;
2995 _ACEOF
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 CC="$ac_save_CC $ac_arg"
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3017 ac_cv_prog_cc_c89=$ac_arg
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext
3026 test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 done
3028 rm -f conftest.$ac_ext
3029 CC=$ac_save_CC
3032 # AC_CACHE_VAL
3033 case "x$ac_cv_prog_cc_c89" in
3035 { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3037 xno)
3038 { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3041 CC="$CC $ac_cv_prog_cc_c89"
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3044 esac
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3061 # On Suns, sometimes $CPP names a directory.
3062 if test -n "$CPP" && test -d "$CPP"; then
3063 CPP=
3065 if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 # Double quotes because CPP needs to be expanded
3070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3072 ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092 Syntax error
3093 _ACEOF
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3116 continue
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3130 _ACEOF
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3158 rm -f conftest.err conftest.$ac_ext
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 break
3167 done
3168 ac_cv_prog_CPP=$CPP
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3175 { echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6; }
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #ifdef __STDC__
3193 # include <limits.h>
3194 #else
3195 # include <assert.h>
3196 #endif
3197 Syntax error
3198 _ACEOF
3199 if { (ac_try="$ac_cpp conftest.$ac_ext"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 }; then
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3221 continue
3224 rm -f conftest.err conftest.$ac_ext
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null && {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 }; then
3252 # Broken: success on invalid input.
3253 continue
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3263 rm -f conftest.err conftest.$ac_ext
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3270 else
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287 if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 # Extract the first word of "grep ggrep" to use in msg output
3291 if test -z "$GREP"; then
3292 set dummy grep ggrep; ac_prog_name=$2
3293 if test "${ac_cv_path_GREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 ac_path_GREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in grep ggrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309 case `"$ac_path_GREP" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3313 ac_count=0
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 while :
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3336 $ac_path_GREP_found && break 3
3337 done
3338 done
3340 done
3341 IFS=$as_save_IFS
3346 GREP="$ac_cv_path_GREP"
3347 if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3353 else
3354 ac_cv_path_GREP=$GREP
3359 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3361 GREP="$ac_cv_path_GREP"
3364 { echo "$as_me:$LINENO: checking for egrep" >&5
3365 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_EGREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3370 then ac_cv_path_EGREP="$GREP -E"
3371 else
3372 # Extract the first word of "egrep" to use in msg output
3373 if test -z "$EGREP"; then
3374 set dummy egrep; ac_prog_name=$2
3375 if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_path_EGREP_found=false
3379 # Loop through the user's path and test for each of PROGNAME-LIST
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_prog in egrep; do
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
3390 # Check for GNU $ac_path_EGREP
3391 case `"$ac_path_EGREP" --version 2>&1` in
3392 *GNU*)
3393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3395 ac_count=0
3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3397 while :
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
3402 echo 'EGREP' >> "conftest.nl"
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405 ac_count=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP="$ac_path_EGREP"
3409 ac_path_EGREP_max=$ac_count
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3413 done
3414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415 esac
3418 $ac_path_EGREP_found && break 3
3419 done
3420 done
3422 done
3423 IFS=$as_save_IFS
3428 EGREP="$ac_cv_path_EGREP"
3429 if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3432 { (exit 1); exit 1; }; }
3435 else
3436 ac_cv_path_EGREP=$EGREP
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3444 EGREP="$ac_cv_path_EGREP"
3448 { echo "$as_me:$LINENO: checking for AIX" >&5
3449 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #ifdef _AIX
3458 #endif
3460 _ACEOF
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "yes" >/dev/null 2>&1; then
3463 { echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6; }
3465 cat >>confdefs.h <<\_ACEOF
3466 #define _ALL_SOURCE 1
3467 _ACEOF
3469 else
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3473 rm -f conftest*
3476 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3477 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3478 if test "${ac_cv_header_stdc+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #include <stdlib.h>
3488 #include <stdarg.h>
3489 #include <string.h>
3490 #include <float.h>
3493 main ()
3497 return 0;
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_header_stdc=yes
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 ac_cv_header_stdc=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 if test $ac_cv_header_stdc = yes; then
3528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <string.h>
3537 _ACEOF
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 $EGREP "memchr" >/dev/null 2>&1; then
3541 else
3542 ac_cv_header_stdc=no
3544 rm -f conftest*
3548 if test $ac_cv_header_stdc = yes; then
3549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <stdlib.h>
3558 _ACEOF
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "free" >/dev/null 2>&1; then
3562 else
3563 ac_cv_header_stdc=no
3565 rm -f conftest*
3569 if test $ac_cv_header_stdc = yes; then
3570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3571 if test "$cross_compiling" = yes; then
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <ctype.h>
3581 #include <stdlib.h>
3582 #if ((' ' & 0x0FF) == 0x020)
3583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3585 #else
3586 # define ISLOWER(c) \
3587 (('a' <= (c) && (c) <= 'i') \
3588 || ('j' <= (c) && (c) <= 'r') \
3589 || ('s' <= (c) && (c) <= 'z'))
3590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3591 #endif
3593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3595 main ()
3597 int i;
3598 for (i = 0; i < 256; i++)
3599 if (XOR (islower (i), ISLOWER (i))
3600 || toupper (i) != TOUPPER (i))
3601 return 2;
3602 return 0;
3604 _ACEOF
3605 rm -f conftest$ac_exeext
3606 if { (ac_try="$ac_link"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3626 else
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ( exit $ac_status )
3632 ac_cv_header_stdc=no
3634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3646 _ACEOF
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3661 inttypes.h stdint.h unistd.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 $ac_includes_default
3677 #include <$ac_header>
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (ac_try="$ac_compile"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.$ac_objext; then
3696 eval "$as_ac_Header=yes"
3697 else
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 eval "$as_ac_Header=no"
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_res=`eval echo '${'$as_ac_Header'}'`
3707 { echo "$as_me:$LINENO: result: $ac_res" >&5
3708 echo "${ECHO_T}$ac_res" >&6; }
3709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710 cat >>confdefs.h <<_ACEOF
3711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3712 _ACEOF
3716 done
3719 if test "${ac_cv_header_minix_config_h+set}" = set; then
3720 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3727 else
3728 # Is the header compilable?
3729 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3730 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 $ac_includes_default
3738 #include <minix/config.h>
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_header_compiler=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_header_compiler=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6; }
3769 # Is the header present?
3770 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3771 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <minix/config.h>
3779 _ACEOF
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev/null && {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 }; then
3796 ac_header_preproc=yes
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_header_preproc=no
3804 rm -f conftest.err conftest.$ac_ext
3805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6; }
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3810 yes:no: )
3811 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3815 ac_header_preproc=yes
3817 no:yes:* )
3818 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3830 ( cat <<\_ASBOX
3831 ## ------------------------------- ##
3832 ## Report this to www.asterisk.org ##
3833 ## ------------------------------- ##
3834 _ASBOX
3835 ) | sed "s/^/$as_me: WARNING: /" >&2
3837 esac
3838 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3839 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_minix_config_h+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 ac_cv_header_minix_config_h=$ac_header_preproc
3845 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3846 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3849 if test $ac_cv_header_minix_config_h = yes; then
3850 MINIX=yes
3851 else
3852 MINIX=
3856 if test "$MINIX" = yes; then
3858 cat >>confdefs.h <<\_ACEOF
3859 #define _POSIX_SOURCE 1
3860 _ACEOF
3863 cat >>confdefs.h <<\_ACEOF
3864 #define _POSIX_1_SOURCE 2
3865 _ACEOF
3868 cat >>confdefs.h <<\_ACEOF
3869 #define _MINIX 1
3870 _ACEOF
3884 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3885 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3886 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 # define __EXTENSIONS__ 1
3897 $ac_includes_default
3899 main ()
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_safe_to_define___extensions__=yes
3924 else
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_safe_to_define___extensions__=no
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3934 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3935 test $ac_cv_safe_to_define___extensions__ = yes &&
3936 cat >>confdefs.h <<\_ACEOF
3937 #define __EXTENSIONS__ 1
3938 _ACEOF
3940 cat >>confdefs.h <<\_ACEOF
3941 #define _POSIX_PTHREAD_SEMANTICS 1
3942 _ACEOF
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _TANDEM_SOURCE 1
3946 _ACEOF
3948 # note- does not work on FreeBSD
3950 case "${host_os}" in
3951 freebsd*)
3952 ac_default_prefix=/usr/local
3953 CPPFLAGS=-I/usr/local/include
3954 LDFLAGS=-L/usr/local/lib
3957 ac_default_prefix=/usr
3958 if test ${sysconfdir} = '${prefix}/etc'; then
3959 sysconfdir=/etc
3961 if test ${mandir} = '${prefix}/man'; then
3962 mandir=/usr/share/man
3965 esac
3967 if test ${localstatedir} = '${prefix}/var'; then
3968 localstatedir=/var
3971 BUILD_PLATFORM=${build}
3972 BUILD_CPU=${build_cpu}
3973 BUILD_VENDOR=${build_vendor}
3974 BUILD_OS=${build_os}
3981 HOST_PLATFORM=${host}
3982 HOST_CPU=${host_cpu}
3983 HOST_VENDOR=${host_vendor}
3984 HOST_OS=${host_os}
3991 case "${host_os}" in
3992 freebsd*)
3993 OSARCH=FreeBSD
3995 netbsd*)
3996 OSARCH=NetBSD
3998 openbsd*)
3999 OSARCH=OpenBSD
4001 solaris*)
4002 OSARCH=SunOS
4005 OSARCH=${HOST_OS}
4007 esac
4011 # check for uname
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}uname; ac_word=$2
4015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4017 if test "${ac_cv_path_UNAME+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 case $UNAME in
4021 [\\/]* | ?:[\\/]*)
4022 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4041 esac
4043 UNAME=$ac_cv_path_UNAME
4044 if test -n "$UNAME"; then
4045 { echo "$as_me:$LINENO: result: $UNAME" >&5
4046 echo "${ECHO_T}$UNAME" >&6; }
4047 else
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4054 if test -z "$ac_cv_path_UNAME"; then
4055 ac_pt_UNAME=$UNAME
4056 # Extract the first word of "uname", so it can be a program name with args.
4057 set dummy uname; ac_word=$2
4058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $ac_pt_UNAME in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4084 esac
4086 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4087 if test -n "$ac_pt_UNAME"; then
4088 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4089 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4090 else
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 if test "x$ac_pt_UNAME" = x; then
4096 UNAME="No"
4097 else
4098 case $cross_compiling:$ac_tool_warned in
4099 yes:)
4100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4101 whose name does not start with the host triplet. If you think this
4102 configuration is useful to you, please write to autoconf@gnu.org." >&5
4103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet. If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 UNAME=$ac_pt_UNAME
4110 else
4111 UNAME="$ac_cv_path_UNAME"
4114 if test ! x"${UNAME}" = xNo; then
4115 PBX_OSREV=$(${UNAME} -r)
4125 # cross-compile checks
4126 if test "${cross_compiling}" = "yes";
4127 then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4152 IFS=$as_save_IFS
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158 { echo "$as_me:$LINENO: result: $CC" >&5
4159 echo "${ECHO_T}$CC" >&6; }
4160 else
4161 { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4167 if test -z "$ac_cv_prog_CC"; then
4168 ac_ct_CC=$CC
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6; }
4200 else
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_ct_CC" = x; then
4206 CC=":"
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218 CC=$ac_ct_CC
4220 else
4221 CC="$ac_cv_prog_CC"
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}g++; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_CXX+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$CXX"; then
4233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 CXX=$ac_cv_prog_CXX
4253 if test -n "$CXX"; then
4254 { echo "$as_me:$LINENO: result: $CXX" >&5
4255 echo "${ECHO_T}$CXX" >&6; }
4256 else
4257 { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4263 if test -z "$ac_cv_prog_CXX"; then
4264 ac_ct_CXX=$CXX
4265 # Extract the first word of "g++", so it can be a program name with args.
4266 set dummy g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CXX="g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4295 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4296 else
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4301 if test "x$ac_ct_CXX" = x; then
4302 CXX=":"
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet. If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&5
4309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4310 whose name does not start with the host triplet. If you think this
4311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CXX=$ac_ct_CXX
4316 else
4317 CXX="$ac_cv_prog_CXX"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ld; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_prog_LD+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$LD"; then
4329 ac_cv_prog_LD="$LD" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_LD="${ac_tool_prefix}ld"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 LD=$ac_cv_prog_LD
4349 if test -n "$LD"; then
4350 { echo "$as_me:$LINENO: result: $LD" >&5
4351 echo "${ECHO_T}$LD" >&6; }
4352 else
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4359 if test -z "$ac_cv_prog_LD"; then
4360 ac_ct_LD=$LD
4361 # Extract the first word of "ld", so it can be a program name with args.
4362 set dummy ld; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 if test -n "$ac_ct_LD"; then
4369 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_LD="ld"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4382 done
4383 done
4384 IFS=$as_save_IFS
4388 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4389 if test -n "$ac_ct_LD"; then
4390 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4391 echo "${ECHO_T}$ac_ct_LD" >&6; }
4392 else
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4397 if test "x$ac_ct_LD" = x; then
4398 LD=":"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&5
4405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4406 whose name does not start with the host triplet. If you think this
4407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4408 ac_tool_warned=yes ;;
4409 esac
4410 LD=$ac_ct_LD
4412 else
4413 LD="$ac_cv_prog_LD"
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_RANLIB+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$RANLIB"; then
4425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 RANLIB=$ac_cv_prog_RANLIB
4445 if test -n "$RANLIB"; then
4446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4447 echo "${ECHO_T}$RANLIB" >&6; }
4448 else
4449 { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4455 if test -z "$ac_cv_prog_RANLIB"; then
4456 ac_ct_RANLIB=$RANLIB
4457 # Extract the first word of "ranlib", so it can be a program name with args.
4458 set dummy ranlib; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test -n "$ac_ct_RANLIB"; then
4465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_RANLIB="ranlib"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4485 if test -n "$ac_ct_RANLIB"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4488 else
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4493 if test "x$ac_ct_RANLIB" = x; then
4494 RANLIB=":"
4495 else
4496 case $cross_compiling:$ac_tool_warned in
4497 yes:)
4498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 RANLIB=$ac_ct_RANLIB
4508 else
4509 RANLIB="$ac_cv_prog_RANLIB"
4514 # Checks for programs.
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 CC=$ac_cv_prog_CC
4549 if test -n "$CC"; then
4550 { echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_CC"; then
4560 ac_ct_CC=$CC
4561 # Extract the first word of "gcc", so it can be a program name with args.
4562 set dummy gcc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_CC="gcc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6; }
4592 else
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_CC" = x; then
4598 CC=""
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601 yes:)
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 CC=$ac_ct_CC
4612 else
4613 CC="$ac_cv_prog_CC"
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}cc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4657 if test -z "$CC"; then
4658 # Extract the first word of "cc", so it can be a program name with args.
4659 set dummy cc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4667 else
4668 ac_prog_rejected=no
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677 ac_prog_rejected=yes
4678 continue
4680 ac_cv_prog_CC="cc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4688 if test $ac_prog_rejected = yes; then
4689 # We found a bogon in the path, so make sure we never use it.
4690 set dummy $ac_cv_prog_CC
4691 shift
4692 if test $# != 0; then
4693 # We chose a different compiler from the bogus one.
4694 # However, it has the same basename, so the bogon will be chosen
4695 # first if we set CC to just the basename; use the full file name.
4696 shift
4697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4702 CC=$ac_cv_prog_CC
4703 if test -n "$CC"; then
4704 { echo "$as_me:$LINENO: result: $CC" >&5
4705 echo "${ECHO_T}$CC" >&6; }
4706 else
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl.exe
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4740 IFS=$as_save_IFS
4744 CC=$ac_cv_prog_CC
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 test -n "$CC" && break
4755 done
4757 if test -z "$CC"; then
4758 ac_ct_CC=$CC
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_CC="$ac_prog"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4789 if test -n "$ac_ct_CC"; then
4790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4791 echo "${ECHO_T}$ac_ct_CC" >&6; }
4792 else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 test -n "$ac_ct_CC" && break
4799 done
4801 if test "x$ac_ct_CC" = x; then
4802 CC=""
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the host triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 CC=$ac_ct_CC
4821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." >&5
4823 echo "$as_me: error: no acceptable C compiler found in \$PATH
4824 See \`config.log' for more details." >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Provide some information about the compiler.
4828 echo "$as_me:$LINENO: checking for C compiler version" >&5
4829 ac_compiler=`set X $ac_compile; echo $2`
4830 { (ac_try="$ac_compiler --version >&5"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compiler --version >&5") 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }
4840 { (ac_try="$ac_compiler -v >&5"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compiler -v >&5") 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }
4850 { (ac_try="$ac_compiler -V >&5"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compiler -V >&5") 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }
4861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4862 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4874 main ()
4876 #ifndef __GNUC__
4877 choke me
4878 #endif
4881 return 0;
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (ac_try="$ac_compile"
4886 case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4901 ac_compiler_gnu=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 ac_compiler_gnu=no
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4913 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4915 GCC=`test $ac_compiler_gnu = yes && echo yes`
4916 ac_test_CFLAGS=${CFLAGS+set}
4917 ac_save_CFLAGS=$CFLAGS
4918 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_cc_g+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4925 ac_cv_prog_cc_g=no
4926 CFLAGS="-g"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4935 main ()
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4959 ac_cv_prog_cc_g=yes
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 CFLAGS=""
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4973 main ()
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5003 CFLAGS="-g"
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5012 main ()
5016 return 0;
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_prog_cc_g=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5059 CFLAGS="-g -O2"
5060 else
5061 CFLAGS="-g"
5063 else
5064 if test "$GCC" = yes; then
5065 CFLAGS="-O2"
5066 else
5067 CFLAGS=
5070 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5071 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 ac_cv_prog_cc_c89=no
5076 ac_save_CC=$CC
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <stdarg.h>
5084 #include <stdio.h>
5085 #include <sys/types.h>
5086 #include <sys/stat.h>
5087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5088 struct buf { int x; };
5089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5090 static char *e (p, i)
5091 char **p;
5092 int i;
5094 return p[i];
5096 static char *f (char * (*g) (char **, int), char **p, ...)
5098 char *s;
5099 va_list v;
5100 va_start (v,p);
5101 s = g (p, va_arg (v,int));
5102 va_end (v);
5103 return s;
5106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5107 function prototypes and stuff, but not '\xHH' hex character constants.
5108 These don't provoke an error unfortunately, instead are silently treated
5109 as 'x'. The following induces an error, until -std is added to get
5110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5111 array size at least. It's necessary to write '\x00'==0 to get something
5112 that's true only with -std. */
5113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5116 inside strings and character constants. */
5117 #define FOO(x) 'x'
5118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5120 int test (int i, double x);
5121 struct s1 {int (*f) (int a);};
5122 struct s2 {int (*f) (double a);};
5123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5124 int argc;
5125 char **argv;
5127 main ()
5129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5131 return 0;
5133 _ACEOF
5134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5137 CC="$ac_save_CC $ac_arg"
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_prog_cc_c89=$ac_arg
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 done
5166 rm -f conftest.$ac_ext
5167 CC=$ac_save_CC
5170 # AC_CACHE_VAL
5171 case "x$ac_cv_prog_cc_c89" in
5173 { echo "$as_me:$LINENO: result: none needed" >&5
5174 echo "${ECHO_T}none needed" >&6; } ;;
5175 xno)
5176 { echo "$as_me:$LINENO: result: unsupported" >&5
5177 echo "${ECHO_T}unsupported" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5182 esac
5185 ac_ext=c
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 ac_ext=cpp
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5198 CXX=$CCC
5199 else
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 CXX=$ac_cv_prog_CXX
5231 if test -n "$CXX"; then
5232 { echo "$as_me:$LINENO: result: $CXX" >&5
5233 echo "${ECHO_T}$CXX" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5240 test -n "$CXX" && break
5241 done
5243 if test -z "$CXX"; then
5244 ac_ct_CXX=$CXX
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5278 else
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 test -n "$ac_ct_CXX" && break
5285 done
5287 if test "x$ac_ct_CXX" = x; then
5288 CXX="g++"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet. If you think this
5294 configuration is useful to you, please write to autoconf@gnu.org." >&5
5295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5296 whose name does not start with the host triplet. If you think this
5297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300 CXX=$ac_ct_CXX
5306 # Provide some information about the compiler.
5307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (ac_try="$ac_compiler --version >&5"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compiler --version >&5") 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }
5319 { (ac_try="$ac_compiler -v >&5"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compiler -v >&5") 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 { (ac_try="$ac_compiler -V >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler -V >&5") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5340 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5341 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5353 main ()
5355 #ifndef __GNUC__
5356 choke me
5357 #endif
5360 return 0;
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5380 ac_compiler_gnu=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_compiler_gnu=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5394 GXX=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CXXFLAGS=${CXXFLAGS+set}
5396 ac_save_CXXFLAGS=$CXXFLAGS
5397 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5398 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cxx_g+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5403 ac_cxx_werror_flag=yes
5404 ac_cv_prog_cxx_g=no
5405 CXXFLAGS="-g"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5414 main ()
5418 return 0;
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5423 case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_cxx_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5438 ac_cv_prog_cxx_g=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 CXXFLAGS=""
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5452 main ()
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_cxx_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5482 CXXFLAGS="-g"
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5491 main ()
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_prog_cxx_g=yes
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5534 if test "$ac_test_CXXFLAGS" = set; then
5535 CXXFLAGS=$ac_save_CXXFLAGS
5536 elif test $ac_cv_prog_cxx_g = yes; then
5537 if test "$GXX" = yes; then
5538 CXXFLAGS="-g -O2"
5539 else
5540 CXXFLAGS="-g"
5542 else
5543 if test "$GXX" = yes; then
5544 CXXFLAGS="-O2"
5545 else
5546 CXXFLAGS=
5549 ac_ext=c
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5561 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5564 CPP=
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 ac_preproc_ok=false
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593 Syntax error
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5610 }; then
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Broken: fails on valid input.
5617 continue
5620 rm -f conftest.err conftest.$ac_ext
5622 # OK, works on sane cases. Now check whether nonexistent headers
5623 # can be detected and how.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5631 _ACEOF
5632 if { (ac_try="$ac_cpp conftest.$ac_ext"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } >/dev/null && {
5645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 }; then
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5659 rm -f conftest.err conftest.$ac_ext
5661 done
5662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663 rm -f conftest.err conftest.$ac_ext
5664 if $ac_preproc_ok; then
5665 break
5668 done
5669 ac_cv_prog_CPP=$CPP
5672 CPP=$ac_cv_prog_CPP
5673 else
5674 ac_cv_prog_CPP=$CPP
5676 { echo "$as_me:$LINENO: result: $CPP" >&5
5677 echo "${ECHO_T}$CPP" >&6; }
5678 ac_preproc_ok=false
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698 Syntax error
5699 _ACEOF
5700 if { (ac_try="$ac_cpp conftest.$ac_ext"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 }; then
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5722 continue
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5736 _ACEOF
5737 if { (ac_try="$ac_cpp conftest.$ac_ext"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 }; then
5753 # Broken: success on invalid input.
5754 continue
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5760 ac_preproc_ok=:
5761 break
5764 rm -f conftest.err conftest.$ac_ext
5766 done
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5771 else
5772 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5773 See \`config.log' for more details." >&5
5774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5775 See \`config.log' for more details." >&2;}
5776 { (exit 1); exit 1; }; }
5779 ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 ac_ext=cpp
5786 ac_cpp='$CXXCPP $CPPFLAGS'
5787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5790 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5792 if test -z "$CXXCPP"; then
5793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 # Double quotes because CXXCPP needs to be expanded
5797 for CXXCPP in "$CXX -E" "/lib/cpp"
5799 ac_preproc_ok=false
5800 for ac_cxx_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 Syntax error
5820 _ACEOF
5821 if { (ac_try="$ac_cpp conftest.$ac_ext"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 # Broken: fails on valid input.
5843 continue
5846 rm -f conftest.err conftest.$ac_ext
5848 # OK, works on sane cases. Now check whether nonexistent headers
5849 # can be detected and how.
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5857 _ACEOF
5858 if { (ac_try="$ac_cpp conftest.$ac_ext"
5859 case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null && {
5871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 }; then
5874 # Broken: success on invalid input.
5875 continue
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 # Passes both tests.
5881 ac_preproc_ok=:
5882 break
5885 rm -f conftest.err conftest.$ac_ext
5887 done
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.$ac_ext
5890 if $ac_preproc_ok; then
5891 break
5894 done
5895 ac_cv_prog_CXXCPP=$CXXCPP
5898 CXXCPP=$ac_cv_prog_CXXCPP
5899 else
5900 ac_cv_prog_CXXCPP=$CXXCPP
5902 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5903 echo "${ECHO_T}$CXXCPP" >&6; }
5904 ac_preproc_ok=false
5905 for ac_cxx_preproc_warn_flag in '' yes
5907 # Use a header file that comes with gcc, so configuring glibc
5908 # with a fresh cross-compiler works.
5909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 # <limits.h> exists even on freestanding compilers.
5911 # On the NeXT, cc -E runs the code through the compiler's parser,
5912 # not just through cpp. "Syntax error" is here to catch this case.
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef __STDC__
5920 # include <limits.h>
5921 #else
5922 # include <assert.h>
5923 #endif
5924 Syntax error
5925 _ACEOF
5926 if { (ac_try="$ac_cpp conftest.$ac_ext"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940 test ! -s conftest.err
5941 }; then
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 # Broken: fails on valid input.
5948 continue
5951 rm -f conftest.err conftest.$ac_ext
5953 # OK, works on sane cases. Now check whether nonexistent headers
5954 # can be detected and how.
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <ac_nonexistent.h>
5962 _ACEOF
5963 if { (ac_try="$ac_cpp conftest.$ac_ext"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } >/dev/null && {
5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977 test ! -s conftest.err
5978 }; then
5979 # Broken: success on invalid input.
5980 continue
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 # Passes both tests.
5986 ac_preproc_ok=:
5987 break
5990 rm -f conftest.err conftest.$ac_ext
5992 done
5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994 rm -f conftest.err conftest.$ac_ext
5995 if $ac_preproc_ok; then
5997 else
5998 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5999 See \`config.log' for more details." >&5
6000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6001 See \`config.log' for more details." >&2;}
6002 { (exit 1); exit 1; }; }
6005 ac_ext=c
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6012 # the developers regenerating the configure script don't have to install libtool.
6013 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6014 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_SED+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6019 for ac_i in 1 2 3 4 5 6 7; do
6020 ac_script="$ac_script$as_nl$ac_script"
6021 done
6022 echo "$ac_script" | sed 99q >conftest.sed
6023 $as_unset ac_script || ac_script=
6024 # Extract the first word of "sed gsed" to use in msg output
6025 if test -z "$SED"; then
6026 set dummy sed gsed; ac_prog_name=$2
6027 if test "${ac_cv_path_SED+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 ac_path_SED_found=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_prog in sed gsed; do
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6041 # Check for GNU ac_path_SED and select it if it is found.
6042 # Check for GNU $ac_path_SED
6043 case `"$ac_path_SED" --version 2>&1` in
6044 *GNU*)
6045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6047 ac_count=0
6048 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6049 while :
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 echo '' >> "conftest.nl"
6055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6057 ac_count=`expr $ac_count + 1`
6058 if test $ac_count -gt ${ac_path_SED_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_SED="$ac_path_SED"
6061 ac_path_SED_max=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6065 done
6066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6067 esac
6070 $ac_path_SED_found && break 3
6071 done
6072 done
6074 done
6075 IFS=$as_save_IFS
6080 SED="$ac_cv_path_SED"
6081 if test -z "$SED"; then
6082 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6083 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6084 { (exit 1); exit 1; }; }
6087 else
6088 ac_cv_path_SED=$SED
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6093 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6094 SED="$ac_cv_path_SED"
6095 rm -f conftest.sed
6097 { echo "$as_me:$LINENO: checking for egrep" >&5
6098 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_egrep+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6103 then ac_cv_prog_egrep='grep -E'
6104 else ac_cv_prog_egrep='egrep'
6107 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6108 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6109 EGREP=$ac_cv_prog_egrep
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6116 else
6117 with_gnu_ld=no
6120 ac_prog=ld
6121 if test "$GCC" = yes; then
6122 # Check if gcc -print-prog-name=ld gives a path.
6123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6125 case $host in
6126 *-*-mingw*)
6127 # gcc leaves a trailing carriage return which upsets mingw
6128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6131 esac
6132 case $ac_prog in
6133 # Accept absolute paths.
6134 [\\/]* | ?:[\\/]*)
6135 re_direlt='/[^/][^/]*/\.\./'
6136 # Canonicalize the pathname of ld
6137 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6139 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6140 done
6141 test -z "$LD" && LD="$ac_prog"
6144 # If it fails, then pretend we aren't using GCC.
6145 ac_prog=ld
6148 # If it is relative, then search for the first ld in PATH.
6149 with_gnu_ld=unknown
6151 esac
6152 elif test "$with_gnu_ld" = yes; then
6153 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6155 else
6156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6159 if test "${lt_cv_path_LD+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 if test -z "$LD"; then
6163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6164 for ac_dir in $PATH; do
6165 IFS="$lt_save_ifs"
6166 test -z "$ac_dir" && ac_dir=.
6167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168 lt_cv_path_LD="$ac_dir/$ac_prog"
6169 # Check to see if the program is GNU ld. I'd rather use --version,
6170 # but apparently some variants of GNU ld only accept -v.
6171 # Break only if it was the GNU/non-GNU ld that we prefer.
6172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173 *GNU* | *'with BFD'*)
6174 test "$with_gnu_ld" != no && break
6177 test "$with_gnu_ld" != yes && break
6179 esac
6181 done
6182 IFS="$lt_save_ifs"
6183 else
6184 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6188 LD="$lt_cv_path_LD"
6189 if test -n "$LD"; then
6190 { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6192 else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198 { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU* | *'with BFD'*)
6207 lt_cv_prog_gnu_ld=yes
6210 lt_cv_prog_gnu_ld=no
6212 esac
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld=$lt_cv_prog_gnu_ld
6218 # note - does not work on freebsd
6219 for ac_prog in gawk mawk nawk awk
6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy $ac_prog; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 if test -n "$AWK"; then
6229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AWK="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6248 AWK=$ac_cv_prog_AWK
6249 if test -n "$AWK"; then
6250 { echo "$as_me:$LINENO: result: $AWK" >&5
6251 echo "${ECHO_T}$AWK" >&6; }
6252 else
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 test -n "$AWK" && break
6259 done
6261 # Find a good install program. We prefer a C program (faster),
6262 # so one script is as good as another. But avoid the broken or
6263 # incompatible versions:
6264 # SysV /etc/install, /usr/sbin/install
6265 # SunOS /usr/etc/install
6266 # IRIX /sbin/install
6267 # AIX /bin/install
6268 # AmigaOS /C/install, which installs bootblocks on floppy discs
6269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6272 # OS/2's system install, which has a completely different semantic
6273 # ./install, which can be erroneously created by make from ./install.sh.
6274 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6276 if test -z "$INSTALL"; then
6277 if test "${ac_cv_path_install+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 # Account for people who put trailing slashes in PATH elements.
6286 case $as_dir/ in
6287 ./ | .// | /cC/* | \
6288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6290 /usr/ucb/* ) ;;
6292 # OSF1 and SCO ODT 3.0 have their own names for install.
6293 # Don't use installbsd from OSF since it installs stuff as root
6294 # by default.
6295 for ac_prog in ginstall scoinst install; do
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6298 if test $ac_prog = install &&
6299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6300 # AIX install. It has an incompatible calling convention.
6302 elif test $ac_prog = install &&
6303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6304 # program-specific install script used by HP pwplus--don't use.
6306 else
6307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6308 break 3
6311 done
6312 done
6314 esac
6315 done
6316 IFS=$as_save_IFS
6320 if test "${ac_cv_path_install+set}" = set; then
6321 INSTALL=$ac_cv_path_install
6322 else
6323 # As a last resort, use the slow shell script. Don't cache a
6324 # value for INSTALL within a source directory, because that will
6325 # break other packages using the cache if that directory is
6326 # removed, or if the value is a relative name.
6327 INSTALL=$ac_install_sh
6330 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6331 echo "${ECHO_T}$INSTALL" >&6; }
6333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6334 # It thinks the first close brace ends the variable substitution.
6335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6343 LN_S=$as_ln_s
6344 if test "$LN_S" = "ln -s"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6347 else
6348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6349 echo "${ECHO_T}no, using $LN_S" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6374 done
6375 done
6376 IFS=$as_save_IFS
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6384 else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6414 done
6415 done
6416 IFS=$as_save_IFS
6420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6424 else
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x; then
6430 RANLIB=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442 RANLIB=$ac_ct_RANLIB
6444 else
6445 RANLIB="$ac_cv_prog_RANLIB"
6448 { echo "$as_me:$LINENO: checking for GNU make" >&5
6449 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6450 if test "${GNU_MAKE+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 GNU_MAKE='Not Found' ;
6454 GNU_MAKE_VERSION_MAJOR=0 ;
6455 GNU_MAKE_VERSION_MINOR=0 ;
6456 for a in make gmake gnumake ; do
6457 if test -z "$a" ; then continue ; fi ;
6458 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6459 GNU_MAKE=$a ;
6460 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6461 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6462 break;
6464 done ;
6467 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6468 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6469 if test "x$GNU_MAKE" = "xNot Found" ; then
6470 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6471 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6472 { (exit 1); exit 1; }; }
6473 exit 1
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}strip; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_STRIP+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 case $STRIP in
6487 [\\/]* | ?:[\\/]*)
6488 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6507 esac
6509 STRIP=$ac_cv_path_STRIP
6510 if test -n "$STRIP"; then
6511 { echo "$as_me:$LINENO: result: $STRIP" >&5
6512 echo "${ECHO_T}$STRIP" >&6; }
6513 else
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6520 if test -z "$ac_cv_path_STRIP"; then
6521 ac_pt_STRIP=$STRIP
6522 # Extract the first word of "strip", so it can be a program name with args.
6523 set dummy strip; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 case $ac_pt_STRIP in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6550 esac
6552 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6553 if test -n "$ac_pt_STRIP"; then
6554 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6555 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6561 if test "x$ac_pt_STRIP" = x; then
6562 STRIP=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567 whose name does not start with the host triplet. If you think this
6568 configuration is useful to you, please write to autoconf@gnu.org." >&5
6569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570 whose name does not start with the host triplet. If you think this
6571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572 ac_tool_warned=yes ;;
6573 esac
6574 STRIP=$ac_pt_STRIP
6576 else
6577 STRIP="$ac_cv_path_STRIP"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}ar; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 case $AR in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6609 esac
6611 AR=$ac_cv_path_AR
6612 if test -n "$AR"; then
6613 { echo "$as_me:$LINENO: result: $AR" >&5
6614 echo "${ECHO_T}$AR" >&6; }
6615 else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6622 if test -z "$ac_cv_path_AR"; then
6623 ac_pt_AR=$AR
6624 # Extract the first word of "ar", so it can be a program name with args.
6625 set dummy ar; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 case $ac_pt_AR in
6632 [\\/]* | ?:[\\/]*)
6633 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6652 esac
6654 ac_pt_AR=$ac_cv_path_ac_pt_AR
6655 if test -n "$ac_pt_AR"; then
6656 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6657 echo "${ECHO_T}$ac_pt_AR" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_pt_AR" = x; then
6664 AR=":"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 AR=$ac_pt_AR
6678 else
6679 AR="$ac_cv_path_AR"
6683 GNU_LD=0
6684 if test "x$with_gnu_ld" = "xyes" ; then
6685 GNU_LD=1
6689 # Extract the first word of "awk", so it can be a program name with args.
6690 set dummy awk; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_AWK+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 case $AWK in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6712 done
6713 done
6714 IFS=$as_save_IFS
6716 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
6718 esac
6720 AWK=$ac_cv_path_AWK
6721 if test -n "$AWK"; then
6722 { echo "$as_me:$LINENO: result: $AWK" >&5
6723 echo "${ECHO_T}$AWK" >&6; }
6724 else
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy grep; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 case $GREP in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6759 esac
6761 GREP=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6765 else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "find", so it can be a program name with args.
6772 set dummy find; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_FIND+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 case $FIND in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6796 IFS=$as_save_IFS
6798 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6800 esac
6802 FIND=$ac_cv_path_FIND
6803 if test -n "$FIND"; then
6804 { echo "$as_me:$LINENO: result: $FIND" >&5
6805 echo "${ECHO_T}$FIND" >&6; }
6806 else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "compress", so it can be a program name with args.
6813 set dummy compress; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_COMPRESS+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 case $COMPRESS in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6839 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6841 esac
6843 COMPRESS=$ac_cv_path_COMPRESS
6844 if test -n "$COMPRESS"; then
6845 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6846 echo "${ECHO_T}$COMPRESS" >&6; }
6847 else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "basename", so it can be a program name with args.
6854 set dummy basename; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_BASENAME+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 case $BASENAME in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6880 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6882 esac
6884 BASENAME=$ac_cv_path_BASENAME
6885 if test -n "$BASENAME"; then
6886 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6887 echo "${ECHO_T}$BASENAME" >&6; }
6888 else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "id", so it can be a program name with args.
6895 set dummy id; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_ID+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 case $ID in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6917 done
6918 done
6919 IFS=$as_save_IFS
6921 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6923 esac
6925 ID=$ac_cv_path_ID
6926 if test -n "$ID"; then
6927 { echo "$as_me:$LINENO: result: $ID" >&5
6928 echo "${ECHO_T}$ID" >&6; }
6929 else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "dirname", so it can be a program name with args.
6936 set dummy dirname; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_DIRNAME+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 case $DIRNAME in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6962 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
6964 esac
6966 DIRNAME=$ac_cv_path_DIRNAME
6967 if test -n "$DIRNAME"; then
6968 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
6969 echo "${ECHO_T}$DIRNAME" >&6; }
6970 else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "sh", so it can be a program name with args.
6977 set dummy sh; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_SHELL+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 case $SHELL in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7003 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7005 esac
7007 SHELL=$ac_cv_path_SHELL
7008 if test -n "$SHELL"; then
7009 { echo "$as_me:$LINENO: result: $SHELL" >&5
7010 echo "${ECHO_T}$SHELL" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "ln", so it can be a program name with args.
7018 set dummy ln; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_LN+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 case $LN in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7044 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7046 esac
7048 LN=$ac_cv_path_LN
7049 if test -n "$LN"; then
7050 { echo "$as_me:$LINENO: result: $LN" >&5
7051 echo "${ECHO_T}$LN" >&6; }
7052 else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "dot", so it can be a program name with args.
7059 set dummy dot; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_DOT+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 case $DOT in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7087 esac
7089 DOT=$ac_cv_path_DOT
7090 if test -n "$DOT"; then
7091 { echo "$as_me:$LINENO: result: $DOT" >&5
7092 echo "${ECHO_T}$DOT" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "wget", so it can be a program name with args.
7100 set dummy wget; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_WGET+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 case $WGET in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7126 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7128 esac
7130 WGET=$ac_cv_path_WGET
7131 if test -n "$WGET"; then
7132 { echo "$as_me:$LINENO: result: $WGET" >&5
7133 echo "${ECHO_T}$WGET" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 if test "${WGET}" != ":" ; then
7141 DOWNLOAD=${WGET}
7142 else
7143 # Extract the first word of "fetch", so it can be a program name with args.
7144 set dummy fetch; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_FETCH+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 case $FETCH in
7151 [\\/]* | ?:[\\/]*)
7152 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7168 IFS=$as_save_IFS
7170 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7172 esac
7174 FETCH=$ac_cv_path_FETCH
7175 if test -n "$FETCH"; then
7176 { echo "$as_me:$LINENO: result: $FETCH" >&5
7177 echo "${ECHO_T}$FETCH" >&6; }
7178 else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 DOWNLOAD=${FETCH}
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 if test -n "$SOXMIX"; then
7197 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 SOXMIX=$ac_cv_prog_SOXMIX
7217 if test -n "$SOXMIX"; then
7218 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7219 echo "${ECHO_T}$SOXMIX" >&6; }
7220 else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7227 if test -z "$ac_cv_prog_SOXMIX"; then
7228 ac_ct_SOXMIX=$SOXMIX
7229 # Extract the first word of "soxmix", so it can be a program name with args.
7230 set dummy soxmix; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 if test -n "$ac_ct_SOXMIX"; then
7237 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7257 if test -n "$ac_ct_SOXMIX"; then
7258 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7259 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7260 else
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7265 if test "x$ac_ct_SOXMIX" = x; then
7266 SOXMIX=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned=yes ;;
7277 esac
7278 SOXMIX=$ac_ct_SOXMIX
7280 else
7281 SOXMIX="$ac_cv_prog_SOXMIX"
7284 if test "${SOXMIX}" != ":" ; then
7286 cat >>confdefs.h <<\_ACEOF
7287 #define HAVE_SOXMIX 1
7288 _ACEOF
7295 ac_ext=c
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 acx_pthread_ok=no
7303 # We used to check for pthread.h first, but this fails if pthread.h
7304 # requires special compiler flags (e.g. on True64 or Sequent).
7305 # It gets checked for in the link test anyway.
7307 # First of all, check if the user has set any of the PTHREAD_LIBS,
7308 # etcetera environment variables, and if threads linking works using
7309 # them:
7310 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7311 save_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7313 save_LIBS="$LIBS"
7314 LIBS="$PTHREAD_LIBS $LIBS"
7315 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7316 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 char pthread_join ();
7332 main ()
7334 return pthread_join ();
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 acx_pthread_ok=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7368 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7369 if test x"$acx_pthread_ok" = xno; then
7370 PTHREAD_LIBS=""
7371 PTHREAD_CFLAGS=""
7373 LIBS="$save_LIBS"
7374 CFLAGS="$save_CFLAGS"
7377 # We must check for the threads library under a number of different
7378 # names; the ordering is very important because some systems
7379 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7380 # libraries is broken (non-POSIX).
7382 # Create a list of thread flags to try. Items starting with a "-" are
7383 # C compiler flags, and other items are library names, except for "none"
7384 # which indicates that we try without any flags at all, and "pthread-config"
7385 # which is a program returning the flags for the Pth emulation library.
7387 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7389 # The ordering *is* (sometimes) important. Some notes on the
7390 # individual items follow:
7392 # pthreads: AIX (must check this before -lpthread)
7393 # none: in case threads are in libc; should be tried before -Kthread and
7394 # other compiler flags to prevent continual compiler warnings
7395 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7396 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7397 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7399 # -pthreads: Solaris/gcc
7400 # -mthreads: Mingw32/gcc, Lynx/gcc
7401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7402 # doesn't hurt to check since this sometimes defines pthreads too;
7403 # also defines -D_REENTRANT)
7404 # ... -mt is also the pthreads flag for HP/aCC
7405 # pthread: Linux, etcetera
7406 # --thread-safe: KAI C++
7407 # pthread-config: use pthread-config program (for GNU Pth library)
7409 case "${host_cpu}-${host_os}" in
7410 *solaris*)
7412 # On Solaris (at least, for some versions), libc contains stubbed
7413 # (non-functional) versions of the pthreads routines, so link-based
7414 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7416 # a function called by this macro, so we could check for that, but
7417 # who knows whether they'll stub that too in a future libc.) So,
7418 # we'll just look for -pthreads and -lpthread first:
7420 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7422 esac
7424 if test x"$acx_pthread_ok" = xno; then
7425 for flag in $acx_pthread_flags; do
7427 case $flag in
7428 none)
7429 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7430 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7434 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7435 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7436 PTHREAD_CFLAGS="$flag"
7439 pthread-config)
7440 # Extract the first word of "pthread-config", so it can be a program name with args.
7441 set dummy pthread-config; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 if test -n "$acx_pthread_config"; then
7448 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_acx_pthread_config="yes"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7465 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7468 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7469 if test -n "$acx_pthread_config"; then
7470 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7471 echo "${ECHO_T}$acx_pthread_config" >&6; }
7472 else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7478 if test x"$acx_pthread_config" = xno; then continue; fi
7479 PTHREAD_CFLAGS="`pthread-config --cflags`"
7480 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7484 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7485 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7486 PTHREAD_LIBS="-l$flag"
7488 esac
7490 save_LIBS="$LIBS"
7491 save_CFLAGS="$CFLAGS"
7492 LIBS="$PTHREAD_LIBS $LIBS"
7493 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7495 # Check for various functions. We must include pthread.h,
7496 # since some functions may be macros. (On the Sequent, we
7497 # need a special flag -Kthread to make this header compile.)
7498 # We check for pthread_join because it is in -lpthread on IRIX
7499 # while pthread_create is in libc. We check for pthread_attr_init
7500 # due to DEC craziness with -lpthreads. We check for
7501 # pthread_cleanup_push because it is one of the few pthread
7502 # functions on Solaris that doesn't have a non-functional libc stub.
7503 # We try pthread_create on general principles.
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <pthread.h>
7512 main ()
7514 pthread_t th; pthread_join(th, 0);
7515 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7516 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest$ac_exeext &&
7538 $as_test_x conftest$ac_exeext; then
7539 acx_pthread_ok=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7550 LIBS="$save_LIBS"
7551 CFLAGS="$save_CFLAGS"
7553 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7554 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7555 if test "x$acx_pthread_ok" = xyes; then
7556 break;
7559 PTHREAD_LIBS=""
7560 PTHREAD_CFLAGS=""
7561 done
7564 # Various other checks:
7565 if test "x$acx_pthread_ok" = xyes; then
7566 save_LIBS="$LIBS"
7567 LIBS="$PTHREAD_LIBS $LIBS"
7568 save_CFLAGS="$CFLAGS"
7569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7571 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7572 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7573 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7574 attr_name=unknown
7575 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <pthread.h>
7584 main ()
7586 int attr=$attr; return attr;
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 attr_name=$attr; break
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7619 done
7620 { echo "$as_me:$LINENO: result: $attr_name" >&5
7621 echo "${ECHO_T}$attr_name" >&6; }
7622 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define PTHREAD_CREATE_JOINABLE $attr_name
7626 _ACEOF
7630 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7631 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7632 flag=no
7633 case "${host_cpu}-${host_os}" in
7634 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7635 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7636 esac
7637 { echo "$as_me:$LINENO: result: ${flag}" >&5
7638 echo "${ECHO_T}${flag}" >&6; }
7639 if test "x$flag" != xno; then
7640 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7643 LIBS="$save_LIBS"
7644 CFLAGS="$save_CFLAGS"
7646 # More AIX lossage: must compile with xlc_r or cc_r
7647 if test x"$GCC" != xyes; then
7648 for ac_prog in xlc_r cc_r
7650 # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 if test -n "$PTHREAD_CC"; then
7658 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_PTHREAD_CC="$ac_prog"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7678 if test -n "$PTHREAD_CC"; then
7679 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7680 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7681 else
7682 { echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6; }
7687 test -n "$PTHREAD_CC" && break
7688 done
7689 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7691 else
7692 PTHREAD_CC=$CC
7694 else
7695 PTHREAD_CC="$CC"
7702 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7703 if test x"$acx_pthread_ok" = xyes; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PTHREAD 1
7707 _ACEOF
7710 else
7711 acx_pthread_ok=no
7714 ac_ext=c
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 ac_ext=c
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 # Check whether --enable-dev-mode was given.
7730 if test "${enable_dev_mode+set}" = set; then
7731 enableval=$enable_dev_mode; case "${enableval}" in
7732 y|ye|yes) AST_DEVMODE=yes ;;
7733 n|no) AST_DEVMODE=no ;;
7734 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7735 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7736 { (exit 1); exit 1; }; } ;;
7737 esac
7742 # package option names should be in alphabetical order
7743 # by the --with option name, to make things easier for the users :-)
7746 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7747 ALSA_OPTION="asound"
7749 # Check whether --with-asound was given.
7750 if test "${with_asound+set}" = set; then
7751 withval=$with_asound;
7752 case ${withval} in
7753 n|no)
7754 USE_ALSA=no
7756 y|ye|yes)
7757 ALSA_MANDATORY="yes"
7760 ALSA_DIR="${withval}"
7761 ALSA_MANDATORY="yes"
7763 esac
7767 PBX_ALSA=0
7774 CURL_DESCRIP="cURL"
7775 CURL_OPTION="curl"
7777 # Check whether --with-curl was given.
7778 if test "${with_curl+set}" = set; then
7779 withval=$with_curl;
7780 case ${withval} in
7781 n|no)
7782 USE_CURL=no
7784 y|ye|yes)
7785 CURL_MANDATORY="yes"
7788 CURL_DIR="${withval}"
7789 CURL_MANDATORY="yes"
7791 esac
7795 PBX_CURL=0
7802 CAP_DESCRIP="POSIX 1.e capabilities"
7803 CAP_OPTION="cap"
7805 # Check whether --with-cap was given.
7806 if test "${with_cap+set}" = set; then
7807 withval=$with_cap;
7808 case ${withval} in
7809 n|no)
7810 USE_CAP=no
7812 y|ye|yes)
7813 CAP_MANDATORY="yes"
7816 CAP_DIR="${withval}"
7817 CAP_MANDATORY="yes"
7819 esac
7823 PBX_CAP=0
7830 CURSES_DESCRIP="curses"
7831 CURSES_OPTION="curses"
7833 # Check whether --with-curses was given.
7834 if test "${with_curses+set}" = set; then
7835 withval=$with_curses;
7836 case ${withval} in
7837 n|no)
7838 USE_CURSES=no
7840 y|ye|yes)
7841 CURSES_MANDATORY="yes"
7844 CURSES_DIR="${withval}"
7845 CURSES_MANDATORY="yes"
7847 esac
7851 PBX_CURSES=0
7858 GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
7859 GNUTLS_OPTION="gnutls"
7861 # Check whether --with-gnutls was given.
7862 if test "${with_gnutls+set}" = set; then
7863 withval=$with_gnutls;
7864 case ${withval} in
7865 n|no)
7866 USE_GNUTLS=no
7868 y|ye|yes)
7869 GNUTLS_MANDATORY="yes"
7872 GNUTLS_DIR="${withval}"
7873 GNUTLS_MANDATORY="yes"
7875 esac
7879 PBX_GNUTLS=0
7886 GSM_DESCRIP="GSM"
7887 GSM_OPTION="gsm"
7889 # Check whether --with-gsm was given.
7890 if test "${with_gsm+set}" = set; then
7891 withval=$with_gsm;
7892 case ${withval} in
7893 n|no)
7894 USE_GSM=no
7896 y|ye|yes)
7897 GSM_MANDATORY="yes"
7900 GSM_DIR="${withval}"
7901 GSM_MANDATORY="yes"
7903 esac
7907 PBX_GSM=0
7914 IKSEMEL_DESCRIP="Iksemel Jabber Library"
7915 IKSEMEL_OPTION="iksemel"
7917 # Check whether --with-iksemel was given.
7918 if test "${with_iksemel+set}" = set; then
7919 withval=$with_iksemel;
7920 case ${withval} in
7921 n|no)
7922 USE_IKSEMEL=no
7924 y|ye|yes)
7925 IKSEMEL_MANDATORY="yes"
7928 IKSEMEL_DIR="${withval}"
7929 IKSEMEL_MANDATORY="yes"
7931 esac
7935 PBX_IKSEMEL=0
7942 IMAP_TK_DESCRIP="UW IMAP Toolkit"
7943 IMAP_TK_OPTION="imap"
7945 # Check whether --with-imap was given.
7946 if test "${with_imap+set}" = set; then
7947 withval=$with_imap;
7948 case ${withval} in
7949 n|no)
7950 USE_IMAP_TK=no
7952 y|ye|yes)
7953 IMAP_TK_MANDATORY="yes"
7956 IMAP_TK_DIR="${withval}"
7957 IMAP_TK_MANDATORY="yes"
7959 esac
7963 PBX_IMAP_TK=0
7970 ISDNNET_DESCRIP="ISDN4Linux Library"
7971 ISDNNET_OPTION="isdnnet"
7973 # Check whether --with-isdnnet was given.
7974 if test "${with_isdnnet+set}" = set; then
7975 withval=$with_isdnnet;
7976 case ${withval} in
7977 n|no)
7978 USE_ISDNNET=no
7980 y|ye|yes)
7981 ISDNNET_MANDATORY="yes"
7984 ISDNNET_DIR="${withval}"
7985 ISDNNET_MANDATORY="yes"
7987 esac
7991 PBX_ISDNNET=0
7998 KDE_DESCRIP="KDE"
7999 KDE_OPTION="kde"
8001 # Check whether --with-kde was given.
8002 if test "${with_kde+set}" = set; then
8003 withval=$with_kde;
8004 case ${withval} in
8005 n|no)
8006 USE_KDE=no
8008 y|ye|yes)
8009 KDE_MANDATORY="yes"
8012 KDE_DIR="${withval}"
8013 KDE_MANDATORY="yes"
8015 esac
8019 PBX_KDE=0
8026 LTDL_DESCRIP="libtool"
8027 LTDL_OPTION="ltdl"
8029 # Check whether --with-ltdl was given.
8030 if test "${with_ltdl+set}" = set; then
8031 withval=$with_ltdl;
8032 case ${withval} in
8033 n|no)
8034 USE_LTDL=no
8036 y|ye|yes)
8037 LTDL_MANDATORY="yes"
8040 LTDL_DIR="${withval}"
8041 LTDL_MANDATORY="yes"
8043 esac
8047 PBX_LTDL=0
8054 MISDN_DESCRIP="mISDN User Library"
8055 MISDN_OPTION="misdn"
8057 # Check whether --with-misdn was given.
8058 if test "${with_misdn+set}" = set; then
8059 withval=$with_misdn;
8060 case ${withval} in
8061 n|no)
8062 USE_MISDN=no
8064 y|ye|yes)
8065 MISDN_MANDATORY="yes"
8068 MISDN_DIR="${withval}"
8069 MISDN_MANDATORY="yes"
8071 esac
8075 PBX_MISDN=0
8082 NBS_DESCRIP="Network Broadcast Sound"
8083 NBS_OPTION="nbs"
8085 # Check whether --with-nbs was given.
8086 if test "${with_nbs+set}" = set; then
8087 withval=$with_nbs;
8088 case ${withval} in
8089 n|no)
8090 USE_NBS=no
8092 y|ye|yes)
8093 NBS_MANDATORY="yes"
8096 NBS_DIR="${withval}"
8097 NBS_MANDATORY="yes"
8099 esac
8103 PBX_NBS=0
8110 NCURSES_DESCRIP="ncurses"
8111 NCURSES_OPTION="ncurses"
8113 # Check whether --with-ncurses was given.
8114 if test "${with_ncurses+set}" = set; then
8115 withval=$with_ncurses;
8116 case ${withval} in
8117 n|no)
8118 USE_NCURSES=no
8120 y|ye|yes)
8121 NCURSES_MANDATORY="yes"
8124 NCURSES_DIR="${withval}"
8125 NCURSES_MANDATORY="yes"
8127 esac
8131 PBX_NCURSES=0
8138 NETSNMP_DESCRIP="Net-SNMP"
8139 NETSNMP_OPTION="netsnmp"
8141 # Check whether --with-netsnmp was given.
8142 if test "${with_netsnmp+set}" = set; then
8143 withval=$with_netsnmp;
8144 case ${withval} in
8145 n|no)
8146 USE_NETSNMP=no
8148 y|ye|yes)
8149 NETSNMP_MANDATORY="yes"
8152 NETSNMP_DIR="${withval}"
8153 NETSNMP_MANDATORY="yes"
8155 esac
8159 PBX_NETSNMP=0
8166 NEWT_DESCRIP="newt"
8167 NEWT_OPTION="newt"
8169 # Check whether --with-newt was given.
8170 if test "${with_newt+set}" = set; then
8171 withval=$with_newt;
8172 case ${withval} in
8173 n|no)
8174 USE_NEWT=no
8176 y|ye|yes)
8177 NEWT_MANDATORY="yes"
8180 NEWT_DIR="${withval}"
8181 NEWT_MANDATORY="yes"
8183 esac
8187 PBX_NEWT=0
8194 UNIXODBC_DESCRIP="unixODBC"
8195 UNIXODBC_OPTION="odbc"
8197 # Check whether --with-odbc was given.
8198 if test "${with_odbc+set}" = set; then
8199 withval=$with_odbc;
8200 case ${withval} in
8201 n|no)
8202 USE_UNIXODBC=no
8204 y|ye|yes)
8205 UNIXODBC_MANDATORY="yes"
8208 UNIXODBC_DIR="${withval}"
8209 UNIXODBC_MANDATORY="yes"
8211 esac
8215 PBX_UNIXODBC=0
8222 OGG_DESCRIP="OGG"
8223 OGG_OPTION="ogg"
8225 # Check whether --with-ogg was given.
8226 if test "${with_ogg+set}" = set; then
8227 withval=$with_ogg;
8228 case ${withval} in
8229 n|no)
8230 USE_OGG=no
8232 y|ye|yes)
8233 OGG_MANDATORY="yes"
8236 OGG_DIR="${withval}"
8237 OGG_MANDATORY="yes"
8239 esac
8243 PBX_OGG=0
8250 OSPTK_DESCRIP="OSP Toolkit"
8251 OSPTK_OPTION="osptk"
8253 # Check whether --with-osptk was given.
8254 if test "${with_osptk+set}" = set; then
8255 withval=$with_osptk;
8256 case ${withval} in
8257 n|no)
8258 USE_OSPTK=no
8260 y|ye|yes)
8261 OSPTK_MANDATORY="yes"
8264 OSPTK_DIR="${withval}"
8265 OSPTK_MANDATORY="yes"
8267 esac
8271 PBX_OSPTK=0
8278 OSS_DESCRIP="Open Sound System"
8279 OSS_OPTION="oss"
8281 # Check whether --with-oss was given.
8282 if test "${with_oss+set}" = set; then
8283 withval=$with_oss;
8284 case ${withval} in
8285 n|no)
8286 USE_OSS=no
8288 y|ye|yes)
8289 OSS_MANDATORY="yes"
8292 OSS_DIR="${withval}"
8293 OSS_MANDATORY="yes"
8295 esac
8299 PBX_OSS=0
8306 POPT_DESCRIP="popt"
8307 POPT_OPTION="popt"
8309 # Check whether --with-popt was given.
8310 if test "${with_popt+set}" = set; then
8311 withval=$with_popt;
8312 case ${withval} in
8313 n|no)
8314 USE_POPT=no
8316 y|ye|yes)
8317 POPT_MANDATORY="yes"
8320 POPT_DIR="${withval}"
8321 POPT_MANDATORY="yes"
8323 esac
8327 PBX_POPT=0
8334 PGSQL_DESCRIP="PostgreSQL"
8335 PGSQL_OPTION="postgres"
8337 # Check whether --with-postgres was given.
8338 if test "${with_postgres+set}" = set; then
8339 withval=$with_postgres;
8340 case ${withval} in
8341 n|no)
8342 USE_PGSQL=no
8344 y|ye|yes)
8345 PGSQL_MANDATORY="yes"
8348 PGSQL_DIR="${withval}"
8349 PGSQL_MANDATORY="yes"
8351 esac
8355 PBX_PGSQL=0
8362 PRI_DESCRIP="ISDN PRI"
8363 PRI_OPTION="pri"
8365 # Check whether --with-pri was given.
8366 if test "${with_pri+set}" = set; then
8367 withval=$with_pri;
8368 case ${withval} in
8369 n|no)
8370 USE_PRI=no
8372 y|ye|yes)
8373 PRI_MANDATORY="yes"
8376 PRI_DIR="${withval}"
8377 PRI_MANDATORY="yes"
8379 esac
8383 PBX_PRI=0
8390 PWLIB_DESCRIP="PWlib"
8391 PWLIB_OPTION="pwlib"
8393 # Check whether --with-pwlib was given.
8394 if test "${with_pwlib+set}" = set; then
8395 withval=$with_pwlib;
8396 case ${withval} in
8397 n|no)
8398 USE_PWLIB=no
8400 y|ye|yes)
8401 PWLIB_MANDATORY="yes"
8404 PWLIB_DIR="${withval}"
8405 PWLIB_MANDATORY="yes"
8407 esac
8411 PBX_PWLIB=0
8418 OPENH323_DESCRIP="OpenH323"
8419 OPENH323_OPTION="h323"
8421 # Check whether --with-h323 was given.
8422 if test "${with_h323+set}" = set; then
8423 withval=$with_h323;
8424 case ${withval} in
8425 n|no)
8426 USE_OPENH323=no
8428 y|ye|yes)
8429 OPENH323_MANDATORY="yes"
8432 OPENH323_DIR="${withval}"
8433 OPENH323_MANDATORY="yes"
8435 esac
8439 PBX_OPENH323=0
8446 RADIUS_DESCRIP="Radius Client"
8447 RADIUS_OPTION="radius"
8449 # Check whether --with-radius was given.
8450 if test "${with_radius+set}" = set; then
8451 withval=$with_radius;
8452 case ${withval} in
8453 n|no)
8454 USE_RADIUS=no
8456 y|ye|yes)
8457 RADIUS_MANDATORY="yes"
8460 RADIUS_DIR="${withval}"
8461 RADIUS_MANDATORY="yes"
8463 esac
8467 PBX_RADIUS=0
8474 SPEEX_DESCRIP="Speex"
8475 SPEEX_OPTION="speex"
8477 # Check whether --with-speex was given.
8478 if test "${with_speex+set}" = set; then
8479 withval=$with_speex;
8480 case ${withval} in
8481 n|no)
8482 USE_SPEEX=no
8484 y|ye|yes)
8485 SPEEX_MANDATORY="yes"
8488 SPEEX_DIR="${withval}"
8489 SPEEX_MANDATORY="yes"
8491 esac
8495 PBX_SPEEX=0
8502 SPEEXDSP_DESCRIP="Speexdsp"
8503 SPEEXDSP_OPTION="speexdsp"
8505 # Check whether --with-speexdsp was given.
8506 if test "${with_speexdsp+set}" = set; then
8507 withval=$with_speexdsp;
8508 case ${withval} in
8509 n|no)
8510 USE_SPEEXDSP=no
8512 y|ye|yes)
8513 SPEEXDSP_MANDATORY="yes"
8516 SPEEXDSP_DIR="${withval}"
8517 SPEEXDSP_MANDATORY="yes"
8519 esac
8523 PBX_SPEEXDSP=0
8530 SQLITE_DESCRIP="SQLite"
8531 SQLITE_OPTION="sqlite"
8533 # Check whether --with-sqlite was given.
8534 if test "${with_sqlite+set}" = set; then
8535 withval=$with_sqlite;
8536 case ${withval} in
8537 n|no)
8538 USE_SQLITE=no
8540 y|ye|yes)
8541 SQLITE_MANDATORY="yes"
8544 SQLITE_DIR="${withval}"
8545 SQLITE_MANDATORY="yes"
8547 esac
8551 PBX_SQLITE=0
8558 SUPPSERV_DESCRIP="mISDN Supplemental Services"
8559 SUPPSERV_OPTION="suppserv"
8561 # Check whether --with-suppserv was given.
8562 if test "${with_suppserv+set}" = set; then
8563 withval=$with_suppserv;
8564 case ${withval} in
8565 n|no)
8566 USE_SUPPSERV=no
8568 y|ye|yes)
8569 SUPPSERV_MANDATORY="yes"
8572 SUPPSERV_DIR="${withval}"
8573 SUPPSERV_MANDATORY="yes"
8575 esac
8579 PBX_SUPPSERV=0
8586 OPENSSL_DESCRIP="OpenSSL"
8587 OPENSSL_OPTION="ssl"
8589 # Check whether --with-ssl was given.
8590 if test "${with_ssl+set}" = set; then
8591 withval=$with_ssl;
8592 case ${withval} in
8593 n|no)
8594 USE_OPENSSL=no
8596 y|ye|yes)
8597 OPENSSL_MANDATORY="yes"
8600 OPENSSL_DIR="${withval}"
8601 OPENSSL_MANDATORY="yes"
8603 esac
8607 PBX_OPENSSL=0
8614 FREETDS_DESCRIP="FreeTDS"
8615 FREETDS_OPTION="tds"
8617 # Check whether --with-tds was given.
8618 if test "${with_tds+set}" = set; then
8619 withval=$with_tds;
8620 case ${withval} in
8621 n|no)
8622 USE_FREETDS=no
8624 y|ye|yes)
8625 FREETDS_MANDATORY="yes"
8628 FREETDS_DIR="${withval}"
8629 FREETDS_MANDATORY="yes"
8631 esac
8635 PBX_FREETDS=0
8642 TERMCAP_DESCRIP="Termcap"
8643 TERMCAP_OPTION="termcap"
8645 # Check whether --with-termcap was given.
8646 if test "${with_termcap+set}" = set; then
8647 withval=$with_termcap;
8648 case ${withval} in
8649 n|no)
8650 USE_TERMCAP=no
8652 y|ye|yes)
8653 TERMCAP_MANDATORY="yes"
8656 TERMCAP_DIR="${withval}"
8657 TERMCAP_MANDATORY="yes"
8659 esac
8663 PBX_TERMCAP=0
8670 TINFO_DESCRIP="Term Info"
8671 TINFO_OPTION="tinfo"
8673 # Check whether --with-tinfo was given.
8674 if test "${with_tinfo+set}" = set; then
8675 withval=$with_tinfo;
8676 case ${withval} in
8677 n|no)
8678 USE_TINFO=no
8680 y|ye|yes)
8681 TINFO_MANDATORY="yes"
8684 TINFO_DIR="${withval}"
8685 TINFO_MANDATORY="yes"
8687 esac
8691 PBX_TINFO=0
8698 TONEZONE_DESCRIP="tonezone"
8699 TONEZONE_OPTION="tonezone"
8701 # Check whether --with-tonezone was given.
8702 if test "${with_tonezone+set}" = set; then
8703 withval=$with_tonezone;
8704 case ${withval} in
8705 n|no)
8706 USE_TONEZONE=no
8708 y|ye|yes)
8709 TONEZONE_MANDATORY="yes"
8712 TONEZONE_DIR="${withval}"
8713 TONEZONE_MANDATORY="yes"
8715 esac
8719 PBX_TONEZONE=0
8726 USB_DESCRIP="usb"
8727 USB_OPTION="usb"
8729 # Check whether --with-usb was given.
8730 if test "${with_usb+set}" = set; then
8731 withval=$with_usb;
8732 case ${withval} in
8733 n|no)
8734 USE_USB=no
8736 y|ye|yes)
8737 USB_MANDATORY="yes"
8740 USB_DIR="${withval}"
8741 USB_MANDATORY="yes"
8743 esac
8747 PBX_USB=0
8754 VORBIS_DESCRIP="Vorbis"
8755 VORBIS_OPTION="vorbis"
8757 # Check whether --with-vorbis was given.
8758 if test "${with_vorbis+set}" = set; then
8759 withval=$with_vorbis;
8760 case ${withval} in
8761 n|no)
8762 USE_VORBIS=no
8764 y|ye|yes)
8765 VORBIS_MANDATORY="yes"
8768 VORBIS_DIR="${withval}"
8769 VORBIS_MANDATORY="yes"
8771 esac
8775 PBX_VORBIS=0
8782 VPB_DESCRIP="Voicetronix API"
8783 VPB_OPTION="vpb"
8785 # Check whether --with-vpb was given.
8786 if test "${with_vpb+set}" = set; then
8787 withval=$with_vpb;
8788 case ${withval} in
8789 n|no)
8790 USE_VPB=no
8792 y|ye|yes)
8793 VPB_MANDATORY="yes"
8796 VPB_DIR="${withval}"
8797 VPB_MANDATORY="yes"
8799 esac
8803 PBX_VPB=0
8810 ZLIB_DESCRIP="zlib"
8811 ZLIB_OPTION="z"
8813 # Check whether --with-z was given.
8814 if test "${with_z+set}" = set; then
8815 withval=$with_z;
8816 case ${withval} in
8817 n|no)
8818 USE_ZLIB=no
8820 y|ye|yes)
8821 ZLIB_MANDATORY="yes"
8824 ZLIB_DIR="${withval}"
8825 ZLIB_MANDATORY="yes"
8827 esac
8831 PBX_ZLIB=0
8838 ZAPTEL_DESCRIP="Zaptel"
8839 ZAPTEL_OPTION="zaptel"
8841 # Check whether --with-zaptel was given.
8842 if test "${with_zaptel+set}" = set; then
8843 withval=$with_zaptel;
8844 case ${withval} in
8845 n|no)
8846 USE_ZAPTEL=no
8848 y|ye|yes)
8849 ZAPTEL_MANDATORY="yes"
8852 ZAPTEL_DIR="${withval}"
8853 ZAPTEL_MANDATORY="yes"
8855 esac
8859 PBX_ZAPTEL=0
8866 # check for basic system features and functionality before
8867 # checking for package libraries
8869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8870 # for constant arguments. Useless!
8871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8873 if test "${ac_cv_working_alloca_h+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h. */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 #include <alloca.h>
8884 main ()
8886 char *p = (char *) alloca (2 * sizeof (int));
8887 if (p) return 0;
8889 return 0;
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (ac_try="$ac_link"
8894 case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897 esac
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_link") 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest$ac_exeext &&
8909 $as_test_x conftest$ac_exeext; then
8910 ac_cv_working_alloca_h=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_cv_working_alloca_h=no
8918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8919 conftest$ac_exeext conftest.$ac_ext
8921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8923 if test $ac_cv_working_alloca_h = yes; then
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_ALLOCA_H 1
8927 _ACEOF
8931 { echo "$as_me:$LINENO: checking for alloca" >&5
8932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_alloca_works+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 #ifdef __GNUC__
8943 # define alloca __builtin_alloca
8944 #else
8945 # ifdef _MSC_VER
8946 # include <malloc.h>
8947 # define alloca _alloca
8948 # else
8949 # ifdef HAVE_ALLOCA_H
8950 # include <alloca.h>
8951 # else
8952 # ifdef _AIX
8953 #pragma alloca
8954 # else
8955 # ifndef alloca /* predefined by HP cc +Olibcalls */
8956 char *alloca ();
8957 # endif
8958 # endif
8959 # endif
8960 # endif
8961 #endif
8964 main ()
8966 char *p = (char *) alloca (1);
8967 if (p) return 0;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8974 case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_link") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest$ac_exeext &&
8989 $as_test_x conftest$ac_exeext; then
8990 ac_cv_func_alloca_works=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_func_alloca_works=no
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 conftest$ac_exeext conftest.$ac_ext
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9004 if test $ac_cv_func_alloca_works = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ALLOCA 1
9008 _ACEOF
9010 else
9011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9012 # that cause trouble. Some versions do not even contain alloca or
9013 # contain a buggy version. If you still want to use their alloca,
9014 # use ar to extract alloca.o from them instead of compiling alloca.c.
9016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9018 cat >>confdefs.h <<\_ACEOF
9019 #define C_ALLOCA 1
9020 _ACEOF
9023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9025 if test "${ac_cv_os_cray+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 #if defined CRAY && ! defined CRAY2
9035 webecray
9036 #else
9037 wenotbecray
9038 #endif
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "webecray" >/dev/null 2>&1; then
9043 ac_cv_os_cray=yes
9044 else
9045 ac_cv_os_cray=no
9047 rm -f conftest*
9050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9052 if test $ac_cv_os_cray = yes; then
9053 for ac_func in _getb67 GETB67 getb67; do
9054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h. */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9075 #ifdef __STDC__
9076 # include <limits.h>
9077 #else
9078 # include <assert.h>
9079 #endif
9081 #undef $ac_func
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char $ac_func ();
9090 /* The GNU C library defines this for functions which it implements
9091 to always fail with ENOSYS. Some functions are actually named
9092 something starting with __ and the normal name is an alias. */
9093 #if defined __stub_$ac_func || defined __stub___$ac_func
9094 choke me
9095 #endif
9098 main ()
9100 return $ac_func ();
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 eval "$as_ac_var=yes"
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no"
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9134 ac_res=`eval echo '${'$as_ac_var'}'`
9135 { echo "$as_me:$LINENO: result: $ac_res" >&5
9136 echo "${ECHO_T}$ac_res" >&6; }
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define CRAY_STACKSEG_END $ac_func
9141 _ACEOF
9143 break
9146 done
9149 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9150 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9151 if test "${ac_cv_c_stack_direction+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 if test "$cross_compiling" = yes; then
9155 ac_cv_c_stack_direction=0
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9165 find_stack_direction ()
9167 static char *addr = 0;
9168 auto char dummy;
9169 if (addr == 0)
9171 addr = &dummy;
9172 return find_stack_direction ();
9174 else
9175 return (&dummy > addr) ? 1 : -1;
9179 main ()
9181 return find_stack_direction () < 0;
9183 _ACEOF
9184 rm -f conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9186 case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_stack_direction=1
9205 else
9206 echo "$as_me: program exited with status $ac_status" >&5
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 ( exit $ac_status )
9211 ac_cv_c_stack_direction=-1
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9221 cat >>confdefs.h <<_ACEOF
9222 #define STACK_DIRECTION $ac_cv_c_stack_direction
9223 _ACEOF
9233 ac_header_dirent=no
9234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9235 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9237 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9248 #include <$ac_hdr>
9251 main ()
9253 if ((DIR *) 0)
9254 return 0;
9256 return 0;
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9261 case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 eval "$as_ac_Header=yes"
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 eval "$as_ac_Header=no"
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 ac_res=`eval echo '${'$as_ac_Header'}'`
9287 { echo "$as_me:$LINENO: result: $ac_res" >&5
9288 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9292 _ACEOF
9294 ac_header_dirent=$ac_hdr; break
9297 done
9298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9299 if test $ac_header_dirent = dirent.h; then
9300 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9302 if test "${ac_cv_search_opendir+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 ac_func_search_save_LIBS=$LIBS
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any GCC internal prototype to avoid an error.
9314 Use char because int might match the return type of a GCC
9315 builtin and then its argument prototype would still apply. */
9316 #ifdef __cplusplus
9317 extern "C"
9318 #endif
9319 char opendir ();
9321 main ()
9323 return opendir ();
9325 return 0;
9327 _ACEOF
9328 for ac_lib in '' dir; do
9329 if test -z "$ac_lib"; then
9330 ac_res="none required"
9331 else
9332 ac_res=-l$ac_lib
9333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest$ac_exeext &&
9352 $as_test_x conftest$ac_exeext; then
9353 ac_cv_search_opendir=$ac_res
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9362 conftest$ac_exeext
9363 if test "${ac_cv_search_opendir+set}" = set; then
9364 break
9366 done
9367 if test "${ac_cv_search_opendir+set}" = set; then
9369 else
9370 ac_cv_search_opendir=no
9372 rm conftest.$ac_ext
9373 LIBS=$ac_func_search_save_LIBS
9375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9377 ac_res=$ac_cv_search_opendir
9378 if test "$ac_res" != no; then
9379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9383 else
9384 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9386 if test "${ac_cv_search_opendir+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char opendir ();
9405 main ()
9407 return opendir ();
9409 return 0;
9411 _ACEOF
9412 for ac_lib in '' x; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required"
9415 else
9416 ac_res=-l$ac_lib
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_search_opendir=$ac_res
9438 else
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9446 conftest$ac_exeext
9447 if test "${ac_cv_search_opendir+set}" = set; then
9448 break
9450 done
9451 if test "${ac_cv_search_opendir+set}" = set; then
9453 else
9454 ac_cv_search_opendir=no
9456 rm conftest.$ac_ext
9457 LIBS=$ac_func_search_save_LIBS
9459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9469 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9470 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9471 if test "${ac_cv_header_stdc+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <stdlib.h>
9481 #include <stdarg.h>
9482 #include <string.h>
9483 #include <float.h>
9486 main ()
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (ac_try="$ac_compile"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_cv_header_stdc=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_header_stdc=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 if test $ac_cv_header_stdc = yes; then
9521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <string.h>
9530 _ACEOF
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 $EGREP "memchr" >/dev/null 2>&1; then
9534 else
9535 ac_cv_header_stdc=no
9537 rm -f conftest*
9541 if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h. */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 #include <stdlib.h>
9551 _ACEOF
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 $EGREP "free" >/dev/null 2>&1; then
9555 else
9556 ac_cv_header_stdc=no
9558 rm -f conftest*
9562 if test $ac_cv_header_stdc = yes; then
9563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9564 if test "$cross_compiling" = yes; then
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <ctype.h>
9574 #include <stdlib.h>
9575 #if ((' ' & 0x0FF) == 0x020)
9576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9578 #else
9579 # define ISLOWER(c) \
9580 (('a' <= (c) && (c) <= 'i') \
9581 || ('j' <= (c) && (c) <= 'r') \
9582 || ('s' <= (c) && (c) <= 'z'))
9583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9584 #endif
9586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9588 main ()
9590 int i;
9591 for (i = 0; i < 256; i++)
9592 if (XOR (islower (i), ISLOWER (i))
9593 || toupper (i) != TOUPPER (i))
9594 return 2;
9595 return 0;
9597 _ACEOF
9598 rm -f conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9619 else
9620 echo "$as_me: program exited with status $ac_status" >&5
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ( exit $ac_status )
9625 ac_cv_header_stdc=no
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9635 if test $ac_cv_header_stdc = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define STDC_HEADERS 1
9639 _ACEOF
9643 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9644 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9645 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/wait.h>
9656 #ifndef WEXITSTATUS
9657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9658 #endif
9659 #ifndef WIFEXITED
9660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9661 #endif
9664 main ()
9666 int s;
9667 wait (&s);
9668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9690 ac_cv_header_sys_wait_h=yes
9691 else
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_cv_header_sys_wait_h=no
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9702 if test $ac_cv_header_sys_wait_h = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_SYS_WAIT_H 1
9706 _ACEOF
9733 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
9735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 ac_res=`eval echo '${'$as_ac_Header'}'`
9743 { echo "$as_me:$LINENO: result: $ac_res" >&5
9744 echo "${ECHO_T}$ac_res" >&6; }
9745 else
9746 # Is the header compilable?
9747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #include <$ac_header>
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.$ac_objext; then
9775 ac_header_compiler=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_compiler=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9785 echo "${ECHO_T}$ac_header_compiler" >&6; }
9787 # Is the header present?
9788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h. */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <$ac_header>
9797 _ACEOF
9798 if { (ac_try="$ac_cpp conftest.$ac_ext"
9799 case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } >/dev/null && {
9811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 }; then
9814 ac_header_preproc=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_preproc=no
9822 rm -f conftest.err conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9824 echo "${ECHO_T}$ac_header_preproc" >&6; }
9826 # So? What about this header?
9827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9828 yes:no: )
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9833 ac_header_preproc=yes
9835 no:yes:* )
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9848 ( cat <<\_ASBOX
9849 ## ------------------------------- ##
9850 ## Report this to www.asterisk.org ##
9851 ## ------------------------------- ##
9852 _ASBOX
9853 ) | sed "s/^/$as_me: WARNING: /" >&2
9855 esac
9856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 eval "$as_ac_Header=\$ac_header_preproc"
9863 ac_res=`eval echo '${'$as_ac_Header'}'`
9864 { echo "$as_me:$LINENO: result: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 _ACEOF
9875 done
9878 # Check whether --enable-largefile was given.
9879 if test "${enable_largefile+set}" = set; then
9880 enableval=$enable_largefile;
9883 if test "$enable_largefile" != no; then
9885 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9886 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
9887 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 ac_cv_sys_largefile_CC=no
9891 if test "$GCC" != yes; then
9892 ac_save_CC=$CC
9893 while :; do
9894 # IRIX 6.2 and later do not support large files by default,
9895 # so use the C compiler's -n32 option if that helps.
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905 since some C++ compilers masquerading as C compilers
9906 incorrectly reject 9223372036854775807. */
9907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909 && LARGE_OFF_T % 2147483647 == 1)
9910 ? 1 : -1];
9912 main ()
9916 return 0;
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9936 break
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f core conftest.err conftest.$ac_objext
9945 CC="$CC -n32"
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9963 ac_cv_sys_largefile_CC=' -n32'; break
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext
9972 break
9973 done
9974 CC=$ac_save_CC
9975 rm -f conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9979 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
9980 if test "$ac_cv_sys_largefile_CC" != no; then
9981 CC=$CC$ac_cv_sys_largefile_CC
9984 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9985 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
9986 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 while :; do
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10004 ? 1 : -1];
10006 main ()
10010 return 0;
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (ac_try="$ac_compile"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_compile") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
10029 } && test -s conftest.$ac_objext; then
10030 ac_cv_sys_file_offset_bits=no; break
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #define _FILE_OFFSET_BITS 64
10046 #include <sys/types.h>
10047 /* Check that off_t can represent 2**63 - 1 correctly.
10048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10049 since some C++ compilers masquerading as C compilers
10050 incorrectly reject 9223372036854775807. */
10051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10053 && LARGE_OFF_T % 2147483647 == 1)
10054 ? 1 : -1];
10056 main ()
10060 return 0;
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.$ac_objext; then
10080 ac_cv_sys_file_offset_bits=64; break
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
10090 break
10091 done
10093 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10094 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10095 case $ac_cv_sys_file_offset_bits in #(
10096 no | unknown) ;;
10098 cat >>confdefs.h <<_ACEOF
10099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10100 _ACEOF
10102 esac
10103 rm -f conftest*
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
10105 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10106 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10107 if test "${ac_cv_sys_large_files+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 while :; do
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sys/types.h>
10118 /* Check that off_t can represent 2**63 - 1 correctly.
10119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10120 since some C++ compilers masquerading as C compilers
10121 incorrectly reject 9223372036854775807. */
10122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10124 && LARGE_OFF_T % 2147483647 == 1)
10125 ? 1 : -1];
10127 main ()
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_compile") 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest.$ac_objext; then
10151 ac_cv_sys_large_files=no; break
10152 else
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #define _LARGE_FILES 1
10167 #include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10175 ? 1 : -1];
10177 main ()
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_compile") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest.$ac_objext; then
10201 ac_cv_sys_large_files=1; break
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 ac_cv_sys_large_files=unknown
10211 break
10212 done
10214 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10215 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10216 case $ac_cv_sys_large_files in #(
10217 no | unknown) ;;
10219 cat >>confdefs.h <<_ACEOF
10220 #define _LARGE_FILES $ac_cv_sys_large_files
10221 _ACEOF
10223 esac
10224 rm -f conftest*
10229 # Checks for typedefs, structures, and compiler characteristics.
10230 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10231 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10232 if test "${ac_cv_header_stdbool_h+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10242 #include <stdbool.h>
10243 #ifndef bool
10244 "error: bool is not defined"
10245 #endif
10246 #ifndef false
10247 "error: false is not defined"
10248 #endif
10249 #if false
10250 "error: false is not 0"
10251 #endif
10252 #ifndef true
10253 "error: true is not defined"
10254 #endif
10255 #if true != 1
10256 "error: true is not 1"
10257 #endif
10258 #ifndef __bool_true_false_are_defined
10259 "error: __bool_true_false_are_defined is not defined"
10260 #endif
10262 struct s { _Bool s: 1; _Bool t; } s;
10264 char a[true == 1 ? 1 : -1];
10265 char b[false == 0 ? 1 : -1];
10266 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10267 char d[(bool) 0.5 == true ? 1 : -1];
10268 bool e = &s;
10269 char f[(_Bool) 0.0 == false ? 1 : -1];
10270 char g[true];
10271 char h[sizeof (_Bool)];
10272 char i[sizeof s.t];
10273 enum { j = false, k = true, l = false * true, m = true * 256 };
10274 _Bool n[m];
10275 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10276 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10277 # if defined __xlc__ || defined __GNUC__
10278 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10279 reported by James Lemley on 2005-10-05; see
10280 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10281 This test is not quite right, since xlc is allowed to
10282 reject this program, as the initializer for xlcbug is
10283 not one of the forms that C requires support for.
10284 However, doing the test right would require a runtime
10285 test, and that would make cross-compilation harder.
10286 Let us hope that IBM fixes the xlc bug, and also adds
10287 support for this kind of constant expression. In the
10288 meantime, this test will reject xlc, which is OK, since
10289 our stdbool.h substitute should suffice. We also test
10290 this with GCC, where it should work, to detect more
10291 quickly whether someone messes up the test in the
10292 future. */
10293 char digs[] = "0123456789";
10294 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10295 # endif
10296 /* Catch a bug in an HP-UX C compiler. See
10297 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10298 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10300 _Bool q = true;
10301 _Bool *pq = &q;
10304 main ()
10307 *pq |= q;
10308 *pq |= ! q;
10309 /* Refer to every declared value, to avoid compiler optimizations. */
10310 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10311 + !m + !n + !o + !p + !q + !pq);
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_compile") 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest.$ac_objext; then
10334 ac_cv_header_stdbool_h=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_header_stdbool_h=no
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10346 { echo "$as_me:$LINENO: checking for _Bool" >&5
10347 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10348 if test "${ac_cv_type__Bool+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef _Bool ac__type_new_;
10360 main ()
10362 if ((ac__type_new_ *) 0)
10363 return 0;
10364 if (sizeof (ac__type_new_))
10365 return 0;
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type__Bool=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type__Bool=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10398 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10399 if test $ac_cv_type__Bool = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE__BOOL 1
10403 _ACEOF
10408 if test $ac_cv_header_stdbool_h = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define HAVE_STDBOOL_H 1
10412 _ACEOF
10416 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10417 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10418 if test "${ac_cv_c_const+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10429 main ()
10431 /* FIXME: Include the comments suggested by Paul. */
10432 #ifndef __cplusplus
10433 /* Ultrix mips cc rejects this. */
10434 typedef int charset[2];
10435 const charset cs;
10436 /* SunOS 4.1.1 cc rejects this. */
10437 char const *const *pcpcc;
10438 char **ppc;
10439 /* NEC SVR4.0.2 mips cc rejects this. */
10440 struct point {int x, y;};
10441 static struct point const zero = {0,0};
10442 /* AIX XL C 1.02.0.0 rejects this.
10443 It does not let you subtract one const X* pointer from another in
10444 an arm of an if-expression whose if-part is not a constant
10445 expression */
10446 const char *g = "string";
10447 pcpcc = &g + (g ? g-g : 0);
10448 /* HPUX 7.0 cc rejects these. */
10449 ++pcpcc;
10450 ppc = (char**) pcpcc;
10451 pcpcc = (char const *const *) ppc;
10452 { /* SCO 3.2v4 cc rejects this. */
10453 char *t;
10454 char const *s = 0 ? (char *) 0 : (char const *) 0;
10456 *t++ = 0;
10457 if (s) return 0;
10459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10460 int x[] = {25, 17};
10461 const int *foo = &x[0];
10462 ++foo;
10464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10465 typedef const int *iptr;
10466 iptr p = 0;
10467 ++p;
10469 { /* AIX XL C 1.02.0.0 rejects this saying
10470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10471 struct s { int j; const int *ap[3]; };
10472 struct s *b; b->j = 5;
10474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10475 const int foo = 10;
10476 if (!foo) return 0;
10478 return !cs[0] && !zero.x;
10479 #endif
10482 return 0;
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (ac_try="$ac_compile"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 ac_cv_c_const=yes
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_c_const=no
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10514 if test $ac_cv_c_const = no; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define const
10518 _ACEOF
10522 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10523 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10524 if test "${ac_cv_type_uid_t+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10535 _ACEOF
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "uid_t" >/dev/null 2>&1; then
10538 ac_cv_type_uid_t=yes
10539 else
10540 ac_cv_type_uid_t=no
10542 rm -f conftest*
10545 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10546 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10547 if test $ac_cv_type_uid_t = no; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define uid_t int
10551 _ACEOF
10554 cat >>confdefs.h <<\_ACEOF
10555 #define gid_t int
10556 _ACEOF
10560 { echo "$as_me:$LINENO: checking for inline" >&5
10561 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10562 if test "${ac_cv_c_inline+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 ac_cv_c_inline=no
10566 for ac_kw in inline __inline__ __inline; do
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h. */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #ifndef __cplusplus
10574 typedef int foo_t;
10575 static $ac_kw foo_t static_foo () {return 0; }
10576 $ac_kw foo_t foo () {return 0; }
10577 #endif
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_compile") 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && {
10594 test -z "$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 } && test -s conftest.$ac_objext; then
10597 ac_cv_c_inline=$ac_kw
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 test "$ac_cv_c_inline" != no && break
10607 done
10610 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10614 case $ac_cv_c_inline in
10615 inline | yes) ;;
10617 case $ac_cv_c_inline in
10618 no) ac_val=;;
10619 *) ac_val=$ac_cv_c_inline;;
10620 esac
10621 cat >>confdefs.h <<_ACEOF
10622 #ifndef __cplusplus
10623 #define inline $ac_val
10624 #endif
10625 _ACEOF
10627 esac
10629 { echo "$as_me:$LINENO: checking for mode_t" >&5
10630 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10631 if test "${ac_cv_type_mode_t+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 typedef mode_t ac__type_new_;
10643 main ()
10645 if ((ac__type_new_ *) 0)
10646 return 0;
10647 if (sizeof (ac__type_new_))
10648 return 0;
10650 return 0;
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
10670 ac_cv_type_mode_t=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10682 if test $ac_cv_type_mode_t = yes; then
10684 else
10686 cat >>confdefs.h <<_ACEOF
10687 #define mode_t int
10688 _ACEOF
10692 { echo "$as_me:$LINENO: checking for off_t" >&5
10693 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10694 if test "${ac_cv_type_off_t+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 typedef off_t ac__type_new_;
10706 main ()
10708 if ((ac__type_new_ *) 0)
10709 return 0;
10710 if (sizeof (ac__type_new_))
10711 return 0;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest.$ac_objext; then
10733 ac_cv_type_off_t=yes
10734 else
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_type_off_t=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10744 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10745 if test $ac_cv_type_off_t = yes; then
10747 else
10749 cat >>confdefs.h <<_ACEOF
10750 #define off_t long int
10751 _ACEOF
10755 { echo "$as_me:$LINENO: checking for pid_t" >&5
10756 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10757 if test "${ac_cv_type_pid_t+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_new_;
10769 main ()
10771 if ((ac__type_new_ *) 0)
10772 return 0;
10773 if (sizeof (ac__type_new_))
10774 return 0;
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_type_pid_t=yes
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_type_pid_t=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10808 if test $ac_cv_type_pid_t = yes; then
10810 else
10812 cat >>confdefs.h <<_ACEOF
10813 #define pid_t int
10814 _ACEOF
10818 { echo "$as_me:$LINENO: checking for size_t" >&5
10819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10820 if test "${ac_cv_type_size_t+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h. */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_includes_default
10830 typedef size_t ac__type_new_;
10832 main ()
10834 if ((ac__type_new_ *) 0)
10835 return 0;
10836 if (sizeof (ac__type_new_))
10837 return 0;
10839 return 0;
10841 _ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (ac_try="$ac_compile"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_cv_type_size_t=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_type_size_t=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10870 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10871 if test $ac_cv_type_size_t = yes; then
10873 else
10875 cat >>confdefs.h <<_ACEOF
10876 #define size_t unsigned int
10877 _ACEOF
10881 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10882 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
10883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10894 main ()
10896 static struct stat ac_aggr;
10897 if (ac_aggr.st_blksize)
10898 return 0;
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_blksize=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10933 main ()
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_blksize)
10937 return 0;
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10959 ac_cv_member_struct_stat_st_blksize=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_member_struct_stat_st_blksize=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10973 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
10974 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10978 _ACEOF
10983 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10985 if test "${ac_cv_header_time+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <sys/types.h>
10995 #include <sys/time.h>
10996 #include <time.h>
10999 main ()
11001 if ((struct tm *) 0)
11002 return 0;
11004 return 0;
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_cv_header_time=yes
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_header_time=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11035 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11036 if test $ac_cv_header_time = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define TIME_WITH_SYS_TIME 1
11040 _ACEOF
11044 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11045 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11046 if test "${ac_cv_struct_tm+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <sys/types.h>
11056 #include <time.h>
11059 main ()
11061 struct tm tm;
11062 int *p = &tm.tm_sec;
11063 return !p;
11065 return 0;
11067 _ACEOF
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 ac_cv_struct_tm=time.h
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_struct_tm=sys/time.h
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11096 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11097 if test $ac_cv_struct_tm = sys/time.h; then
11099 cat >>confdefs.h <<\_ACEOF
11100 #define TM_IN_SYS_TIME 1
11101 _ACEOF
11105 { echo "$as_me:$LINENO: checking for working volatile" >&5
11106 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11107 if test "${ac_cv_c_volatile+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11118 main ()
11121 volatile int x;
11122 int * volatile y = (int *) 0;
11123 return !x && !y;
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11145 ac_cv_c_volatile=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_c_volatile=no
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11156 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11157 if test $ac_cv_c_volatile = no; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define volatile
11161 _ACEOF
11165 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 typedef ptrdiff_t ac__type_new_;
11179 main ()
11181 if ((ac__type_new_ *) 0)
11182 return 0;
11183 if (sizeof (ac__type_new_))
11184 return 0;
11186 return 0;
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11206 ac_cv_type_ptrdiff_t=yes
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_ptrdiff_t=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11218 if test $ac_cv_type_ptrdiff_t = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_PTRDIFF_T 1
11222 _ACEOF
11228 # Checks for library functions.
11230 for ac_header in unistd.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_header_compiler=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_header_compiler=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11282 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284 # Is the header present?
11285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <$ac_header>
11294 _ACEOF
11295 if { (ac_try="$ac_cpp conftest.$ac_ext"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } >/dev/null && {
11308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 }; then
11311 ac_header_preproc=yes
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11319 rm -f conftest.err conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11325 yes:no: )
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11330 ac_header_preproc=yes
11332 no:yes:* )
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345 ( cat <<\_ASBOX
11346 ## ------------------------------- ##
11347 ## Report this to www.asterisk.org ##
11348 ## ------------------------------- ##
11349 _ASBOX
11350 ) | sed "s/^/$as_me: WARNING: /" >&2
11352 esac
11353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 eval "$as_ac_Header=\$ac_header_preproc"
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368 _ACEOF
11372 done
11374 { echo "$as_me:$LINENO: checking for working chown" >&5
11375 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
11376 if test "${ac_cv_func_chown_works+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 if test "$cross_compiling" = yes; then
11380 ac_cv_func_chown_works=no
11381 else
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <fcntl.h>
11392 main ()
11394 char *f = "conftest.chown";
11395 struct stat before, after;
11397 if (creat (f, 0600) < 0)
11398 return 1;
11399 if (stat (f, &before) < 0)
11400 return 1;
11401 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11402 return 1;
11403 if (stat (f, &after) < 0)
11404 return 1;
11405 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11408 return 0;
11410 _ACEOF
11411 rm -f conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11422 { (case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_try") 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_func_chown_works=yes
11432 else
11433 echo "$as_me: program exited with status $ac_status" >&5
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ( exit $ac_status )
11438 ac_cv_func_chown_works=no
11440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11444 rm -f conftest.chown
11447 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11448 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
11449 if test $ac_cv_func_chown_works = yes; then
11451 cat >>confdefs.h <<\_ACEOF
11452 #define HAVE_CHOWN 1
11453 _ACEOF
11457 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
11458 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
11459 if test "${ac_cv_func_closedir_void+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 if test "$cross_compiling" = yes; then
11463 ac_cv_func_closedir_void=yes
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header_dirent>
11473 #ifndef __cplusplus
11474 int closedir ();
11475 #endif
11478 main ()
11480 return closedir (opendir (".")) != 0;
11482 return 0;
11484 _ACEOF
11485 rm -f conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_func_closedir_void=no
11506 else
11507 echo "$as_me: program exited with status $ac_status" >&5
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ( exit $ac_status )
11512 ac_cv_func_closedir_void=yes
11514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
11520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
11521 if test $ac_cv_func_closedir_void = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define CLOSEDIR_VOID 1
11525 _ACEOF
11529 { echo "$as_me:$LINENO: checking for error_at_line" >&5
11530 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
11531 if test "${ac_cv_lib_error_at_line+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 #include <error.h>
11542 main ()
11544 error_at_line (0, 0, "", 0, "an error occurred");
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_error_at_line=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_error_at_line=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
11580 if test $ac_cv_lib_error_at_line = no; then
11581 case " $LIBOBJS " in
11582 *" error.$ac_objext "* ) ;;
11583 *) LIBOBJS="$LIBOBJS error.$ac_objext"
11585 esac
11590 for ac_header in vfork.h
11592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602 else
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 }; then
11671 ac_header_preproc=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705 ( cat <<\_ASBOX
11706 ## ------------------------------- ##
11707 ## Report this to www.asterisk.org ##
11708 ## ------------------------------- ##
11709 _ASBOX
11710 ) | sed "s/^/$as_me: WARNING: /" >&2
11712 esac
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 eval "$as_ac_Header=\$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 _ACEOF
11732 done
11736 for ac_func in fork vfork
11738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11759 #ifdef __STDC__
11760 # include <limits.h>
11761 #else
11762 # include <assert.h>
11763 #endif
11765 #undef $ac_func
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char $ac_func ();
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11778 choke me
11779 #endif
11782 main ()
11784 return $ac_func ();
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 _ACEOF
11827 done
11829 if test "x$ac_cv_func_fork" = xyes; then
11830 { echo "$as_me:$LINENO: checking for working fork" >&5
11831 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
11832 if test "${ac_cv_func_fork_works+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 if test "$cross_compiling" = yes; then
11836 ac_cv_func_fork_works=cross
11837 else
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h. */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11846 main ()
11849 /* By Ruediger Kuhlmann. */
11850 return fork () < 0;
11853 return 0;
11855 _ACEOF
11856 rm -f conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_func_fork_works=yes
11877 else
11878 echo "$as_me: program exited with status $ac_status" >&5
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ( exit $ac_status )
11883 ac_cv_func_fork_works=no
11885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
11893 else
11894 ac_cv_func_fork_works=$ac_cv_func_fork
11896 if test "x$ac_cv_func_fork_works" = xcross; then
11897 case $host in
11898 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
11899 # Override, as these systems have only a dummy fork() stub
11900 ac_cv_func_fork_works=no
11903 ac_cv_func_fork_works=yes
11905 esac
11906 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11907 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11909 ac_cv_func_vfork_works=$ac_cv_func_vfork
11910 if test "x$ac_cv_func_vfork" = xyes; then
11911 { echo "$as_me:$LINENO: checking for working vfork" >&5
11912 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
11913 if test "${ac_cv_func_vfork_works+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 if test "$cross_compiling" = yes; then
11917 ac_cv_func_vfork_works=cross
11918 else
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 /* Thanks to Paul Eggert for this test. */
11926 $ac_includes_default
11927 #include <sys/wait.h>
11928 #ifdef HAVE_VFORK_H
11929 # include <vfork.h>
11930 #endif
11931 /* On some sparc systems, changes by the child to local and incoming
11932 argument registers are propagated back to the parent. The compiler
11933 is told about this with #include <vfork.h>, but some compilers
11934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11935 static variable whose address is put into a register that is
11936 clobbered by the vfork. */
11937 static void
11938 #ifdef __cplusplus
11939 sparc_address_test (int arg)
11940 # else
11941 sparc_address_test (arg) int arg;
11942 #endif
11944 static pid_t child;
11945 if (!child) {
11946 child = vfork ();
11947 if (child < 0) {
11948 perror ("vfork");
11949 _exit(2);
11951 if (!child) {
11952 arg = getpid();
11953 write(-1, "", 0);
11954 _exit (arg);
11960 main ()
11962 pid_t parent = getpid ();
11963 pid_t child;
11965 sparc_address_test (0);
11967 child = vfork ();
11969 if (child == 0) {
11970 /* Here is another test for sparc vfork register problems. This
11971 test uses lots of local variables, at least as many local
11972 variables as main has allocated so far including compiler
11973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11975 reuse the register of parent for one of the local variables,
11976 since it will think that parent can't possibly be used any more
11977 in this routine. Assigning to the local variable will thus
11978 munge parent in the parent process. */
11979 pid_t
11980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11982 /* Convince the compiler that p..p7 are live; otherwise, it might
11983 use the same hardware register for all 8 local variables. */
11984 if (p != p1 || p != p2 || p != p3 || p != p4
11985 || p != p5 || p != p6 || p != p7)
11986 _exit(1);
11988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11989 from child file descriptors. If the child closes a descriptor
11990 before it execs or exits, this munges the parent's descriptor
11991 as well. Test for this by closing stdout in the child. */
11992 _exit(close(fileno(stdout)) != 0);
11993 } else {
11994 int status;
11995 struct stat st;
11997 while (wait(&status) != child)
11999 return (
12000 /* Was there some problem with vforking? */
12001 child < 0
12003 /* Did the child fail? (This shouldn't happen.) */
12004 || status
12006 /* Did the vfork/compiler bug occur? */
12007 || parent != getpid()
12009 /* Did the file descriptor bug occur? */
12010 || fstat(fileno(stdout), &st) != 0
12014 _ACEOF
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_vfork_works=yes
12036 else
12037 echo "$as_me: program exited with status $ac_status" >&5
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ( exit $ac_status )
12042 ac_cv_func_vfork_works=no
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12053 if test "x$ac_cv_func_fork_works" = xcross; then
12054 ac_cv_func_vfork_works=$ac_cv_func_vfork
12055 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12056 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12059 if test "x$ac_cv_func_vfork_works" = xyes; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_WORKING_VFORK 1
12063 _ACEOF
12065 else
12067 cat >>confdefs.h <<\_ACEOF
12068 #define vfork fork
12069 _ACEOF
12072 if test "x$ac_cv_func_fork_works" = xyes; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_WORKING_FORK 1
12076 _ACEOF
12080 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12081 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12082 if test "${ac_cv_sys_largefile_source+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 while :; do
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <sys/types.h> /* for off_t */
12093 #include <stdio.h>
12095 main ()
12097 int (*fp) (FILE *, off_t, int) = fseeko;
12098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12100 return 0;
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest$ac_exeext &&
12120 $as_test_x conftest$ac_exeext; then
12121 ac_cv_sys_largefile_source=no; break
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130 conftest$ac_exeext conftest.$ac_ext
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #define _LARGEFILE_SOURCE 1
12138 #include <sys/types.h> /* for off_t */
12139 #include <stdio.h>
12141 main ()
12143 int (*fp) (FILE *, off_t, int) = fseeko;
12144 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest$ac_exeext &&
12166 $as_test_x conftest$ac_exeext; then
12167 ac_cv_sys_largefile_source=1; break
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 ac_cv_sys_largefile_source=unknown
12178 break
12179 done
12181 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12182 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12183 case $ac_cv_sys_largefile_source in #(
12184 no | unknown) ;;
12186 cat >>confdefs.h <<_ACEOF
12187 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12188 _ACEOF
12190 esac
12191 rm -f conftest*
12193 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12194 # in glibc 2.1.3, but that breaks too many other things.
12195 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12196 if test $ac_cv_sys_largefile_source != unknown; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_FSEEKO 1
12200 _ACEOF
12204 if test $ac_cv_c_compiler_gnu = yes; then
12205 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12206 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12207 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 ac_pattern="Autoconf.*'x'"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 #include <sgtty.h>
12218 Autoconf TIOCGETP
12219 _ACEOF
12220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12221 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12222 ac_cv_prog_gcc_traditional=yes
12223 else
12224 ac_cv_prog_gcc_traditional=no
12226 rm -f conftest*
12229 if test $ac_cv_prog_gcc_traditional = no; then
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <termio.h>
12237 Autoconf TCGETA
12238 _ACEOF
12239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12240 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12241 ac_cv_prog_gcc_traditional=yes
12243 rm -f conftest*
12247 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12248 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12249 if test $ac_cv_prog_gcc_traditional = yes; then
12250 CC="$CC -traditional"
12254 # XXX: these are commented out until we determine whether it matters if our malloc()
12255 # acts exactly like glibc's or not
12256 # AC_FUNC_MALLOC
12257 # AC_FUNC_REALLOC
12258 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12259 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12260 if test "${ac_cv_func_memcmp_working+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 if test "$cross_compiling" = yes; then
12264 ac_cv_func_memcmp_working=no
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12274 main ()
12277 /* Some versions of memcmp are not 8-bit clean. */
12278 char c0 = '\100', c1 = '\200', c2 = '\201';
12279 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12280 return 1;
12282 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12283 or more and with at least one buffer not starting on a 4-byte boundary.
12284 William Lewis provided this test program. */
12286 char foo[21];
12287 char bar[21];
12288 int i;
12289 for (i = 0; i < 4; i++)
12291 char *a = foo + i;
12292 char *b = bar + i;
12293 strcpy (a, "--------01111111");
12294 strcpy (b, "--------10000000");
12295 if (memcmp (a, b, 16) >= 0)
12296 return 1;
12298 return 0;
12302 return 0;
12304 _ACEOF
12305 rm -f conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_memcmp_working=yes
12326 else
12327 echo "$as_me: program exited with status $ac_status" >&5
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 ac_cv_func_memcmp_working=no
12334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12340 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12341 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12342 *" memcmp.$ac_objext "* ) ;;
12343 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12345 esac
12350 for ac_header in stdlib.h unistd.h
12352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 ac_res=`eval echo '${'$as_ac_Header'}'`
12360 { echo "$as_me:$LINENO: result: $ac_res" >&5
12361 echo "${ECHO_T}$ac_res" >&6; }
12362 else
12363 # Is the header compilable?
12364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12373 #include <$ac_header>
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_header_compiler=yes
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_header_compiler=no
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 echo "${ECHO_T}$ac_header_compiler" >&6; }
12404 # Is the header present?
12405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <$ac_header>
12414 _ACEOF
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 }; then
12431 ac_header_preproc=yes
12432 else
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_header_preproc=no
12439 rm -f conftest.err conftest.$ac_ext
12440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12441 echo "${ECHO_T}$ac_header_preproc" >&6; }
12443 # So? What about this header?
12444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12445 yes:no: )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12450 ac_header_preproc=yes
12452 no:yes:* )
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12465 ( cat <<\_ASBOX
12466 ## ------------------------------- ##
12467 ## Report this to www.asterisk.org ##
12468 ## ------------------------------- ##
12469 _ASBOX
12470 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 esac
12473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 eval "$as_ac_Header=\$ac_header_preproc"
12480 ac_res=`eval echo '${'$as_ac_Header'}'`
12481 { echo "$as_me:$LINENO: result: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 _ACEOF
12492 done
12495 for ac_func in getpagesize
12497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511 #define $ac_func innocuous_$ac_func
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12518 #ifdef __STDC__
12519 # include <limits.h>
12520 #else
12521 # include <assert.h>
12522 #endif
12524 #undef $ac_func
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char $ac_func ();
12533 /* The GNU C library defines this for functions which it implements
12534 to always fail with ENOSYS. Some functions are actually named
12535 something starting with __ and the normal name is an alias. */
12536 #if defined __stub_$ac_func || defined __stub___$ac_func
12537 choke me
12538 #endif
12541 main ()
12543 return $ac_func ();
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 eval "$as_ac_var=yes"
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 eval "$as_ac_var=no"
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12577 ac_res=`eval echo '${'$as_ac_var'}'`
12578 { echo "$as_me:$LINENO: result: $ac_res" >&5
12579 echo "${ECHO_T}$ac_res" >&6; }
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 _ACEOF
12586 done
12588 { echo "$as_me:$LINENO: checking for working mmap" >&5
12589 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 if test "$cross_compiling" = yes; then
12594 ac_cv_func_mmap_fixed_mapped=no
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 /* malloc might have been renamed as rpl_malloc. */
12604 #undef malloc
12606 /* Thanks to Mike Haertel and Jim Avera for this test.
12607 Here is a matrix of mmap possibilities:
12608 mmap private not fixed
12609 mmap private fixed at somewhere currently unmapped
12610 mmap private fixed at somewhere already mapped
12611 mmap shared not fixed
12612 mmap shared fixed at somewhere currently unmapped
12613 mmap shared fixed at somewhere already mapped
12614 For private mappings, we should verify that changes cannot be read()
12615 back from the file, nor mmap's back from the file at a different
12616 address. (There have been systems where private was not correctly
12617 implemented like the infamous i386 svr4.0, and systems where the
12618 VM page cache was not coherent with the file system buffer cache
12619 like early versions of FreeBSD and possibly contemporary NetBSD.)
12620 For shared mappings, we should conversely verify that changes get
12621 propagated back to all the places they're supposed to be.
12623 Grep wants private fixed already mapped.
12624 The main things grep needs to know about mmap are:
12625 * does it exist and is it safe to write into the mmap'd area
12626 * how to use it (BSD variants) */
12628 #include <fcntl.h>
12629 #include <sys/mman.h>
12631 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12632 char *malloc ();
12633 #endif
12635 /* This mess was copied from the GNU getpagesize.h. */
12636 #ifndef HAVE_GETPAGESIZE
12637 /* Assume that all systems that can run configure have sys/param.h. */
12638 # ifndef HAVE_SYS_PARAM_H
12639 # define HAVE_SYS_PARAM_H 1
12640 # endif
12642 # ifdef _SC_PAGESIZE
12643 # define getpagesize() sysconf(_SC_PAGESIZE)
12644 # else /* no _SC_PAGESIZE */
12645 # ifdef HAVE_SYS_PARAM_H
12646 # include <sys/param.h>
12647 # ifdef EXEC_PAGESIZE
12648 # define getpagesize() EXEC_PAGESIZE
12649 # else /* no EXEC_PAGESIZE */
12650 # ifdef NBPG
12651 # define getpagesize() NBPG * CLSIZE
12652 # ifndef CLSIZE
12653 # define CLSIZE 1
12654 # endif /* no CLSIZE */
12655 # else /* no NBPG */
12656 # ifdef NBPC
12657 # define getpagesize() NBPC
12658 # else /* no NBPC */
12659 # ifdef PAGESIZE
12660 # define getpagesize() PAGESIZE
12661 # endif /* PAGESIZE */
12662 # endif /* no NBPC */
12663 # endif /* no NBPG */
12664 # endif /* no EXEC_PAGESIZE */
12665 # else /* no HAVE_SYS_PARAM_H */
12666 # define getpagesize() 8192 /* punt totally */
12667 # endif /* no HAVE_SYS_PARAM_H */
12668 # endif /* no _SC_PAGESIZE */
12670 #endif /* no HAVE_GETPAGESIZE */
12673 main ()
12675 char *data, *data2, *data3;
12676 int i, pagesize;
12677 int fd;
12679 pagesize = getpagesize ();
12681 /* First, make a file with some known garbage in it. */
12682 data = (char *) malloc (pagesize);
12683 if (!data)
12684 return 1;
12685 for (i = 0; i < pagesize; ++i)
12686 *(data + i) = rand ();
12687 umask (0);
12688 fd = creat ("conftest.mmap", 0600);
12689 if (fd < 0)
12690 return 1;
12691 if (write (fd, data, pagesize) != pagesize)
12692 return 1;
12693 close (fd);
12695 /* Next, try to mmap the file at a fixed address which already has
12696 something else allocated at it. If we can, also make sure that
12697 we see the same garbage. */
12698 fd = open ("conftest.mmap", O_RDWR);
12699 if (fd < 0)
12700 return 1;
12701 data2 = (char *) malloc (2 * pagesize);
12702 if (!data2)
12703 return 1;
12704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12707 return 1;
12708 for (i = 0; i < pagesize; ++i)
12709 if (*(data + i) != *(data2 + i))
12710 return 1;
12712 /* Finally, make sure that changes to the mapped area do not
12713 percolate back to the file as seen by read(). (This is a bug on
12714 some variants of i386 svr4.0.) */
12715 for (i = 0; i < pagesize; ++i)
12716 *(data2 + i) = *(data2 + i) + 1;
12717 data3 = (char *) malloc (pagesize);
12718 if (!data3)
12719 return 1;
12720 if (read (fd, data3, pagesize) != pagesize)
12721 return 1;
12722 for (i = 0; i < pagesize; ++i)
12723 if (*(data + i) != *(data3 + i))
12724 return 1;
12725 close (fd);
12726 return 0;
12728 _ACEOF
12729 rm -f conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_link") 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_func_mmap_fixed_mapped=yes
12750 else
12751 echo "$as_me: program exited with status $ac_status" >&5
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ( exit $ac_status )
12756 ac_cv_func_mmap_fixed_mapped=no
12758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_MMAP 1
12769 _ACEOF
12772 rm -f conftest.mmap
12776 for ac_header in sys/select.h sys/socket.h
12778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 ac_res=`eval echo '${'$as_ac_Header'}'`
12786 { echo "$as_me:$LINENO: result: $ac_res" >&5
12787 echo "${ECHO_T}$ac_res" >&6; }
12788 else
12789 # Is the header compilable?
12790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #include <$ac_header>
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_header_compiler=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12828 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830 # Is the header present?
12831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <$ac_header>
12840 _ACEOF
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null && {
12854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 }; then
12857 ac_header_preproc=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6; }
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12871 yes:no: )
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12876 ac_header_preproc=yes
12878 no:yes:* )
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12891 ( cat <<\_ASBOX
12892 ## ------------------------------- ##
12893 ## Report this to www.asterisk.org ##
12894 ## ------------------------------- ##
12895 _ASBOX
12896 ) | sed "s/^/$as_me: WARNING: /" >&2
12898 esac
12899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 eval "$as_ac_Header=\$ac_header_preproc"
12906 ac_res=`eval echo '${'$as_ac_Header'}'`
12907 { echo "$as_me:$LINENO: result: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12914 _ACEOF
12918 done
12920 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12921 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12922 if test "${ac_cv_func_select_args+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12926 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12927 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 #ifdef HAVE_SYS_SELECT_H
12936 # include <sys/select.h>
12937 #endif
12938 #ifdef HAVE_SYS_SOCKET_H
12939 # include <sys/socket.h>
12940 #endif
12943 main ()
12945 extern int select ($ac_arg1,
12946 $ac_arg234, $ac_arg234, $ac_arg234,
12947 $ac_arg5);
12949 return 0;
12951 _ACEOF
12952 rm -f conftest.$ac_objext
12953 if { (ac_try="$ac_compile"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979 done
12980 done
12981 # Provide a safe default value.
12982 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12985 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12986 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12987 ac_save_IFS=$IFS; IFS=','
12988 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12989 IFS=$ac_save_IFS
12990 shift
12992 cat >>confdefs.h <<_ACEOF
12993 #define SELECT_TYPE_ARG1 $1
12994 _ACEOF
12997 cat >>confdefs.h <<_ACEOF
12998 #define SELECT_TYPE_ARG234 ($2)
12999 _ACEOF
13002 cat >>confdefs.h <<_ACEOF
13003 #define SELECT_TYPE_ARG5 ($3)
13004 _ACEOF
13006 rm -f conftest*
13008 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13009 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13010 if test "$ac_cv_prog_cc_c89" != no; then
13011 { echo "$as_me:$LINENO: result: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13014 cat >>confdefs.h <<\_ACEOF
13015 #define PROTOTYPES 1
13016 _ACEOF
13019 cat >>confdefs.h <<\_ACEOF
13020 #define __PROTOTYPES 1
13021 _ACEOF
13023 else
13024 { echo "$as_me:$LINENO: result: no" >&5
13025 echo "${ECHO_T}no" >&6; }
13028 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13029 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13030 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 ac_cv_func_setvbuf_reversed=no
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include <stdio.h>
13041 # ifdef PROTOTYPES
13042 int (setvbuf) (FILE *, int, char *, size_t);
13043 # endif
13045 main ()
13047 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext &&
13069 $as_test_x conftest$ac_exeext; then
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 #include <stdio.h>
13077 # ifdef PROTOTYPES
13078 int (setvbuf) (FILE *, int, char *, size_t);
13079 # endif
13081 main ()
13083 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13085 return 0;
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest$ac_exeext &&
13105 $as_test_x conftest$ac_exeext; then
13106 # It compiles and links either way, so it must not be declared
13107 # with a prototype and most likely this is a K&R C compiler.
13108 # Try running it.
13109 if test "$cross_compiling" = yes; then
13110 : # Assume setvbuf is not reversed when cross-compiling.
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13120 main ()
13122 /* This call has the arguments reversed.
13123 A reversed system may check and see that the address of buf
13124 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13125 char buf;
13126 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13127 return 1;
13128 putchar ('\r');
13129 return 0; /* Non-reversed systems SEGV here. */
13131 return 0;
13133 _ACEOF
13134 rm -f conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_func_setvbuf_reversed=yes
13155 else
13156 echo "$as_me: program exited with status $ac_status" >&5
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13165 ac_cv_func_setvbuf_reversed=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13186 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13187 if test $ac_cv_func_setvbuf_reversed = yes; then
13189 cat >>confdefs.h <<\_ACEOF
13190 #define SETVBUF_REVERSED 1
13191 _ACEOF
13195 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13196 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13197 if test "${ac_cv_type_signal+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h. */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <signal.h>
13210 main ()
13212 return *(signal (0, 0)) (0) == 1;
13214 return 0;
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13234 ac_cv_type_signal=int
13235 else
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_cv_type_signal=void
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13245 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define RETSIGTYPE $ac_cv_type_signal
13249 _ACEOF
13252 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 rm -f conftest.sym conftest.file
13258 echo >conftest.file
13259 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13260 if test "$cross_compiling" = yes; then
13261 ac_cv_func_lstat_dereferences_slashed_symlink=no
13262 else
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13271 main ()
13273 struct stat sbuf;
13274 /* Linux will dereference the symlink and fail.
13275 That is better in the sense that it means we will not
13276 have to compile and use the lstat wrapper. */
13277 return lstat ("conftest.sym/", &sbuf) == 0;
13279 return 0;
13281 _ACEOF
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13303 else
13304 echo "$as_me: program exited with status $ac_status" >&5
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ( exit $ac_status )
13309 ac_cv_func_lstat_dereferences_slashed_symlink=no
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 else
13316 # If the `ln -s' command failed, then we probably don't even
13317 # have an lstat function.
13318 ac_cv_func_lstat_dereferences_slashed_symlink=no
13320 rm -f conftest.sym conftest.file
13323 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13324 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13326 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13328 cat >>confdefs.h <<_ACEOF
13329 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13330 _ACEOF
13333 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13334 case " $LIBOBJS " in
13335 *" lstat.$ac_objext "* ) ;;
13336 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13338 esac
13342 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13343 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13344 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 if test "$cross_compiling" = yes; then
13348 ac_cv_func_stat_empty_string_bug=yes
13349 else
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13358 main ()
13360 struct stat sbuf;
13361 return stat ("", &sbuf) == 0;
13363 return 0;
13365 _ACEOF
13366 rm -f conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_stat_empty_string_bug=no
13387 else
13388 echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 ac_cv_func_stat_empty_string_bug=yes
13395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13401 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13402 if test $ac_cv_func_stat_empty_string_bug = yes; then
13403 case " $LIBOBJS " in
13404 *" stat.$ac_objext "* ) ;;
13405 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13407 esac
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STAT_EMPTY_STRING_BUG 1
13412 _ACEOF
13416 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13417 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strcoll_works+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strcoll_works=no
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13432 main ()
13434 return (strcoll ("abc", "def") >= 0 ||
13435 strcoll ("ABC", "DEF") >= 0 ||
13436 strcoll ("123", "456") >= 0)
13438 return 0;
13440 _ACEOF
13441 rm -f conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_func_strcoll_works=yes
13462 else
13463 echo "$as_me: program exited with status $ac_status" >&5
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ( exit $ac_status )
13468 ac_cv_func_strcoll_works=no
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13476 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13477 if test $ac_cv_func_strcoll_works = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_STRCOLL 1
13481 _ACEOF
13486 for ac_func in strftime
13488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13502 #define $ac_func innocuous_$ac_func
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func (); below.
13506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507 <limits.h> exists even on freestanding compilers. */
13509 #ifdef __STDC__
13510 # include <limits.h>
13511 #else
13512 # include <assert.h>
13513 #endif
13515 #undef $ac_func
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char $ac_func ();
13524 /* The GNU C library defines this for functions which it implements
13525 to always fail with ENOSYS. Some functions are actually named
13526 something starting with __ and the normal name is an alias. */
13527 #if defined __stub_$ac_func || defined __stub___$ac_func
13528 choke me
13529 #endif
13532 main ()
13534 return $ac_func ();
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest$ac_exeext &&
13556 $as_test_x conftest$ac_exeext; then
13557 eval "$as_ac_var=yes"
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 eval "$as_ac_var=no"
13565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13566 conftest$ac_exeext conftest.$ac_ext
13568 ac_res=`eval echo '${'$as_ac_var'}'`
13569 { echo "$as_me:$LINENO: result: $ac_res" >&5
13570 echo "${ECHO_T}$ac_res" >&6; }
13571 if test `eval echo '${'$as_ac_var'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13574 _ACEOF
13576 else
13577 # strftime is in -lintl on SCO UNIX.
13578 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13579 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13580 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-lintl $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char strftime ();
13600 main ()
13602 return strftime ();
13604 return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_intl_strftime=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_lib_intl_strftime=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13638 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13639 if test $ac_cv_lib_intl_strftime = yes; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_STRFTIME 1
13642 _ACEOF
13644 LIBS="-lintl $LIBS"
13648 done
13650 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13651 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13652 if test "${ac_cv_func_strnlen_working+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 if test "$cross_compiling" = yes; then
13656 ac_cv_func_strnlen_working=no
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13666 main ()
13669 #define S "foobar"
13670 #define S_LEN (sizeof S - 1)
13672 /* At least one implementation is buggy: that of AIX 4.3 would
13673 give strnlen (S, 1) == 3. */
13675 int i;
13676 for (i = 0; i < S_LEN + 1; ++i)
13678 int expected = i <= S_LEN ? i : S_LEN;
13679 if (strnlen (S, i) != expected)
13680 return 1;
13682 return 0;
13685 return 0;
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_func_strnlen_working=yes
13709 else
13710 echo "$as_me: program exited with status $ac_status" >&5
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ( exit $ac_status )
13715 ac_cv_func_strnlen_working=no
13717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13722 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13723 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13724 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13725 *" strnlen.$ac_objext "* ) ;;
13726 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13728 esac
13731 { echo "$as_me:$LINENO: checking for working strtod" >&5
13732 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13733 if test "${ac_cv_func_strtod+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 if test "$cross_compiling" = yes; then
13737 ac_cv_func_strtod=no
13738 else
13739 cat >conftest.$ac_ext <<_ACEOF
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13746 $ac_includes_default
13747 #ifndef strtod
13748 double strtod ();
13749 #endif
13751 main()
13754 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13755 char *string = " +69";
13756 char *term;
13757 double value;
13758 value = strtod (string, &term);
13759 if (value != 69 || term != (string + 4))
13760 return 1;
13764 /* Under Solaris 2.4, strtod returns the wrong value for the
13765 terminating character under some conditions. */
13766 char *string = "NaN";
13767 char *term;
13768 strtod (string, &term);
13769 if (term != string && *(term - 1) == 0)
13770 return 1;
13772 return 0;
13775 _ACEOF
13776 rm -f conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_strtod=yes
13797 else
13798 echo "$as_me: program exited with status $ac_status" >&5
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ( exit $ac_status )
13803 ac_cv_func_strtod=no
13805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13811 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13812 if test $ac_cv_func_strtod = no; then
13813 case " $LIBOBJS " in
13814 *" strtod.$ac_objext "* ) ;;
13815 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13817 esac
13819 { echo "$as_me:$LINENO: checking for pow" >&5
13820 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13821 if test "${ac_cv_func_pow+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define pow innocuous_pow
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char pow (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13839 #ifdef __STDC__
13840 # include <limits.h>
13841 #else
13842 # include <assert.h>
13843 #endif
13845 #undef pow
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char pow ();
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_pow || defined __stub___pow
13858 choke me
13859 #endif
13862 main ()
13864 return pow ();
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13887 ac_cv_func_pow=yes
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_func_pow=no
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13899 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13901 if test $ac_cv_func_pow = no; then
13902 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13903 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13904 if test "${ac_cv_lib_m_pow+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907 ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lm $LIBS"
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h. */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char pow ();
13924 main ()
13926 return pow ();
13928 return 0;
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest$ac_exeext &&
13948 $as_test_x conftest$ac_exeext; then
13949 ac_cv_lib_m_pow=yes
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_lib_m_pow=no
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext
13959 LIBS=$ac_check_lib_save_LIBS
13961 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13962 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13963 if test $ac_cv_lib_m_pow = yes; then
13964 POW_LIB=-lm
13965 else
13966 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13967 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13978 for ac_header in $ac_header_list
13980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_res=`eval echo '${'$as_ac_Header'}'`
13988 { echo "$as_me:$LINENO: result: $ac_res" >&5
13989 echo "${ECHO_T}$ac_res" >&6; }
13990 else
13991 # Is the header compilable?
13992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13994 cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h. */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14001 #include <$ac_header>
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (ac_try="$ac_compile"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_compile") 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } && {
14017 test -z "$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14019 } && test -s conftest.$ac_objext; then
14020 ac_header_compiler=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_compiler=no
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14030 echo "${ECHO_T}$ac_header_compiler" >&6; }
14032 # Is the header present?
14033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 #include <$ac_header>
14042 _ACEOF
14043 if { (ac_try="$ac_cpp conftest.$ac_ext"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } >/dev/null && {
14056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 }; then
14059 ac_header_preproc=yes
14060 else
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_header_preproc=no
14067 rm -f conftest.err conftest.$ac_ext
14068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14069 echo "${ECHO_T}$ac_header_preproc" >&6; }
14071 # So? What about this header?
14072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14073 yes:no: )
14074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14078 ac_header_preproc=yes
14080 no:yes:* )
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14093 ( cat <<\_ASBOX
14094 ## ------------------------------- ##
14095 ## Report this to www.asterisk.org ##
14096 ## ------------------------------- ##
14097 _ASBOX
14098 ) | sed "s/^/$as_me: WARNING: /" >&2
14100 esac
14101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 eval "$as_ac_Header=\$ac_header_preproc"
14108 ac_res=`eval echo '${'$as_ac_Header'}'`
14109 { echo "$as_me:$LINENO: result: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14114 cat >>confdefs.h <<_ACEOF
14115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14116 _ACEOF
14120 done
14130 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14131 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14132 if test "${ac_cv_func_utime_null+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 rm -f conftest.data; >conftest.data
14136 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14137 if test "$cross_compiling" = yes; then
14138 ac_cv_func_utime_null=no
14139 else
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #ifdef HAVE_UTIME_H
14148 # include <utime.h>
14149 #endif
14151 main ()
14153 struct stat s, t;
14154 return ! (stat ("conftest.data", &s) == 0
14155 && utime ("conftest.data", 0) == 0
14156 && stat ("conftest.data", &t) == 0
14157 && t.st_mtime >= s.st_mtime
14158 && t.st_mtime - s.st_mtime < 120);
14160 return 0;
14162 _ACEOF
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_func_utime_null=yes
14184 else
14185 echo "$as_me: program exited with status $ac_status" >&5
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ( exit $ac_status )
14190 ac_cv_func_utime_null=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14198 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14199 if test $ac_cv_func_utime_null = yes; then
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_UTIME_NULL 1
14203 _ACEOF
14206 rm -f conftest.data
14209 for ac_func in vprintf
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14225 #define $ac_func innocuous_$ac_func
14227 /* System header to define __stub macros and hopefully few prototypes,
14228 which can conflict with char $ac_func (); below.
14229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 <limits.h> exists even on freestanding compilers. */
14232 #ifdef __STDC__
14233 # include <limits.h>
14234 #else
14235 # include <assert.h>
14236 #endif
14238 #undef $ac_func
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char $ac_func ();
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined __stub_$ac_func || defined __stub___$ac_func
14251 choke me
14252 #endif
14255 main ()
14257 return $ac_func ();
14259 return 0;
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (ac_try="$ac_link"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest$ac_exeext &&
14279 $as_test_x conftest$ac_exeext; then
14280 eval "$as_ac_var=yes"
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 eval "$as_ac_var=no"
14288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14289 conftest$ac_exeext conftest.$ac_ext
14291 ac_res=`eval echo '${'$as_ac_var'}'`
14292 { echo "$as_me:$LINENO: result: $ac_res" >&5
14293 echo "${ECHO_T}$ac_res" >&6; }
14294 if test `eval echo '${'$as_ac_var'}'` = yes; then
14295 cat >>confdefs.h <<_ACEOF
14296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297 _ACEOF
14299 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14300 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14301 if test "${ac_cv_func__doprnt+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h. */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14312 #define _doprnt innocuous__doprnt
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char _doprnt (); below.
14316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14317 <limits.h> exists even on freestanding compilers. */
14319 #ifdef __STDC__
14320 # include <limits.h>
14321 #else
14322 # include <assert.h>
14323 #endif
14325 #undef _doprnt
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char _doprnt ();
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined __stub__doprnt || defined __stub____doprnt
14338 choke me
14339 #endif
14342 main ()
14344 return _doprnt ();
14346 return 0;
14348 _ACEOF
14349 rm -f conftest.$ac_objext conftest$ac_exeext
14350 if { (ac_try="$ac_link"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14354 esac
14355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_link") 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } && {
14363 test -z "$ac_c_werror_flag" ||
14364 test ! -s conftest.err
14365 } && test -s conftest$ac_exeext &&
14366 $as_test_x conftest$ac_exeext; then
14367 ac_cv_func__doprnt=yes
14368 else
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_cv_func__doprnt=no
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14379 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14380 if test $ac_cv_func__doprnt = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_DOPRNT 1
14384 _ACEOF
14389 done
14441 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
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14464 #ifdef __STDC__
14465 # include <limits.h>
14466 #else
14467 # include <assert.h>
14468 #endif
14470 #undef $ac_func
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char $ac_func ();
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined __stub_$ac_func || defined __stub___$ac_func
14483 choke me
14484 #endif
14487 main ()
14489 return $ac_func ();
14491 return 0;
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14512 eval "$as_ac_var=yes"
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 eval "$as_ac_var=no"
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14523 ac_res=`eval echo '${'$as_ac_var'}'`
14524 { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14529 _ACEOF
14532 done
14535 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
14536 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
14537 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
14538 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 ac_func_search_save_LIBS=$LIBS
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char gethostbyname_r ();
14557 main ()
14559 return gethostbyname_r ();
14561 return 0;
14563 _ACEOF
14564 for ac_lib in '' socket nsl; do
14565 if test -z "$ac_lib"; then
14566 ac_res="none required"
14567 else
14568 ac_res=-l$ac_lib
14569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14571 rm -f conftest.$ac_objext conftest$ac_exeext
14572 if { (ac_try="$ac_link"
14573 case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_link") 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext &&
14588 $as_test_x conftest$ac_exeext; then
14589 ac_cv_search_gethostbyname_r=$ac_res
14590 else
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14598 conftest$ac_exeext
14599 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14600 break
14602 done
14603 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
14605 else
14606 ac_cv_search_gethostbyname_r=no
14608 rm conftest.$ac_ext
14609 LIBS=$ac_func_search_save_LIBS
14611 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
14612 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
14613 ac_res=$ac_cv_search_gethostbyname_r
14614 if test "$ac_res" != no; then
14615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14620 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
14621 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <stdlib.h>
14629 #include <netdb.h>
14631 main ()
14633 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
14635 return 0;
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 { echo "$as_me:$LINENO: result: yes" >&5
14657 echo "${ECHO_T}yes" >&6; }
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_GETHOSTBYNAME_R_6 1
14661 _ACEOF
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 { echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6; }
14672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14673 conftest$ac_exeext conftest.$ac_ext
14675 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
14676 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <stdlib.h>
14684 #include <netdb.h>
14686 main ()
14688 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
14690 return 0;
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_link") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest$ac_exeext &&
14710 $as_test_x conftest$ac_exeext; then
14711 { echo "$as_me:$LINENO: result: yes" >&5
14712 echo "${ECHO_T}yes" >&6; }
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_GETHOSTBYNAME_R_5 1
14716 _ACEOF
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 { echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6; }
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
14731 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <pthread.h>
14740 main ()
14742 int foo = PTHREAD_RWLOCK_INITIALIZER;
14744 return 0;
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_c_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext &&
14764 $as_test_x conftest$ac_exeext; then
14765 { echo "$as_me:$LINENO: result: yes" >&5
14766 echo "${ECHO_T}yes" >&6; }
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
14770 _ACEOF
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 { echo "$as_me:$LINENO: result: no" >&5
14777 echo "${ECHO_T}no" >&6; }
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
14785 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... $ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <pthread.h>
14794 main ()
14796 int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 { echo "$as_me:$LINENO: result: yes" >&5
14820 echo "${ECHO_T}yes" >&6; }
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
14824 _ACEOF
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 { echo "$as_me:$LINENO: result: no" >&5
14831 echo "${ECHO_T}no" >&6; }
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14838 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
14839 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h. */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14848 main ()
14850 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14852 return 0;
14854 _ACEOF
14855 rm -f conftest.$ac_objext conftest$ac_exeext
14856 if { (ac_try="$ac_link"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_link") 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest$ac_exeext &&
14872 $as_test_x conftest$ac_exeext; then
14873 { echo "$as_me:$LINENO: result: yes" >&5
14874 echo "${ECHO_T}yes" >&6; }
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_GCC_ATOMICS 1
14878 _ACEOF
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 { echo "$as_me:$LINENO: result: no" >&5
14885 echo "${ECHO_T}no" >&6; }
14889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
14894 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 static int __attribute__((pure)) test(void) {}
14903 main ()
14907 return 0;
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (ac_try="$ac_compile"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_compile") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest.$ac_objext; then
14927 { echo "$as_me:$LINENO: result: yes" >&5
14928 echo "${ECHO_T}yes" >&6; }
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_ATTRIBUTE_pure 1
14932 _ACEOF
14934 else
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 { echo "$as_me:$LINENO: result: no" >&5
14939 echo "${ECHO_T}no" >&6; }
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
14946 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 static int __attribute__((malloc)) test(void) {}
14955 main ()
14959 return 0;
14961 _ACEOF
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 { echo "$as_me:$LINENO: result: yes" >&5
14980 echo "${ECHO_T}yes" >&6; }
14982 cat >>confdefs.h <<_ACEOF
14983 #define HAVE_ATTRIBUTE_malloc 1
14984 _ACEOF
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 { echo "$as_me:$LINENO: result: no" >&5
14991 echo "${ECHO_T}no" >&6; }
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
14998 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 static int __attribute__((const)) test(void) {}
15007 main ()
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (ac_try="$ac_compile"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15031 { echo "$as_me:$LINENO: result: yes" >&5
15032 echo "${ECHO_T}yes" >&6; }
15034 cat >>confdefs.h <<_ACEOF
15035 #define HAVE_ATTRIBUTE_const 1
15036 _ACEOF
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 { echo "$as_me:$LINENO: result: no" >&5
15043 echo "${ECHO_T}no" >&6; }
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
15050 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 static int __attribute__((unused)) test(void) {}
15059 main ()
15063 return 0;
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest.$ac_objext; then
15083 { echo "$as_me:$LINENO: result: yes" >&5
15084 echo "${ECHO_T}yes" >&6; }
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_ATTRIBUTE_unused 1
15088 _ACEOF
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 { echo "$as_me:$LINENO: result: no" >&5
15095 echo "${ECHO_T}no" >&6; }
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
15102 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 static int __attribute__((always_inline)) test(void) {}
15111 main ()
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 { echo "$as_me:$LINENO: result: yes" >&5
15136 echo "${ECHO_T}yes" >&6; }
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_ATTRIBUTE_always_inline 1
15140 _ACEOF
15142 else
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 { echo "$as_me:$LINENO: result: no" >&5
15147 echo "${ECHO_T}no" >&6; }
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
15154 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 static int __attribute__((deprecated)) test(void) {}
15163 main ()
15167 return 0;
15169 _ACEOF
15170 rm -f conftest.$ac_objext
15171 if { (ac_try="$ac_compile"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 { echo "$as_me:$LINENO: result: yes" >&5
15188 echo "${ECHO_T}yes" >&6; }
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_ATTRIBUTE_deprecated 1
15192 _ACEOF
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 { echo "$as_me:$LINENO: result: no" >&5
15199 echo "${ECHO_T}no" >&6; }
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
15206 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
15207 saved_CFLAGS="${CFLAGS}"
15208 CFLAGS="${CFLAGS} -ffunction-sections"
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15217 main ()
15219 int x = 1;
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15232 ac_status=$?
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } && {
15238 test -z "$ac_c_werror_flag" ||
15239 test ! -s conftest.err
15240 } && test -s conftest.$ac_objext; then
15241 { echo "$as_me:$LINENO: result: yes" >&5
15242 echo "${ECHO_T}yes" >&6; }
15243 saved_LDFLAGS="${LDFLAGS}"
15244 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
15245 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
15246 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15255 main ()
15257 int x = 1;
15259 return 0;
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_link") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest$ac_exeext &&
15279 $as_test_x conftest$ac_exeext; then
15280 { echo "$as_me:$LINENO: result: yes" >&5
15281 echo "${ECHO_T}yes" >&6; }
15282 GC_CFLAGS="-ffunction-sections"
15283 GC_LDFLAGS="-Wl,--gc-sections"
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 { echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6; }
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LDFLAGS="${saved_LDFLAGS}"
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 { echo "$as_me:$LINENO: result: no" >&5
15301 echo "${ECHO_T}no" >&6; }
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 CFLAGS="${saved_CFLAGS}"
15310 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
15311 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15312 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15313 { echo "$as_me:$LINENO: result: yes" >&5
15314 echo "${ECHO_T}yes" >&6; }
15315 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
15316 else
15317 { echo "$as_me:$LINENO: result: no" >&5
15318 echo "${ECHO_T}no" >&6; }
15319 AST_DECLARATION_AFTER_STATEMENT=
15323 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
15324 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
15325 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
15326 { echo "$as_me:$LINENO: result: yes" >&5
15327 echo "${ECHO_T}yes" >&6; }
15328 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
15329 else
15330 { echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6; }
15332 AST_NO_STRICT_OVERFLOW=
15336 { echo "$as_me:$LINENO: checking for res_ninit" >&5
15337 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 #include <resolv.h>
15346 main ()
15348 int foo = res_ninit(NULL);
15350 return 0;
15352 _ACEOF
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (ac_try="$ac_link"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_link") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest$ac_exeext &&
15370 $as_test_x conftest$ac_exeext; then
15371 { echo "$as_me:$LINENO: result: yes" >&5
15372 echo "${ECHO_T}yes" >&6; }
15374 cat >>confdefs.h <<\_ACEOF
15375 #define HAVE_RES_NINIT 1
15376 _ACEOF
15378 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
15379 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <resolv.h>
15388 main ()
15390 int foo = res_ndestroy(NULL);
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 { echo "$as_me:$LINENO: result: yes" >&5
15414 echo "${ECHO_T}yes" >&6; }
15416 cat >>confdefs.h <<\_ACEOF
15417 #define HAVE_RES_NDESTROY 1
15418 _ACEOF
15420 else
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 { echo "$as_me:$LINENO: result: no" >&5
15425 echo "${ECHO_T}no" >&6; }
15429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15430 conftest$ac_exeext conftest.$ac_ext
15431 else
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 { echo "$as_me:$LINENO: result: no" >&5
15436 echo "${ECHO_T}no" >&6; }
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
15444 echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <dlfcn.h>
15453 main ()
15455 int foo = RTLD_NOLOAD;
15457 return 0;
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (ac_try="$ac_link"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_link") 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } && {
15474 test -z "$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 } && test -s conftest$ac_exeext &&
15477 $as_test_x conftest$ac_exeext; then
15478 { echo "$as_me:$LINENO: result: yes" >&5
15479 echo "${ECHO_T}yes" >&6; }
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_RTLD_NOLOAD 1
15483 _ACEOF
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 { echo "$as_me:$LINENO: result: no" >&5
15490 echo "${ECHO_T}no" >&6; }
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495 conftest$ac_exeext conftest.$ac_ext
15497 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER" >&5
15498 echo $ECHO_N "checking for IP_MTU_DISCOVER... $ECHO_C" >&6; }
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <netinet/in.h>
15507 main ()
15509 int foo = IP_MTU_DISCOVER;
15511 return 0;
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_link") 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } && {
15528 test -z "$ac_c_werror_flag" ||
15529 test ! -s conftest.err
15530 } && test -s conftest$ac_exeext &&
15531 $as_test_x conftest$ac_exeext; then
15532 { echo "$as_me:$LINENO: result: yes" >&5
15533 echo "${ECHO_T}yes" >&6; }
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE_IP_MTU_DISCOVER 1
15537 _ACEOF
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 { echo "$as_me:$LINENO: result: no" >&5
15544 echo "${ECHO_T}no" >&6; }
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext conftest.$ac_ext
15551 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15552 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15553 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15554 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15558 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15559 else
15560 # Is the header compilable?
15561 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
15562 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 $ac_includes_default
15570 #include <libkern/OSAtomic.h>
15571 _ACEOF
15572 rm -f conftest.$ac_objext
15573 if { (ac_try="$ac_compile"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_compile") 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest.$ac_objext; then
15589 ac_header_compiler=yes
15590 else
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_compiler=no
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6; }
15601 # Is the header present?
15602 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
15603 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h. */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <libkern/OSAtomic.h>
15611 _ACEOF
15612 if { (ac_try="$ac_cpp conftest.$ac_ext"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } >/dev/null && {
15625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15627 }; then
15628 ac_header_preproc=yes
15629 else
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_header_preproc=no
15636 rm -f conftest.err conftest.$ac_ext
15637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15638 echo "${ECHO_T}$ac_header_preproc" >&6; }
15640 # So? What about this header?
15641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 yes:no: )
15643 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
15644 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
15646 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
15647 ac_header_preproc=yes
15649 no:yes:* )
15650 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
15651 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
15653 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
15655 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
15657 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
15659 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
15661 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
15662 ( cat <<\_ASBOX
15663 ## ------------------------------- ##
15664 ## Report this to www.asterisk.org ##
15665 ## ------------------------------- ##
15666 _ASBOX
15667 ) | sed "s/^/$as_me: WARNING: /" >&2
15669 esac
15670 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
15671 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
15672 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
15677 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
15678 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
15681 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_OSX_ATOMICS 1
15685 _ACEOF
15691 { echo "$as_me:$LINENO: checking for int" >&5
15692 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
15693 if test "${ac_cv_type_int+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 typedef int ac__type_new_;
15705 main ()
15707 if ((ac__type_new_ *) 0)
15708 return 0;
15709 if (sizeof (ac__type_new_))
15710 return 0;
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 ac_cv_type_int=yes
15733 else
15734 echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 ac_cv_type_int=no
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15743 echo "${ECHO_T}$ac_cv_type_int" >&6; }
15745 # The cast to long int works around a bug in the HP C Compiler
15746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15748 # This bug is HP SR number 8606223364.
15749 { echo "$as_me:$LINENO: checking size of int" >&5
15750 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15751 if test "${ac_cv_sizeof_int+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 if test "$cross_compiling" = yes; then
15755 # Depending upon the size, compute the lo and hi bounds.
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 typedef int ac__type_sizeof_;
15765 main ()
15767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15768 test_array [0] = 0
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 ac_lo=0 ac_mid=0
15792 while :; do
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 typedef int ac__type_sizeof_;
15802 main ()
15804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15805 test_array [0] = 0
15808 return 0;
15810 _ACEOF
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_compile") 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } && {
15825 test -z "$ac_c_werror_flag" ||
15826 test ! -s conftest.err
15827 } && test -s conftest.$ac_objext; then
15828 ac_hi=$ac_mid; break
15829 else
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_lo=`expr $ac_mid + 1`
15834 if test $ac_lo -le $ac_mid; then
15835 ac_lo= ac_hi=
15836 break
15838 ac_mid=`expr 2 '*' $ac_mid + 1`
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 done
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h. */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 $ac_includes_default
15854 typedef int ac__type_sizeof_;
15856 main ()
15858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15859 test_array [0] = 0
15862 return 0;
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } && {
15879 test -z "$ac_c_werror_flag" ||
15880 test ! -s conftest.err
15881 } && test -s conftest.$ac_objext; then
15882 ac_hi=-1 ac_mid=-1
15883 while :; do
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h. */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 $ac_includes_default
15891 typedef int ac__type_sizeof_;
15893 main ()
15895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15896 test_array [0] = 0
15899 return 0;
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (ac_try="$ac_compile"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907 esac
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_compile") 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } && {
15916 test -z "$ac_c_werror_flag" ||
15917 test ! -s conftest.err
15918 } && test -s conftest.$ac_objext; then
15919 ac_lo=$ac_mid; break
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_hi=`expr '(' $ac_mid ')' - 1`
15925 if test $ac_mid -le $ac_hi; then
15926 ac_lo= ac_hi=
15927 break
15929 ac_mid=`expr 2 '*' $ac_mid`
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 done
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_lo= ac_hi=
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 # Binary search between lo and hi bounds.
15946 while test "x$ac_lo" != "x$ac_hi"; do
15947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15955 typedef int ac__type_sizeof_;
15957 main ()
15959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15960 test_array [0] = 0
15963 return 0;
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest.$ac_objext; then
15983 ac_hi=$ac_mid
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_lo=`expr '(' $ac_mid ')' + 1`
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 done
15993 case $ac_lo in
15994 ?*) ac_cv_sizeof_int=$ac_lo;;
15995 '') if test "$ac_cv_type_int" = yes; then
15996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15997 See \`config.log' for more details." >&5
15998 echo "$as_me: error: cannot compute sizeof (int)
15999 See \`config.log' for more details." >&2;}
16000 { (exit 77); exit 77; }; }
16001 else
16002 ac_cv_sizeof_int=0
16003 fi ;;
16004 esac
16005 else
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h. */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 $ac_includes_default
16013 typedef int ac__type_sizeof_;
16014 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16015 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16016 #include <stdio.h>
16017 #include <stdlib.h>
16019 main ()
16022 FILE *f = fopen ("conftest.val", "w");
16023 if (! f)
16024 return 1;
16025 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16027 long int i = longval ();
16028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16029 return 1;
16030 fprintf (f, "%ld\n", i);
16032 else
16034 unsigned long int i = ulongval ();
16035 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16036 return 1;
16037 fprintf (f, "%lu\n", i);
16039 return ferror (f) || fclose (f) != 0;
16042 return 0;
16044 _ACEOF
16045 rm -f conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16056 { (case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_try") 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_sizeof_int=`cat conftest.val`
16066 else
16067 echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ( exit $ac_status )
16072 if test "$ac_cv_type_int" = yes; then
16073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16074 See \`config.log' for more details." >&5
16075 echo "$as_me: error: cannot compute sizeof (int)
16076 See \`config.log' for more details." >&2;}
16077 { (exit 77); exit 77; }; }
16078 else
16079 ac_cv_sizeof_int=0
16082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16084 rm -f conftest.val
16086 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16087 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
16091 cat >>confdefs.h <<_ACEOF
16092 #define SIZEOF_INT $ac_cv_sizeof_int
16093 _ACEOF
16097 # do the package library checks now
16100 if test "${USE_ALSA}" != "no"; then
16101 pbxlibdir=""
16102 if test "x${ALSA_DIR}" != "x"; then
16103 if test -d ${ALSA_DIR}/lib; then
16104 pbxlibdir="-L${ALSA_DIR}/lib"
16105 else
16106 pbxlibdir="-L${ALSA_DIR}"
16109 { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
16110 echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
16111 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h. */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16123 /* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
16126 #ifdef __cplusplus
16127 extern "C"
16128 #endif
16129 char snd_spcm_init ();
16131 main ()
16133 return snd_spcm_init ();
16135 return 0;
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 ac_cv_lib_asound_snd_spcm_init=yes
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 ac_cv_lib_asound_snd_spcm_init=no
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS
16168 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
16169 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
16170 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
16171 AST_ALSA_FOUND=yes
16172 else
16173 AST_ALSA_FOUND=no
16177 if test "${AST_ALSA_FOUND}" = "yes"; then
16178 ALSA_LIB="-lasound -lm -ldl"
16179 ALSA_HEADER_FOUND="1"
16180 if test "x${ALSA_DIR}" != "x"; then
16181 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
16182 ALSA_INCLUDE="-I${ALSA_DIR}/include"
16183 saved_cppflags="${CPPFLAGS}"
16184 CPPFLAGS="${CPPFLAGS} -I${ALSA_DIR}/include"
16185 if test "xalsa/asoundlib.h" != "x" ; then
16186 as_ac_Header=`echo "ac_cv_header_${ALSA_DIR}/include/alsa/asoundlib.h" | $as_tr_sh`
16187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16189 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16196 else
16197 # Is the header compilable?
16198 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h usability" >&5
16199 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h usability... $ECHO_C" >&6; }
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h. */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 $ac_includes_default
16207 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 ac_header_compiler=yes
16227 else
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_header_compiler=no
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16236 echo "${ECHO_T}$ac_header_compiler" >&6; }
16238 # Is the header present?
16239 { echo "$as_me:$LINENO: checking ${ALSA_DIR}/include/alsa/asoundlib.h presence" >&5
16240 echo $ECHO_N "checking ${ALSA_DIR}/include/alsa/asoundlib.h presence... $ECHO_C" >&6; }
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
16248 _ACEOF
16249 if { (ac_try="$ac_cpp conftest.$ac_ext"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } >/dev/null && {
16262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 }; then
16265 ac_header_preproc=yes
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_header_preproc=no
16273 rm -f conftest.err conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16277 # So? What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16279 yes:no: )
16280 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc=yes
16286 no:yes:* )
16287 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16299 ( cat <<\_ASBOX
16300 ## ------------------------------- ##
16301 ## Report this to www.asterisk.org ##
16302 ## ------------------------------- ##
16303 _ASBOX
16304 ) | sed "s/^/$as_me: WARNING: /" >&2
16306 esac
16307 { echo "$as_me:$LINENO: checking for ${ALSA_DIR}/include/alsa/asoundlib.h" >&5
16308 echo $ECHO_N "checking for ${ALSA_DIR}/include/alsa/asoundlib.h... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 ALSA_HEADER_FOUND=1
16321 else
16322 ALSA_HEADER_FOUND=0
16327 CPPFLAGS="${saved_cppflags}"
16328 else
16329 if test "xalsa/asoundlib.h" != "x" ; then
16330 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16331 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16332 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16333 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16337 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16338 else
16339 # Is the header compilable?
16340 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
16341 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 $ac_includes_default
16349 #include <alsa/asoundlib.h>
16350 _ACEOF
16351 rm -f conftest.$ac_objext
16352 if { (ac_try="$ac_compile"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest.$ac_objext; then
16368 ac_header_compiler=yes
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_header_compiler=no
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6; }
16380 # Is the header present?
16381 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
16382 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <alsa/asoundlib.h>
16390 _ACEOF
16391 if { (ac_try="$ac_cpp conftest.$ac_ext"
16392 case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } >/dev/null && {
16404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16406 }; then
16407 ac_header_preproc=yes
16408 else
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 ac_header_preproc=no
16415 rm -f conftest.err conftest.$ac_ext
16416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417 echo "${ECHO_T}$ac_header_preproc" >&6; }
16419 # So? What about this header?
16420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 yes:no: )
16422 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16423 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
16425 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
16426 ac_header_preproc=yes
16428 no:yes:* )
16429 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
16430 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
16432 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
16434 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
16436 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
16438 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
16440 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
16441 ( cat <<\_ASBOX
16442 ## ------------------------------- ##
16443 ## Report this to www.asterisk.org ##
16444 ## ------------------------------- ##
16445 _ASBOX
16446 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 esac
16449 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
16450 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
16451 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
16456 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
16457 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
16460 if test $ac_cv_header_alsa_asoundlib_h = yes; then
16461 ALSA_HEADER_FOUND=1
16462 else
16463 ALSA_HEADER_FOUND=0
16469 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
16470 if test -n "${ALSA_MANDATORY}" ;
16471 then
16472 { echo "$as_me:$LINENO: ***" >&5
16473 echo "$as_me: ***" >&6;}
16474 { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
16475 echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
16476 { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
16477 echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
16478 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16479 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16480 exit 1
16482 ALSA_LIB=""
16483 ALSA_INCLUDE=""
16484 PBX_ALSA=0
16485 else
16486 PBX_ALSA=1
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_ALSA 1
16490 _ACEOF
16493 elif test -n "${ALSA_MANDATORY}";
16494 then
16495 { echo "$as_me:$LINENO: ***" >&5
16496 echo "$as_me: ***" >&6;}
16497 { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
16498 echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
16499 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16500 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16501 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
16502 echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
16503 exit 1
16509 if test "${USE_CURSES}" != "no"; then
16510 pbxlibdir=""
16511 if test "x${CURSES_DIR}" != "x"; then
16512 if test -d ${CURSES_DIR}/lib; then
16513 pbxlibdir="-L${CURSES_DIR}/lib"
16514 else
16515 pbxlibdir="-L${CURSES_DIR}"
16518 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16519 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16520 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523 ac_check_lib_save_LIBS=$LIBS
16524 LIBS="-lcurses ${pbxlibdir} $LIBS"
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16532 /* Override any GCC internal prototype to avoid an error.
16533 Use char because int might match the return type of a GCC
16534 builtin and then its argument prototype would still apply. */
16535 #ifdef __cplusplus
16536 extern "C"
16537 #endif
16538 char initscr ();
16540 main ()
16542 return initscr ();
16544 return 0;
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_link") 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && {
16561 test -z "$ac_c_werror_flag" ||
16562 test ! -s conftest.err
16563 } && test -s conftest$ac_exeext &&
16564 $as_test_x conftest$ac_exeext; then
16565 ac_cv_lib_curses_initscr=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_lib_curses_initscr=no
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574 conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16577 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16578 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16579 if test $ac_cv_lib_curses_initscr = yes; then
16580 AST_CURSES_FOUND=yes
16581 else
16582 AST_CURSES_FOUND=no
16586 if test "${AST_CURSES_FOUND}" = "yes"; then
16587 CURSES_LIB="-lcurses "
16588 CURSES_HEADER_FOUND="1"
16589 if test "x${CURSES_DIR}" != "x"; then
16590 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
16591 CURSES_INCLUDE="-I${CURSES_DIR}/include"
16592 saved_cppflags="${CPPFLAGS}"
16593 CPPFLAGS="${CPPFLAGS} -I${CURSES_DIR}/include"
16594 if test "xcurses.h" != "x" ; then
16595 as_ac_Header=`echo "ac_cv_header_${CURSES_DIR}/include/curses.h" | $as_tr_sh`
16596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16598 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16605 else
16606 # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h usability" >&5
16608 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16616 #include <${CURSES_DIR}/include/curses.h>
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest.$ac_objext; then
16635 ac_header_compiler=yes
16636 else
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ac_header_compiler=no
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645 echo "${ECHO_T}$ac_header_compiler" >&6; }
16647 # Is the header present?
16648 { echo "$as_me:$LINENO: checking ${CURSES_DIR}/include/curses.h presence" >&5
16649 echo $ECHO_N "checking ${CURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <${CURSES_DIR}/include/curses.h>
16657 _ACEOF
16658 if { (ac_try="$ac_cpp conftest.$ac_ext"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null && {
16671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 }; then
16674 ac_header_preproc=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_header_preproc=no
16682 rm -f conftest.err conftest.$ac_ext
16683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16684 echo "${ECHO_T}$ac_header_preproc" >&6; }
16686 # So? What about this header?
16687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16688 yes:no: )
16689 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16690 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
16692 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
16693 ac_header_preproc=yes
16695 no:yes:* )
16696 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
16697 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
16699 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
16701 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
16703 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
16707 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
16708 ( cat <<\_ASBOX
16709 ## ------------------------------- ##
16710 ## Report this to www.asterisk.org ##
16711 ## ------------------------------- ##
16712 _ASBOX
16713 ) | sed "s/^/$as_me: WARNING: /" >&2
16715 esac
16716 { echo "$as_me:$LINENO: checking for ${CURSES_DIR}/include/curses.h" >&5
16717 echo $ECHO_N "checking for ${CURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 eval "$as_ac_Header=\$ac_header_preproc"
16723 ac_res=`eval echo '${'$as_ac_Header'}'`
16724 { echo "$as_me:$LINENO: result: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16729 CURSES_HEADER_FOUND=1
16730 else
16731 CURSES_HEADER_FOUND=0
16736 CPPFLAGS="${saved_cppflags}"
16737 else
16738 if test "xcurses.h" != "x" ; then
16739 if test "${ac_cv_header_curses_h+set}" = set; then
16740 { echo "$as_me:$LINENO: checking for curses.h" >&5
16741 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16742 if test "${ac_cv_header_curses_h+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16746 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16747 else
16748 # Is the header compilable?
16749 { echo "$as_me:$LINENO: checking curses.h usability" >&5
16750 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 $ac_includes_default
16758 #include <curses.h>
16759 _ACEOF
16760 rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_compile") 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest.$ac_objext; then
16777 ac_header_compiler=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_header_compiler=no
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16787 echo "${ECHO_T}$ac_header_compiler" >&6; }
16789 # Is the header present?
16790 { echo "$as_me:$LINENO: checking curses.h presence" >&5
16791 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <curses.h>
16799 _ACEOF
16800 if { (ac_try="$ac_cpp conftest.$ac_ext"
16801 case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } >/dev/null && {
16813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16814 test ! -s conftest.err
16815 }; then
16816 ac_header_preproc=yes
16817 else
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_header_preproc=no
16824 rm -f conftest.err conftest.$ac_ext
16825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16826 echo "${ECHO_T}$ac_header_preproc" >&6; }
16828 # So? What about this header?
16829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16830 yes:no: )
16831 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
16832 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
16834 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
16835 ac_header_preproc=yes
16837 no:yes:* )
16838 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
16839 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
16841 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
16843 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
16845 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
16847 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
16849 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
16850 ( cat <<\_ASBOX
16851 ## ------------------------------- ##
16852 ## Report this to www.asterisk.org ##
16853 ## ------------------------------- ##
16854 _ASBOX
16855 ) | sed "s/^/$as_me: WARNING: /" >&2
16857 esac
16858 { echo "$as_me:$LINENO: checking for curses.h" >&5
16859 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
16860 if test "${ac_cv_header_curses_h+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863 ac_cv_header_curses_h=$ac_header_preproc
16865 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
16866 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
16869 if test $ac_cv_header_curses_h = yes; then
16870 CURSES_HEADER_FOUND=1
16871 else
16872 CURSES_HEADER_FOUND=0
16878 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
16879 if test -n "${CURSES_MANDATORY}" ;
16880 then
16881 { echo "$as_me:$LINENO: ***" >&5
16882 echo "$as_me: ***" >&6;}
16883 { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
16884 echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
16885 { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
16886 echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
16887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16888 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16889 exit 1
16891 CURSES_LIB=""
16892 CURSES_INCLUDE=""
16893 PBX_CURSES=0
16894 else
16895 PBX_CURSES=1
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_CURSES 1
16899 _ACEOF
16902 elif test -n "${CURSES_MANDATORY}";
16903 then
16904 { echo "$as_me:$LINENO: ***" >&5
16905 echo "$as_me: ***" >&6;}
16906 { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
16907 echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
16908 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
16909 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
16910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
16911 echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
16912 exit 1
16917 if test "x${host_os}" = "xlinux-gnu" ; then
16919 if test "${USE_CAP}" != "no"; then
16920 pbxlibdir=""
16921 if test "x${CAP_DIR}" != "x"; then
16922 if test -d ${CAP_DIR}/lib; then
16923 pbxlibdir="-L${CAP_DIR}/lib"
16924 else
16925 pbxlibdir="-L${CAP_DIR}"
16928 { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
16929 echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-lcap ${pbxlibdir} $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char cap_from_text ();
16950 main ()
16952 return cap_from_text ();
16954 return 0;
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest$ac_exeext &&
16974 $as_test_x conftest$ac_exeext; then
16975 ac_cv_lib_cap_cap_from_text=yes
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_lib_cap_cap_from_text=no
16983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16984 conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16987 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
16988 echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
16989 if test $ac_cv_lib_cap_cap_from_text = yes; then
16990 AST_CAP_FOUND=yes
16991 else
16992 AST_CAP_FOUND=no
16996 if test "${AST_CAP_FOUND}" = "yes"; then
16997 CAP_LIB="-lcap "
16998 CAP_HEADER_FOUND="1"
16999 if test "x${CAP_DIR}" != "x"; then
17000 CAP_LIB="${pbxlibdir} ${CAP_LIB}"
17001 CAP_INCLUDE="-I${CAP_DIR}/include"
17002 saved_cppflags="${CPPFLAGS}"
17003 CPPFLAGS="${CPPFLAGS} -I${CAP_DIR}/include"
17004 if test "xsys/capability.h" != "x" ; then
17005 as_ac_Header=`echo "ac_cv_header_${CAP_DIR}/include/sys/capability.h" | $as_tr_sh`
17006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17008 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 ac_res=`eval echo '${'$as_ac_Header'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015 else
17016 # Is the header compilable?
17017 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h usability" >&5
17018 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h usability... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 $ac_includes_default
17026 #include <${CAP_DIR}/include/sys/capability.h>
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest.$ac_objext; then
17045 ac_header_compiler=yes
17046 else
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_header_compiler=no
17053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17055 echo "${ECHO_T}$ac_header_compiler" >&6; }
17057 # Is the header present?
17058 { echo "$as_me:$LINENO: checking ${CAP_DIR}/include/sys/capability.h presence" >&5
17059 echo $ECHO_N "checking ${CAP_DIR}/include/sys/capability.h presence... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <${CAP_DIR}/include/sys/capability.h>
17067 _ACEOF
17068 if { (ac_try="$ac_cpp conftest.$ac_ext"
17069 case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } >/dev/null && {
17081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17082 test ! -s conftest.err
17083 }; then
17084 ac_header_preproc=yes
17085 else
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 ac_header_preproc=no
17092 rm -f conftest.err conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17094 echo "${ECHO_T}$ac_header_preproc" >&6; }
17096 # So? What about this header?
17097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17098 yes:no: )
17099 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17100 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&5
17102 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the compiler's result" >&2;}
17103 ac_header_preproc=yes
17105 no:yes:* )
17106 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&5
17107 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: present but cannot be compiled" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&5
17109 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: check for missing prerequisite headers?" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&5
17111 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: see the Autoconf documentation" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17113 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&5
17115 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: proceeding with the preprocessor's result" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&5
17117 echo "$as_me: WARNING: ${CAP_DIR}/include/sys/capability.h: in the future, the compiler will take precedence" >&2;}
17118 ( cat <<\_ASBOX
17119 ## ------------------------------- ##
17120 ## Report this to www.asterisk.org ##
17121 ## ------------------------------- ##
17122 _ASBOX
17123 ) | sed "s/^/$as_me: WARNING: /" >&2
17125 esac
17126 { echo "$as_me:$LINENO: checking for ${CAP_DIR}/include/sys/capability.h" >&5
17127 echo $ECHO_N "checking for ${CAP_DIR}/include/sys/capability.h... $ECHO_C" >&6; }
17128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 eval "$as_ac_Header=\$ac_header_preproc"
17133 ac_res=`eval echo '${'$as_ac_Header'}'`
17134 { echo "$as_me:$LINENO: result: $ac_res" >&5
17135 echo "${ECHO_T}$ac_res" >&6; }
17138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17139 CAP_HEADER_FOUND=1
17140 else
17141 CAP_HEADER_FOUND=0
17146 CPPFLAGS="${saved_cppflags}"
17147 else
17148 if test "xsys/capability.h" != "x" ; then
17149 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17150 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17151 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17152 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17156 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17157 else
17158 # Is the header compilable?
17159 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
17160 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 #include <sys/capability.h>
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (ac_try="$ac_compile"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_header_compiler=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6; }
17199 # Is the header present?
17200 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
17201 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <sys/capability.h>
17209 _ACEOF
17210 if { (ac_try="$ac_cpp conftest.$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } >/dev/null && {
17223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 }; then
17226 ac_header_preproc=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_preproc=no
17234 rm -f conftest.err conftest.$ac_ext
17235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17236 echo "${ECHO_T}$ac_header_preproc" >&6; }
17238 # So? What about this header?
17239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17240 yes:no: )
17241 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
17242 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
17244 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
17245 ac_header_preproc=yes
17247 no:yes:* )
17248 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
17249 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
17251 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
17253 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
17255 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
17257 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
17259 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
17260 ( cat <<\_ASBOX
17261 ## ------------------------------- ##
17262 ## Report this to www.asterisk.org ##
17263 ## ------------------------------- ##
17264 _ASBOX
17265 ) | sed "s/^/$as_me: WARNING: /" >&2
17267 esac
17268 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
17269 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
17270 if test "${ac_cv_header_sys_capability_h+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 ac_cv_header_sys_capability_h=$ac_header_preproc
17275 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
17276 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
17279 if test $ac_cv_header_sys_capability_h = yes; then
17280 CAP_HEADER_FOUND=1
17281 else
17282 CAP_HEADER_FOUND=0
17288 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
17289 if test -n "${CAP_MANDATORY}" ;
17290 then
17291 { echo "$as_me:$LINENO: ***" >&5
17292 echo "$as_me: ***" >&6;}
17293 { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
17294 echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
17295 { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
17296 echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
17297 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17298 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17299 exit 1
17301 CAP_LIB=""
17302 CAP_INCLUDE=""
17303 PBX_CAP=0
17304 else
17305 PBX_CAP=1
17307 cat >>confdefs.h <<_ACEOF
17308 #define HAVE_CAP 1
17309 _ACEOF
17312 elif test -n "${CAP_MANDATORY}";
17313 then
17314 { echo "$as_me:$LINENO: ***" >&5
17315 echo "$as_me: ***" >&6;}
17316 { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
17317 echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
17318 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
17319 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
17320 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
17321 echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
17322 exit 1
17329 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
17330 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
17331 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
17332 saved_cppflags="${CPPFLAGS}"
17333 if test "x${GETIFADDRS_DIR}" != "x"; then
17334 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
17336 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #include <ifaddrs.h>
17346 main ()
17348 struct ifaddrs *p; getifaddrs(&p);
17351 return 0;
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 { echo "$as_me:$LINENO: result: yes" >&5
17372 echo "${ECHO_T}yes" >&6; }
17373 PBX_GETIFADDRS=1
17375 cat >>confdefs.h <<\_ACEOF
17376 #define HAVE_GETIFADDRS 1
17377 _ACEOF
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_GETIFADDRS_VERSION
17382 _ACEOF
17385 else
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 CPPFLAGS="${saved_cppflags}"
17399 GSM_INTERNAL="yes"
17401 GSM_SYSTEM="yes"
17402 if test "${USE_GSM}" != "no"; then
17403 if test "${GSM_DIR}" = "internal"; then
17404 GSM_SYSTEM="no"
17405 elif test "${GSM_DIR}" != ""; then
17406 GSM_INTERNAL="no"
17408 if test "${GSM_SYSTEM}" = "yes"; then
17409 gsmlibdir=""
17410 if test "x${GSM_DIR}" != "x"; then
17411 if test -d ${GSM_DIR}/lib; then
17412 gsmlibdir="-L${GSM_DIR}/lib"
17413 else
17414 gsmlibdir="-L${GSM_DIR}"
17417 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
17418 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
17419 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-lgsm ${gsmlibdir} $LIBS"
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17431 /* Override any GCC internal prototype to avoid an error.
17432 Use char because int might match the return type of a GCC
17433 builtin and then its argument prototype would still apply. */
17434 #ifdef __cplusplus
17435 extern "C"
17436 #endif
17437 char gsm_create ();
17439 main ()
17441 return gsm_create ();
17443 return 0;
17445 _ACEOF
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } && {
17460 test -z "$ac_c_werror_flag" ||
17461 test ! -s conftest.err
17462 } && test -s conftest$ac_exeext &&
17463 $as_test_x conftest$ac_exeext; then
17464 ac_cv_lib_gsm_gsm_create=yes
17465 else
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_lib_gsm_gsm_create=no
17472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17473 conftest$ac_exeext conftest.$ac_ext
17474 LIBS=$ac_check_lib_save_LIBS
17476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
17477 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
17478 if test $ac_cv_lib_gsm_gsm_create = yes; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define HAVE_GSM 1
17482 _ACEOF
17486 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
17487 if test "x${GSM_DIR}" != "x" ; then
17488 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
17489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17490 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17491 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 ac_res=`eval echo '${'$as_ac_Header'}'`
17496 { echo "$as_me:$LINENO: result: $ac_res" >&5
17497 echo "${ECHO_T}$ac_res" >&6; }
17498 else
17499 # Is the header compilable?
17500 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
17501 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
17502 cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h. */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 $ac_includes_default
17509 #include <${GSM_DIR}/include/gsm.h>
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_header_compiler=yes
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_header_compiler=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17538 echo "${ECHO_T}$ac_header_compiler" >&6; }
17540 # Is the header present?
17541 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
17542 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h. */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <${GSM_DIR}/include/gsm.h>
17550 _ACEOF
17551 if { (ac_try="$ac_cpp conftest.$ac_ext"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } >/dev/null && {
17564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17565 test ! -s conftest.err
17566 }; then
17567 ac_header_preproc=yes
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_header_preproc=no
17575 rm -f conftest.err conftest.$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17577 echo "${ECHO_T}$ac_header_preproc" >&6; }
17579 # So? What about this header?
17580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17581 yes:no: )
17582 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17583 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
17585 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
17586 ac_header_preproc=yes
17588 no:yes:* )
17589 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
17590 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
17591 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
17592 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
17594 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
17595 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17596 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17597 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
17598 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
17599 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
17600 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
17601 ( cat <<\_ASBOX
17602 ## ------------------------------- ##
17603 ## Report this to www.asterisk.org ##
17604 ## ------------------------------- ##
17605 _ASBOX
17606 ) | sed "s/^/$as_me: WARNING: /" >&2
17608 esac
17609 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
17610 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
17611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614 eval "$as_ac_Header=\$ac_header_preproc"
17616 ac_res=`eval echo '${'$as_ac_Header'}'`
17617 { echo "$as_me:$LINENO: result: $ac_res" >&5
17618 echo "${ECHO_T}$ac_res" >&6; }
17621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17622 GSM_HEADER_FOUND=1
17623 else
17624 GSM_HEADER_FOUND=0
17628 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
17629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17630 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17631 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 ac_res=`eval echo '${'$as_ac_Header'}'`
17636 { echo "$as_me:$LINENO: result: $ac_res" >&5
17637 echo "${ECHO_T}$ac_res" >&6; }
17638 else
17639 # Is the header compilable?
17640 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
17641 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 $ac_includes_default
17649 #include <${GSM_DIR}/include/gsm/gsm.h>
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17656 esac
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17659 ac_status=$?
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && {
17665 test -z "$ac_c_werror_flag" ||
17666 test ! -s conftest.err
17667 } && test -s conftest.$ac_objext; then
17668 ac_header_compiler=yes
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ac_header_compiler=no
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678 echo "${ECHO_T}$ac_header_compiler" >&6; }
17680 # Is the header present?
17681 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
17682 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <${GSM_DIR}/include/gsm/gsm.h>
17690 _ACEOF
17691 if { (ac_try="$ac_cpp conftest.$ac_ext"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695 esac
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } >/dev/null && {
17704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17706 }; then
17707 ac_header_preproc=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_header_preproc=no
17715 rm -f conftest.err conftest.$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17717 echo "${ECHO_T}$ac_header_preproc" >&6; }
17719 # So? What about this header?
17720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17721 yes:no: )
17722 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17723 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
17725 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
17726 ac_header_preproc=yes
17728 no:yes:* )
17729 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
17730 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
17732 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
17734 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17736 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
17740 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
17741 ( cat <<\_ASBOX
17742 ## ------------------------------- ##
17743 ## Report this to www.asterisk.org ##
17744 ## ------------------------------- ##
17745 _ASBOX
17746 ) | sed "s/^/$as_me: WARNING: /" >&2
17748 esac
17749 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
17750 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
17751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 eval "$as_ac_Header=\$ac_header_preproc"
17756 ac_res=`eval echo '${'$as_ac_Header'}'`
17757 { echo "$as_me:$LINENO: result: $ac_res" >&5
17758 echo "${ECHO_T}$ac_res" >&6; }
17761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17762 GSM_GSM_HEADER_FOUND=1
17763 else
17764 GSM_GSM_HEADER_FOUND=0
17768 else
17769 if test "${ac_cv_header_gsm_h+set}" = set; then
17770 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17771 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17772 if test "${ac_cv_header_gsm_h+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17776 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17777 else
17778 # Is the header compilable?
17779 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
17780 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 $ac_includes_default
17788 #include <gsm.h>
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest.$ac_objext; then
17807 ac_header_compiler=yes
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_header_compiler=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17817 echo "${ECHO_T}$ac_header_compiler" >&6; }
17819 # Is the header present?
17820 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
17821 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
17822 cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <gsm.h>
17829 _ACEOF
17830 if { (ac_try="$ac_cpp conftest.$ac_ext"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } >/dev/null && {
17843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 }; then
17846 ac_header_preproc=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_header_preproc=no
17854 rm -f conftest.err conftest.$ac_ext
17855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17856 echo "${ECHO_T}$ac_header_preproc" >&6; }
17858 # So? What about this header?
17859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17860 yes:no: )
17861 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17862 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
17864 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
17865 ac_header_preproc=yes
17867 no:yes:* )
17868 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
17869 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
17871 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
17873 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
17875 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
17877 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
17879 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
17880 ( cat <<\_ASBOX
17881 ## ------------------------------- ##
17882 ## Report this to www.asterisk.org ##
17883 ## ------------------------------- ##
17884 _ASBOX
17885 ) | sed "s/^/$as_me: WARNING: /" >&2
17887 esac
17888 { echo "$as_me:$LINENO: checking for gsm.h" >&5
17889 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
17890 if test "${ac_cv_header_gsm_h+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893 ac_cv_header_gsm_h=$ac_header_preproc
17895 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
17896 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
17899 if test $ac_cv_header_gsm_h = yes; then
17900 GSM_HEADER_FOUND=1
17901 else
17902 GSM_HEADER_FOUND=0
17906 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17907 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
17908 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
17909 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
17913 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
17914 else
17915 # Is the header compilable?
17916 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
17917 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 #include <gsm/gsm.h>
17926 _ACEOF
17927 rm -f conftest.$ac_objext
17928 if { (ac_try="$ac_compile"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_compile") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest.$ac_objext; then
17944 ac_header_compiler=yes
17945 else
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_header_compiler=no
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17954 echo "${ECHO_T}$ac_header_compiler" >&6; }
17956 # Is the header present?
17957 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
17958 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
17959 cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h. */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 #include <gsm/gsm.h>
17966 _ACEOF
17967 if { (ac_try="$ac_cpp conftest.$ac_ext"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } >/dev/null && {
17980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17981 test ! -s conftest.err
17982 }; then
17983 ac_header_preproc=yes
17984 else
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 ac_header_preproc=no
17991 rm -f conftest.err conftest.$ac_ext
17992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17993 echo "${ECHO_T}$ac_header_preproc" >&6; }
17995 # So? What about this header?
17996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17997 yes:no: )
17998 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
17999 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
18001 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
18002 ac_header_preproc=yes
18004 no:yes:* )
18005 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
18006 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
18008 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
18010 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
18012 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
18014 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
18016 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
18017 ( cat <<\_ASBOX
18018 ## ------------------------------- ##
18019 ## Report this to www.asterisk.org ##
18020 ## ------------------------------- ##
18021 _ASBOX
18022 ) | sed "s/^/$as_me: WARNING: /" >&2
18024 esac
18025 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
18026 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
18027 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 ac_cv_header_gsm_gsm_h=$ac_header_preproc
18032 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
18033 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
18036 if test $ac_cv_header_gsm_gsm_h = yes; then
18037 GSM_GSM_HEADER_FOUND=1
18038 else
18039 GSM_GSM_HEADER_FOUND=0
18044 if test "${GSM_HEADER_FOUND}" = "0" ; then
18045 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
18046 if test "x${GSM_MANDATORY}" = "xyes" ; then
18047 { echo "$as_me:$LINENO: ***" >&5
18048 echo "$as_me: ***" >&6;}
18049 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
18050 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
18051 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
18052 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
18053 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
18054 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
18055 exit 1
18059 GSM_OK=0
18060 if test "${GSM_HEADER_FOUND}" = "1" ; then
18062 cat >>confdefs.h <<_ACEOF
18063 #define HAVE_GSM_HEADER 1
18064 _ACEOF
18066 GSM_OK=1
18067 else
18068 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
18070 cat >>confdefs.h <<_ACEOF
18071 #define HAVE_GSM_GSM_HEADER 1
18072 _ACEOF
18074 GSM_OK=1
18077 if test "${GSM_OK}" = "1" ; then
18078 GSM_LIB="-lgsm"
18079 if test "x${GSM_DIR}" != "x"; then
18080 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
18081 GSM_INCLUDE="-I${GSM_DIR}/include"
18083 PBX_GSM=1
18084 GSM_INTERNAL="no"
18088 if test "${GSM_INTERNAL}" = "yes"; then
18089 PBX_GSM=1
18091 cat >>confdefs.h <<_ACEOF
18092 #define HAVE_GSM_HEADER 1
18093 _ACEOF
18099 if test "${USE_IKSEMEL}" != "no"; then
18100 pbxlibdir=""
18101 if test "x${IKSEMEL_DIR}" != "x"; then
18102 if test -d ${IKSEMEL_DIR}/lib; then
18103 pbxlibdir="-L${IKSEMEL_DIR}/lib"
18104 else
18105 pbxlibdir="-L${IKSEMEL_DIR}"
18108 { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
18109 echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
18110 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113 ac_check_lib_save_LIBS=$LIBS
18114 LIBS="-liksemel ${pbxlibdir} $LIBS"
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char iks_start_sasl ();
18130 main ()
18132 return iks_start_sasl ();
18134 return 0;
18136 _ACEOF
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18142 esac
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_link") 2>conftest.er1
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && {
18151 test -z "$ac_c_werror_flag" ||
18152 test ! -s conftest.err
18153 } && test -s conftest$ac_exeext &&
18154 $as_test_x conftest$ac_exeext; then
18155 ac_cv_lib_iksemel_iks_start_sasl=yes
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_cv_lib_iksemel_iks_start_sasl=no
18163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18167 { echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
18168 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
18169 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
18170 AST_IKSEMEL_FOUND=yes
18171 else
18172 AST_IKSEMEL_FOUND=no
18176 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
18177 IKSEMEL_LIB="-liksemel "
18178 IKSEMEL_HEADER_FOUND="1"
18179 if test "x${IKSEMEL_DIR}" != "x"; then
18180 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
18181 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
18182 saved_cppflags="${CPPFLAGS}"
18183 CPPFLAGS="${CPPFLAGS} -I${IKSEMEL_DIR}/include"
18184 if test "xiksemel.h" != "x" ; then
18185 as_ac_Header=`echo "ac_cv_header_${IKSEMEL_DIR}/include/iksemel.h" | $as_tr_sh`
18186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18187 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18188 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 ac_res=`eval echo '${'$as_ac_Header'}'`
18193 { echo "$as_me:$LINENO: result: $ac_res" >&5
18194 echo "${ECHO_T}$ac_res" >&6; }
18195 else
18196 # Is the header compilable?
18197 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h usability" >&5
18198 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h usability... $ECHO_C" >&6; }
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h. */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 $ac_includes_default
18206 #include <${IKSEMEL_DIR}/include/iksemel.h>
18207 _ACEOF
18208 rm -f conftest.$ac_objext
18209 if { (ac_try="$ac_compile"
18210 case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_compile") 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } && {
18222 test -z "$ac_c_werror_flag" ||
18223 test ! -s conftest.err
18224 } && test -s conftest.$ac_objext; then
18225 ac_header_compiler=yes
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ac_header_compiler=no
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18235 echo "${ECHO_T}$ac_header_compiler" >&6; }
18237 # Is the header present?
18238 { echo "$as_me:$LINENO: checking ${IKSEMEL_DIR}/include/iksemel.h presence" >&5
18239 echo $ECHO_N "checking ${IKSEMEL_DIR}/include/iksemel.h presence... $ECHO_C" >&6; }
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <${IKSEMEL_DIR}/include/iksemel.h>
18247 _ACEOF
18248 if { (ac_try="$ac_cpp conftest.$ac_ext"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } >/dev/null && {
18261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 }; then
18264 ac_header_preproc=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_header_preproc=no
18272 rm -f conftest.err conftest.$ac_ext
18273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18274 echo "${ECHO_T}$ac_header_preproc" >&6; }
18276 # So? What about this header?
18277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18278 yes:no: )
18279 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18280 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&5
18282 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result" >&2;}
18283 ac_header_preproc=yes
18285 no:yes:* )
18286 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&5
18287 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: present but cannot be compiled" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&5
18289 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: check for missing prerequisite headers?" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&5
18291 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: see the Autoconf documentation" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18293 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18294 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&5
18295 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result" >&2;}
18296 { echo "$as_me:$LINENO: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&5
18297 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: in the future, the compiler will take precedence" >&2;}
18298 ( cat <<\_ASBOX
18299 ## ------------------------------- ##
18300 ## Report this to www.asterisk.org ##
18301 ## ------------------------------- ##
18302 _ASBOX
18303 ) | sed "s/^/$as_me: WARNING: /" >&2
18305 esac
18306 { echo "$as_me:$LINENO: checking for ${IKSEMEL_DIR}/include/iksemel.h" >&5
18307 echo $ECHO_N "checking for ${IKSEMEL_DIR}/include/iksemel.h... $ECHO_C" >&6; }
18308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311 eval "$as_ac_Header=\$ac_header_preproc"
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18319 IKSEMEL_HEADER_FOUND=1
18320 else
18321 IKSEMEL_HEADER_FOUND=0
18326 CPPFLAGS="${saved_cppflags}"
18327 else
18328 if test "xiksemel.h" != "x" ; then
18329 if test "${ac_cv_header_iksemel_h+set}" = set; then
18330 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18331 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18332 if test "${ac_cv_header_iksemel_h+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18336 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18337 else
18338 # Is the header compilable?
18339 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
18340 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h. */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 $ac_includes_default
18348 #include <iksemel.h>
18349 _ACEOF
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest.$ac_objext; then
18367 ac_header_compiler=yes
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_header_compiler=no
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18377 echo "${ECHO_T}$ac_header_compiler" >&6; }
18379 # Is the header present?
18380 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
18381 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
18382 cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h. */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 #include <iksemel.h>
18389 _ACEOF
18390 if { (ac_try="$ac_cpp conftest.$ac_ext"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394 esac
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } >/dev/null && {
18403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 }; then
18406 ac_header_preproc=yes
18407 else
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_header_preproc=no
18414 rm -f conftest.err conftest.$ac_ext
18415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18416 echo "${ECHO_T}$ac_header_preproc" >&6; }
18418 # So? What about this header?
18419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18420 yes:no: )
18421 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
18422 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
18424 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
18425 ac_header_preproc=yes
18427 no:yes:* )
18428 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
18429 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
18431 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
18433 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
18435 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
18437 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
18439 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
18440 ( cat <<\_ASBOX
18441 ## ------------------------------- ##
18442 ## Report this to www.asterisk.org ##
18443 ## ------------------------------- ##
18444 _ASBOX
18445 ) | sed "s/^/$as_me: WARNING: /" >&2
18447 esac
18448 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
18449 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
18450 if test "${ac_cv_header_iksemel_h+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453 ac_cv_header_iksemel_h=$ac_header_preproc
18455 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
18456 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
18459 if test $ac_cv_header_iksemel_h = yes; then
18460 IKSEMEL_HEADER_FOUND=1
18461 else
18462 IKSEMEL_HEADER_FOUND=0
18468 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
18469 if test -n "${IKSEMEL_MANDATORY}" ;
18470 then
18471 { echo "$as_me:$LINENO: ***" >&5
18472 echo "$as_me: ***" >&6;}
18473 { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
18474 echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
18475 { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
18476 echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
18477 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18478 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18479 exit 1
18481 IKSEMEL_LIB=""
18482 IKSEMEL_INCLUDE=""
18483 PBX_IKSEMEL=0
18484 else
18485 PBX_IKSEMEL=1
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_IKSEMEL 1
18489 _ACEOF
18492 elif test -n "${IKSEMEL_MANDATORY}";
18493 then
18494 { echo "$as_me:$LINENO: ***" >&5
18495 echo "$as_me: ***" >&6;}
18496 { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
18497 echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
18498 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18499 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
18501 echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
18502 exit 1
18507 if test "${PBX_IKSEMEL}" = 1; then
18509 if test "${USE_GNUTLS}" != "no"; then
18510 pbxlibdir=""
18511 if test "x${GNUTLS_DIR}" != "x"; then
18512 if test -d ${GNUTLS_DIR}/lib; then
18513 pbxlibdir="-L${GNUTLS_DIR}/lib"
18514 else
18515 pbxlibdir="-L${GNUTLS_DIR}"
18518 { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
18519 echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char gnutls_bye ();
18540 main ()
18542 return gnutls_bye ();
18544 return 0;
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext &&
18564 $as_test_x conftest$ac_exeext; then
18565 ac_cv_lib_gnutls_gnutls_bye=yes
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_gnutls_gnutls_bye=no
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
18579 if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
18580 AST_GNUTLS_FOUND=yes
18581 else
18582 AST_GNUTLS_FOUND=no
18586 if test "${AST_GNUTLS_FOUND}" = "yes"; then
18587 GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
18588 GNUTLS_HEADER_FOUND="1"
18589 if test "x${GNUTLS_DIR}" != "x"; then
18590 GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
18591 GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
18592 saved_cppflags="${CPPFLAGS}"
18593 CPPFLAGS="${CPPFLAGS} -I${GNUTLS_DIR}/include"
18594 if test "xgnutls/gnutls.h" != "x" ; then
18595 as_ac_Header=`echo "ac_cv_header_${GNUTLS_DIR}/include/gnutls/gnutls.h" | $as_tr_sh`
18596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18597 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18598 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 ac_res=`eval echo '${'$as_ac_Header'}'`
18603 { echo "$as_me:$LINENO: result: $ac_res" >&5
18604 echo "${ECHO_T}$ac_res" >&6; }
18605 else
18606 # Is the header compilable?
18607 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability" >&5
18608 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h usability... $ECHO_C" >&6; }
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 $ac_includes_default
18616 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18617 _ACEOF
18618 rm -f conftest.$ac_objext
18619 if { (ac_try="$ac_compile"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest.$ac_objext; then
18635 ac_header_compiler=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_header_compiler=no
18643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18645 echo "${ECHO_T}$ac_header_compiler" >&6; }
18647 # Is the header present?
18648 { echo "$as_me:$LINENO: checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence" >&5
18649 echo $ECHO_N "checking ${GNUTLS_DIR}/include/gnutls/gnutls.h presence... $ECHO_C" >&6; }
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 #include <${GNUTLS_DIR}/include/gnutls/gnutls.h>
18657 _ACEOF
18658 if { (ac_try="$ac_cpp conftest.$ac_ext"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18665 ac_status=$?
18666 grep -v '^ *+' conftest.er1 >conftest.err
18667 rm -f conftest.er1
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } >/dev/null && {
18671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 }; then
18674 ac_header_preproc=yes
18675 else
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 ac_header_preproc=no
18682 rm -f conftest.err conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18684 echo "${ECHO_T}$ac_header_preproc" >&6; }
18686 # So? What about this header?
18687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18688 yes:no: )
18689 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18690 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18691 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&5
18692 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18693 ac_header_preproc=yes
18695 no:yes:* )
18696 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&5
18697 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: present but cannot be compiled" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18699 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18700 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&5
18701 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18702 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18703 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18704 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18705 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18707 echo "$as_me: WARNING: ${GNUTLS_DIR}/include/gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18708 ( cat <<\_ASBOX
18709 ## ------------------------------- ##
18710 ## Report this to www.asterisk.org ##
18711 ## ------------------------------- ##
18712 _ASBOX
18713 ) | sed "s/^/$as_me: WARNING: /" >&2
18715 esac
18716 { echo "$as_me:$LINENO: checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h" >&5
18717 echo $ECHO_N "checking for ${GNUTLS_DIR}/include/gnutls/gnutls.h... $ECHO_C" >&6; }
18718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 eval "$as_ac_Header=\$ac_header_preproc"
18723 ac_res=`eval echo '${'$as_ac_Header'}'`
18724 { echo "$as_me:$LINENO: result: $ac_res" >&5
18725 echo "${ECHO_T}$ac_res" >&6; }
18728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18729 GNUTLS_HEADER_FOUND=1
18730 else
18731 GNUTLS_HEADER_FOUND=0
18736 CPPFLAGS="${saved_cppflags}"
18737 else
18738 if test "xgnutls/gnutls.h" != "x" ; then
18739 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18740 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18741 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18742 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18747 else
18748 # Is the header compilable?
18749 { echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
18750 echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
18751 cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h. */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 $ac_includes_default
18758 #include <gnutls/gnutls.h>
18759 _ACEOF
18760 rm -f conftest.$ac_objext
18761 if { (ac_try="$ac_compile"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest.$ac_objext; then
18777 ac_header_compiler=yes
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_header_compiler=no
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18787 echo "${ECHO_T}$ac_header_compiler" >&6; }
18789 # Is the header present?
18790 { echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
18791 echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 #include <gnutls/gnutls.h>
18799 _ACEOF
18800 if { (ac_try="$ac_cpp conftest.$ac_ext"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } >/dev/null && {
18813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 }; then
18816 ac_header_preproc=yes
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_header_preproc=no
18824 rm -f conftest.err conftest.$ac_ext
18825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6; }
18828 # So? What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18830 yes:no: )
18831 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the compiler's result" >&2;}
18835 ac_header_preproc=yes
18837 no:yes:* )
18838 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: gnutls/gnutls.h: present but cannot be compiled" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: gnutls/gnutls.h: check for missing prerequisite headers?" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: gnutls/gnutls.h: see the Autoconf documentation" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: gnutls/gnutls.h: section \"Present But Cannot Be Compiled\"" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
18850 ( cat <<\_ASBOX
18851 ## ------------------------------- ##
18852 ## Report this to www.asterisk.org ##
18853 ## ------------------------------- ##
18854 _ASBOX
18855 ) | sed "s/^/$as_me: WARNING: /" >&2
18857 esac
18858 { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
18859 echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
18860 if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863 ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
18865 { echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
18866 echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
18869 if test $ac_cv_header_gnutls_gnutls_h = yes; then
18870 GNUTLS_HEADER_FOUND=1
18871 else
18872 GNUTLS_HEADER_FOUND=0
18878 if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
18879 if test -n "${GNUTLS_MANDATORY}" ;
18880 then
18881 { echo "$as_me:$LINENO: ***" >&5
18882 echo "$as_me: ***" >&6;}
18883 { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
18884 echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
18885 { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
18886 echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
18887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18888 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18889 exit 1
18891 GNUTLS_LIB=""
18892 GNUTLS_INCLUDE=""
18893 PBX_GNUTLS=0
18894 else
18895 PBX_GNUTLS=1
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_GNUTLS 1
18899 _ACEOF
18902 elif test -n "${GNUTLS_MANDATORY}";
18903 then
18904 { echo "$as_me:$LINENO: ***" >&5
18905 echo "$as_me: ***" >&6;}
18906 { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
18907 echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
18908 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
18909 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
18910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
18911 echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
18912 exit 1
18918 if test "${USE_IMAP_TK}" != "no"; then
18919 saved_cppflags="${CPPFLAGS}"
18920 saved_libs="${LIBS}"
18921 switch_to_system_on_failure="no"
18922 if test "${IMAP_TK_DIR}" = ""; then
18923 IMAP_TK_DIR=`pwd`"/../imap-2004g"
18924 switch_to_system_on_failure="yes"
18926 if test "${IMAP_TK_DIR}" != "system"; then
18927 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
18928 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
18929 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
18930 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
18932 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
18933 imap_include="-I${IMAP_TK_DIR}/c-client"
18934 CPPFLAGS="${CPPFLAGS} ${imap_include}"
18935 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include "c-client.h"
18943 void mm_searched (MAILSTREAM *stream,unsigned long number)
18946 void mm_exists (MAILSTREAM *stream,unsigned long number)
18949 void mm_expunged (MAILSTREAM *stream,unsigned long number)
18952 void mm_flags (MAILSTREAM *stream,unsigned long number)
18955 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
18958 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18961 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
18964 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
18967 void mm_log (char *string,long errflg)
18970 void mm_dlog (char *string)
18973 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
18976 void mm_critical (MAILSTREAM *stream)
18979 void mm_nocritical (MAILSTREAM *stream)
18982 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
18985 void mm_fatal (char *string)
18989 main ()
18992 MAILSTREAM *foo = mail_open(NULL, "", 0);
18996 return 0;
18998 _ACEOF
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (ac_try="$ac_link"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_link") 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest$ac_exeext &&
19016 $as_test_x conftest$ac_exeext; then
19017 ac_cv_imap_tk="yes"
19018 else
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_cv_imap_tk="no"
19026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19027 conftest$ac_exeext conftest.$ac_ext
19028 if test "${ac_cv_imap_tk}" = "yes"; then
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h. */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 #include "c-client.h"
19036 void mm_searched (MAILSTREAM *stream,unsigned long number)
19039 void mm_exists (MAILSTREAM *stream,unsigned long number)
19042 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19045 void mm_flags (MAILSTREAM *stream,unsigned long number)
19048 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19051 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19054 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19057 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19060 void mm_log (char *string,long errflg)
19063 void mm_dlog (char *string)
19066 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19069 void mm_critical (MAILSTREAM *stream)
19072 void mm_nocritical (MAILSTREAM *stream)
19075 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19078 void mm_fatal (char *string)
19082 main ()
19085 long check = mail_expunge_full(NULL, "", 0);
19089 return 0;
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_link") 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && {
19106 test -z "$ac_c_werror_flag" ||
19107 test ! -s conftest.err
19108 } && test -s conftest$ac_exeext &&
19109 $as_test_x conftest$ac_exeext; then
19110 ac_cv_imap_tk2006="yes"
19111 else
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_cv_imap_tk2006="no"
19119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19120 conftest$ac_exeext conftest.$ac_ext
19122 CPPFLAGS="${saved_cppflags}"
19123 LIBS="${saved_libs}"
19124 if test "${ac_cv_imap_tk}" = "no"; then
19125 { echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6; }
19127 if test "${switch_to_system_on_failure}" = "yes"; then
19128 IMAP_TK_DIR="system"
19129 else #This means they specified a directory. Search for a package installation there too
19130 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19131 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19132 CPPFLAGS="${saved_cppflags}"
19133 LIBS="${saved_libs}"
19134 imap_include="-I${IMAP_TK_DIR}/include"
19135 imap_ldflags="-L${IMAP_TK_DIR}/lib"
19136 imap_libs="-lc-client"
19137 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19138 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include "c-client.h"
19146 void mm_searched (MAILSTREAM *stream,unsigned long number)
19149 void mm_exists (MAILSTREAM *stream,unsigned long number)
19152 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19155 void mm_flags (MAILSTREAM *stream,unsigned long number)
19158 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19161 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19164 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19167 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19170 void mm_log (char *string,long errflg)
19173 void mm_dlog (char *string)
19176 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19179 void mm_critical (MAILSTREAM *stream)
19182 void mm_nocritical (MAILSTREAM *stream)
19185 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19188 void mm_fatal (char *string)
19192 main ()
19195 MAILSTREAM *foo = mail_open(NULL, "", 0);
19199 return 0;
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest$ac_exeext &&
19219 $as_test_x conftest$ac_exeext; then
19220 ac_cv_imap_tk="yes"
19221 else
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_imap_tk="no"
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19231 if test "${ac_cv_imap_tk}" = "yes"; then
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include "c-client.h"
19239 void mm_searched (MAILSTREAM *stream,unsigned long number)
19242 void mm_exists (MAILSTREAM *stream,unsigned long number)
19245 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19248 void mm_flags (MAILSTREAM *stream,unsigned long number)
19251 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19254 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19257 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19260 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19263 void mm_log (char *string,long errflg)
19266 void mm_dlog (char *string)
19269 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19272 void mm_critical (MAILSTREAM *stream)
19275 void mm_nocritical (MAILSTREAM *stream)
19278 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19281 void mm_fatal (char *string)
19285 main ()
19288 long check = mail_expunge_full(NULL, "", 0);
19292 return 0;
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300 esac
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && {
19309 test -z "$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 } && test -s conftest$ac_exeext &&
19312 $as_test_x conftest$ac_exeext; then
19313 ac_cv_imap_tk2006="yes"
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 ac_cv_imap_tk2006="no"
19322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 conftest$ac_exeext conftest.$ac_ext
19328 if test "${IMAP_TK_DIR}" = "system"; then
19329 #We will enter here if user specified "system" or if any of above checks failed
19330 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
19331 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
19332 CPPFLAGS="${saved_cppflags}"
19333 LIBS="${saved_libs}"
19334 imap_ldflags=""
19335 imap_libs="-lc-client"
19336 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
19337 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19338 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <stdio.h>
19346 #include <imap/c-client.h>
19347 void mm_searched (MAILSTREAM *stream,unsigned long number)
19350 void mm_exists (MAILSTREAM *stream,unsigned long number)
19353 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19356 void mm_flags (MAILSTREAM *stream,unsigned long number)
19359 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19362 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19365 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19368 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19371 void mm_log (char *string,long errflg)
19374 void mm_dlog (char *string)
19377 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19380 void mm_critical (MAILSTREAM *stream)
19383 void mm_nocritical (MAILSTREAM *stream)
19386 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19389 void mm_fatal (char *string)
19393 main ()
19396 MAILSTREAM *foo = mail_open(NULL, "", 0);
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext &&
19420 $as_test_x conftest$ac_exeext; then
19421 ac_cv_imap_tk="yes"
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_imap_tk="no"
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431 conftest$ac_exeext conftest.$ac_ext
19432 if test "${ac_cv_imap_tk}" = "yes"; then
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h. */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <stdio.h>
19440 #include <imap/c-client.h>
19441 void mm_searched (MAILSTREAM *stream,unsigned long number)
19444 void mm_exists (MAILSTREAM *stream,unsigned long number)
19447 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19450 void mm_flags (MAILSTREAM *stream,unsigned long number)
19453 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19456 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19459 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19462 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19465 void mm_log (char *string,long errflg)
19468 void mm_dlog (char *string)
19471 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19474 void mm_critical (MAILSTREAM *stream)
19477 void mm_nocritical (MAILSTREAM *stream)
19480 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19483 void mm_fatal (char *string)
19487 main ()
19490 long check = mail_expunge_full(NULL, "", 0);
19494 return 0;
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_link") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest$ac_exeext &&
19514 $as_test_x conftest$ac_exeext; then
19515 ac_cv_imap_tk2006="yes"
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_imap_tk2006="no"
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525 conftest$ac_exeext conftest.$ac_ext
19526 else #looking in imap directory didn't work, try c-client
19527 imap_ldflags=""
19528 imap_libs="-lc-client"
19529 imap_include="-DUSE_SYSTEM_CCLIENT"
19530 CPPFLAGS="${saved_cppflags}"
19531 LIBS="${saved_libs}"
19532 CPPFLAGS="${CPPFLAGS} ${imap_include}"
19533 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <stdio.h>
19541 #include <c-client/c-client.h>
19542 void mm_searched (MAILSTREAM *stream,unsigned long number)
19545 void mm_exists (MAILSTREAM *stream,unsigned long number)
19548 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19551 void mm_flags (MAILSTREAM *stream,unsigned long number)
19554 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19557 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19560 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19563 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19566 void mm_log (char *string,long errflg)
19569 void mm_dlog (char *string)
19572 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19575 void mm_critical (MAILSTREAM *stream)
19578 void mm_nocritical (MAILSTREAM *stream)
19581 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19584 void mm_fatal (char *string)
19588 main ()
19591 MAILSTREAM *foo = mail_open(NULL, "", 0);
19595 return 0;
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 ac_cv_imap_tk="yes"
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_cv_imap_tk="no"
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626 conftest$ac_exeext conftest.$ac_ext
19627 if test "${ac_cv_imap_tk}" = "yes"; then
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <stdio.h>
19635 #include <c-client/c-client.h>
19636 void mm_searched (MAILSTREAM *stream,unsigned long number)
19639 void mm_exists (MAILSTREAM *stream,unsigned long number)
19642 void mm_expunged (MAILSTREAM *stream,unsigned long number)
19645 void mm_flags (MAILSTREAM *stream,unsigned long number)
19648 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
19651 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19654 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
19657 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
19660 void mm_log (char *string,long errflg)
19663 void mm_dlog (char *string)
19666 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
19669 void mm_critical (MAILSTREAM *stream)
19672 void mm_nocritical (MAILSTREAM *stream)
19675 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
19678 void mm_fatal (char *string)
19682 main ()
19685 long check = mail_expunge_full(NULL, "", 0);
19689 return 0;
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest$ac_exeext &&
19709 $as_test_x conftest$ac_exeext; then
19710 ac_cv_imap_tk2006="yes"
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_cv_imap_tk2006="no"
19719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19720 conftest$ac_exeext conftest.$ac_ext
19724 if test "${ac_cv_imap_tk}" = "yes"; then
19725 { echo "$as_me:$LINENO: result: yes" >&5
19726 echo "${ECHO_T}yes" >&6; }
19727 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
19728 IMAP_TK_INCLUDE="${imap_include}"
19729 PBX_IMAP_TK=1
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_IMAP_TK 1
19733 _ACEOF
19735 if test "${ac_cv_imap_tk2006}" = "yes"; then
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_IMAP_TK2006 1
19739 _ACEOF
19742 elif test -n "${IMAP_TK_MANDATORY}"; then
19743 { echo "$as_me:$LINENO: result: no" >&5
19744 echo "${ECHO_T}no" >&6; }
19745 { echo "$as_me:$LINENO: ***" >&5
19746 echo "$as_me: ***" >&6;}
19747 { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
19748 echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
19749 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
19750 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
19751 { echo "$as_me:$LINENO: *** including --without-imap." >&5
19752 echo "$as_me: *** including --without-imap." >&6;}
19753 exit 1
19754 else
19755 { echo "$as_me:$LINENO: result: no" >&5
19756 echo "${ECHO_T}no" >&6; }
19758 CPPFLAGS="${saved_cppflags}"
19759 LIBS="${saved_libs}"
19762 # Needed by unixodbc
19764 if test "${USE_LTDL}" != "no"; then
19765 pbxlibdir=""
19766 if test "x${LTDL_DIR}" != "x"; then
19767 if test -d ${LTDL_DIR}/lib; then
19768 pbxlibdir="-L${LTDL_DIR}/lib"
19769 else
19770 pbxlibdir="-L${LTDL_DIR}"
19773 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
19774 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
19775 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-lltdl ${pbxlibdir} $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19790 #ifdef __cplusplus
19791 extern "C"
19792 #endif
19793 char lt_dlinit ();
19795 main ()
19797 return lt_dlinit ();
19799 return 0;
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_ltdl_lt_dlinit=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_ltdl_lt_dlinit=no
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
19833 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
19834 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
19835 AST_LTDL_FOUND=yes
19836 else
19837 AST_LTDL_FOUND=no
19841 if test "${AST_LTDL_FOUND}" = "yes"; then
19842 LTDL_LIB="-lltdl "
19843 LTDL_HEADER_FOUND="1"
19844 if test "x${LTDL_DIR}" != "x"; then
19845 LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
19846 LTDL_INCLUDE="-I${LTDL_DIR}/include"
19847 saved_cppflags="${CPPFLAGS}"
19848 CPPFLAGS="${CPPFLAGS} -I${LTDL_DIR}/include"
19849 if test "xltdl.h" != "x" ; then
19850 as_ac_Header=`echo "ac_cv_header_${LTDL_DIR}/include/ltdl.h" | $as_tr_sh`
19851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19852 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19853 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 ac_res=`eval echo '${'$as_ac_Header'}'`
19858 { echo "$as_me:$LINENO: result: $ac_res" >&5
19859 echo "${ECHO_T}$ac_res" >&6; }
19860 else
19861 # Is the header compilable?
19862 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h usability" >&5
19863 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h usability... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 #include <${LTDL_DIR}/include/ltdl.h>
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
19890 ac_header_compiler=yes
19891 else
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_header_compiler=no
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19900 echo "${ECHO_T}$ac_header_compiler" >&6; }
19902 # Is the header present?
19903 { echo "$as_me:$LINENO: checking ${LTDL_DIR}/include/ltdl.h presence" >&5
19904 echo $ECHO_N "checking ${LTDL_DIR}/include/ltdl.h presence... $ECHO_C" >&6; }
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <${LTDL_DIR}/include/ltdl.h>
19912 _ACEOF
19913 if { (ac_try="$ac_cpp conftest.$ac_ext"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } >/dev/null && {
19926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 }; then
19929 ac_header_preproc=yes
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_preproc=no
19937 rm -f conftest.err conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19939 echo "${ECHO_T}$ac_header_preproc" >&6; }
19941 # So? What about this header?
19942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19943 yes:no: )
19944 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19945 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&5
19947 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the compiler's result" >&2;}
19948 ac_header_preproc=yes
19950 no:yes:* )
19951 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&5
19952 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: present but cannot be compiled" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&5
19954 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: check for missing prerequisite headers?" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&5
19956 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: see the Autoconf documentation" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
19958 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&5
19960 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: proceeding with the preprocessor's result" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&5
19962 echo "$as_me: WARNING: ${LTDL_DIR}/include/ltdl.h: in the future, the compiler will take precedence" >&2;}
19963 ( cat <<\_ASBOX
19964 ## ------------------------------- ##
19965 ## Report this to www.asterisk.org ##
19966 ## ------------------------------- ##
19967 _ASBOX
19968 ) | sed "s/^/$as_me: WARNING: /" >&2
19970 esac
19971 { echo "$as_me:$LINENO: checking for ${LTDL_DIR}/include/ltdl.h" >&5
19972 echo $ECHO_N "checking for ${LTDL_DIR}/include/ltdl.h... $ECHO_C" >&6; }
19973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976 eval "$as_ac_Header=\$ac_header_preproc"
19978 ac_res=`eval echo '${'$as_ac_Header'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19984 LTDL_HEADER_FOUND=1
19985 else
19986 LTDL_HEADER_FOUND=0
19991 CPPFLAGS="${saved_cppflags}"
19992 else
19993 if test "xltdl.h" != "x" ; then
19994 if test "${ac_cv_header_ltdl_h+set}" = set; then
19995 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
19996 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
19997 if test "${ac_cv_header_ltdl_h+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20001 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20002 else
20003 # Is the header compilable?
20004 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
20005 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20013 #include <ltdl.h>
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest.$ac_objext; then
20032 ac_header_compiler=yes
20033 else
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_header_compiler=no
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20042 echo "${ECHO_T}$ac_header_compiler" >&6; }
20044 # Is the header present?
20045 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
20046 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
20047 cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h. */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20053 #include <ltdl.h>
20054 _ACEOF
20055 if { (ac_try="$ac_cpp conftest.$ac_ext"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } >/dev/null && {
20068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 }; then
20071 ac_header_preproc=yes
20072 else
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_header_preproc=no
20079 rm -f conftest.err conftest.$ac_ext
20080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20081 echo "${ECHO_T}$ac_header_preproc" >&6; }
20083 # So? What about this header?
20084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20085 yes:no: )
20086 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20087 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
20089 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
20090 ac_header_preproc=yes
20092 no:yes:* )
20093 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
20094 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
20096 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
20098 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
20100 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
20102 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
20104 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
20105 ( cat <<\_ASBOX
20106 ## ------------------------------- ##
20107 ## Report this to www.asterisk.org ##
20108 ## ------------------------------- ##
20109 _ASBOX
20110 ) | sed "s/^/$as_me: WARNING: /" >&2
20112 esac
20113 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
20114 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
20115 if test "${ac_cv_header_ltdl_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118 ac_cv_header_ltdl_h=$ac_header_preproc
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20121 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
20124 if test $ac_cv_header_ltdl_h = yes; then
20125 LTDL_HEADER_FOUND=1
20126 else
20127 LTDL_HEADER_FOUND=0
20133 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
20134 if test -n "${LTDL_MANDATORY}" ;
20135 then
20136 { echo "$as_me:$LINENO: ***" >&5
20137 echo "$as_me: ***" >&6;}
20138 { echo "$as_me:$LINENO: *** It appears that you do not have the ltdl development package installed." >&5
20139 echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
20140 { echo "$as_me:$LINENO: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
20141 echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
20142 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20143 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20144 exit 1
20146 LTDL_LIB=""
20147 LTDL_INCLUDE=""
20148 PBX_LTDL=0
20149 else
20150 PBX_LTDL=1
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_LTDL 1
20154 _ACEOF
20157 elif test -n "${LTDL_MANDATORY}";
20158 then
20159 { echo "$as_me:$LINENO: ***" >&5
20160 echo "$as_me: ***" >&6;}
20161 { echo "$as_me:$LINENO: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
20162 echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
20163 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20164 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20165 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
20166 echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
20167 exit 1
20172 ac_ext=cpp
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20179 if test "${USE_KDE}" != "no"; then
20180 { echo "$as_me:$LINENO: checking for crashHandler in -lkdecore" >&5
20181 echo $ECHO_N "checking for crashHandler in -lkdecore... $ECHO_C" >&6; }
20182 saved_libs="${LIBS}"
20183 saved_cppflags="${CPPFLAGS}"
20184 CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
20185 if test -d ${KDE_DIR}/lib; then
20186 kdelibdir="${KDE_DIR}/lib"
20187 else
20188 kdelibdir="${KDE_DIR}"
20190 LIBS="${LIBS} -L${kdelibdir} -lkdecore"
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include "kcrash.h"
20201 main ()
20203 KCrash::defaultCrashHandler(1);
20205 return 0;
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_cxx_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest$ac_exeext &&
20226 $as_test_x conftest$ac_exeext; then
20227 ac_cv_lib_kde_crash="yes"
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_kde_crash="no"
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20238 LIBS="${saved_libs}"
20239 CPPFLAGS="${saved_cppflags}"
20241 if test "${ac_cv_lib_kde_crash}" = "yes"; then
20242 { echo "$as_me:$LINENO: result: yes" >&5
20243 echo "${ECHO_T}yes" >&6; }
20244 KDE_LIB="-lkdecore -lkdeui"
20245 if test "${KDE_DIR}" != ""; then
20246 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
20247 KDE_INCLUDE="-I${KDE_DIR}/include"
20249 PBX_KDE=1
20251 cat >>confdefs.h <<\_ACEOF
20252 #define HAVE_LIBKDE 1
20253 _ACEOF
20255 elif test -n "${KDE_MANDATORY}"; then
20256 { echo "$as_me:$LINENO: result: no" >&5
20257 echo "${ECHO_T}no" >&6; }
20258 { echo "$as_me:$LINENO: ***" >&5
20259 echo "$as_me: ***" >&6;}
20260 { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
20261 echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
20262 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20263 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20264 { echo "$as_me:$LINENO: *** including --without-kde." >&5
20265 echo "$as_me: *** including --without-kde." >&6;}
20266 exit 1
20267 else
20268 { echo "$as_me:$LINENO: result: no" >&5
20269 echo "${ECHO_T}no" >&6; }
20272 if test "${PBX_KDE}" = 1; then
20273 if test -n "$ac_tool_prefix"; then
20274 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
20275 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
20276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20278 if test "${ac_cv_path_KDEINIT+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281 case $KDEINIT in
20282 [\\/]* | ?:[\\/]*)
20283 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
20286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20287 for as_dir in $PATH
20289 IFS=$as_save_IFS
20290 test -z "$as_dir" && as_dir=.
20291 for ac_exec_ext in '' $ac_executable_extensions; do
20292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20293 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20295 break 2
20297 done
20298 done
20299 IFS=$as_save_IFS
20302 esac
20304 KDEINIT=$ac_cv_path_KDEINIT
20305 if test -n "$KDEINIT"; then
20306 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
20307 echo "${ECHO_T}$KDEINIT" >&6; }
20308 else
20309 { echo "$as_me:$LINENO: result: no" >&5
20310 echo "${ECHO_T}no" >&6; }
20315 if test -z "$ac_cv_path_KDEINIT"; then
20316 ac_pt_KDEINIT=$KDEINIT
20317 # Extract the first word of "kdeinit", so it can be a program name with args.
20318 set dummy kdeinit; ac_word=$2
20319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20321 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 case $ac_pt_KDEINIT in
20325 [\\/]* | ?:[\\/]*)
20326 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
20329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20330 for as_dir in $PATH
20332 IFS=$as_save_IFS
20333 test -z "$as_dir" && as_dir=.
20334 for ac_exec_ext in '' $ac_executable_extensions; do
20335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20336 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
20337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20338 break 2
20340 done
20341 done
20342 IFS=$as_save_IFS
20345 esac
20347 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
20348 if test -n "$ac_pt_KDEINIT"; then
20349 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
20350 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
20351 else
20352 { echo "$as_me:$LINENO: result: no" >&5
20353 echo "${ECHO_T}no" >&6; }
20356 if test "x$ac_pt_KDEINIT" = x; then
20357 KDEINIT="No"
20358 else
20359 case $cross_compiling:$ac_tool_warned in
20360 yes:)
20361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20362 whose name does not start with the host triplet. If you think this
20363 configuration is useful to you, please write to autoconf@gnu.org." >&5
20364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20365 whose name does not start with the host triplet. If you think this
20366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20367 ac_tool_warned=yes ;;
20368 esac
20369 KDEINIT=$ac_pt_KDEINIT
20371 else
20372 KDEINIT="$ac_cv_path_KDEINIT"
20375 if test ! x"${KDEINIT}" = xNo; then
20376 KDEDIR=$(${DIRNAME} ${KDEINIT})
20377 KDEDIR=$(${DIRNAME} ${KDEDIR})
20382 ac_ext=c
20383 ac_cpp='$CPP $CPPFLAGS'
20384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390 if test "${USE_MISDN}" != "no"; then
20391 pbxlibdir=""
20392 if test "x${MISDN_DIR}" != "x"; then
20393 if test -d ${MISDN_DIR}/lib; then
20394 pbxlibdir="-L${MISDN_DIR}/lib"
20395 else
20396 pbxlibdir="-L${MISDN_DIR}"
20399 { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
20400 echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404 ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lmISDN ${pbxlibdir} $LIBS"
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char mISDN_open ();
20421 main ()
20423 return mISDN_open ();
20425 return 0;
20427 _ACEOF
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
20446 ac_cv_lib_mISDN_mISDN_open=yes
20447 else
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ac_cv_lib_mISDN_mISDN_open=no
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20458 { echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
20459 echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
20460 if test $ac_cv_lib_mISDN_mISDN_open = yes; then
20461 AST_MISDN_FOUND=yes
20462 else
20463 AST_MISDN_FOUND=no
20467 if test "${AST_MISDN_FOUND}" = "yes"; then
20468 MISDN_LIB="-lmISDN "
20469 MISDN_HEADER_FOUND="1"
20470 if test "x${MISDN_DIR}" != "x"; then
20471 MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
20472 MISDN_INCLUDE="-I${MISDN_DIR}/include"
20473 saved_cppflags="${CPPFLAGS}"
20474 CPPFLAGS="${CPPFLAGS} -I${MISDN_DIR}/include"
20475 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20476 as_ac_Header=`echo "ac_cv_header_${MISDN_DIR}/include/mISDNuser/mISDNlib.h" | $as_tr_sh`
20477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20478 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20479 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 ac_res=`eval echo '${'$as_ac_Header'}'`
20484 { echo "$as_me:$LINENO: result: $ac_res" >&5
20485 echo "${ECHO_T}$ac_res" >&6; }
20486 else
20487 # Is the header compilable?
20488 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability" >&5
20489 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h. */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 $ac_includes_default
20497 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 ac_header_compiler=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_header_compiler=no
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20526 echo "${ECHO_T}$ac_header_compiler" >&6; }
20528 # Is the header present?
20529 { echo "$as_me:$LINENO: checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence" >&5
20530 echo $ECHO_N "checking ${MISDN_DIR}/include/mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <${MISDN_DIR}/include/mISDNuser/mISDNlib.h>
20538 _ACEOF
20539 if { (ac_try="$ac_cpp conftest.$ac_ext"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } >/dev/null && {
20552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20554 }; then
20555 ac_header_preproc=yes
20556 else
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_header_preproc=no
20563 rm -f conftest.err conftest.$ac_ext
20564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565 echo "${ECHO_T}$ac_header_preproc" >&6; }
20567 # So? What about this header?
20568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20569 yes:no: )
20570 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20571 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20573 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc=yes
20576 no:yes:* )
20577 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20578 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20580 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20582 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20584 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20586 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20588 echo "$as_me: WARNING: ${MISDN_DIR}/include/mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20589 ( cat <<\_ASBOX
20590 ## ------------------------------- ##
20591 ## Report this to www.asterisk.org ##
20592 ## ------------------------------- ##
20593 _ASBOX
20594 ) | sed "s/^/$as_me: WARNING: /" >&2
20596 esac
20597 { echo "$as_me:$LINENO: checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h" >&5
20598 echo $ECHO_N "checking for ${MISDN_DIR}/include/mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 eval "$as_ac_Header=\$ac_header_preproc"
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605 { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20610 MISDN_HEADER_FOUND=1
20611 else
20612 MISDN_HEADER_FOUND=0
20617 CPPFLAGS="${saved_cppflags}"
20618 else
20619 if test "xmISDNuser/mISDNlib.h" != "x" ; then
20620 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20621 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20622 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20623 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20627 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20628 else
20629 # Is the header compilable?
20630 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
20631 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h. */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 $ac_includes_default
20639 #include <mISDNuser/mISDNlib.h>
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 ac_header_compiler=yes
20659 else
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_header_compiler=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20668 echo "${ECHO_T}$ac_header_compiler" >&6; }
20670 # Is the header present?
20671 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
20672 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 #include <mISDNuser/mISDNlib.h>
20680 _ACEOF
20681 if { (ac_try="$ac_cpp conftest.$ac_ext"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } >/dev/null && {
20694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 }; then
20697 ac_header_preproc=yes
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_header_preproc=no
20705 rm -f conftest.err conftest.$ac_ext
20706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707 echo "${ECHO_T}$ac_header_preproc" >&6; }
20709 # So? What about this header?
20710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 yes:no: )
20712 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
20715 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
20718 no:yes:* )
20719 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
20720 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
20722 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
20724 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
20726 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
20728 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
20730 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
20731 ( cat <<\_ASBOX
20732 ## ------------------------------- ##
20733 ## Report this to www.asterisk.org ##
20734 ## ------------------------------- ##
20735 _ASBOX
20736 ) | sed "s/^/$as_me: WARNING: /" >&2
20738 esac
20739 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
20740 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
20741 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
20746 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
20747 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
20750 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
20751 MISDN_HEADER_FOUND=1
20752 else
20753 MISDN_HEADER_FOUND=0
20759 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
20760 if test -n "${MISDN_MANDATORY}" ;
20761 then
20762 { echo "$as_me:$LINENO: ***" >&5
20763 echo "$as_me: ***" >&6;}
20764 { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
20765 echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
20766 { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
20767 echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
20768 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20769 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20770 exit 1
20772 MISDN_LIB=""
20773 MISDN_INCLUDE=""
20774 PBX_MISDN=0
20775 else
20776 PBX_MISDN=1
20778 cat >>confdefs.h <<_ACEOF
20779 #define HAVE_MISDN 1
20780 _ACEOF
20783 elif test -n "${MISDN_MANDATORY}";
20784 then
20785 { echo "$as_me:$LINENO: ***" >&5
20786 echo "$as_me: ***" >&6;}
20787 { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
20788 echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
20789 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
20790 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
20791 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
20792 echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
20793 exit 1
20798 if test "${PBX_MISDN}" = 1; then
20800 if test "${USE_ISDNNET}" != "no"; then
20801 pbxlibdir=""
20802 if test "x${ISDNNET_DIR}" != "x"; then
20803 if test -d ${ISDNNET_DIR}/lib; then
20804 pbxlibdir="-L${ISDNNET_DIR}/lib"
20805 else
20806 pbxlibdir="-L${ISDNNET_DIR}"
20809 { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
20810 echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
20811 if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814 ac_check_lib_save_LIBS=$LIBS
20815 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 /* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 char init_manager ();
20831 main ()
20833 return init_manager ();
20835 return 0;
20837 _ACEOF
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20843 esac
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && {
20852 test -z "$ac_c_werror_flag" ||
20853 test ! -s conftest.err
20854 } && test -s conftest$ac_exeext &&
20855 $as_test_x conftest$ac_exeext; then
20856 ac_cv_lib_isdnnet_init_manager=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_lib_isdnnet_init_manager=no
20864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20865 conftest$ac_exeext conftest.$ac_ext
20866 LIBS=$ac_check_lib_save_LIBS
20868 { echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
20869 echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
20870 if test $ac_cv_lib_isdnnet_init_manager = yes; then
20871 AST_ISDNNET_FOUND=yes
20872 else
20873 AST_ISDNNET_FOUND=no
20877 if test "${AST_ISDNNET_FOUND}" = "yes"; then
20878 ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
20879 ISDNNET_HEADER_FOUND="1"
20880 if test "x${ISDNNET_DIR}" != "x"; then
20881 ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
20882 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
20883 saved_cppflags="${CPPFLAGS}"
20884 CPPFLAGS="${CPPFLAGS} -I${ISDNNET_DIR}/include"
20885 if test "xmISDNuser/isdn_net.h" != "x" ; then
20886 as_ac_Header=`echo "ac_cv_header_${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" | $as_tr_sh`
20887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20888 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
20889 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
20890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_res=`eval echo '${'$as_ac_Header'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20896 else
20897 # Is the header compilable?
20898 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability" >&5
20899 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h. */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20907 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 ac_header_compiler=yes
20927 else
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_header_compiler=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6; }
20938 # Is the header present?
20939 { echo "$as_me:$LINENO: checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence" >&5
20940 echo $ECHO_N "checking ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h. */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <${ISDNNET_DIR}/include/mISDNuser/isdn_net.h>
20948 _ACEOF
20949 if { (ac_try="$ac_cpp conftest.$ac_ext"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } >/dev/null && {
20962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 }; then
20965 ac_header_preproc=yes
20966 else
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_header_preproc=no
20973 rm -f conftest.err conftest.$ac_ext
20974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20975 echo "${ECHO_T}$ac_header_preproc" >&6; }
20977 # So? What about this header?
20978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20979 yes:no: )
20980 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
20981 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
20983 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
20984 ac_header_preproc=yes
20986 no:yes:* )
20987 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&5
20988 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
20990 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
20992 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
20994 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
20996 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
20998 echo "$as_me: WARNING: ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
20999 ( cat <<\_ASBOX
21000 ## ------------------------------- ##
21001 ## Report this to www.asterisk.org ##
21002 ## ------------------------------- ##
21003 _ASBOX
21004 ) | sed "s/^/$as_me: WARNING: /" >&2
21006 esac
21007 { echo "$as_me:$LINENO: checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h" >&5
21008 echo $ECHO_N "checking for ${ISDNNET_DIR}/include/mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 eval "$as_ac_Header=\$ac_header_preproc"
21014 ac_res=`eval echo '${'$as_ac_Header'}'`
21015 { echo "$as_me:$LINENO: result: $ac_res" >&5
21016 echo "${ECHO_T}$ac_res" >&6; }
21019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21020 ISDNNET_HEADER_FOUND=1
21021 else
21022 ISDNNET_HEADER_FOUND=0
21027 CPPFLAGS="${saved_cppflags}"
21028 else
21029 if test "xmISDNuser/isdn_net.h" != "x" ; then
21030 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21031 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21032 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21033 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21037 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21038 else
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
21041 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <mISDNuser/isdn_net.h>
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_compiler=no
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
21082 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <mISDNuser/isdn_net.h>
21090 _ACEOF
21091 if { (ac_try="$ac_cpp conftest.$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } >/dev/null && {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 }; then
21107 ac_header_preproc=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_header_preproc=no
21115 rm -f conftest.err conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21121 yes:no: )
21122 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
21123 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
21125 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
21126 ac_header_preproc=yes
21128 no:yes:* )
21129 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
21130 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
21132 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
21134 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
21136 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
21138 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
21140 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
21141 ( cat <<\_ASBOX
21142 ## ------------------------------- ##
21143 ## Report this to www.asterisk.org ##
21144 ## ------------------------------- ##
21145 _ASBOX
21146 ) | sed "s/^/$as_me: WARNING: /" >&2
21148 esac
21149 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
21150 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
21151 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
21156 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
21157 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
21160 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
21161 ISDNNET_HEADER_FOUND=1
21162 else
21163 ISDNNET_HEADER_FOUND=0
21169 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
21170 if test -n "${ISDNNET_MANDATORY}" ;
21171 then
21172 { echo "$as_me:$LINENO: ***" >&5
21173 echo "$as_me: ***" >&6;}
21174 { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
21175 echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
21176 { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
21177 echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
21178 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21179 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21180 exit 1
21182 ISDNNET_LIB=""
21183 ISDNNET_INCLUDE=""
21184 PBX_ISDNNET=0
21185 else
21186 PBX_ISDNNET=1
21188 cat >>confdefs.h <<_ACEOF
21189 #define HAVE_ISDNNET 1
21190 _ACEOF
21193 elif test -n "${ISDNNET_MANDATORY}";
21194 then
21195 { echo "$as_me:$LINENO: ***" >&5
21196 echo "$as_me: ***" >&6;}
21197 { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
21198 echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
21199 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21200 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21201 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
21202 echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
21203 exit 1
21208 if test "${USE_SUPPSERV}" != "no"; then
21209 pbxlibdir=""
21210 if test "x${SUPPSERV_DIR}" != "x"; then
21211 if test -d ${SUPPSERV_DIR}/lib; then
21212 pbxlibdir="-L${SUPPSERV_DIR}/lib"
21213 else
21214 pbxlibdir="-L${SUPPSERV_DIR}"
21217 { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
21218 echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
21219 if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21231 /* Override any GCC internal prototype to avoid an error.
21232 Use char because int might match the return type of a GCC
21233 builtin and then its argument prototype would still apply. */
21234 #ifdef __cplusplus
21235 extern "C"
21236 #endif
21237 char encodeFac ();
21239 main ()
21241 return encodeFac ();
21243 return 0;
21245 _ACEOF
21246 rm -f conftest.$ac_objext conftest$ac_exeext
21247 if { (ac_try="$ac_link"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_link") 2>conftest.er1
21254 ac_status=$?
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest$ac_exeext &&
21263 $as_test_x conftest$ac_exeext; then
21264 ac_cv_lib_suppserv_encodeFac=yes
21265 else
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ac_cv_lib_suppserv_encodeFac=no
21272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21273 conftest$ac_exeext conftest.$ac_ext
21274 LIBS=$ac_check_lib_save_LIBS
21276 { echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
21277 echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
21278 if test $ac_cv_lib_suppserv_encodeFac = yes; then
21279 AST_SUPPSERV_FOUND=yes
21280 else
21281 AST_SUPPSERV_FOUND=no
21285 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
21286 SUPPSERV_LIB="-lsuppserv "
21287 SUPPSERV_HEADER_FOUND="1"
21288 if test "x${SUPPSERV_DIR}" != "x"; then
21289 SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
21290 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
21291 saved_cppflags="${CPPFLAGS}"
21292 CPPFLAGS="${CPPFLAGS} -I${SUPPSERV_DIR}/include"
21293 if test "xmISDNuser/suppserv.h" != "x" ; then
21294 as_ac_Header=`echo "ac_cv_header_${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" | $as_tr_sh`
21295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21296 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21297 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 ac_res=`eval echo '${'$as_ac_Header'}'`
21302 { echo "$as_me:$LINENO: result: $ac_res" >&5
21303 echo "${ECHO_T}$ac_res" >&6; }
21304 else
21305 # Is the header compilable?
21306 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability" >&5
21307 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21308 cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h. */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21315 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.$ac_objext; then
21334 ac_header_compiler=yes
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_header_compiler=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21344 echo "${ECHO_T}$ac_header_compiler" >&6; }
21346 # Is the header present?
21347 { echo "$as_me:$LINENO: checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence" >&5
21348 echo $ECHO_N "checking ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <${SUPPSERV_DIR}/include/mISDNuser/suppserv.h>
21356 _ACEOF
21357 if { (ac_try="$ac_cpp conftest.$ac_ext"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } >/dev/null && {
21370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21372 }; then
21373 ac_header_preproc=yes
21374 else
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ac_header_preproc=no
21381 rm -f conftest.err conftest.$ac_ext
21382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21383 echo "${ECHO_T}$ac_header_preproc" >&6; }
21385 # So? What about this header?
21386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21387 yes:no: )
21388 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21389 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21391 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21392 ac_header_preproc=yes
21394 no:yes:* )
21395 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&5
21396 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21398 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21400 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21402 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21404 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21406 echo "$as_me: WARNING: ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21407 ( cat <<\_ASBOX
21408 ## ------------------------------- ##
21409 ## Report this to www.asterisk.org ##
21410 ## ------------------------------- ##
21411 _ASBOX
21412 ) | sed "s/^/$as_me: WARNING: /" >&2
21414 esac
21415 { echo "$as_me:$LINENO: checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h" >&5
21416 echo $ECHO_N "checking for ${SUPPSERV_DIR}/include/mISDNuser/suppserv.h... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420 eval "$as_ac_Header=\$ac_header_preproc"
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423 { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21428 SUPPSERV_HEADER_FOUND=1
21429 else
21430 SUPPSERV_HEADER_FOUND=0
21435 CPPFLAGS="${saved_cppflags}"
21436 else
21437 if test "xmISDNuser/suppserv.h" != "x" ; then
21438 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21439 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21440 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21441 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21445 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21446 else
21447 # Is the header compilable?
21448 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
21449 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h. */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 $ac_includes_default
21457 #include <mISDNuser/suppserv.h>
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.$ac_objext; then
21476 ac_header_compiler=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_header_compiler=no
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486 echo "${ECHO_T}$ac_header_compiler" >&6; }
21488 # Is the header present?
21489 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
21490 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h. */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <mISDNuser/suppserv.h>
21498 _ACEOF
21499 if { (ac_try="$ac_cpp conftest.$ac_ext"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } >/dev/null && {
21512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21514 }; then
21515 ac_header_preproc=yes
21516 else
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_preproc=no
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21527 # So? What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21529 yes:no: )
21530 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
21534 ac_header_preproc=yes
21536 no:yes:* )
21537 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
21549 ( cat <<\_ASBOX
21550 ## ------------------------------- ##
21551 ## Report this to www.asterisk.org ##
21552 ## ------------------------------- ##
21553 _ASBOX
21554 ) | sed "s/^/$as_me: WARNING: /" >&2
21556 esac
21557 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
21558 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
21559 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
21564 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
21565 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
21568 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
21569 SUPPSERV_HEADER_FOUND=1
21570 else
21571 SUPPSERV_HEADER_FOUND=0
21577 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
21578 if test -n "${SUPPSERV_MANDATORY}" ;
21579 then
21580 { echo "$as_me:$LINENO: ***" >&5
21581 echo "$as_me: ***" >&6;}
21582 { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
21583 echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
21584 { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
21585 echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
21586 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21587 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21588 exit 1
21590 SUPPSERV_LIB=""
21591 SUPPSERV_INCLUDE=""
21592 PBX_SUPPSERV=0
21593 else
21594 PBX_SUPPSERV=1
21596 cat >>confdefs.h <<_ACEOF
21597 #define HAVE_SUPPSERV 1
21598 _ACEOF
21601 elif test -n "${SUPPSERV_MANDATORY}";
21602 then
21603 { echo "$as_me:$LINENO: ***" >&5
21604 echo "$as_me: ***" >&6;}
21605 { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
21606 echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
21607 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
21608 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
21609 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
21610 echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
21611 exit 1
21615 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21616 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21617 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21618 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21622 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21623 else
21624 # Is the header compilable?
21625 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
21626 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 $ac_includes_default
21634 #include <linux/mISDNdsp.h>
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_compile") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest.$ac_objext; then
21653 ac_header_compiler=yes
21654 else
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 ac_header_compiler=no
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21663 echo "${ECHO_T}$ac_header_compiler" >&6; }
21665 # Is the header present?
21666 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
21667 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <linux/mISDNdsp.h>
21675 _ACEOF
21676 if { (ac_try="$ac_cpp conftest.$ac_ext"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } >/dev/null && {
21689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 }; then
21692 ac_header_preproc=yes
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_header_preproc=no
21700 rm -f conftest.err conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6; }
21704 # So? What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21706 yes:no: )
21707 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
21711 ac_header_preproc=yes
21713 no:yes:* )
21714 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
21726 ( cat <<\_ASBOX
21727 ## ------------------------------- ##
21728 ## Report this to www.asterisk.org ##
21729 ## ------------------------------- ##
21730 _ASBOX
21731 ) | sed "s/^/$as_me: WARNING: /" >&2
21733 esac
21734 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
21735 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
21736 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
21741 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
21742 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
21745 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define MISDN_1_2 1
21749 _ACEOF
21757 if test "${USE_NBS}" != "no"; then
21758 pbxlibdir=""
21759 if test "x${NBS_DIR}" != "x"; then
21760 if test -d ${NBS_DIR}/lib; then
21761 pbxlibdir="-L${NBS_DIR}/lib"
21762 else
21763 pbxlibdir="-L${NBS_DIR}"
21766 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
21767 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
21768 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771 ac_check_lib_save_LIBS=$LIBS
21772 LIBS="-lnbs ${pbxlibdir} $LIBS"
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21780 /* Override any GCC internal prototype to avoid an error.
21781 Use char because int might match the return type of a GCC
21782 builtin and then its argument prototype would still apply. */
21783 #ifdef __cplusplus
21784 extern "C"
21785 #endif
21786 char nbs_connect ();
21788 main ()
21790 return nbs_connect ();
21792 return 0;
21794 _ACEOF
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (ac_try="$ac_link"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21800 esac
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_link") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext &&
21812 $as_test_x conftest$ac_exeext; then
21813 ac_cv_lib_nbs_nbs_connect=yes
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_lib_nbs_nbs_connect=no
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822 conftest$ac_exeext conftest.$ac_ext
21823 LIBS=$ac_check_lib_save_LIBS
21825 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
21826 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
21827 if test $ac_cv_lib_nbs_nbs_connect = yes; then
21828 AST_NBS_FOUND=yes
21829 else
21830 AST_NBS_FOUND=no
21834 if test "${AST_NBS_FOUND}" = "yes"; then
21835 NBS_LIB="-lnbs "
21836 NBS_HEADER_FOUND="1"
21837 if test "x${NBS_DIR}" != "x"; then
21838 NBS_LIB="${pbxlibdir} ${NBS_LIB}"
21839 NBS_INCLUDE="-I${NBS_DIR}/include"
21840 saved_cppflags="${CPPFLAGS}"
21841 CPPFLAGS="${CPPFLAGS} -I${NBS_DIR}/include"
21842 if test "xnbs.h" != "x" ; then
21843 as_ac_Header=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
21844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21845 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21846 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 ac_res=`eval echo '${'$as_ac_Header'}'`
21851 { echo "$as_me:$LINENO: result: $ac_res" >&5
21852 echo "${ECHO_T}$ac_res" >&6; }
21853 else
21854 # Is the header compilable?
21855 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
21856 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21864 #include <${NBS_DIR}/include/nbs.h>
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && {
21880 test -z "$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 } && test -s conftest.$ac_objext; then
21883 ac_header_compiler=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_compiler=no
21891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21893 echo "${ECHO_T}$ac_header_compiler" >&6; }
21895 # Is the header present?
21896 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
21897 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #include <${NBS_DIR}/include/nbs.h>
21905 _ACEOF
21906 if { (ac_try="$ac_cpp conftest.$ac_ext"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21913 ac_status=$?
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } >/dev/null && {
21919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 }; then
21922 ac_header_preproc=yes
21923 else
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_header_preproc=no
21930 rm -f conftest.err conftest.$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932 echo "${ECHO_T}$ac_header_preproc" >&6; }
21934 # So? What about this header?
21935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21936 yes:no: )
21937 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21938 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
21940 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
21941 ac_header_preproc=yes
21943 no:yes:* )
21944 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
21945 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
21947 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
21949 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
21951 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
21953 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
21955 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
21956 ( cat <<\_ASBOX
21957 ## ------------------------------- ##
21958 ## Report this to www.asterisk.org ##
21959 ## ------------------------------- ##
21960 _ASBOX
21961 ) | sed "s/^/$as_me: WARNING: /" >&2
21963 esac
21964 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
21965 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
21966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969 eval "$as_ac_Header=\$ac_header_preproc"
21971 ac_res=`eval echo '${'$as_ac_Header'}'`
21972 { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21977 NBS_HEADER_FOUND=1
21978 else
21979 NBS_HEADER_FOUND=0
21984 CPPFLAGS="${saved_cppflags}"
21985 else
21986 if test "xnbs.h" != "x" ; then
21987 if test "${ac_cv_header_nbs_h+set}" = set; then
21988 { echo "$as_me:$LINENO: checking for nbs.h" >&5
21989 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
21990 if test "${ac_cv_header_nbs_h+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
21994 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
21995 else
21996 # Is the header compilable?
21997 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
21998 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
21999 cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h. */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22006 #include <nbs.h>
22007 _ACEOF
22008 rm -f conftest.$ac_objext
22009 if { (ac_try="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_header_compiler=yes
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_compiler=no
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22035 echo "${ECHO_T}$ac_header_compiler" >&6; }
22037 # Is the header present?
22038 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
22039 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
22040 cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h. */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 #include <nbs.h>
22047 _ACEOF
22048 if { (ac_try="$ac_cpp conftest.$ac_ext"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22055 ac_status=$?
22056 grep -v '^ *+' conftest.er1 >conftest.err
22057 rm -f conftest.er1
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } >/dev/null && {
22061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 }; then
22064 ac_header_preproc=yes
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_header_preproc=no
22072 rm -f conftest.err conftest.$ac_ext
22073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074 echo "${ECHO_T}$ac_header_preproc" >&6; }
22076 # So? What about this header?
22077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078 yes:no: )
22079 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22080 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
22082 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
22083 ac_header_preproc=yes
22085 no:yes:* )
22086 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
22087 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
22089 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
22091 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
22093 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
22095 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
22097 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
22098 ( cat <<\_ASBOX
22099 ## ------------------------------- ##
22100 ## Report this to www.asterisk.org ##
22101 ## ------------------------------- ##
22102 _ASBOX
22103 ) | sed "s/^/$as_me: WARNING: /" >&2
22105 esac
22106 { echo "$as_me:$LINENO: checking for nbs.h" >&5
22107 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_nbs_h+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111 ac_cv_header_nbs_h=$ac_header_preproc
22113 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
22114 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
22117 if test $ac_cv_header_nbs_h = yes; then
22118 NBS_HEADER_FOUND=1
22119 else
22120 NBS_HEADER_FOUND=0
22126 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
22127 if test -n "${NBS_MANDATORY}" ;
22128 then
22129 { echo "$as_me:$LINENO: ***" >&5
22130 echo "$as_me: ***" >&6;}
22131 { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
22132 echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
22133 { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
22134 echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
22135 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22136 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22137 exit 1
22139 NBS_LIB=""
22140 NBS_INCLUDE=""
22141 PBX_NBS=0
22142 else
22143 PBX_NBS=1
22145 cat >>confdefs.h <<_ACEOF
22146 #define HAVE_NBS 1
22147 _ACEOF
22150 elif test -n "${NBS_MANDATORY}";
22151 then
22152 { echo "$as_me:$LINENO: ***" >&5
22153 echo "$as_me: ***" >&6;}
22154 { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
22155 echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
22156 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22157 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22158 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
22159 echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
22160 exit 1
22166 if test "${USE_NCURSES}" != "no"; then
22167 pbxlibdir=""
22168 if test "x${NCURSES_DIR}" != "x"; then
22169 if test -d ${NCURSES_DIR}/lib; then
22170 pbxlibdir="-L${NCURSES_DIR}/lib"
22171 else
22172 pbxlibdir="-L${NCURSES_DIR}"
22175 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
22176 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
22177 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 else
22180 ac_check_lib_save_LIBS=$LIBS
22181 LIBS="-lncurses ${pbxlibdir} $LIBS"
22182 cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h. */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22192 #ifdef __cplusplus
22193 extern "C"
22194 #endif
22195 char initscr ();
22197 main ()
22199 return initscr ();
22201 return 0;
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (ac_try="$ac_link"
22206 case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_link") 2>conftest.er1
22212 ac_status=$?
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest$ac_exeext &&
22221 $as_test_x conftest$ac_exeext; then
22222 ac_cv_lib_ncurses_initscr=yes
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_lib_ncurses_initscr=no
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22234 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
22235 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
22236 if test $ac_cv_lib_ncurses_initscr = yes; then
22237 AST_NCURSES_FOUND=yes
22238 else
22239 AST_NCURSES_FOUND=no
22243 if test "${AST_NCURSES_FOUND}" = "yes"; then
22244 NCURSES_LIB="-lncurses "
22245 NCURSES_HEADER_FOUND="1"
22246 if test "x${NCURSES_DIR}" != "x"; then
22247 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
22248 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
22249 saved_cppflags="${CPPFLAGS}"
22250 CPPFLAGS="${CPPFLAGS} -I${NCURSES_DIR}/include"
22251 if test "xcurses.h" != "x" ; then
22252 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" | $as_tr_sh`
22253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22254 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22255 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 ac_res=`eval echo '${'$as_ac_Header'}'`
22260 { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22262 else
22263 # Is the header compilable?
22264 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
22265 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 #include <${NCURSES_DIR}/include/curses.h>
22274 _ACEOF
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.$ac_objext; then
22292 ac_header_compiler=yes
22293 else
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_header_compiler=no
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22302 echo "${ECHO_T}$ac_header_compiler" >&6; }
22304 # Is the header present?
22305 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
22306 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
22307 cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h. */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 #include <${NCURSES_DIR}/include/curses.h>
22314 _ACEOF
22315 if { (ac_try="$ac_cpp conftest.$ac_ext"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } >/dev/null && {
22328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 }; then
22331 ac_header_preproc=yes
22332 else
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 ac_header_preproc=no
22339 rm -f conftest.err conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22341 echo "${ECHO_T}$ac_header_preproc" >&6; }
22343 # So? What about this header?
22344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22345 yes:no: )
22346 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22347 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
22349 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
22350 ac_header_preproc=yes
22352 no:yes:* )
22353 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
22354 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
22356 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
22358 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
22360 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
22362 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
22364 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
22365 ( cat <<\_ASBOX
22366 ## ------------------------------- ##
22367 ## Report this to www.asterisk.org ##
22368 ## ------------------------------- ##
22369 _ASBOX
22370 ) | sed "s/^/$as_me: WARNING: /" >&2
22372 esac
22373 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
22374 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
22375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378 eval "$as_ac_Header=\$ac_header_preproc"
22380 ac_res=`eval echo '${'$as_ac_Header'}'`
22381 { echo "$as_me:$LINENO: result: $ac_res" >&5
22382 echo "${ECHO_T}$ac_res" >&6; }
22385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22386 NCURSES_HEADER_FOUND=1
22387 else
22388 NCURSES_HEADER_FOUND=0
22393 CPPFLAGS="${saved_cppflags}"
22394 else
22395 if test "xcurses.h" != "x" ; then
22396 if test "${ac_cv_header_curses_h+set}" = set; then
22397 { echo "$as_me:$LINENO: checking for curses.h" >&5
22398 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22399 if test "${ac_cv_header_curses_h+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22403 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22404 else
22405 # Is the header compilable?
22406 { echo "$as_me:$LINENO: checking curses.h usability" >&5
22407 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 $ac_includes_default
22415 #include <curses.h>
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22425 ac_status=$?
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_header_compiler=yes
22435 else
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_header_compiler=no
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22444 echo "${ECHO_T}$ac_header_compiler" >&6; }
22446 # Is the header present?
22447 { echo "$as_me:$LINENO: checking curses.h presence" >&5
22448 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <curses.h>
22456 _ACEOF
22457 if { (ac_try="$ac_cpp conftest.$ac_ext"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } >/dev/null && {
22470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22472 }; then
22473 ac_header_preproc=yes
22474 else
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_header_preproc=no
22481 rm -f conftest.err conftest.$ac_ext
22482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22483 echo "${ECHO_T}$ac_header_preproc" >&6; }
22485 # So? What about this header?
22486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22487 yes:no: )
22488 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
22489 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
22491 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
22492 ac_header_preproc=yes
22494 no:yes:* )
22495 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
22496 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
22498 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
22500 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
22502 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
22503 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
22504 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
22506 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
22507 ( cat <<\_ASBOX
22508 ## ------------------------------- ##
22509 ## Report this to www.asterisk.org ##
22510 ## ------------------------------- ##
22511 _ASBOX
22512 ) | sed "s/^/$as_me: WARNING: /" >&2
22514 esac
22515 { echo "$as_me:$LINENO: checking for curses.h" >&5
22516 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
22517 if test "${ac_cv_header_curses_h+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520 ac_cv_header_curses_h=$ac_header_preproc
22522 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
22523 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
22526 if test $ac_cv_header_curses_h = yes; then
22527 NCURSES_HEADER_FOUND=1
22528 else
22529 NCURSES_HEADER_FOUND=0
22535 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
22536 if test -n "${NCURSES_MANDATORY}" ;
22537 then
22538 { echo "$as_me:$LINENO: ***" >&5
22539 echo "$as_me: ***" >&6;}
22540 { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
22541 echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
22542 { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
22543 echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
22544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22545 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22546 exit 1
22548 NCURSES_LIB=""
22549 NCURSES_INCLUDE=""
22550 PBX_NCURSES=0
22551 else
22552 PBX_NCURSES=1
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_NCURSES 1
22556 _ACEOF
22559 elif test -n "${NCURSES_MANDATORY}";
22560 then
22561 { echo "$as_me:$LINENO: ***" >&5
22562 echo "$as_me: ***" >&6;}
22563 { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
22564 echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
22565 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22566 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22567 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
22568 echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
22569 exit 1
22574 NETSNMP_CONFIG=No
22575 if test "${USE_NETSNMP}" != "no"; then
22576 if test "x${NETSNMP_DIR}" != "x"; then
22577 if test -n "$ac_tool_prefix"; then
22578 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22579 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22582 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585 case $NETSNMP_CONFIG in
22586 [\\/]* | ?:[\\/]*)
22587 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22591 for as_dir in ${NETSNMP_DIR}/bin
22593 IFS=$as_save_IFS
22594 test -z "$as_dir" && as_dir=.
22595 for ac_exec_ext in '' $ac_executable_extensions; do
22596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22597 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22599 break 2
22601 done
22602 done
22603 IFS=$as_save_IFS
22606 esac
22608 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22609 if test -n "$NETSNMP_CONFIG"; then
22610 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22611 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22612 else
22613 { echo "$as_me:$LINENO: result: no" >&5
22614 echo "${ECHO_T}no" >&6; }
22619 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22620 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22621 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22622 set dummy net-snmp-config; ac_word=$2
22623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22625 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 else
22628 case $ac_pt_NETSNMP_CONFIG in
22629 [\\/]* | ?:[\\/]*)
22630 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22634 for as_dir in ${NETSNMP_DIR}/bin
22636 IFS=$as_save_IFS
22637 test -z "$as_dir" && as_dir=.
22638 for ac_exec_ext in '' $ac_executable_extensions; do
22639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22640 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22642 break 2
22644 done
22645 done
22646 IFS=$as_save_IFS
22649 esac
22651 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22652 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22653 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22654 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22655 else
22656 { echo "$as_me:$LINENO: result: no" >&5
22657 echo "${ECHO_T}no" >&6; }
22660 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22661 NETSNMP_CONFIG="No"
22662 else
22663 case $cross_compiling:$ac_tool_warned in
22664 yes:)
22665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22666 whose name does not start with the host triplet. If you think this
22667 configuration is useful to you, please write to autoconf@gnu.org." >&5
22668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22669 whose name does not start with the host triplet. If you think this
22670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22671 ac_tool_warned=yes ;;
22672 esac
22673 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22675 else
22676 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22679 if test x"${NETSNMP_CONFIG}" = xNo; then
22680 { echo "$as_me:$LINENO: ***" >&5
22681 echo "$as_me: ***" >&6;}
22682 { echo "$as_me:$LINENO: *** net-snmp-config was not found in the path you specified:" >&5
22683 echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
22684 { echo "$as_me:$LINENO: *** ${NETSNMP_DIR}/bin" >&5
22685 echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
22686 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22687 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22688 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22689 echo "$as_me: *** including --without-netsnmp" >&6;}
22690 exit 1
22692 else
22693 if test -n "$ac_tool_prefix"; then
22694 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
22695 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
22696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22698 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701 case $NETSNMP_CONFIG in
22702 [\\/]* | ?:[\\/]*)
22703 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
22706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707 for as_dir in $PATH
22709 IFS=$as_save_IFS
22710 test -z "$as_dir" && as_dir=.
22711 for ac_exec_ext in '' $ac_executable_extensions; do
22712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22713 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22715 break 2
22717 done
22718 done
22719 IFS=$as_save_IFS
22722 esac
22724 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
22725 if test -n "$NETSNMP_CONFIG"; then
22726 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
22727 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
22728 else
22729 { echo "$as_me:$LINENO: result: no" >&5
22730 echo "${ECHO_T}no" >&6; }
22735 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22736 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22737 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22738 set dummy net-snmp-config; ac_word=$2
22739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22741 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744 case $ac_pt_NETSNMP_CONFIG in
22745 [\\/]* | ?:[\\/]*)
22746 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22750 for as_dir in $PATH
22752 IFS=$as_save_IFS
22753 test -z "$as_dir" && as_dir=.
22754 for ac_exec_ext in '' $ac_executable_extensions; do
22755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22756 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22758 break 2
22760 done
22761 done
22762 IFS=$as_save_IFS
22765 esac
22767 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22768 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22769 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
22770 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
22771 else
22772 { echo "$as_me:$LINENO: result: no" >&5
22773 echo "${ECHO_T}no" >&6; }
22776 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22777 NETSNMP_CONFIG="No"
22778 else
22779 case $cross_compiling:$ac_tool_warned in
22780 yes:)
22781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22782 whose name does not start with the host triplet. If you think this
22783 configuration is useful to you, please write to autoconf@gnu.org." >&5
22784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22785 whose name does not start with the host triplet. If you think this
22786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22787 ac_tool_warned=yes ;;
22788 esac
22789 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22791 else
22792 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22797 if test x"${NETSNMP_CONFIG}" != xNo; then
22798 NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
22800 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
22801 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
22802 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22804 else
22805 ac_check_lib_save_LIBS=$LIBS
22806 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
22807 cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h. */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22814 /* Override any GCC internal prototype to avoid an error.
22815 Use char because int might match the return type of a GCC
22816 builtin and then its argument prototype would still apply. */
22817 #ifdef __cplusplus
22818 extern "C"
22819 #endif
22820 char snmp_register_callback ();
22822 main ()
22824 return snmp_register_callback ();
22826 return 0;
22828 _ACEOF
22829 rm -f conftest.$ac_objext conftest$ac_exeext
22830 if { (ac_try="$ac_link"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_link") 2>conftest.er1
22837 ac_status=$?
22838 grep -v '^ *+' conftest.er1 >conftest.err
22839 rm -f conftest.er1
22840 cat conftest.err >&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && {
22843 test -z "$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22845 } && test -s conftest$ac_exeext &&
22846 $as_test_x conftest$ac_exeext; then
22847 ac_cv_lib_netsnmp_snmp_register_callback=yes
22848 else
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_cv_lib_netsnmp_snmp_register_callback=no
22855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22856 conftest$ac_exeext conftest.$ac_ext
22857 LIBS=$ac_check_lib_save_LIBS
22859 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
22860 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
22861 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
22863 cat >>confdefs.h <<_ACEOF
22864 #define HAVE_NETSNMP 1
22865 _ACEOF
22870 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
22871 NETSNMP_LIB="${NETSNMP_libs}"
22872 PBX_NETSNMP=1
22873 elif test -n "${NETSNMP_MANDATORY}";
22874 then
22875 { echo "$as_me:$LINENO: ***" >&5
22876 echo "$as_me: ***" >&6;}
22877 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22878 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22879 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22880 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22881 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22882 echo "$as_me: *** including --without-netsnmp" >&6;}
22883 exit 1
22885 elif test -n "${NETSNMP_MANDATORY}";
22886 then
22887 { echo "$as_me:$LINENO: ***" >&5
22888 echo "$as_me: ***" >&6;}
22889 { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
22890 echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
22891 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
22892 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
22893 { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
22894 echo "$as_me: *** including --without-netsnmp" >&6;}
22895 exit 1
22899 if test "${USE_NEWT}" != "no"; then
22900 pbxlibdir=""
22901 if test "x${NEWT_DIR}" != "x"; then
22902 if test -d ${NEWT_DIR}/lib; then
22903 pbxlibdir="-L${NEWT_DIR}/lib"
22904 else
22905 pbxlibdir="-L${NEWT_DIR}"
22908 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
22909 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
22910 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913 ac_check_lib_save_LIBS=$LIBS
22914 LIBS="-lnewt ${pbxlibdir} $LIBS"
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22922 /* Override any GCC internal prototype to avoid an error.
22923 Use char because int might match the return type of a GCC
22924 builtin and then its argument prototype would still apply. */
22925 #ifdef __cplusplus
22926 extern "C"
22927 #endif
22928 char newtBell ();
22930 main ()
22932 return newtBell ();
22934 return 0;
22936 _ACEOF
22937 rm -f conftest.$ac_objext conftest$ac_exeext
22938 if { (ac_try="$ac_link"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_link") 2>conftest.er1
22945 ac_status=$?
22946 grep -v '^ *+' conftest.er1 >conftest.err
22947 rm -f conftest.er1
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest$ac_exeext &&
22954 $as_test_x conftest$ac_exeext; then
22955 ac_cv_lib_newt_newtBell=yes
22956 else
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_cv_lib_newt_newtBell=no
22963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22964 conftest$ac_exeext conftest.$ac_ext
22965 LIBS=$ac_check_lib_save_LIBS
22967 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
22968 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
22969 if test $ac_cv_lib_newt_newtBell = yes; then
22970 AST_NEWT_FOUND=yes
22971 else
22972 AST_NEWT_FOUND=no
22976 if test "${AST_NEWT_FOUND}" = "yes"; then
22977 NEWT_LIB="-lnewt "
22978 NEWT_HEADER_FOUND="1"
22979 if test "x${NEWT_DIR}" != "x"; then
22980 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
22981 NEWT_INCLUDE="-I${NEWT_DIR}/include"
22982 saved_cppflags="${CPPFLAGS}"
22983 CPPFLAGS="${CPPFLAGS} -I${NEWT_DIR}/include"
22984 if test "xnewt.h" != "x" ; then
22985 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" | $as_tr_sh`
22986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22987 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
22988 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
22989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22992 ac_res=`eval echo '${'$as_ac_Header'}'`
22993 { echo "$as_me:$LINENO: result: $ac_res" >&5
22994 echo "${ECHO_T}$ac_res" >&6; }
22995 else
22996 # Is the header compilable?
22997 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
22998 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h. */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 #include <${NEWT_DIR}/include/newt.h>
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_header_compiler=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_compiler=no
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
23039 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h. */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <${NEWT_DIR}/include/newt.h>
23047 _ACEOF
23048 if { (ac_try="$ac_cpp conftest.$ac_ext"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } >/dev/null && {
23061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 }; then
23064 ac_header_preproc=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_preproc=no
23072 rm -f conftest.err conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23074 echo "${ECHO_T}$ac_header_preproc" >&6; }
23076 # So? What about this header?
23077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23078 yes:no: )
23079 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23080 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23081 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
23082 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
23083 ac_header_preproc=yes
23085 no:yes:* )
23086 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
23087 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
23089 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
23091 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
23093 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
23095 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
23097 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
23098 ( cat <<\_ASBOX
23099 ## ------------------------------- ##
23100 ## Report this to www.asterisk.org ##
23101 ## ------------------------------- ##
23102 _ASBOX
23103 ) | sed "s/^/$as_me: WARNING: /" >&2
23105 esac
23106 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
23107 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
23108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111 eval "$as_ac_Header=\$ac_header_preproc"
23113 ac_res=`eval echo '${'$as_ac_Header'}'`
23114 { echo "$as_me:$LINENO: result: $ac_res" >&5
23115 echo "${ECHO_T}$ac_res" >&6; }
23118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23119 NEWT_HEADER_FOUND=1
23120 else
23121 NEWT_HEADER_FOUND=0
23126 CPPFLAGS="${saved_cppflags}"
23127 else
23128 if test "xnewt.h" != "x" ; then
23129 if test "${ac_cv_header_newt_h+set}" = set; then
23130 { echo "$as_me:$LINENO: checking for newt.h" >&5
23131 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23132 if test "${ac_cv_header_newt_h+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23136 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23137 else
23138 # Is the header compilable?
23139 { echo "$as_me:$LINENO: checking newt.h usability" >&5
23140 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
23141 cat >conftest.$ac_ext <<_ACEOF
23142 /* confdefs.h. */
23143 _ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h. */
23147 $ac_includes_default
23148 #include <newt.h>
23149 _ACEOF
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155 esac
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23158 ac_status=$?
23159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.$ac_objext; then
23167 ac_header_compiler=yes
23168 else
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ac_header_compiler=no
23175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23177 echo "${ECHO_T}$ac_header_compiler" >&6; }
23179 # Is the header present?
23180 { echo "$as_me:$LINENO: checking newt.h presence" >&5
23181 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include <newt.h>
23189 _ACEOF
23190 if { (ac_try="$ac_cpp conftest.$ac_ext"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23197 ac_status=$?
23198 grep -v '^ *+' conftest.er1 >conftest.err
23199 rm -f conftest.er1
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } >/dev/null && {
23203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 }; then
23206 ac_header_preproc=yes
23207 else
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 ac_header_preproc=no
23214 rm -f conftest.err conftest.$ac_ext
23215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23216 echo "${ECHO_T}$ac_header_preproc" >&6; }
23218 # So? What about this header?
23219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23220 yes:no: )
23221 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23222 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
23224 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
23225 ac_header_preproc=yes
23227 no:yes:* )
23228 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
23229 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
23231 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
23233 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
23234 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
23235 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23236 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
23237 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
23239 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
23240 ( cat <<\_ASBOX
23241 ## ------------------------------- ##
23242 ## Report this to www.asterisk.org ##
23243 ## ------------------------------- ##
23244 _ASBOX
23245 ) | sed "s/^/$as_me: WARNING: /" >&2
23247 esac
23248 { echo "$as_me:$LINENO: checking for newt.h" >&5
23249 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
23250 if test "${ac_cv_header_newt_h+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23253 ac_cv_header_newt_h=$ac_header_preproc
23255 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
23256 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
23259 if test $ac_cv_header_newt_h = yes; then
23260 NEWT_HEADER_FOUND=1
23261 else
23262 NEWT_HEADER_FOUND=0
23268 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
23269 if test -n "${NEWT_MANDATORY}" ;
23270 then
23271 { echo "$as_me:$LINENO: ***" >&5
23272 echo "$as_me: ***" >&6;}
23273 { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
23274 echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
23275 { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
23276 echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
23277 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23278 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23279 exit 1
23281 NEWT_LIB=""
23282 NEWT_INCLUDE=""
23283 PBX_NEWT=0
23284 else
23285 PBX_NEWT=1
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_NEWT 1
23289 _ACEOF
23292 elif test -n "${NEWT_MANDATORY}";
23293 then
23294 { echo "$as_me:$LINENO: ***" >&5
23295 echo "$as_me: ***" >&6;}
23296 { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
23297 echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
23298 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23299 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23300 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
23301 echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
23302 exit 1
23308 if test "${USE_UNIXODBC}" != "no"; then
23309 pbxlibdir=""
23310 if test "x${UNIXODBC_DIR}" != "x"; then
23311 if test -d ${UNIXODBC_DIR}/lib; then
23312 pbxlibdir="-L${UNIXODBC_DIR}/lib"
23313 else
23314 pbxlibdir="-L${UNIXODBC_DIR}"
23317 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
23318 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
23319 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 ac_check_lib_save_LIBS=$LIBS
23323 LIBS="-lodbc ${pbxlibdir} $LIBS"
23324 cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h. */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23331 /* Override any GCC internal prototype to avoid an error.
23332 Use char because int might match the return type of a GCC
23333 builtin and then its argument prototype would still apply. */
23334 #ifdef __cplusplus
23335 extern "C"
23336 #endif
23337 char SQLConnect ();
23339 main ()
23341 return SQLConnect ();
23343 return 0;
23345 _ACEOF
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23351 esac
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>conftest.er1
23354 ac_status=$?
23355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } && {
23360 test -z "$ac_c_werror_flag" ||
23361 test ! -s conftest.err
23362 } && test -s conftest$ac_exeext &&
23363 $as_test_x conftest$ac_exeext; then
23364 ac_cv_lib_odbc_SQLConnect=yes
23365 else
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ac_cv_lib_odbc_SQLConnect=no
23372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23373 conftest$ac_exeext conftest.$ac_ext
23374 LIBS=$ac_check_lib_save_LIBS
23376 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
23377 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
23378 if test $ac_cv_lib_odbc_SQLConnect = yes; then
23379 AST_UNIXODBC_FOUND=yes
23380 else
23381 AST_UNIXODBC_FOUND=no
23385 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
23386 UNIXODBC_LIB="-lodbc "
23387 UNIXODBC_HEADER_FOUND="1"
23388 if test "x${UNIXODBC_DIR}" != "x"; then
23389 UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
23390 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
23391 saved_cppflags="${CPPFLAGS}"
23392 CPPFLAGS="${CPPFLAGS} -I${UNIXODBC_DIR}/include"
23393 if test "xsql.h" != "x" ; then
23394 as_ac_Header=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
23395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23396 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23397 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 ac_res=`eval echo '${'$as_ac_Header'}'`
23402 { echo "$as_me:$LINENO: result: $ac_res" >&5
23403 echo "${ECHO_T}$ac_res" >&6; }
23404 else
23405 # Is the header compilable?
23406 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
23407 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
23408 cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h. */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23414 $ac_includes_default
23415 #include <${UNIXODBC_DIR}/include/sql.h>
23416 _ACEOF
23417 rm -f conftest.$ac_objext
23418 if { (ac_try="$ac_compile"
23419 case "(($ac_try" in
23420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421 *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424 (eval "$ac_compile") 2>conftest.er1
23425 ac_status=$?
23426 grep -v '^ *+' conftest.er1 >conftest.err
23427 rm -f conftest.er1
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } && {
23431 test -z "$ac_c_werror_flag" ||
23432 test ! -s conftest.err
23433 } && test -s conftest.$ac_objext; then
23434 ac_header_compiler=yes
23435 else
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_compiler=no
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23444 echo "${ECHO_T}$ac_header_compiler" >&6; }
23446 # Is the header present?
23447 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
23448 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <${UNIXODBC_DIR}/include/sql.h>
23456 _ACEOF
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23464 ac_status=$?
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev/null && {
23470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23472 }; then
23473 ac_header_preproc=yes
23474 else
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 ac_header_preproc=no
23481 rm -f conftest.err conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23483 echo "${ECHO_T}$ac_header_preproc" >&6; }
23485 # So? What about this header?
23486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23487 yes:no: )
23488 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23489 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
23491 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
23492 ac_header_preproc=yes
23494 no:yes:* )
23495 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
23496 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
23498 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
23499 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
23500 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
23501 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
23502 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23503 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
23504 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
23505 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
23506 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
23507 ( cat <<\_ASBOX
23508 ## ------------------------------- ##
23509 ## Report this to www.asterisk.org ##
23510 ## ------------------------------- ##
23511 _ASBOX
23512 ) | sed "s/^/$as_me: WARNING: /" >&2
23514 esac
23515 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
23516 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
23517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520 eval "$as_ac_Header=\$ac_header_preproc"
23522 ac_res=`eval echo '${'$as_ac_Header'}'`
23523 { echo "$as_me:$LINENO: result: $ac_res" >&5
23524 echo "${ECHO_T}$ac_res" >&6; }
23527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23528 UNIXODBC_HEADER_FOUND=1
23529 else
23530 UNIXODBC_HEADER_FOUND=0
23535 CPPFLAGS="${saved_cppflags}"
23536 else
23537 if test "xsql.h" != "x" ; then
23538 if test "${ac_cv_header_sql_h+set}" = set; then
23539 { echo "$as_me:$LINENO: checking for sql.h" >&5
23540 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23541 if test "${ac_cv_header_sql_h+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23544 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23545 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23546 else
23547 # Is the header compilable?
23548 { echo "$as_me:$LINENO: checking sql.h usability" >&5
23549 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
23550 cat >conftest.$ac_ext <<_ACEOF
23551 /* confdefs.h. */
23552 _ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 $ac_includes_default
23557 #include <sql.h>
23558 _ACEOF
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_header_compiler=yes
23577 else
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_header_compiler=no
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23586 echo "${ECHO_T}$ac_header_compiler" >&6; }
23588 # Is the header present?
23589 { echo "$as_me:$LINENO: checking sql.h presence" >&5
23590 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 #include <sql.h>
23598 _ACEOF
23599 if { (ac_try="$ac_cpp conftest.$ac_ext"
23600 case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23603 esac
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23606 ac_status=$?
23607 grep -v '^ *+' conftest.er1 >conftest.err
23608 rm -f conftest.er1
23609 cat conftest.err >&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } >/dev/null && {
23612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23613 test ! -s conftest.err
23614 }; then
23615 ac_header_preproc=yes
23616 else
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23620 ac_header_preproc=no
23623 rm -f conftest.err conftest.$ac_ext
23624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23625 echo "${ECHO_T}$ac_header_preproc" >&6; }
23627 # So? What about this header?
23628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23629 yes:no: )
23630 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
23631 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
23633 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
23634 ac_header_preproc=yes
23636 no:yes:* )
23637 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
23638 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
23639 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
23640 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
23642 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
23644 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
23645 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
23646 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
23648 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
23649 ( cat <<\_ASBOX
23650 ## ------------------------------- ##
23651 ## Report this to www.asterisk.org ##
23652 ## ------------------------------- ##
23653 _ASBOX
23654 ) | sed "s/^/$as_me: WARNING: /" >&2
23656 esac
23657 { echo "$as_me:$LINENO: checking for sql.h" >&5
23658 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
23659 if test "${ac_cv_header_sql_h+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23661 else
23662 ac_cv_header_sql_h=$ac_header_preproc
23664 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23665 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
23668 if test $ac_cv_header_sql_h = yes; then
23669 UNIXODBC_HEADER_FOUND=1
23670 else
23671 UNIXODBC_HEADER_FOUND=0
23677 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
23678 if test -n "${UNIXODBC_MANDATORY}" ;
23679 then
23680 { echo "$as_me:$LINENO: ***" >&5
23681 echo "$as_me: ***" >&6;}
23682 { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
23683 echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
23684 { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
23685 echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
23686 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23687 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23688 exit 1
23690 UNIXODBC_LIB=""
23691 UNIXODBC_INCLUDE=""
23692 PBX_UNIXODBC=0
23693 else
23694 PBX_UNIXODBC=1
23696 cat >>confdefs.h <<_ACEOF
23697 #define HAVE_UNIXODBC 1
23698 _ACEOF
23701 elif test -n "${UNIXODBC_MANDATORY}";
23702 then
23703 { echo "$as_me:$LINENO: ***" >&5
23704 echo "$as_me: ***" >&6;}
23705 { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
23706 echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
23707 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
23708 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
23709 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
23710 echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
23711 exit 1
23717 if test "${USE_OGG}" != "no"; then
23718 pbxlibdir=""
23719 if test "x${OGG_DIR}" != "x"; then
23720 if test -d ${OGG_DIR}/lib; then
23721 pbxlibdir="-L${OGG_DIR}/lib"
23722 else
23723 pbxlibdir="-L${OGG_DIR}"
23726 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
23727 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
23728 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731 ac_check_lib_save_LIBS=$LIBS
23732 LIBS="-logg ${pbxlibdir} $LIBS"
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23740 /* Override any GCC internal prototype to avoid an error.
23741 Use char because int might match the return type of a GCC
23742 builtin and then its argument prototype would still apply. */
23743 #ifdef __cplusplus
23744 extern "C"
23745 #endif
23746 char ogg_sync_init ();
23748 main ()
23750 return ogg_sync_init ();
23752 return 0;
23754 _ACEOF
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_link") 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } && {
23769 test -z "$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23771 } && test -s conftest$ac_exeext &&
23772 $as_test_x conftest$ac_exeext; then
23773 ac_cv_lib_ogg_ogg_sync_init=yes
23774 else
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ac_cv_lib_ogg_ogg_sync_init=no
23781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23782 conftest$ac_exeext conftest.$ac_ext
23783 LIBS=$ac_check_lib_save_LIBS
23785 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
23786 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
23787 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
23788 AST_OGG_FOUND=yes
23789 else
23790 AST_OGG_FOUND=no
23794 if test "${AST_OGG_FOUND}" = "yes"; then
23795 OGG_LIB="-logg "
23796 OGG_HEADER_FOUND="1"
23797 if test "x${OGG_DIR}" != "x"; then
23798 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
23799 OGG_INCLUDE="-I${OGG_DIR}/include"
23800 saved_cppflags="${CPPFLAGS}"
23801 CPPFLAGS="${CPPFLAGS} -I${OGG_DIR}/include"
23802 if test "x" != "x" ; then
23803 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" | $as_tr_sh`
23804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23805 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23806 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 ac_res=`eval echo '${'$as_ac_Header'}'`
23811 { echo "$as_me:$LINENO: result: $ac_res" >&5
23812 echo "${ECHO_T}$ac_res" >&6; }
23813 else
23814 # Is the header compilable?
23815 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
23816 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23818 /* confdefs.h. */
23819 _ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 $ac_includes_default
23824 #include <${OGG_DIR}/include/>
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_header_compiler=yes
23844 else
23845 echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_header_compiler=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23853 echo "${ECHO_T}$ac_header_compiler" >&6; }
23855 # Is the header present?
23856 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
23857 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h. */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 #include <${OGG_DIR}/include/>
23865 _ACEOF
23866 if { (ac_try="$ac_cpp conftest.$ac_ext"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23873 ac_status=$?
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } >/dev/null && {
23879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23880 test ! -s conftest.err
23881 }; then
23882 ac_header_preproc=yes
23883 else
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 ac_header_preproc=no
23890 rm -f conftest.err conftest.$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23892 echo "${ECHO_T}$ac_header_preproc" >&6; }
23894 # So? What about this header?
23895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23896 yes:no: )
23897 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
23898 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
23899 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
23900 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
23901 ac_header_preproc=yes
23903 no:yes:* )
23904 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
23905 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
23907 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
23909 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
23910 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
23911 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
23912 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
23913 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
23914 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
23915 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
23916 ( cat <<\_ASBOX
23917 ## ------------------------------- ##
23918 ## Report this to www.asterisk.org ##
23919 ## ------------------------------- ##
23920 _ASBOX
23921 ) | sed "s/^/$as_me: WARNING: /" >&2
23923 esac
23924 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
23925 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
23926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929 eval "$as_ac_Header=\$ac_header_preproc"
23931 ac_res=`eval echo '${'$as_ac_Header'}'`
23932 { echo "$as_me:$LINENO: result: $ac_res" >&5
23933 echo "${ECHO_T}$ac_res" >&6; }
23936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23937 OGG_HEADER_FOUND=1
23938 else
23939 OGG_HEADER_FOUND=0
23944 CPPFLAGS="${saved_cppflags}"
23945 else
23946 if test "x" != "x" ; then
23947 if test "${ac_cv_header_+set}" = set; then
23948 { echo "$as_me:$LINENO: checking for " >&5
23949 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23950 if test "${ac_cv_header_+set}" = set; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23954 echo "${ECHO_T}$ac_cv_header_" >&6; }
23955 else
23956 # Is the header compilable?
23957 { echo "$as_me:$LINENO: checking usability" >&5
23958 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23966 #include <>
23967 _ACEOF
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23973 esac
23974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23975 (eval "$ac_compile") 2>conftest.er1
23976 ac_status=$?
23977 grep -v '^ *+' conftest.er1 >conftest.err
23978 rm -f conftest.er1
23979 cat conftest.err >&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } && {
23982 test -z "$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23984 } && test -s conftest.$ac_objext; then
23985 ac_header_compiler=yes
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_header_compiler=no
23993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23995 echo "${ECHO_T}$ac_header_compiler" >&6; }
23997 # Is the header present?
23998 { echo "$as_me:$LINENO: checking presence" >&5
23999 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h. */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 #include <>
24007 _ACEOF
24008 if { (ac_try="$ac_cpp conftest.$ac_ext"
24009 case "(($ac_try" in
24010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24012 esac
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24015 ac_status=$?
24016 grep -v '^ *+' conftest.er1 >conftest.err
24017 rm -f conftest.er1
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } >/dev/null && {
24021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24022 test ! -s conftest.err
24023 }; then
24024 ac_header_preproc=yes
24025 else
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ac_header_preproc=no
24032 rm -f conftest.err conftest.$ac_ext
24033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24034 echo "${ECHO_T}$ac_header_preproc" >&6; }
24036 # So? What about this header?
24037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24038 yes:no: )
24039 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24040 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24041 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24042 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24043 ac_header_preproc=yes
24045 no:yes:* )
24046 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24047 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24049 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24051 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24053 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24054 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24055 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24056 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24057 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24058 ( cat <<\_ASBOX
24059 ## ------------------------------- ##
24060 ## Report this to www.asterisk.org ##
24061 ## ------------------------------- ##
24062 _ASBOX
24063 ) | sed "s/^/$as_me: WARNING: /" >&2
24065 esac
24066 { echo "$as_me:$LINENO: checking for " >&5
24067 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24068 if test "${ac_cv_header_+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071 ac_cv_header_=$ac_header_preproc
24073 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24074 echo "${ECHO_T}$ac_cv_header_" >&6; }
24077 if test $ac_cv_header_ = yes; then
24078 OGG_HEADER_FOUND=1
24079 else
24080 OGG_HEADER_FOUND=0
24086 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
24087 if test -n "${OGG_MANDATORY}" ;
24088 then
24089 { echo "$as_me:$LINENO: ***" >&5
24090 echo "$as_me: ***" >&6;}
24091 { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
24092 echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
24093 { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
24094 echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
24095 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24096 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24097 exit 1
24099 OGG_LIB=""
24100 OGG_INCLUDE=""
24101 PBX_OGG=0
24102 else
24103 PBX_OGG=1
24105 cat >>confdefs.h <<_ACEOF
24106 #define HAVE_OGG 1
24107 _ACEOF
24110 elif test -n "${OGG_MANDATORY}";
24111 then
24112 { echo "$as_me:$LINENO: ***" >&5
24113 echo "$as_me: ***" >&6;}
24114 { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
24115 echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
24116 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24117 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24118 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
24119 echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
24120 exit 1
24125 if test "${USE_OSS}" != "no"; then
24126 PBX_OSS=0
24127 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24128 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24129 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24130 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24134 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24135 else
24136 # Is the header compilable?
24137 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
24138 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h. */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 #include <linux/soundcard.h>
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 ac_header_compiler=yes
24166 else
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 ac_header_compiler=no
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24175 echo "${ECHO_T}$ac_header_compiler" >&6; }
24177 # Is the header present?
24178 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
24179 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
24180 cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h. */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 #include <linux/soundcard.h>
24187 _ACEOF
24188 if { (ac_try="$ac_cpp conftest.$ac_ext"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24195 ac_status=$?
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } >/dev/null && {
24201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24203 }; then
24204 ac_header_preproc=yes
24205 else
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_header_preproc=no
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24216 # So? What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24218 yes:no: )
24219 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
24223 ac_header_preproc=yes
24225 no:yes:* )
24226 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
24238 ( cat <<\_ASBOX
24239 ## ------------------------------- ##
24240 ## Report this to www.asterisk.org ##
24241 ## ------------------------------- ##
24242 _ASBOX
24243 ) | sed "s/^/$as_me: WARNING: /" >&2
24245 esac
24246 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
24247 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
24248 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
24249 echo $ECHO_N "(cached) $ECHO_C" >&6
24250 else
24251 ac_cv_header_linux_soundcard_h=$ac_header_preproc
24253 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
24254 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
24257 if test $ac_cv_header_linux_soundcard_h = yes; then
24259 PBX_OSS=1
24261 cat >>confdefs.h <<_ACEOF
24262 #define HAVE_OSS 1
24263 _ACEOF
24269 if test "$PBX_OSS" = "0"; then
24270 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24271 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24272 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24277 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24278 else
24279 # Is the header compilable?
24280 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
24281 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24289 #include <sys/soundcard.h>
24290 _ACEOF
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest.$ac_objext; then
24308 ac_header_compiler=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_header_compiler=no
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24318 echo "${ECHO_T}$ac_header_compiler" >&6; }
24320 # Is the header present?
24321 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
24322 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
24323 cat >conftest.$ac_ext <<_ACEOF
24324 /* confdefs.h. */
24325 _ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h. */
24329 #include <sys/soundcard.h>
24330 _ACEOF
24331 if { (ac_try="$ac_cpp conftest.$ac_ext"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24338 ac_status=$?
24339 grep -v '^ *+' conftest.er1 >conftest.err
24340 rm -f conftest.er1
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } >/dev/null && {
24344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 }; then
24347 ac_header_preproc=yes
24348 else
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_header_preproc=no
24355 rm -f conftest.err conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24357 echo "${ECHO_T}$ac_header_preproc" >&6; }
24359 # So? What about this header?
24360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24361 yes:no: )
24362 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24363 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
24365 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
24366 ac_header_preproc=yes
24368 no:yes:* )
24369 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
24370 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
24372 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
24374 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24376 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24377 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
24378 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
24379 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
24380 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
24381 ( cat <<\_ASBOX
24382 ## ------------------------------- ##
24383 ## Report this to www.asterisk.org ##
24384 ## ------------------------------- ##
24385 _ASBOX
24386 ) | sed "s/^/$as_me: WARNING: /" >&2
24388 esac
24389 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
24390 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
24391 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394 ac_cv_header_sys_soundcard_h=$ac_header_preproc
24396 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
24397 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
24400 if test $ac_cv_header_sys_soundcard_h = yes; then
24402 PBX_OSS=1
24404 cat >>confdefs.h <<_ACEOF
24405 #define HAVE_OSS 1
24406 _ACEOF
24413 if test "$PBX_OSS" = "0"; then
24415 if test "${USE_OSS}" != "no"; then
24416 pbxlibdir=""
24417 if test "x${OSS_DIR}" != "x"; then
24418 if test -d ${OSS_DIR}/lib; then
24419 pbxlibdir="-L${OSS_DIR}/lib"
24420 else
24421 pbxlibdir="-L${OSS_DIR}"
24424 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
24425 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
24426 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 else
24429 ac_check_lib_save_LIBS=$LIBS
24430 LIBS="-lossaudio ${pbxlibdir} $LIBS"
24431 cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h. */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24438 /* Override any GCC internal prototype to avoid an error.
24439 Use char because int might match the return type of a GCC
24440 builtin and then its argument prototype would still apply. */
24441 #ifdef __cplusplus
24442 extern "C"
24443 #endif
24444 char oss_ioctl_mixer ();
24446 main ()
24448 return oss_ioctl_mixer ();
24450 return 0;
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_link") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext &&
24470 $as_test_x conftest$ac_exeext; then
24471 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
24472 else
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
24479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24480 conftest$ac_exeext conftest.$ac_ext
24481 LIBS=$ac_check_lib_save_LIBS
24483 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
24484 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
24485 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
24486 AST_OSS_FOUND=yes
24487 else
24488 AST_OSS_FOUND=no
24492 if test "${AST_OSS_FOUND}" = "yes"; then
24493 OSS_LIB="-lossaudio "
24494 OSS_HEADER_FOUND="1"
24495 if test "x${OSS_DIR}" != "x"; then
24496 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
24497 OSS_INCLUDE="-I${OSS_DIR}/include"
24498 saved_cppflags="${CPPFLAGS}"
24499 CPPFLAGS="${CPPFLAGS} -I${OSS_DIR}/include"
24500 if test "xsoundcard.h" != "x" ; then
24501 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" | $as_tr_sh`
24502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24503 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24504 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 ac_res=`eval echo '${'$as_ac_Header'}'`
24509 { echo "$as_me:$LINENO: result: $ac_res" >&5
24510 echo "${ECHO_T}$ac_res" >&6; }
24511 else
24512 # Is the header compilable?
24513 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
24514 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h. */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 $ac_includes_default
24522 #include <${OSS_DIR}/include/soundcard.h>
24523 _ACEOF
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24529 esac
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_compile") 2>conftest.er1
24532 ac_status=$?
24533 grep -v '^ *+' conftest.er1 >conftest.err
24534 rm -f conftest.er1
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } && {
24538 test -z "$ac_c_werror_flag" ||
24539 test ! -s conftest.err
24540 } && test -s conftest.$ac_objext; then
24541 ac_header_compiler=yes
24542 else
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ac_header_compiler=no
24549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24551 echo "${ECHO_T}$ac_header_compiler" >&6; }
24553 # Is the header present?
24554 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
24555 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h. */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <${OSS_DIR}/include/soundcard.h>
24563 _ACEOF
24564 if { (ac_try="$ac_cpp conftest.$ac_ext"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24571 ac_status=$?
24572 grep -v '^ *+' conftest.er1 >conftest.err
24573 rm -f conftest.er1
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } >/dev/null && {
24577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24578 test ! -s conftest.err
24579 }; then
24580 ac_header_preproc=yes
24581 else
24582 echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24585 ac_header_preproc=no
24588 rm -f conftest.err conftest.$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24590 echo "${ECHO_T}$ac_header_preproc" >&6; }
24592 # So? What about this header?
24593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24594 yes:no: )
24595 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24596 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
24598 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
24599 ac_header_preproc=yes
24601 no:yes:* )
24602 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
24603 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
24604 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
24605 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
24606 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
24607 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
24608 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24609 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24610 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
24611 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
24612 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
24613 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
24614 ( cat <<\_ASBOX
24615 ## ------------------------------- ##
24616 ## Report this to www.asterisk.org ##
24617 ## ------------------------------- ##
24618 _ASBOX
24619 ) | sed "s/^/$as_me: WARNING: /" >&2
24621 esac
24622 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
24623 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
24624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 else
24627 eval "$as_ac_Header=\$ac_header_preproc"
24629 ac_res=`eval echo '${'$as_ac_Header'}'`
24630 { echo "$as_me:$LINENO: result: $ac_res" >&5
24631 echo "${ECHO_T}$ac_res" >&6; }
24634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24635 OSS_HEADER_FOUND=1
24636 else
24637 OSS_HEADER_FOUND=0
24642 CPPFLAGS="${saved_cppflags}"
24643 else
24644 if test "xsoundcard.h" != "x" ; then
24645 if test "${ac_cv_header_soundcard_h+set}" = set; then
24646 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24647 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24648 if test "${ac_cv_header_soundcard_h+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24651 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24652 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24653 else
24654 # Is the header compilable?
24655 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
24656 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
24657 cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h. */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 $ac_includes_default
24664 #include <soundcard.h>
24665 _ACEOF
24666 rm -f conftest.$ac_objext
24667 if { (ac_try="$ac_compile"
24668 case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24671 esac
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_compile") 2>conftest.er1
24674 ac_status=$?
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest.$ac_objext; then
24683 ac_header_compiler=yes
24684 else
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24688 ac_header_compiler=no
24691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24693 echo "${ECHO_T}$ac_header_compiler" >&6; }
24695 # Is the header present?
24696 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
24697 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
24698 cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h. */
24700 _ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 #include <soundcard.h>
24705 _ACEOF
24706 if { (ac_try="$ac_cpp conftest.$ac_ext"
24707 case "(($ac_try" in
24708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709 *) ac_try_echo=$ac_try;;
24710 esac
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24713 ac_status=$?
24714 grep -v '^ *+' conftest.er1 >conftest.err
24715 rm -f conftest.er1
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } >/dev/null && {
24719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24720 test ! -s conftest.err
24721 }; then
24722 ac_header_preproc=yes
24723 else
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ac_header_preproc=no
24730 rm -f conftest.err conftest.$ac_ext
24731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24732 echo "${ECHO_T}$ac_header_preproc" >&6; }
24734 # So? What about this header?
24735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24736 yes:no: )
24737 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
24738 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24739 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
24740 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
24741 ac_header_preproc=yes
24743 no:yes:* )
24744 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
24745 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
24747 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
24749 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
24751 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
24752 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
24753 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
24755 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
24756 ( cat <<\_ASBOX
24757 ## ------------------------------- ##
24758 ## Report this to www.asterisk.org ##
24759 ## ------------------------------- ##
24760 _ASBOX
24761 ) | sed "s/^/$as_me: WARNING: /" >&2
24763 esac
24764 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
24765 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
24766 if test "${ac_cv_header_soundcard_h+set}" = set; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769 ac_cv_header_soundcard_h=$ac_header_preproc
24771 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
24772 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
24775 if test $ac_cv_header_soundcard_h = yes; then
24776 OSS_HEADER_FOUND=1
24777 else
24778 OSS_HEADER_FOUND=0
24784 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
24785 if test -n "${OSS_MANDATORY}" ;
24786 then
24787 { echo "$as_me:$LINENO: ***" >&5
24788 echo "$as_me: ***" >&6;}
24789 { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
24790 echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
24791 { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
24792 echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
24793 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24794 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24795 exit 1
24797 OSS_LIB=""
24798 OSS_INCLUDE=""
24799 PBX_OSS=0
24800 else
24801 PBX_OSS=1
24803 cat >>confdefs.h <<_ACEOF
24804 #define HAVE_OSS 1
24805 _ACEOF
24808 elif test -n "${OSS_MANDATORY}";
24809 then
24810 { echo "$as_me:$LINENO: ***" >&5
24811 echo "$as_me: ***" >&6;}
24812 { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
24813 echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
24814 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24815 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24816 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
24817 echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
24818 exit 1
24825 PG_CONFIG=No
24826 if test "${USE_PGSQL}" != "no"; then
24827 if test "x${PGSQL_DIR}" != "x"; then
24828 if test -n "$ac_tool_prefix"; then
24829 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24830 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24833 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 else
24836 case $PG_CONFIG in
24837 [\\/]* | ?:[\\/]*)
24838 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24842 for as_dir in ${PGSQL_DIR}/bin
24844 IFS=$as_save_IFS
24845 test -z "$as_dir" && as_dir=.
24846 for ac_exec_ext in '' $ac_executable_extensions; do
24847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24848 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24850 break 2
24852 done
24853 done
24854 IFS=$as_save_IFS
24857 esac
24859 PG_CONFIG=$ac_cv_path_PG_CONFIG
24860 if test -n "$PG_CONFIG"; then
24861 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24862 echo "${ECHO_T}$PG_CONFIG" >&6; }
24863 else
24864 { echo "$as_me:$LINENO: result: no" >&5
24865 echo "${ECHO_T}no" >&6; }
24870 if test -z "$ac_cv_path_PG_CONFIG"; then
24871 ac_pt_PG_CONFIG=$PG_CONFIG
24872 # Extract the first word of "pg_config", so it can be a program name with args.
24873 set dummy pg_config; ac_word=$2
24874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24876 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24878 else
24879 case $ac_pt_PG_CONFIG in
24880 [\\/]* | ?:[\\/]*)
24881 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
24884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885 for as_dir in ${PGSQL_DIR}/bin
24887 IFS=$as_save_IFS
24888 test -z "$as_dir" && as_dir=.
24889 for ac_exec_ext in '' $ac_executable_extensions; do
24890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24891 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24893 break 2
24895 done
24896 done
24897 IFS=$as_save_IFS
24900 esac
24902 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
24903 if test -n "$ac_pt_PG_CONFIG"; then
24904 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
24905 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
24906 else
24907 { echo "$as_me:$LINENO: result: no" >&5
24908 echo "${ECHO_T}no" >&6; }
24911 if test "x$ac_pt_PG_CONFIG" = x; then
24912 PG_CONFIG="No"
24913 else
24914 case $cross_compiling:$ac_tool_warned in
24915 yes:)
24916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24917 whose name does not start with the host triplet. If you think this
24918 configuration is useful to you, please write to autoconf@gnu.org." >&5
24919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24920 whose name does not start with the host triplet. If you think this
24921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24922 ac_tool_warned=yes ;;
24923 esac
24924 PG_CONFIG=$ac_pt_PG_CONFIG
24926 else
24927 PG_CONFIG="$ac_cv_path_PG_CONFIG"
24930 if test x"${PG_CONFIG}" = xNo; then
24931 { echo "$as_me:$LINENO: ***" >&5
24932 echo "$as_me: ***" >&6;}
24933 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
24934 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
24935 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
24936 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
24937 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
24938 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
24939 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
24940 echo "$as_me: *** including --without-postgres" >&6;}
24941 exit 1
24943 else
24944 if test -n "$ac_tool_prefix"; then
24945 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
24946 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
24947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24949 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952 case $PG_CONFIG in
24953 [\\/]* | ?:[\\/]*)
24954 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
24957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24958 for as_dir in $PATH
24960 IFS=$as_save_IFS
24961 test -z "$as_dir" && as_dir=.
24962 for ac_exec_ext in '' $ac_executable_extensions; do
24963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24964 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24966 break 2
24968 done
24969 done
24970 IFS=$as_save_IFS
24973 esac
24975 PG_CONFIG=$ac_cv_path_PG_CONFIG
24976 if test -n "$PG_CONFIG"; then
24977 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
24978 echo "${ECHO_T}$PG_CONFIG" >&6; }
24979 else
24980 { echo "$as_me:$LINENO: result: no" >&5
24981 echo "${ECHO_T}no" >&6; }
24986 if test -z "$ac_cv_path_PG_CONFIG"; then
24987 ac_pt_PG_CONFIG=$PG_CONFIG
24988 # Extract the first word of "pg_config", so it can be a program name with args.
24989 set dummy pg_config; ac_word=$2
24990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24992 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995 case $ac_pt_PG_CONFIG in
24996 [\\/]* | ?:[\\/]*)
24997 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
25000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001 for as_dir in $PATH
25003 IFS=$as_save_IFS
25004 test -z "$as_dir" && as_dir=.
25005 for ac_exec_ext in '' $ac_executable_extensions; do
25006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25007 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25009 break 2
25011 done
25012 done
25013 IFS=$as_save_IFS
25016 esac
25018 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
25019 if test -n "$ac_pt_PG_CONFIG"; then
25020 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
25021 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
25022 else
25023 { echo "$as_me:$LINENO: result: no" >&5
25024 echo "${ECHO_T}no" >&6; }
25027 if test "x$ac_pt_PG_CONFIG" = x; then
25028 PG_CONFIG="No"
25029 else
25030 case $cross_compiling:$ac_tool_warned in
25031 yes:)
25032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
25033 whose name does not start with the host triplet. If you think this
25034 configuration is useful to you, please write to autoconf@gnu.org." >&5
25035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
25036 whose name does not start with the host triplet. If you think this
25037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
25038 ac_tool_warned=yes ;;
25039 esac
25040 PG_CONFIG=$ac_pt_PG_CONFIG
25042 else
25043 PG_CONFIG="$ac_cv_path_PG_CONFIG"
25048 if test "${PG_CONFIG}" != No; then
25049 PGSQL_libdir=`${PG_CONFIG} --libdir`
25050 PGSQL_includedir=`${PG_CONFIG} --includedir`
25052 if test "x$?" != "x0" ; then
25053 if test -n "${PGSQL_MANDATORY}" ; then
25054 { echo "$as_me:$LINENO: ***" >&5
25055 echo "$as_me: ***" >&6;}
25056 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25057 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25058 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25059 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25060 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25061 echo "$as_me: *** including --without-postgres" >&6;}
25062 exit 1
25064 else
25065 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
25066 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
25067 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 else
25070 ac_check_lib_save_LIBS=$LIBS
25071 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
25072 cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h. */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25079 /* Override any GCC internal prototype to avoid an error.
25080 Use char because int might match the return type of a GCC
25081 builtin and then its argument prototype would still apply. */
25082 #ifdef __cplusplus
25083 extern "C"
25084 #endif
25085 char PQescapeStringConn ();
25087 main ()
25089 return PQescapeStringConn ();
25091 return 0;
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (ac_try="$ac_link"
25096 case "(($ac_try" in
25097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25099 esac
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_link") 2>conftest.er1
25102 ac_status=$?
25103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } && {
25108 test -z "$ac_c_werror_flag" ||
25109 test ! -s conftest.err
25110 } && test -s conftest$ac_exeext &&
25111 $as_test_x conftest$ac_exeext; then
25112 ac_cv_lib_pq_PQescapeStringConn=yes
25113 else
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_cv_lib_pq_PQescapeStringConn=no
25120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25121 conftest$ac_exeext conftest.$ac_ext
25122 LIBS=$ac_check_lib_save_LIBS
25124 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
25125 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
25126 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
25128 cat >>confdefs.h <<_ACEOF
25129 #define HAVE_PGSQL 1
25130 _ACEOF
25135 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
25136 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
25137 PGSQL_INCLUDE="-I${PGSQL_includedir}"
25138 PBX_PGSQL=1
25139 elif test -n "${PGSQL_MANDATORY}";
25140 then
25141 { echo "$as_me:$LINENO: ***" >&5
25142 echo "$as_me: ***" >&6;}
25143 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25144 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25145 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25146 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25147 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25148 echo "$as_me: *** including --without-postgres" >&6;}
25149 exit 1
25152 elif test -n "${PGSQL_MANDATORY}";
25153 then
25154 { echo "$as_me:$LINENO: ***" >&5
25155 echo "$as_me: ***" >&6;}
25156 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
25157 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
25158 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25159 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25160 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
25161 echo "$as_me: *** including --without-postgres" >&6;}
25162 exit 1
25166 if test "${USE_POPT}" != "no"; then
25167 pbxlibdir=""
25168 if test "x${POPT_DIR}" != "x"; then
25169 if test -d ${POPT_DIR}/lib; then
25170 pbxlibdir="-L${POPT_DIR}/lib"
25171 else
25172 pbxlibdir="-L${POPT_DIR}"
25175 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
25176 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
25177 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 else
25180 ac_check_lib_save_LIBS=$LIBS
25181 LIBS="-lpopt ${pbxlibdir} $LIBS"
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h. */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25189 /* Override any GCC internal prototype to avoid an error.
25190 Use char because int might match the return type of a GCC
25191 builtin and then its argument prototype would still apply. */
25192 #ifdef __cplusplus
25193 extern "C"
25194 #endif
25195 char poptStrerror ();
25197 main ()
25199 return poptStrerror ();
25201 return 0;
25203 _ACEOF
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (ac_try="$ac_link"
25206 case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25209 esac
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_link") 2>conftest.er1
25212 ac_status=$?
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest$ac_exeext &&
25221 $as_test_x conftest$ac_exeext; then
25222 ac_cv_lib_popt_poptStrerror=yes
25223 else
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25227 ac_cv_lib_popt_poptStrerror=no
25230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25231 conftest$ac_exeext conftest.$ac_ext
25232 LIBS=$ac_check_lib_save_LIBS
25234 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
25235 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
25236 if test $ac_cv_lib_popt_poptStrerror = yes; then
25237 AST_POPT_FOUND=yes
25238 else
25239 AST_POPT_FOUND=no
25243 if test "${AST_POPT_FOUND}" = "yes"; then
25244 POPT_LIB="-lpopt "
25245 POPT_HEADER_FOUND="1"
25246 if test "x${POPT_DIR}" != "x"; then
25247 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
25248 POPT_INCLUDE="-I${POPT_DIR}/include"
25249 saved_cppflags="${CPPFLAGS}"
25250 CPPFLAGS="${CPPFLAGS} -I${POPT_DIR}/include"
25251 if test "xpopt.h" != "x" ; then
25252 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" | $as_tr_sh`
25253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25254 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25255 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25259 ac_res=`eval echo '${'$as_ac_Header'}'`
25260 { echo "$as_me:$LINENO: result: $ac_res" >&5
25261 echo "${ECHO_T}$ac_res" >&6; }
25262 else
25263 # Is the header compilable?
25264 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
25265 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
25266 cat >conftest.$ac_ext <<_ACEOF
25267 /* confdefs.h. */
25268 _ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25273 #include <${POPT_DIR}/include/popt.h>
25274 _ACEOF
25275 rm -f conftest.$ac_objext
25276 if { (ac_try="$ac_compile"
25277 case "(($ac_try" in
25278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25280 esac
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282 (eval "$ac_compile") 2>conftest.er1
25283 ac_status=$?
25284 grep -v '^ *+' conftest.er1 >conftest.err
25285 rm -f conftest.er1
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } && {
25289 test -z "$ac_c_werror_flag" ||
25290 test ! -s conftest.err
25291 } && test -s conftest.$ac_objext; then
25292 ac_header_compiler=yes
25293 else
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25297 ac_header_compiler=no
25300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25302 echo "${ECHO_T}$ac_header_compiler" >&6; }
25304 # Is the header present?
25305 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
25306 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h. */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 #include <${POPT_DIR}/include/popt.h>
25314 _ACEOF
25315 if { (ac_try="$ac_cpp conftest.$ac_ext"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25322 ac_status=$?
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } >/dev/null && {
25328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 }; then
25331 ac_header_preproc=yes
25332 else
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_header_preproc=no
25339 rm -f conftest.err conftest.$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341 echo "${ECHO_T}$ac_header_preproc" >&6; }
25343 # So? What about this header?
25344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25345 yes:no: )
25346 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25347 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
25349 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
25350 ac_header_preproc=yes
25352 no:yes:* )
25353 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
25354 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
25356 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
25358 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
25360 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25361 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
25362 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
25364 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
25365 ( cat <<\_ASBOX
25366 ## ------------------------------- ##
25367 ## Report this to www.asterisk.org ##
25368 ## ------------------------------- ##
25369 _ASBOX
25370 ) | sed "s/^/$as_me: WARNING: /" >&2
25372 esac
25373 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
25374 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
25375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25376 echo $ECHO_N "(cached) $ECHO_C" >&6
25377 else
25378 eval "$as_ac_Header=\$ac_header_preproc"
25380 ac_res=`eval echo '${'$as_ac_Header'}'`
25381 { echo "$as_me:$LINENO: result: $ac_res" >&5
25382 echo "${ECHO_T}$ac_res" >&6; }
25385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25386 POPT_HEADER_FOUND=1
25387 else
25388 POPT_HEADER_FOUND=0
25393 CPPFLAGS="${saved_cppflags}"
25394 else
25395 if test "xpopt.h" != "x" ; then
25396 if test "${ac_cv_header_popt_h+set}" = set; then
25397 { echo "$as_me:$LINENO: checking for popt.h" >&5
25398 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25399 if test "${ac_cv_header_popt_h+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25402 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25403 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25404 else
25405 # Is the header compilable?
25406 { echo "$as_me:$LINENO: checking popt.h usability" >&5
25407 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
25408 cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h. */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25414 $ac_includes_default
25415 #include <popt.h>
25416 _ACEOF
25417 rm -f conftest.$ac_objext
25418 if { (ac_try="$ac_compile"
25419 case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25422 esac
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424 (eval "$ac_compile") 2>conftest.er1
25425 ac_status=$?
25426 grep -v '^ *+' conftest.er1 >conftest.err
25427 rm -f conftest.er1
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && {
25431 test -z "$ac_c_werror_flag" ||
25432 test ! -s conftest.err
25433 } && test -s conftest.$ac_objext; then
25434 ac_header_compiler=yes
25435 else
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25439 ac_header_compiler=no
25442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25444 echo "${ECHO_T}$ac_header_compiler" >&6; }
25446 # Is the header present?
25447 { echo "$as_me:$LINENO: checking popt.h presence" >&5
25448 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h. */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 #include <popt.h>
25456 _ACEOF
25457 if { (ac_try="$ac_cpp conftest.$ac_ext"
25458 case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25461 esac
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null && {
25470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 }; then
25473 ac_header_preproc=yes
25474 else
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_preproc=no
25481 rm -f conftest.err conftest.$ac_ext
25482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25483 echo "${ECHO_T}$ac_header_preproc" >&6; }
25485 # So? What about this header?
25486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25487 yes:no: )
25488 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
25489 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25490 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
25491 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
25492 ac_header_preproc=yes
25494 no:yes:* )
25495 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
25496 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
25498 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
25500 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
25502 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
25504 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
25506 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
25507 ( cat <<\_ASBOX
25508 ## ------------------------------- ##
25509 ## Report this to www.asterisk.org ##
25510 ## ------------------------------- ##
25511 _ASBOX
25512 ) | sed "s/^/$as_me: WARNING: /" >&2
25514 esac
25515 { echo "$as_me:$LINENO: checking for popt.h" >&5
25516 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
25517 if test "${ac_cv_header_popt_h+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520 ac_cv_header_popt_h=$ac_header_preproc
25522 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
25523 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
25526 if test $ac_cv_header_popt_h = yes; then
25527 POPT_HEADER_FOUND=1
25528 else
25529 POPT_HEADER_FOUND=0
25535 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
25536 if test -n "${POPT_MANDATORY}" ;
25537 then
25538 { echo "$as_me:$LINENO: ***" >&5
25539 echo "$as_me: ***" >&6;}
25540 { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
25541 echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
25542 { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
25543 echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
25544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25545 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25546 exit 1
25548 POPT_LIB=""
25549 POPT_INCLUDE=""
25550 PBX_POPT=0
25551 else
25552 PBX_POPT=1
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_POPT 1
25556 _ACEOF
25559 elif test -n "${POPT_MANDATORY}";
25560 then
25561 { echo "$as_me:$LINENO: ***" >&5
25562 echo "$as_me: ***" >&6;}
25563 { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
25564 echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
25565 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25566 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25567 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
25568 echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
25569 exit 1
25575 if test "${USE_PRI}" != "no"; then
25576 pbxlibdir=""
25577 if test "x${PRI_DIR}" != "x"; then
25578 if test -d ${PRI_DIR}/lib; then
25579 pbxlibdir="-L${PRI_DIR}/lib"
25580 else
25581 pbxlibdir="-L${PRI_DIR}"
25584 { echo "$as_me:$LINENO: checking for pri_keypad_facility in -lpri" >&5
25585 echo $ECHO_N "checking for pri_keypad_facility in -lpri... $ECHO_C" >&6; }
25586 if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25588 else
25589 ac_check_lib_save_LIBS=$LIBS
25590 LIBS="-lpri ${pbxlibdir} $LIBS"
25591 cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h. */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25598 /* Override any GCC internal prototype to avoid an error.
25599 Use char because int might match the return type of a GCC
25600 builtin and then its argument prototype would still apply. */
25601 #ifdef __cplusplus
25602 extern "C"
25603 #endif
25604 char pri_keypad_facility ();
25606 main ()
25608 return pri_keypad_facility ();
25610 return 0;
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617 *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620 (eval "$ac_link") 2>conftest.er1
25621 ac_status=$?
25622 grep -v '^ *+' conftest.er1 >conftest.err
25623 rm -f conftest.er1
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && {
25627 test -z "$ac_c_werror_flag" ||
25628 test ! -s conftest.err
25629 } && test -s conftest$ac_exeext &&
25630 $as_test_x conftest$ac_exeext; then
25631 ac_cv_lib_pri_pri_keypad_facility=yes
25632 else
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25636 ac_cv_lib_pri_pri_keypad_facility=no
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640 conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25643 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
25644 echo "${ECHO_T}$ac_cv_lib_pri_pri_keypad_facility" >&6; }
25645 if test $ac_cv_lib_pri_pri_keypad_facility = yes; then
25646 AST_PRI_FOUND=yes
25647 else
25648 AST_PRI_FOUND=no
25652 if test "${AST_PRI_FOUND}" = "yes"; then
25653 PRI_LIB="-lpri "
25654 PRI_HEADER_FOUND="1"
25655 if test "x${PRI_DIR}" != "x"; then
25656 PRI_LIB="${pbxlibdir} ${PRI_LIB}"
25657 PRI_INCLUDE="-I${PRI_DIR}/include"
25658 saved_cppflags="${CPPFLAGS}"
25659 CPPFLAGS="${CPPFLAGS} -I${PRI_DIR}/include"
25660 if test "xlibpri.h" != "x" ; then
25661 as_ac_Header=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
25662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25663 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25664 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25666 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 ac_res=`eval echo '${'$as_ac_Header'}'`
25669 { echo "$as_me:$LINENO: result: $ac_res" >&5
25670 echo "${ECHO_T}$ac_res" >&6; }
25671 else
25672 # Is the header compilable?
25673 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
25674 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
25675 cat >conftest.$ac_ext <<_ACEOF
25676 /* confdefs.h. */
25677 _ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h. */
25681 $ac_includes_default
25682 #include <${PRI_DIR}/include/libpri.h>
25683 _ACEOF
25684 rm -f conftest.$ac_objext
25685 if { (ac_try="$ac_compile"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_compile") 2>conftest.er1
25692 ac_status=$?
25693 grep -v '^ *+' conftest.er1 >conftest.err
25694 rm -f conftest.er1
25695 cat conftest.err >&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } && {
25698 test -z "$ac_c_werror_flag" ||
25699 test ! -s conftest.err
25700 } && test -s conftest.$ac_objext; then
25701 ac_header_compiler=yes
25702 else
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25706 ac_header_compiler=no
25709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25711 echo "${ECHO_T}$ac_header_compiler" >&6; }
25713 # Is the header present?
25714 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
25715 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
25716 cat >conftest.$ac_ext <<_ACEOF
25717 /* confdefs.h. */
25718 _ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h. */
25722 #include <${PRI_DIR}/include/libpri.h>
25723 _ACEOF
25724 if { (ac_try="$ac_cpp conftest.$ac_ext"
25725 case "(($ac_try" in
25726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25728 esac
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25731 ac_status=$?
25732 grep -v '^ *+' conftest.er1 >conftest.err
25733 rm -f conftest.er1
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } >/dev/null && {
25737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25739 }; then
25740 ac_header_preproc=yes
25741 else
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25745 ac_header_preproc=no
25748 rm -f conftest.err conftest.$ac_ext
25749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25750 echo "${ECHO_T}$ac_header_preproc" >&6; }
25752 # So? What about this header?
25753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25754 yes:no: )
25755 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25756 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25757 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
25758 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
25759 ac_header_preproc=yes
25761 no:yes:* )
25762 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
25763 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
25765 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
25766 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
25767 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
25768 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25769 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25770 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
25771 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
25773 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
25774 ( cat <<\_ASBOX
25775 ## ------------------------------- ##
25776 ## Report this to www.asterisk.org ##
25777 ## ------------------------------- ##
25778 _ASBOX
25779 ) | sed "s/^/$as_me: WARNING: /" >&2
25781 esac
25782 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
25783 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else
25787 eval "$as_ac_Header=\$ac_header_preproc"
25789 ac_res=`eval echo '${'$as_ac_Header'}'`
25790 { echo "$as_me:$LINENO: result: $ac_res" >&5
25791 echo "${ECHO_T}$ac_res" >&6; }
25794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25795 PRI_HEADER_FOUND=1
25796 else
25797 PRI_HEADER_FOUND=0
25802 CPPFLAGS="${saved_cppflags}"
25803 else
25804 if test "xlibpri.h" != "x" ; then
25805 if test "${ac_cv_header_libpri_h+set}" = set; then
25806 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25807 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25808 if test "${ac_cv_header_libpri_h+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25811 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25812 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25813 else
25814 # Is the header compilable?
25815 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
25816 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
25817 cat >conftest.$ac_ext <<_ACEOF
25818 /* confdefs.h. */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h. */
25823 $ac_includes_default
25824 #include <libpri.h>
25825 _ACEOF
25826 rm -f conftest.$ac_objext
25827 if { (ac_try="$ac_compile"
25828 case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25831 esac
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25834 ac_status=$?
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.$ac_objext; then
25843 ac_header_compiler=yes
25844 else
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 ac_header_compiler=no
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853 echo "${ECHO_T}$ac_header_compiler" >&6; }
25855 # Is the header present?
25856 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
25857 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
25858 cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h. */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 #include <libpri.h>
25865 _ACEOF
25866 if { (ac_try="$ac_cpp conftest.$ac_ext"
25867 case "(($ac_try" in
25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25870 esac
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25873 ac_status=$?
25874 grep -v '^ *+' conftest.er1 >conftest.err
25875 rm -f conftest.er1
25876 cat conftest.err >&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } >/dev/null && {
25879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 }; then
25882 ac_header_preproc=yes
25883 else
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 ac_header_preproc=no
25890 rm -f conftest.err conftest.$ac_ext
25891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25892 echo "${ECHO_T}$ac_header_preproc" >&6; }
25894 # So? What about this header?
25895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25896 yes:no: )
25897 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
25898 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25899 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
25900 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
25901 ac_header_preproc=yes
25903 no:yes:* )
25904 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
25905 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
25907 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
25908 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
25909 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
25910 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
25911 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
25912 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
25913 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
25914 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
25915 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
25916 ( cat <<\_ASBOX
25917 ## ------------------------------- ##
25918 ## Report this to www.asterisk.org ##
25919 ## ------------------------------- ##
25920 _ASBOX
25921 ) | sed "s/^/$as_me: WARNING: /" >&2
25923 esac
25924 { echo "$as_me:$LINENO: checking for libpri.h" >&5
25925 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
25926 if test "${ac_cv_header_libpri_h+set}" = set; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
25928 else
25929 ac_cv_header_libpri_h=$ac_header_preproc
25931 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
25932 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
25935 if test $ac_cv_header_libpri_h = yes; then
25936 PRI_HEADER_FOUND=1
25937 else
25938 PRI_HEADER_FOUND=0
25944 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
25945 if test -n "${PRI_MANDATORY}" ;
25946 then
25947 { echo "$as_me:$LINENO: ***" >&5
25948 echo "$as_me: ***" >&6;}
25949 { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
25950 echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
25951 { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
25952 echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
25953 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25954 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25955 exit 1
25957 PRI_LIB=""
25958 PRI_INCLUDE=""
25959 PBX_PRI=0
25960 else
25961 PBX_PRI=1
25963 cat >>confdefs.h <<_ACEOF
25964 #define HAVE_PRI 1
25965 _ACEOF
25968 elif test -n "${PRI_MANDATORY}";
25969 then
25970 { echo "$as_me:$LINENO: ***" >&5
25971 echo "$as_me: ***" >&6;}
25972 { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
25973 echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
25974 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
25975 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
25976 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
25977 echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
25978 exit 1
25983 if test "${USE_PWLIB}" != "no"; then
25984 if test -n "${PWLIB_DIR}"; then
25985 PWLIBDIR="${PWLIB_DIR}"
25989 PWLIB_INCDIR=
25990 PWLIB_LIBDIR=
25991 ac_ext=cpp
25992 ac_cpp='$CXXCPP $CPPFLAGS'
25993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25997 if test "${PWLIBDIR:-unset}" != "unset" ; then
25998 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
25999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26000 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26001 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 ac_res=`eval echo '${'$as_ac_Header'}'`
26006 { echo "$as_me:$LINENO: result: $ac_res" >&5
26007 echo "${ECHO_T}$ac_res" >&6; }
26008 else
26009 # Is the header compilable?
26010 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
26011 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
26012 cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h. */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 $ac_includes_default
26019 #include <${PWLIBDIR}/version.h>
26020 _ACEOF
26021 rm -f conftest.$ac_objext
26022 if { (ac_try="$ac_compile"
26023 case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26026 esac
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_compile") 2>conftest.er1
26029 ac_status=$?
26030 grep -v '^ *+' conftest.er1 >conftest.err
26031 rm -f conftest.er1
26032 cat conftest.err >&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_cxx_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest.$ac_objext; then
26038 ac_header_compiler=yes
26039 else
26040 echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26043 ac_header_compiler=no
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26048 echo "${ECHO_T}$ac_header_compiler" >&6; }
26050 # Is the header present?
26051 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
26052 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h. */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <${PWLIBDIR}/version.h>
26060 _ACEOF
26061 if { (ac_try="$ac_cpp conftest.$ac_ext"
26062 case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26065 esac
26066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } >/dev/null && {
26074 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26075 test ! -s conftest.err
26076 }; then
26077 ac_header_preproc=yes
26078 else
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26082 ac_header_preproc=no
26085 rm -f conftest.err conftest.$ac_ext
26086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26087 echo "${ECHO_T}$ac_header_preproc" >&6; }
26089 # So? What about this header?
26090 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26091 yes:no: )
26092 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26093 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26094 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
26095 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
26096 ac_header_preproc=yes
26098 no:yes:* )
26099 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
26100 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
26102 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
26104 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
26106 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26107 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
26108 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
26110 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
26111 ( cat <<\_ASBOX
26112 ## ------------------------------- ##
26113 ## Report this to www.asterisk.org ##
26114 ## ------------------------------- ##
26115 _ASBOX
26116 ) | sed "s/^/$as_me: WARNING: /" >&2
26118 esac
26119 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
26120 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
26121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26123 else
26124 eval "$as_ac_Header=\$ac_header_preproc"
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26132 HAS_PWLIB=1
26137 if test "${HAS_PWLIB:-unset}" = "unset" ; then
26138 if test "${OPENH323DIR:-unset}" != "unset"; then
26139 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
26140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26141 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26142 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26146 ac_res=`eval echo '${'$as_ac_Header'}'`
26147 { echo "$as_me:$LINENO: result: $ac_res" >&5
26148 echo "${ECHO_T}$ac_res" >&6; }
26149 else
26150 # Is the header compilable?
26151 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
26152 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
26153 cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h. */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 $ac_includes_default
26160 #include <${OPENH323DIR}/../pwlib/version.h>
26161 _ACEOF
26162 rm -f conftest.$ac_objext
26163 if { (ac_try="$ac_compile"
26164 case "(($ac_try" in
26165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166 *) ac_try_echo=$ac_try;;
26167 esac
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_compile") 2>conftest.er1
26170 ac_status=$?
26171 grep -v '^ *+' conftest.er1 >conftest.err
26172 rm -f conftest.er1
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && {
26176 test -z "$ac_cxx_werror_flag" ||
26177 test ! -s conftest.err
26178 } && test -s conftest.$ac_objext; then
26179 ac_header_compiler=yes
26180 else
26181 echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26184 ac_header_compiler=no
26187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26189 echo "${ECHO_T}$ac_header_compiler" >&6; }
26191 # Is the header present?
26192 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
26193 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
26194 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h. */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26200 #include <${OPENH323DIR}/../pwlib/version.h>
26201 _ACEOF
26202 if { (ac_try="$ac_cpp conftest.$ac_ext"
26203 case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26206 esac
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26209 ac_status=$?
26210 grep -v '^ *+' conftest.er1 >conftest.err
26211 rm -f conftest.er1
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } >/dev/null && {
26215 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26216 test ! -s conftest.err
26217 }; then
26218 ac_header_preproc=yes
26219 else
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_header_preproc=no
26226 rm -f conftest.err conftest.$ac_ext
26227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26228 echo "${ECHO_T}$ac_header_preproc" >&6; }
26230 # So? What about this header?
26231 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26232 yes:no: )
26233 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
26234 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
26236 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
26237 ac_header_preproc=yes
26239 no:yes:* )
26240 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
26241 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
26243 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
26245 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
26247 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
26249 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
26251 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
26252 ( cat <<\_ASBOX
26253 ## ------------------------------- ##
26254 ## Report this to www.asterisk.org ##
26255 ## ------------------------------- ##
26256 _ASBOX
26257 ) | sed "s/^/$as_me: WARNING: /" >&2
26259 esac
26260 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
26261 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
26262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26263 echo $ECHO_N "(cached) $ECHO_C" >&6
26264 else
26265 eval "$as_ac_Header=\$ac_header_preproc"
26267 ac_res=`eval echo '${'$as_ac_Header'}'`
26268 { echo "$as_me:$LINENO: result: $ac_res" >&5
26269 echo "${ECHO_T}$ac_res" >&6; }
26272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26273 HAS_PWLIB=1
26278 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26279 PWLIBDIR="${OPENH323DIR}/../pwlib"
26280 else
26281 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
26282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26283 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26284 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26288 ac_res=`eval echo '${'$as_ac_Header'}'`
26289 { echo "$as_me:$LINENO: result: $ac_res" >&5
26290 echo "${ECHO_T}$ac_res" >&6; }
26291 else
26292 # Is the header compilable?
26293 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
26294 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
26295 cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h. */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26302 #include <${HOME}/pwlib/include/ptlib.h>
26303 _ACEOF
26304 rm -f conftest.$ac_objext
26305 if { (ac_try="$ac_compile"
26306 case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26309 esac
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_compile") 2>conftest.er1
26312 ac_status=$?
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } && {
26318 test -z "$ac_cxx_werror_flag" ||
26319 test ! -s conftest.err
26320 } && test -s conftest.$ac_objext; then
26321 ac_header_compiler=yes
26322 else
26323 echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26326 ac_header_compiler=no
26329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26331 echo "${ECHO_T}$ac_header_compiler" >&6; }
26333 # Is the header present?
26334 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
26335 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
26336 cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h. */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 #include <${HOME}/pwlib/include/ptlib.h>
26343 _ACEOF
26344 if { (ac_try="$ac_cpp conftest.$ac_ext"
26345 case "(($ac_try" in
26346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26348 esac
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26351 ac_status=$?
26352 grep -v '^ *+' conftest.er1 >conftest.err
26353 rm -f conftest.er1
26354 cat conftest.err >&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } >/dev/null && {
26357 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26358 test ! -s conftest.err
26359 }; then
26360 ac_header_preproc=yes
26361 else
26362 echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26365 ac_header_preproc=no
26368 rm -f conftest.err conftest.$ac_ext
26369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26370 echo "${ECHO_T}$ac_header_preproc" >&6; }
26372 # So? What about this header?
26373 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26374 yes:no: )
26375 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26376 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
26378 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
26379 ac_header_preproc=yes
26381 no:yes:* )
26382 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
26383 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
26385 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
26387 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26389 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
26391 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26392 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
26393 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26394 ( cat <<\_ASBOX
26395 ## ------------------------------- ##
26396 ## Report this to www.asterisk.org ##
26397 ## ------------------------------- ##
26398 _ASBOX
26399 ) | sed "s/^/$as_me: WARNING: /" >&2
26401 esac
26402 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
26403 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
26404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26405 echo $ECHO_N "(cached) $ECHO_C" >&6
26406 else
26407 eval "$as_ac_Header=\$ac_header_preproc"
26409 ac_res=`eval echo '${'$as_ac_Header'}'`
26410 { echo "$as_me:$LINENO: result: $ac_res" >&5
26411 echo "${ECHO_T}$ac_res" >&6; }
26414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26415 HAS_PWLIB=1
26419 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26420 PWLIBDIR="${HOME}/pwlib"
26421 else
26422 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26423 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26424 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26425 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26429 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26430 else
26431 # Is the header compilable?
26432 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
26433 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
26434 cat >conftest.$ac_ext <<_ACEOF
26435 /* confdefs.h. */
26436 _ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26440 $ac_includes_default
26441 #include </usr/local/include/ptlib.h>
26442 _ACEOF
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_compile") 2>conftest.er1
26451 ac_status=$?
26452 grep -v '^ *+' conftest.er1 >conftest.err
26453 rm -f conftest.er1
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } && {
26457 test -z "$ac_cxx_werror_flag" ||
26458 test ! -s conftest.err
26459 } && test -s conftest.$ac_objext; then
26460 ac_header_compiler=yes
26461 else
26462 echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26465 ac_header_compiler=no
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26470 echo "${ECHO_T}$ac_header_compiler" >&6; }
26472 # Is the header present?
26473 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
26474 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h. */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26481 #include </usr/local/include/ptlib.h>
26482 _ACEOF
26483 if { (ac_try="$ac_cpp conftest.$ac_ext"
26484 case "(($ac_try" in
26485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26487 esac
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26490 ac_status=$?
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } >/dev/null && {
26496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26497 test ! -s conftest.err
26498 }; then
26499 ac_header_preproc=yes
26500 else
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 ac_header_preproc=no
26507 rm -f conftest.err conftest.$ac_ext
26508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26509 echo "${ECHO_T}$ac_header_preproc" >&6; }
26511 # So? What about this header?
26512 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26513 yes:no: )
26514 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26515 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
26517 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
26518 ac_header_preproc=yes
26520 no:yes:* )
26521 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
26522 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
26524 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
26526 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26528 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
26530 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
26532 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26533 ( cat <<\_ASBOX
26534 ## ------------------------------- ##
26535 ## Report this to www.asterisk.org ##
26536 ## ------------------------------- ##
26537 _ASBOX
26538 ) | sed "s/^/$as_me: WARNING: /" >&2
26540 esac
26541 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
26542 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
26543 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
26548 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
26549 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
26552 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
26553 HAS_PWLIB=1
26557 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26558 # Extract the first word of "ptlib-config", so it can be a program name with args.
26559 set dummy ptlib-config; ac_word=$2
26560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26562 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565 case $PTLIB_CONFIG in
26566 [\\/]* | ?:[\\/]*)
26567 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26571 for as_dir in /usr/local/bin
26573 IFS=$as_save_IFS
26574 test -z "$as_dir" && as_dir=.
26575 for ac_exec_ext in '' $ac_executable_extensions; do
26576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26577 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26579 break 2
26581 done
26582 done
26583 IFS=$as_save_IFS
26586 esac
26588 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26589 if test -n "$PTLIB_CONFIG"; then
26590 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26591 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26592 else
26593 { echo "$as_me:$LINENO: result: no" >&5
26594 echo "${ECHO_T}no" >&6; }
26598 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
26599 # Extract the first word of "ptlib-config", so it can be a program name with args.
26600 set dummy ptlib-config; ac_word=$2
26601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26603 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26605 else
26606 case $PTLIB_CONFIG in
26607 [\\/]* | ?:[\\/]*)
26608 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612 for as_dir in /usr/local/share/pwlib/make
26614 IFS=$as_save_IFS
26615 test -z "$as_dir" && as_dir=.
26616 for ac_exec_ext in '' $ac_executable_extensions; do
26617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26618 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26620 break 2
26622 done
26623 done
26624 IFS=$as_save_IFS
26627 esac
26629 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26630 if test -n "$PTLIB_CONFIG"; then
26631 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26632 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26633 else
26634 { echo "$as_me:$LINENO: result: no" >&5
26635 echo "${ECHO_T}no" >&6; }
26640 PWLIB_INCDIR="/usr/local/include"
26641 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26642 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26643 if test "x$LIB64" != "x"; then
26644 PWLIB_LIBDIR="/usr/local/lib64"
26645 else
26646 PWLIB_LIBDIR="/usr/local/lib"
26649 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26650 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26651 else
26652 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26653 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26654 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26655 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26656 echo $ECHO_N "(cached) $ECHO_C" >&6
26658 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26659 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26660 else
26661 # Is the header compilable?
26662 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
26663 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
26664 cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h. */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26670 $ac_includes_default
26671 #include </usr/include/ptlib.h>
26672 _ACEOF
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26678 esac
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26681 ac_status=$?
26682 grep -v '^ *+' conftest.er1 >conftest.err
26683 rm -f conftest.er1
26684 cat conftest.err >&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_cxx_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.$ac_objext; then
26690 ac_header_compiler=yes
26691 else
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 ac_header_compiler=no
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26700 echo "${ECHO_T}$ac_header_compiler" >&6; }
26702 # Is the header present?
26703 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
26704 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
26705 cat >conftest.$ac_ext <<_ACEOF
26706 /* confdefs.h. */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 #include </usr/include/ptlib.h>
26712 _ACEOF
26713 if { (ac_try="$ac_cpp conftest.$ac_ext"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26720 ac_status=$?
26721 grep -v '^ *+' conftest.er1 >conftest.err
26722 rm -f conftest.er1
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } >/dev/null && {
26726 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26727 test ! -s conftest.err
26728 }; then
26729 ac_header_preproc=yes
26730 else
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_header_preproc=no
26737 rm -f conftest.err conftest.$ac_ext
26738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26739 echo "${ECHO_T}$ac_header_preproc" >&6; }
26741 # So? What about this header?
26742 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26743 yes:no: )
26744 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26745 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26746 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
26747 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
26748 ac_header_preproc=yes
26750 no:yes:* )
26751 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
26752 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
26753 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
26754 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
26755 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
26756 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
26757 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
26758 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26759 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
26760 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
26761 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
26762 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
26763 ( cat <<\_ASBOX
26764 ## ------------------------------- ##
26765 ## Report this to www.asterisk.org ##
26766 ## ------------------------------- ##
26767 _ASBOX
26768 ) | sed "s/^/$as_me: WARNING: /" >&2
26770 esac
26771 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
26772 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
26773 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26775 else
26776 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
26778 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
26779 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
26782 if test $ac_cv_header__usr_include_ptlib_h = yes; then
26783 HAS_PWLIB=1
26787 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26788 # Extract the first word of "ptlib-config", so it can be a program name with args.
26789 set dummy ptlib-config; ac_word=$2
26790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26792 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
26793 echo $ECHO_N "(cached) $ECHO_C" >&6
26794 else
26795 case $PTLIB_CONFIG in
26796 [\\/]* | ?:[\\/]*)
26797 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
26800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26801 for as_dir in /usr/share/pwlib/make
26803 IFS=$as_save_IFS
26804 test -z "$as_dir" && as_dir=.
26805 for ac_exec_ext in '' $ac_executable_extensions; do
26806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26807 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26809 break 2
26811 done
26812 done
26813 IFS=$as_save_IFS
26816 esac
26818 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
26819 if test -n "$PTLIB_CONFIG"; then
26820 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
26821 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
26822 else
26823 { echo "$as_me:$LINENO: result: no" >&5
26824 echo "${ECHO_T}no" >&6; }
26828 PWLIB_INCDIR="/usr/include"
26829 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
26830 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26831 if test "x$LIB64" != "x"; then
26832 PWLIB_LIBDIR="/usr/lib64"
26833 else
26834 PWLIB_LIBDIR="/usr/lib"
26837 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
26838 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
26845 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
26846 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
26847 # exit
26850 if test "${HAS_PWLIB:-unset}" != "unset" ; then
26851 if test "${PWLIBDIR:-unset}" = "unset" ; then
26852 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
26853 PWLIBDIR=`$PTLIB_CONFIG --prefix`
26854 else
26855 echo "Cannot find ptlib-config - please install and try again"
26856 exit
26860 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
26861 PWLIBDIR="/usr/share/pwlib"
26862 PWLIB_INCDIR="/usr/include"
26863 if test "x$LIB64" != "x"; then
26864 PWLIB_LIBDIR="/usr/lib64"
26865 else
26866 PWLIB_LIBDIR="/usr/lib"
26869 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
26870 PWLIBDIR="/usr/local/share/pwlib"
26871 PWLIB_INCDIR="/usr/local/include"
26872 if test "x$LIB64" != "x"; then
26873 PWLIB_LIBDIR="/usr/local/lib64"
26874 else
26875 PWLIB_LIBDIR="/usr/local/lib"
26879 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
26880 PWLIB_INCDIR="${PWLIBDIR}/include"
26882 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
26883 PWLIB_LIBDIR="${PWLIBDIR}/lib"
26890 ac_ext=c
26891 ac_cpp='$CPP $CPPFLAGS'
26892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26898 if test "${HAS_PWLIB:-unset}" != "unset"; then
26899 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
26900 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
26901 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
26902 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
26903 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
26904 let PWLIB_REQ=1*10000+9*100+2
26906 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
26907 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
26908 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
26909 { echo "$as_me:$LINENO: result: no" >&5
26910 echo "${ECHO_T}no" >&6; }
26911 unset HAS_PWLIB
26912 else
26913 { echo "$as_me:$LINENO: result: yes" >&5
26914 echo "${ECHO_T}yes" >&6; }
26919 if test "${HAS_PWLIB:-unset}" != "unset"; then
26921 PWLIB_OSTYPE=
26922 case "$host_os" in
26923 linux*) PWLIB_OSTYPE=linux ;
26925 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
26927 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
26928 ENDLDLIBS="-lossaudio" ;
26930 netbsd* ) PWLIB_OSTYPE=NetBSD ;
26931 ENDLDLIBS="-lossaudio" ;
26933 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
26935 darwin* ) PWLIB_OSTYPE=Darwin ;
26937 beos*) PWLIB_OSTYPE=beos ;
26938 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
26940 cygwin*) PWLIB_OSTYPE=cygwin ;
26942 mingw*) PWLIB_OSTYPE=mingw ;
26943 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
26944 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
26946 * ) PWLIB_OSTYPE="$host_os" ;
26947 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
26948 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
26950 esac
26952 PWLIB_MACHTYPE=
26953 case "$host_cpu" in
26954 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
26957 x86_64) PWLIB_MACHTYPE=x86_64 ;
26958 P_64BIT=1 ;
26959 LIB64=1 ;
26962 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
26963 P_64BIT=1 ;
26966 sparc ) PWLIB_MACHTYPE=sparc ;
26969 powerpc ) PWLIB_MACHTYPE=ppc ;
26972 ppc ) PWLIB_MACHTYPE=ppc ;
26975 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
26976 P_64BIT=1 ;
26977 LIB64=1 ;
26980 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
26981 P_64BIT=1 ;
26982 LIB64=1 ;
26985 ia64) PWLIB_MACHTYPE=ia64 ;
26986 P_64BIT=1 ;
26989 s390x) PWLIB_MACHTYPE=s390x ;
26990 P_64BIT=1 ;
26991 LIB64=1 ;
26994 s390) PWLIB_MACHTYPE=s390 ;
26997 * ) PWLIB_MACHTYPE="$host_cpu";
26998 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
26999 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
27000 esac
27002 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
27007 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
27010 if test "${HAS_PWLIB:-unset}" != "unset"; then
27011 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
27012 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
27014 saved_cppflags="${CPPFLAGS}"
27015 saved_libs="${LIBS}"
27016 if test "${PWLIB_LIB:-unset}" != "unset"; then
27017 LIBS="${LIBS} ${PWLIB_LIB} "
27018 else
27019 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
27021 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
27023 ac_ext=cpp
27024 ac_cpp='$CXXCPP $CPPFLAGS'
27025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27030 cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h. */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27036 #include "ptlib.h"
27038 main ()
27040 BOOL q = PTime::IsDaylightSavings();
27042 return 0;
27044 _ACEOF
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27050 esac
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_link") 2>conftest.er1
27053 ac_status=$?
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_cxx_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest$ac_exeext &&
27062 $as_test_x conftest$ac_exeext; then
27063 { echo "$as_me:$LINENO: result: yes" >&5
27064 echo "${ECHO_T}yes" >&6; }
27065 ac_cv_lib_PWLIB="yes"
27067 else
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071 { echo "$as_me:$LINENO: result: no" >&5
27072 echo "${ECHO_T}no" >&6; }
27073 ac_cv_lib_PWLIB="no"
27078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27079 conftest$ac_exeext conftest.$ac_ext
27081 ac_ext=c
27082 ac_cpp='$CPP $CPPFLAGS'
27083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27088 LIBS="${saved_libs}"
27089 CPPFLAGS="${saved_cppflags}"
27091 if test "${ac_cv_lib_PWLIB}" = "yes"; then
27092 if test "${PWLIB_LIB:-undef}" = "undef"; then
27093 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
27094 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
27095 else
27096 PWLIB_LIB="-l${PLATFORM_PWLIB}"
27099 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
27100 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
27102 PBX_PWLIB=1
27104 cat >>confdefs.h <<\_ACEOF
27105 #define HAVE_PWLIB 1
27106 _ACEOF
27114 if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
27115 { echo "$as_me:$LINENO: ***" >&5
27116 echo "$as_me: ***" >&6;}
27117 { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
27118 echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
27119 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
27120 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
27121 { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
27122 echo "$as_me: *** including --without-pwlib" >&6;}
27123 exit 1
27126 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
27127 if test -n "${OPENH323_DIR}"; then
27128 OPENH323DIR="${OPENH323_DIR}"
27131 OPENH323_INCDIR=
27132 OPENH323_LIBDIR=
27133 ac_ext=cpp
27134 ac_cpp='$CXXCPP $CPPFLAGS'
27135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27139 if test "${OPENH323DIR:-unset}" != "unset" ; then
27140 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
27141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27142 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27143 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27147 ac_res=`eval echo '${'$as_ac_Header'}'`
27148 { echo "$as_me:$LINENO: result: $ac_res" >&5
27149 echo "${ECHO_T}$ac_res" >&6; }
27150 else
27151 # Is the header compilable?
27152 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
27153 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
27154 cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h. */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 $ac_includes_default
27161 #include <${OPENH323DIR}/version.h>
27162 _ACEOF
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168 esac
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_compile") 2>conftest.er1
27171 ac_status=$?
27172 grep -v '^ *+' conftest.er1 >conftest.err
27173 rm -f conftest.er1
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } && {
27177 test -z "$ac_cxx_werror_flag" ||
27178 test ! -s conftest.err
27179 } && test -s conftest.$ac_objext; then
27180 ac_header_compiler=yes
27181 else
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 ac_header_compiler=no
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27190 echo "${ECHO_T}$ac_header_compiler" >&6; }
27192 # Is the header present?
27193 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
27194 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
27195 cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h. */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 #include <${OPENH323DIR}/version.h>
27202 _ACEOF
27203 if { (ac_try="$ac_cpp conftest.$ac_ext"
27204 case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27207 esac
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27210 ac_status=$?
27211 grep -v '^ *+' conftest.er1 >conftest.err
27212 rm -f conftest.er1
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } >/dev/null && {
27216 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27217 test ! -s conftest.err
27218 }; then
27219 ac_header_preproc=yes
27220 else
27221 echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27224 ac_header_preproc=no
27227 rm -f conftest.err conftest.$ac_ext
27228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27229 echo "${ECHO_T}$ac_header_preproc" >&6; }
27231 # So? What about this header?
27232 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27233 yes:no: )
27234 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27235 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27236 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
27237 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
27238 ac_header_preproc=yes
27240 no:yes:* )
27241 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
27242 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
27243 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
27244 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
27245 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
27246 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
27247 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
27248 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
27250 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
27252 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
27253 ( cat <<\_ASBOX
27254 ## ------------------------------- ##
27255 ## Report this to www.asterisk.org ##
27256 ## ------------------------------- ##
27257 _ASBOX
27258 ) | sed "s/^/$as_me: WARNING: /" >&2
27260 esac
27261 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
27262 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
27263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266 eval "$as_ac_Header=\$ac_header_preproc"
27268 ac_res=`eval echo '${'$as_ac_Header'}'`
27269 { echo "$as_me:$LINENO: result: $ac_res" >&5
27270 echo "${ECHO_T}$ac_res" >&6; }
27273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27274 HAS_OPENH323=1
27279 if test "${HAS_OPENH323:-unset}" = "unset" ; then
27280 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
27281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27282 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27283 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 ac_res=`eval echo '${'$as_ac_Header'}'`
27288 { echo "$as_me:$LINENO: result: $ac_res" >&5
27289 echo "${ECHO_T}$ac_res" >&6; }
27290 else
27291 # Is the header compilable?
27292 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
27293 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
27294 cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h. */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 $ac_includes_default
27301 #include <${PWLIBDIR}/../openh323/version.h>
27302 _ACEOF
27303 rm -f conftest.$ac_objext
27304 if { (ac_try="$ac_compile"
27305 case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_compile") 2>conftest.er1
27311 ac_status=$?
27312 grep -v '^ *+' conftest.er1 >conftest.err
27313 rm -f conftest.er1
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } && {
27317 test -z "$ac_cxx_werror_flag" ||
27318 test ! -s conftest.err
27319 } && test -s conftest.$ac_objext; then
27320 ac_header_compiler=yes
27321 else
27322 echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27325 ac_header_compiler=no
27328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27330 echo "${ECHO_T}$ac_header_compiler" >&6; }
27332 # Is the header present?
27333 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
27334 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
27335 cat >conftest.$ac_ext <<_ACEOF
27336 /* confdefs.h. */
27337 _ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27341 #include <${PWLIBDIR}/../openh323/version.h>
27342 _ACEOF
27343 if { (ac_try="$ac_cpp conftest.$ac_ext"
27344 case "(($ac_try" in
27345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27347 esac
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27350 ac_status=$?
27351 grep -v '^ *+' conftest.er1 >conftest.err
27352 rm -f conftest.er1
27353 cat conftest.err >&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); } >/dev/null && {
27356 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27357 test ! -s conftest.err
27358 }; then
27359 ac_header_preproc=yes
27360 else
27361 echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27364 ac_header_preproc=no
27367 rm -f conftest.err conftest.$ac_ext
27368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27369 echo "${ECHO_T}$ac_header_preproc" >&6; }
27371 # So? What about this header?
27372 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27373 yes:no: )
27374 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
27375 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
27377 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
27378 ac_header_preproc=yes
27380 no:yes:* )
27381 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
27382 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
27384 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
27386 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
27388 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
27389 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
27390 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
27391 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
27392 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
27393 ( cat <<\_ASBOX
27394 ## ------------------------------- ##
27395 ## Report this to www.asterisk.org ##
27396 ## ------------------------------- ##
27397 _ASBOX
27398 ) | sed "s/^/$as_me: WARNING: /" >&2
27400 esac
27401 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
27402 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
27403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406 eval "$as_ac_Header=\$ac_header_preproc"
27408 ac_res=`eval echo '${'$as_ac_Header'}'`
27409 { echo "$as_me:$LINENO: result: $ac_res" >&5
27410 echo "${ECHO_T}$ac_res" >&6; }
27413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27414 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
27418 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27419 OPENH323DIR="${PWLIBDIR}/../openh323"
27420 saved_cppflags="${CPPFLAGS}"
27421 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
27422 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
27423 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
27424 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
27425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 else
27428 cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h. */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27434 #include <ptlib.h>
27436 #include <${OPENH323DIR}/include/h323.h>
27437 _ACEOF
27438 rm -f conftest.$ac_objext
27439 if { (ac_try="$ac_compile"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_compile") 2>conftest.er1
27446 ac_status=$?
27447 grep -v '^ *+' conftest.er1 >conftest.err
27448 rm -f conftest.er1
27449 cat conftest.err >&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_cxx_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest.$ac_objext; then
27455 eval "$as_ac_Header=yes"
27456 else
27457 echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 eval "$as_ac_Header=no"
27463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27465 ac_res=`eval echo '${'$as_ac_Header'}'`
27466 { echo "$as_me:$LINENO: result: $ac_res" >&5
27467 echo "${ECHO_T}$ac_res" >&6; }
27468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27470 else
27471 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
27475 CPPFLAGS="${saved_cppflags}"
27476 else
27477 saved_cppflags="${CPPFLAGS}"
27478 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
27479 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
27480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27481 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27482 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 ac_res=`eval echo '${'$as_ac_Header'}'`
27487 { echo "$as_me:$LINENO: result: $ac_res" >&5
27488 echo "${ECHO_T}$ac_res" >&6; }
27489 else
27490 # Is the header compilable?
27491 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
27492 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
27493 cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h. */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 $ac_includes_default
27500 #include <${HOME}/openh323/include/h323.h>
27501 _ACEOF
27502 rm -f conftest.$ac_objext
27503 if { (ac_try="$ac_compile"
27504 case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27507 esac
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_compile") 2>conftest.er1
27510 ac_status=$?
27511 grep -v '^ *+' conftest.er1 >conftest.err
27512 rm -f conftest.er1
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } && {
27516 test -z "$ac_cxx_werror_flag" ||
27517 test ! -s conftest.err
27518 } && test -s conftest.$ac_objext; then
27519 ac_header_compiler=yes
27520 else
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ac_header_compiler=no
27527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27529 echo "${ECHO_T}$ac_header_compiler" >&6; }
27531 # Is the header present?
27532 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
27533 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h. */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 #include <${HOME}/openh323/include/h323.h>
27541 _ACEOF
27542 if { (ac_try="$ac_cpp conftest.$ac_ext"
27543 case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27546 esac
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27549 ac_status=$?
27550 grep -v '^ *+' conftest.er1 >conftest.err
27551 rm -f conftest.er1
27552 cat conftest.err >&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } >/dev/null && {
27555 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27556 test ! -s conftest.err
27557 }; then
27558 ac_header_preproc=yes
27559 else
27560 echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27563 ac_header_preproc=no
27566 rm -f conftest.err conftest.$ac_ext
27567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27568 echo "${ECHO_T}$ac_header_preproc" >&6; }
27570 # So? What about this header?
27571 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27572 yes:no: )
27573 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27574 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
27576 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
27577 ac_header_preproc=yes
27579 no:yes:* )
27580 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
27581 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
27583 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
27584 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
27585 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27587 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
27589 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
27590 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
27591 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
27592 ( cat <<\_ASBOX
27593 ## ------------------------------- ##
27594 ## Report this to www.asterisk.org ##
27595 ## ------------------------------- ##
27596 _ASBOX
27597 ) | sed "s/^/$as_me: WARNING: /" >&2
27599 esac
27600 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
27601 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
27602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27604 else
27605 eval "$as_ac_Header=\$ac_header_preproc"
27607 ac_res=`eval echo '${'$as_ac_Header'}'`
27608 { echo "$as_me:$LINENO: result: $ac_res" >&5
27609 echo "${ECHO_T}$ac_res" >&6; }
27612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27613 HAS_OPENH323=1
27617 CPPFLAGS="${saved_cppflags}"
27618 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27619 OPENH323DIR="${HOME}/openh323"
27620 else
27621 saved_cppflags="${CPPFLAGS}"
27622 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
27623 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27624 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27625 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27626 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27630 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27631 else
27632 # Is the header compilable?
27633 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
27634 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
27635 cat >conftest.$ac_ext <<_ACEOF
27636 /* confdefs.h. */
27637 _ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27641 $ac_includes_default
27642 #include </usr/local/include/openh323/h323.h>
27643 _ACEOF
27644 rm -f conftest.$ac_objext
27645 if { (ac_try="$ac_compile"
27646 case "(($ac_try" in
27647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648 *) ac_try_echo=$ac_try;;
27649 esac
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651 (eval "$ac_compile") 2>conftest.er1
27652 ac_status=$?
27653 grep -v '^ *+' conftest.er1 >conftest.err
27654 rm -f conftest.er1
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } && {
27658 test -z "$ac_cxx_werror_flag" ||
27659 test ! -s conftest.err
27660 } && test -s conftest.$ac_objext; then
27661 ac_header_compiler=yes
27662 else
27663 echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27666 ac_header_compiler=no
27669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27671 echo "${ECHO_T}$ac_header_compiler" >&6; }
27673 # Is the header present?
27674 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
27675 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
27676 cat >conftest.$ac_ext <<_ACEOF
27677 /* confdefs.h. */
27678 _ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 #include </usr/local/include/openh323/h323.h>
27683 _ACEOF
27684 if { (ac_try="$ac_cpp conftest.$ac_ext"
27685 case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27688 esac
27689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27691 ac_status=$?
27692 grep -v '^ *+' conftest.er1 >conftest.err
27693 rm -f conftest.er1
27694 cat conftest.err >&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } >/dev/null && {
27697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27698 test ! -s conftest.err
27699 }; then
27700 ac_header_preproc=yes
27701 else
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27705 ac_header_preproc=no
27708 rm -f conftest.err conftest.$ac_ext
27709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27710 echo "${ECHO_T}$ac_header_preproc" >&6; }
27712 # So? What about this header?
27713 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27714 yes:no: )
27715 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27716 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27717 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
27718 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
27719 ac_header_preproc=yes
27721 no:yes:* )
27722 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
27723 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
27724 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
27725 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
27726 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
27727 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
27728 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
27729 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27730 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
27731 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
27732 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
27733 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
27734 ( cat <<\_ASBOX
27735 ## ------------------------------- ##
27736 ## Report this to www.asterisk.org ##
27737 ## ------------------------------- ##
27738 _ASBOX
27739 ) | sed "s/^/$as_me: WARNING: /" >&2
27741 esac
27742 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
27743 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
27744 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746 else
27747 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
27749 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
27750 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
27753 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
27754 HAS_OPENH323=1
27758 CPPFLAGS="${saved_cppflags}"
27759 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27760 OPENH323DIR="/usr/local/share/openh323"
27761 OPENH323_INCDIR="/usr/local/include/openh323"
27762 if test "x$LIB64" != "x"; then
27763 OPENH323_LIBDIR="/usr/local/lib64"
27764 else
27765 OPENH323_LIBDIR="/usr/local/lib"
27767 else
27768 saved_cppflags="${CPPFLAGS}"
27769 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
27770 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
27771 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
27772 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
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 #include <ptlib.h>
27783 #include </usr/include/openh323/h323.h>
27784 _ACEOF
27785 rm -f conftest.$ac_objext
27786 if { (ac_try="$ac_compile"
27787 case "(($ac_try" in
27788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27789 *) ac_try_echo=$ac_try;;
27790 esac
27791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792 (eval "$ac_compile") 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } && {
27799 test -z "$ac_cxx_werror_flag" ||
27800 test ! -s conftest.err
27801 } && test -s conftest.$ac_objext; then
27802 ac_cv_header__usr_include_openh323_h323_h=yes
27803 else
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 ac_cv_header__usr_include_openh323_h323_h=no
27810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
27813 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
27814 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
27815 HAS_OPENH323=1
27819 CPPFLAGS="${saved_cppflags}"
27820 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27821 OPENH323DIR="/usr/share/openh323"
27822 OPENH323_INCDIR="/usr/include/openh323"
27823 if test "x$LIB64" != "x"; then
27824 OPENH323_LIBDIR="/usr/lib64"
27825 else
27826 OPENH323_LIBDIR="/usr/lib"
27834 if test "${HAS_OPENH323:-unset}" != "unset" ; then
27835 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
27836 OPENH323_INCDIR="${OPENH323DIR}/include"
27838 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
27839 OPENH323_LIBDIR="${OPENH323DIR}/lib"
27842 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
27843 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
27844 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
27850 ac_ext=c
27851 ac_cpp='$CPP $CPPFLAGS'
27852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27858 if test "${HAS_OPENH323:-unset}" != "unset"; then
27859 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
27860 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
27861 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
27862 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
27863 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
27864 let OPENH323_REQ=1*10000+17*100+3
27866 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
27867 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
27868 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
27869 { echo "$as_me:$LINENO: result: no" >&5
27870 echo "${ECHO_T}no" >&6; }
27871 unset HAS_OPENH323
27872 else
27873 { echo "$as_me:$LINENO: result: yes" >&5
27874 echo "${ECHO_T}yes" >&6; }
27879 if test "${HAS_OPENH323:-unset}" != "unset"; then
27880 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
27881 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
27882 OPENH323_SUFFIX=
27883 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
27884 for pfx in $prefixes; do
27885 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
27886 libfile=
27887 if test -n "$files"; then
27888 for f in $files; do
27889 if test -f $f -a ! -L $f; then
27890 libfile=`basename $f`
27891 break;
27893 done
27895 if test -n "$libfile"; then
27896 OPENH323_PREFIX=$pfx
27897 break;
27899 done
27900 if test "${libfile:-unset}" != "unset"; then
27901 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
27903 case "${OPENH323_SUFFIX}" in
27905 OPENH323_BUILD="notrace";;
27907 OPENH323_BUILD="opt";;
27909 OPENH323_BUILD="debug";;
27911 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
27912 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
27913 if test "x$notrace" = "x"; then
27914 notrace="0"
27916 if test "$notrace" -ne 0; then
27917 OPENH323_BUILD="notrace"
27918 else
27919 OPENH323_BUILD="opt"
27921 OPENH323_LIB="-l${OPENH323_PREFIX}"
27922 else
27923 OPENH323_BUILD="notrace"
27926 esac
27927 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
27928 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
27934 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
27936 if test "${HAS_OPENH323:-unset}" != "unset"; then
27937 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
27938 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
27940 saved_cppflags="${CPPFLAGS}"
27941 saved_libs="${LIBS}"
27942 if test "${OPENH323_LIB:-unset}" != "unset"; then
27943 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
27944 else
27945 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
27947 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
27949 ac_ext=cpp
27950 ac_cpp='$CXXCPP $CPPFLAGS'
27951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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 "ptlib.h"
27963 #include "h323.h"
27964 #include "h323ep.h"
27966 main ()
27968 H323EndPoint ep = H323EndPoint();
27970 return 0;
27972 _ACEOF
27973 rm -f conftest.$ac_objext conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27978 esac
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27981 ac_status=$?
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } && {
27987 test -z "$ac_cxx_werror_flag" ||
27988 test ! -s conftest.err
27989 } && test -s conftest$ac_exeext &&
27990 $as_test_x conftest$ac_exeext; then
27991 { echo "$as_me:$LINENO: result: yes" >&5
27992 echo "${ECHO_T}yes" >&6; }
27993 ac_cv_lib_OPENH323="yes"
27995 else
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 { echo "$as_me:$LINENO: result: no" >&5
28000 echo "${ECHO_T}no" >&6; }
28001 ac_cv_lib_OPENH323="no"
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007 conftest$ac_exeext conftest.$ac_ext
28009 ac_ext=c
28010 ac_cpp='$CPP $CPPFLAGS'
28011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28016 LIBS="${saved_libs}"
28017 CPPFLAGS="${saved_cppflags}"
28019 if test "${ac_cv_lib_OPENH323}" = "yes"; then
28020 if test "${OPENH323_LIB:-undef}" = "undef"; then
28021 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
28022 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
28023 else
28024 OPENH323_LIB="-l${PLATFORM_OPENH323}"
28027 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
28028 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
28030 PBX_OPENH323=1
28032 cat >>confdefs.h <<\_ACEOF
28033 #define HAVE_OPENH323 1
28034 _ACEOF
28040 if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
28041 { echo "$as_me:$LINENO: ***" >&5
28042 echo "$as_me: ***" >&6;}
28043 { echo "$as_me:$LINENO: *** The OPENH323 installation on this system appears to be broken." >&5
28044 echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
28045 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28046 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28047 { echo "$as_me:$LINENO: *** including --without-h323" >&5
28048 echo "$as_me: *** including --without-h323" >&6;}
28049 exit 1
28053 if test "${USE_RADIUS}" != "no"; then
28054 pbxlibdir=""
28055 if test "x${RADIUS_DIR}" != "x"; then
28056 if test -d ${RADIUS_DIR}/lib; then
28057 pbxlibdir="-L${RADIUS_DIR}/lib"
28058 else
28059 pbxlibdir="-L${RADIUS_DIR}"
28062 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
28063 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
28064 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
28065 echo $ECHO_N "(cached) $ECHO_C" >&6
28066 else
28067 ac_check_lib_save_LIBS=$LIBS
28068 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
28069 cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h. */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28076 /* Override any GCC internal prototype to avoid an error.
28077 Use char because int might match the return type of a GCC
28078 builtin and then its argument prototype would still apply. */
28079 #ifdef __cplusplus
28080 extern "C"
28081 #endif
28082 char rc_read_config ();
28084 main ()
28086 return rc_read_config ();
28088 return 0;
28090 _ACEOF
28091 rm -f conftest.$ac_objext conftest$ac_exeext
28092 if { (ac_try="$ac_link"
28093 case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28096 esac
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_link") 2>conftest.er1
28099 ac_status=$?
28100 grep -v '^ *+' conftest.er1 >conftest.err
28101 rm -f conftest.er1
28102 cat conftest.err >&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); } && {
28105 test -z "$ac_c_werror_flag" ||
28106 test ! -s conftest.err
28107 } && test -s conftest$ac_exeext &&
28108 $as_test_x conftest$ac_exeext; then
28109 ac_cv_lib_radiusclient_ng_rc_read_config=yes
28110 else
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28114 ac_cv_lib_radiusclient_ng_rc_read_config=no
28117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28118 conftest$ac_exeext conftest.$ac_ext
28119 LIBS=$ac_check_lib_save_LIBS
28121 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
28122 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
28123 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
28124 AST_RADIUS_FOUND=yes
28125 else
28126 AST_RADIUS_FOUND=no
28130 if test "${AST_RADIUS_FOUND}" = "yes"; then
28131 RADIUS_LIB="-lradiusclient-ng "
28132 RADIUS_HEADER_FOUND="1"
28133 if test "x${RADIUS_DIR}" != "x"; then
28134 RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
28135 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
28136 saved_cppflags="${CPPFLAGS}"
28137 CPPFLAGS="${CPPFLAGS} -I${RADIUS_DIR}/include"
28138 if test "xradiusclient-ng.h" != "x" ; then
28139 as_ac_Header=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
28140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28141 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28142 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28146 ac_res=`eval echo '${'$as_ac_Header'}'`
28147 { echo "$as_me:$LINENO: result: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28149 else
28150 # Is the header compilable?
28151 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
28152 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
28153 cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h. */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28159 $ac_includes_default
28160 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28161 _ACEOF
28162 rm -f conftest.$ac_objext
28163 if { (ac_try="$ac_compile"
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_compile") 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); } && {
28176 test -z "$ac_c_werror_flag" ||
28177 test ! -s conftest.err
28178 } && test -s conftest.$ac_objext; then
28179 ac_header_compiler=yes
28180 else
28181 echo "$as_me: failed program was:" >&5
28182 sed 's/^/| /' conftest.$ac_ext >&5
28184 ac_header_compiler=no
28187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28189 echo "${ECHO_T}$ac_header_compiler" >&6; }
28191 # Is the header present?
28192 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
28193 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
28194 cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h. */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28200 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
28201 _ACEOF
28202 if { (ac_try="$ac_cpp conftest.$ac_ext"
28203 case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } >/dev/null && {
28215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 }; then
28218 ac_header_preproc=yes
28219 else
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 ac_header_preproc=no
28226 rm -f conftest.err conftest.$ac_ext
28227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28228 echo "${ECHO_T}$ac_header_preproc" >&6; }
28230 # So? What about this header?
28231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28232 yes:no: )
28233 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28234 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28235 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
28236 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28237 ac_header_preproc=yes
28239 no:yes:* )
28240 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
28241 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
28242 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
28243 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28244 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
28245 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28247 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28248 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28249 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28250 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28251 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28252 ( cat <<\_ASBOX
28253 ## ------------------------------- ##
28254 ## Report this to www.asterisk.org ##
28255 ## ------------------------------- ##
28256 _ASBOX
28257 ) | sed "s/^/$as_me: WARNING: /" >&2
28259 esac
28260 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
28261 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
28262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28263 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 else
28265 eval "$as_ac_Header=\$ac_header_preproc"
28267 ac_res=`eval echo '${'$as_ac_Header'}'`
28268 { echo "$as_me:$LINENO: result: $ac_res" >&5
28269 echo "${ECHO_T}$ac_res" >&6; }
28272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28273 RADIUS_HEADER_FOUND=1
28274 else
28275 RADIUS_HEADER_FOUND=0
28280 CPPFLAGS="${saved_cppflags}"
28281 else
28282 if test "xradiusclient-ng.h" != "x" ; then
28283 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28284 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28285 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28286 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28290 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28291 else
28292 # Is the header compilable?
28293 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
28294 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
28295 cat >conftest.$ac_ext <<_ACEOF
28296 /* confdefs.h. */
28297 _ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h. */
28301 $ac_includes_default
28302 #include <radiusclient-ng.h>
28303 _ACEOF
28304 rm -f conftest.$ac_objext
28305 if { (ac_try="$ac_compile"
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_compile") 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); } && {
28318 test -z "$ac_c_werror_flag" ||
28319 test ! -s conftest.err
28320 } && test -s conftest.$ac_objext; then
28321 ac_header_compiler=yes
28322 else
28323 echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28326 ac_header_compiler=no
28329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28331 echo "${ECHO_T}$ac_header_compiler" >&6; }
28333 # Is the header present?
28334 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
28335 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
28336 cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h. */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <radiusclient-ng.h>
28343 _ACEOF
28344 if { (ac_try="$ac_cpp conftest.$ac_ext"
28345 case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28348 esac
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28351 ac_status=$?
28352 grep -v '^ *+' conftest.er1 >conftest.err
28353 rm -f conftest.er1
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } >/dev/null && {
28357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28358 test ! -s conftest.err
28359 }; then
28360 ac_header_preproc=yes
28361 else
28362 echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28365 ac_header_preproc=no
28368 rm -f conftest.err conftest.$ac_ext
28369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28370 echo "${ECHO_T}$ac_header_preproc" >&6; }
28372 # So? What about this header?
28373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28374 yes:no: )
28375 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
28376 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28377 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
28378 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
28379 ac_header_preproc=yes
28381 no:yes:* )
28382 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
28383 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
28384 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
28385 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
28386 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
28387 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
28388 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
28389 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
28390 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
28391 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
28392 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
28393 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
28394 ( cat <<\_ASBOX
28395 ## ------------------------------- ##
28396 ## Report this to www.asterisk.org ##
28397 ## ------------------------------- ##
28398 _ASBOX
28399 ) | sed "s/^/$as_me: WARNING: /" >&2
28401 esac
28402 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
28403 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
28404 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28406 else
28407 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
28409 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
28410 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
28413 if test $ac_cv_header_radiusclient_ng_h = yes; then
28414 RADIUS_HEADER_FOUND=1
28415 else
28416 RADIUS_HEADER_FOUND=0
28422 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
28423 if test -n "${RADIUS_MANDATORY}" ;
28424 then
28425 { echo "$as_me:$LINENO: ***" >&5
28426 echo "$as_me: ***" >&6;}
28427 { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
28428 echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
28429 { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
28430 echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
28431 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28432 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28433 exit 1
28435 RADIUS_LIB=""
28436 RADIUS_INCLUDE=""
28437 PBX_RADIUS=0
28438 else
28439 PBX_RADIUS=1
28441 cat >>confdefs.h <<_ACEOF
28442 #define HAVE_RADIUS 1
28443 _ACEOF
28446 elif test -n "${RADIUS_MANDATORY}";
28447 then
28448 { echo "$as_me:$LINENO: ***" >&5
28449 echo "$as_me: ***" >&6;}
28450 { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
28451 echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
28452 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28453 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28454 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
28455 echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
28456 exit 1
28462 if test "${USE_SPEEX}" != "no"; then
28463 pbxlibdir=""
28464 if test "x${SPEEX_DIR}" != "x"; then
28465 if test -d ${SPEEX_DIR}/lib; then
28466 pbxlibdir="-L${SPEEX_DIR}/lib"
28467 else
28468 pbxlibdir="-L${SPEEX_DIR}"
28471 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
28472 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
28473 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
28474 echo $ECHO_N "(cached) $ECHO_C" >&6
28475 else
28476 ac_check_lib_save_LIBS=$LIBS
28477 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
28478 cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h. */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h. */
28485 /* Override any GCC internal prototype to avoid an error.
28486 Use char because int might match the return type of a GCC
28487 builtin and then its argument prototype would still apply. */
28488 #ifdef __cplusplus
28489 extern "C"
28490 #endif
28491 char speex_encode ();
28493 main ()
28495 return speex_encode ();
28497 return 0;
28499 _ACEOF
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (ac_try="$ac_link"
28502 case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_link") 2>conftest.er1
28508 ac_status=$?
28509 grep -v '^ *+' conftest.er1 >conftest.err
28510 rm -f conftest.er1
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && {
28514 test -z "$ac_c_werror_flag" ||
28515 test ! -s conftest.err
28516 } && test -s conftest$ac_exeext &&
28517 $as_test_x conftest$ac_exeext; then
28518 ac_cv_lib_speex_speex_encode=yes
28519 else
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_lib_speex_speex_encode=no
28526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28527 conftest$ac_exeext conftest.$ac_ext
28528 LIBS=$ac_check_lib_save_LIBS
28530 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
28531 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
28532 if test $ac_cv_lib_speex_speex_encode = yes; then
28533 AST_SPEEX_FOUND=yes
28534 else
28535 AST_SPEEX_FOUND=no
28539 if test "${AST_SPEEX_FOUND}" = "yes"; then
28540 SPEEX_LIB="-lspeex -lm"
28541 SPEEX_HEADER_FOUND="1"
28542 if test "x${SPEEX_DIR}" != "x"; then
28543 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
28544 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
28545 saved_cppflags="${CPPFLAGS}"
28546 CPPFLAGS="${CPPFLAGS} -I${SPEEX_DIR}/include"
28547 if test "xspeex/speex.h" != "x" ; then
28548 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" | $as_tr_sh`
28549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28550 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28551 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28553 echo $ECHO_N "(cached) $ECHO_C" >&6
28555 ac_res=`eval echo '${'$as_ac_Header'}'`
28556 { echo "$as_me:$LINENO: result: $ac_res" >&5
28557 echo "${ECHO_T}$ac_res" >&6; }
28558 else
28559 # Is the header compilable?
28560 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
28561 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28562 cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h. */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28568 $ac_includes_default
28569 #include <${SPEEX_DIR}/include/speex/speex.h>
28570 _ACEOF
28571 rm -f conftest.$ac_objext
28572 if { (ac_try="$ac_compile"
28573 case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576 esac
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_compile") 2>conftest.er1
28579 ac_status=$?
28580 grep -v '^ *+' conftest.er1 >conftest.err
28581 rm -f conftest.er1
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } && {
28585 test -z "$ac_c_werror_flag" ||
28586 test ! -s conftest.err
28587 } && test -s conftest.$ac_objext; then
28588 ac_header_compiler=yes
28589 else
28590 echo "$as_me: failed program was:" >&5
28591 sed 's/^/| /' conftest.$ac_ext >&5
28593 ac_header_compiler=no
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28598 echo "${ECHO_T}$ac_header_compiler" >&6; }
28600 # Is the header present?
28601 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
28602 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
28603 cat >conftest.$ac_ext <<_ACEOF
28604 /* confdefs.h. */
28605 _ACEOF
28606 cat confdefs.h >>conftest.$ac_ext
28607 cat >>conftest.$ac_ext <<_ACEOF
28608 /* end confdefs.h. */
28609 #include <${SPEEX_DIR}/include/speex/speex.h>
28610 _ACEOF
28611 if { (ac_try="$ac_cpp conftest.$ac_ext"
28612 case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28618 ac_status=$?
28619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } >/dev/null && {
28624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28625 test ! -s conftest.err
28626 }; then
28627 ac_header_preproc=yes
28628 else
28629 echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28632 ac_header_preproc=no
28635 rm -f conftest.err conftest.$ac_ext
28636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28637 echo "${ECHO_T}$ac_header_preproc" >&6; }
28639 # So? What about this header?
28640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28641 yes:no: )
28642 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28643 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
28645 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
28646 ac_header_preproc=yes
28648 no:yes:* )
28649 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
28650 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
28651 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
28652 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
28654 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
28655 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28656 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28657 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
28658 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
28660 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
28661 ( cat <<\_ASBOX
28662 ## ------------------------------- ##
28663 ## Report this to www.asterisk.org ##
28664 ## ------------------------------- ##
28665 _ASBOX
28666 ) | sed "s/^/$as_me: WARNING: /" >&2
28668 esac
28669 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
28670 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28672 echo $ECHO_N "(cached) $ECHO_C" >&6
28673 else
28674 eval "$as_ac_Header=\$ac_header_preproc"
28676 ac_res=`eval echo '${'$as_ac_Header'}'`
28677 { echo "$as_me:$LINENO: result: $ac_res" >&5
28678 echo "${ECHO_T}$ac_res" >&6; }
28681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28682 SPEEX_HEADER_FOUND=1
28683 else
28684 SPEEX_HEADER_FOUND=0
28689 CPPFLAGS="${saved_cppflags}"
28690 else
28691 if test "xspeex/speex.h" != "x" ; then
28692 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28693 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28694 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28695 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28699 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28700 else
28701 # Is the header compilable?
28702 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
28703 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
28704 cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h. */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 $ac_includes_default
28711 #include <speex/speex.h>
28712 _ACEOF
28713 rm -f conftest.$ac_objext
28714 if { (ac_try="$ac_compile"
28715 case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28718 esac
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_compile") 2>conftest.er1
28721 ac_status=$?
28722 grep -v '^ *+' conftest.er1 >conftest.err
28723 rm -f conftest.er1
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } && {
28727 test -z "$ac_c_werror_flag" ||
28728 test ! -s conftest.err
28729 } && test -s conftest.$ac_objext; then
28730 ac_header_compiler=yes
28731 else
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ac_header_compiler=no
28738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28740 echo "${ECHO_T}$ac_header_compiler" >&6; }
28742 # Is the header present?
28743 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
28744 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
28745 cat >conftest.$ac_ext <<_ACEOF
28746 /* confdefs.h. */
28747 _ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h. */
28751 #include <speex/speex.h>
28752 _ACEOF
28753 if { (ac_try="$ac_cpp conftest.$ac_ext"
28754 case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28757 esac
28758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28760 ac_status=$?
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } >/dev/null && {
28766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28767 test ! -s conftest.err
28768 }; then
28769 ac_header_preproc=yes
28770 else
28771 echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28774 ac_header_preproc=no
28777 rm -f conftest.err conftest.$ac_ext
28778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28779 echo "${ECHO_T}$ac_header_preproc" >&6; }
28781 # So? What about this header?
28782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28783 yes:no: )
28784 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28785 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28786 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
28787 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
28788 ac_header_preproc=yes
28790 no:yes:* )
28791 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
28792 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
28793 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
28794 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
28796 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
28798 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
28800 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
28802 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
28803 ( cat <<\_ASBOX
28804 ## ------------------------------- ##
28805 ## Report this to www.asterisk.org ##
28806 ## ------------------------------- ##
28807 _ASBOX
28808 ) | sed "s/^/$as_me: WARNING: /" >&2
28810 esac
28811 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
28812 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
28813 if test "${ac_cv_header_speex_speex_h+set}" = set; then
28814 echo $ECHO_N "(cached) $ECHO_C" >&6
28815 else
28816 ac_cv_header_speex_speex_h=$ac_header_preproc
28818 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
28819 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
28822 if test $ac_cv_header_speex_speex_h = yes; then
28823 SPEEX_HEADER_FOUND=1
28824 else
28825 SPEEX_HEADER_FOUND=0
28831 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
28832 if test -n "${SPEEX_MANDATORY}" ;
28833 then
28834 { echo "$as_me:$LINENO: ***" >&5
28835 echo "$as_me: ***" >&6;}
28836 { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
28837 echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
28838 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
28839 echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
28840 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28841 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28842 exit 1
28844 SPEEX_LIB=""
28845 SPEEX_INCLUDE=""
28846 PBX_SPEEX=0
28847 else
28848 PBX_SPEEX=1
28850 cat >>confdefs.h <<_ACEOF
28851 #define HAVE_SPEEX 1
28852 _ACEOF
28855 elif test -n "${SPEEX_MANDATORY}";
28856 then
28857 { echo "$as_me:$LINENO: ***" >&5
28858 echo "$as_me: ***" >&6;}
28859 { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
28860 echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
28861 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
28862 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
28863 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
28864 echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
28865 exit 1
28871 if test "${USE_SPEEXDSP}" != "no"; then
28872 pbxlibdir=""
28873 if test "x${SPEEXDSP_DIR}" != "x"; then
28874 if test -d ${SPEEXDSP_DIR}/lib; then
28875 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
28876 else
28877 pbxlibdir="-L${SPEEXDSP_DIR}"
28880 { echo "$as_me:$LINENO: checking for speex_preprocess_ctl in -lspeexdsp" >&5
28881 echo $ECHO_N "checking for speex_preprocess_ctl in -lspeexdsp... $ECHO_C" >&6; }
28882 if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885 ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h. */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28897 #ifdef __cplusplus
28898 extern "C"
28899 #endif
28900 char speex_preprocess_ctl ();
28902 main ()
28904 return speex_preprocess_ctl ();
28906 return 0;
28908 _ACEOF
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (ac_try="$ac_link"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28914 esac
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_link") 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } && {
28923 test -z "$ac_c_werror_flag" ||
28924 test ! -s conftest.err
28925 } && test -s conftest$ac_exeext &&
28926 $as_test_x conftest$ac_exeext; then
28927 ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
28928 else
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 ac_cv_lib_speexdsp_speex_preprocess_ctl=no
28935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28936 conftest$ac_exeext conftest.$ac_ext
28937 LIBS=$ac_check_lib_save_LIBS
28939 { echo "$as_me:$LINENO: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
28940 echo "${ECHO_T}$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
28941 if test $ac_cv_lib_speexdsp_speex_preprocess_ctl = yes; then
28942 AST_SPEEXDSP_FOUND=yes
28943 else
28944 AST_SPEEXDSP_FOUND=no
28948 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
28949 SPEEXDSP_LIB="-lspeexdsp -lm"
28950 SPEEXDSP_HEADER_FOUND="1"
28951 if test "x${SPEEXDSP_DIR}" != "x"; then
28952 SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
28953 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
28954 saved_cppflags="${CPPFLAGS}"
28955 CPPFLAGS="${CPPFLAGS} -I${SPEEXDSP_DIR}/include"
28956 if test "xspeex/speex.h" != "x" ; then
28957 as_ac_Header=`echo "ac_cv_header_${SPEEXDSP_DIR}/include/speex/speex.h" | $as_tr_sh`
28958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28959 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
28960 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
28961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 ac_res=`eval echo '${'$as_ac_Header'}'`
28965 { echo "$as_me:$LINENO: result: $ac_res" >&5
28966 echo "${ECHO_T}$ac_res" >&6; }
28967 else
28968 # Is the header compilable?
28969 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h usability" >&5
28970 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28972 /* confdefs.h. */
28973 _ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 $ac_includes_default
28978 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
28979 _ACEOF
28980 rm -f conftest.$ac_objext
28981 if { (ac_try="$ac_compile"
28982 case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28985 esac
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_compile") 2>conftest.er1
28988 ac_status=$?
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } && {
28994 test -z "$ac_c_werror_flag" ||
28995 test ! -s conftest.err
28996 } && test -s conftest.$ac_objext; then
28997 ac_header_compiler=yes
28998 else
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_header_compiler=no
29005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29007 echo "${ECHO_T}$ac_header_compiler" >&6; }
29009 # Is the header present?
29010 { echo "$as_me:$LINENO: checking ${SPEEXDSP_DIR}/include/speex/speex.h presence" >&5
29011 echo $ECHO_N "checking ${SPEEXDSP_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
29012 cat >conftest.$ac_ext <<_ACEOF
29013 /* confdefs.h. */
29014 _ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 #include <${SPEEXDSP_DIR}/include/speex/speex.h>
29019 _ACEOF
29020 if { (ac_try="$ac_cpp conftest.$ac_ext"
29021 case "(($ac_try" in
29022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023 *) ac_try_echo=$ac_try;;
29024 esac
29025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29027 ac_status=$?
29028 grep -v '^ *+' conftest.er1 >conftest.err
29029 rm -f conftest.er1
29030 cat conftest.err >&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); } >/dev/null && {
29033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29034 test ! -s conftest.err
29035 }; then
29036 ac_header_preproc=yes
29037 else
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_header_preproc=no
29044 rm -f conftest.err conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29046 echo "${ECHO_T}$ac_header_preproc" >&6; }
29048 # So? What about this header?
29049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29050 yes:no: )
29051 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29052 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
29054 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
29055 ac_header_preproc=yes
29057 no:yes:* )
29058 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
29059 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
29061 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
29063 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29065 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29066 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
29067 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
29069 echo "$as_me: WARNING: ${SPEEXDSP_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
29070 ( cat <<\_ASBOX
29071 ## ------------------------------- ##
29072 ## Report this to www.asterisk.org ##
29073 ## ------------------------------- ##
29074 _ASBOX
29075 ) | sed "s/^/$as_me: WARNING: /" >&2
29077 esac
29078 { echo "$as_me:$LINENO: checking for ${SPEEXDSP_DIR}/include/speex/speex.h" >&5
29079 echo $ECHO_N "checking for ${SPEEXDSP_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 else
29083 eval "$as_ac_Header=\$ac_header_preproc"
29085 ac_res=`eval echo '${'$as_ac_Header'}'`
29086 { echo "$as_me:$LINENO: result: $ac_res" >&5
29087 echo "${ECHO_T}$ac_res" >&6; }
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 SPEEXDSP_HEADER_FOUND=1
29092 else
29093 SPEEXDSP_HEADER_FOUND=0
29098 CPPFLAGS="${saved_cppflags}"
29099 else
29100 if test "xspeex/speex.h" != "x" ; then
29101 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29102 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29103 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29104 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29108 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29109 else
29110 # Is the header compilable?
29111 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
29112 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
29113 cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h. */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 $ac_includes_default
29120 #include <speex/speex.h>
29121 _ACEOF
29122 rm -f conftest.$ac_objext
29123 if { (ac_try="$ac_compile"
29124 case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127 esac
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_compile") 2>conftest.er1
29130 ac_status=$?
29131 grep -v '^ *+' conftest.er1 >conftest.err
29132 rm -f conftest.er1
29133 cat conftest.err >&5
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); } && {
29136 test -z "$ac_c_werror_flag" ||
29137 test ! -s conftest.err
29138 } && test -s conftest.$ac_objext; then
29139 ac_header_compiler=yes
29140 else
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_header_compiler=no
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149 echo "${ECHO_T}$ac_header_compiler" >&6; }
29151 # Is the header present?
29152 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
29153 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h. */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29160 #include <speex/speex.h>
29161 _ACEOF
29162 if { (ac_try="$ac_cpp conftest.$ac_ext"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29166 esac
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29169 ac_status=$?
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } >/dev/null && {
29175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29176 test ! -s conftest.err
29177 }; then
29178 ac_header_preproc=yes
29179 else
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_header_preproc=no
29186 rm -f conftest.err conftest.$ac_ext
29187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29188 echo "${ECHO_T}$ac_header_preproc" >&6; }
29190 # So? What about this header?
29191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29192 yes:no: )
29193 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
29194 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29195 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
29196 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
29197 ac_header_preproc=yes
29199 no:yes:* )
29200 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
29201 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
29203 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
29205 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
29207 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
29209 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
29211 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
29212 ( cat <<\_ASBOX
29213 ## ------------------------------- ##
29214 ## Report this to www.asterisk.org ##
29215 ## ------------------------------- ##
29216 _ASBOX
29217 ) | sed "s/^/$as_me: WARNING: /" >&2
29219 esac
29220 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
29221 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
29222 if test "${ac_cv_header_speex_speex_h+set}" = set; then
29223 echo $ECHO_N "(cached) $ECHO_C" >&6
29224 else
29225 ac_cv_header_speex_speex_h=$ac_header_preproc
29227 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
29228 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
29231 if test $ac_cv_header_speex_speex_h = yes; then
29232 SPEEXDSP_HEADER_FOUND=1
29233 else
29234 SPEEXDSP_HEADER_FOUND=0
29240 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
29241 if test -n "${SPEEXDSP_MANDATORY}" ;
29242 then
29243 { echo "$as_me:$LINENO: ***" >&5
29244 echo "$as_me: ***" >&6;}
29245 { echo "$as_me:$LINENO: *** It appears that you do not have the speexdsp development package installed." >&5
29246 echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
29247 { echo "$as_me:$LINENO: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
29248 echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
29249 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29250 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29251 exit 1
29253 SPEEXDSP_LIB=""
29254 SPEEXDSP_INCLUDE=""
29255 PBX_SPEEXDSP=0
29256 else
29257 PBX_SPEEXDSP=1
29259 cat >>confdefs.h <<_ACEOF
29260 #define HAVE_SPEEXDSP 1
29261 _ACEOF
29264 elif test -n "${SPEEXDSP_MANDATORY}";
29265 then
29266 { echo "$as_me:$LINENO: ***" >&5
29267 echo "$as_me: ***" >&6;}
29268 { echo "$as_me:$LINENO: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
29269 echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
29270 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29271 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29272 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
29273 echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
29274 exit 1
29280 if test "${USE_SQLITE}" != "no"; then
29281 pbxlibdir=""
29282 if test "x${SQLITE_DIR}" != "x"; then
29283 if test -d ${SQLITE_DIR}/lib; then
29284 pbxlibdir="-L${SQLITE_DIR}/lib"
29285 else
29286 pbxlibdir="-L${SQLITE_DIR}"
29289 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
29290 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
29291 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
29292 echo $ECHO_N "(cached) $ECHO_C" >&6
29293 else
29294 ac_check_lib_save_LIBS=$LIBS
29295 LIBS="-lsqlite ${pbxlibdir} $LIBS"
29296 cat >conftest.$ac_ext <<_ACEOF
29297 /* confdefs.h. */
29298 _ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h. */
29303 /* Override any GCC internal prototype to avoid an error.
29304 Use char because int might match the return type of a GCC
29305 builtin and then its argument prototype would still apply. */
29306 #ifdef __cplusplus
29307 extern "C"
29308 #endif
29309 char sqlite_exec ();
29311 main ()
29313 return sqlite_exec ();
29315 return 0;
29317 _ACEOF
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (ac_try="$ac_link"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_link") 2>conftest.er1
29326 ac_status=$?
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } && {
29332 test -z "$ac_c_werror_flag" ||
29333 test ! -s conftest.err
29334 } && test -s conftest$ac_exeext &&
29335 $as_test_x conftest$ac_exeext; then
29336 ac_cv_lib_sqlite_sqlite_exec=yes
29337 else
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_cv_lib_sqlite_sqlite_exec=no
29344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29345 conftest$ac_exeext conftest.$ac_ext
29346 LIBS=$ac_check_lib_save_LIBS
29348 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
29349 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
29350 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
29351 AST_SQLITE_FOUND=yes
29352 else
29353 AST_SQLITE_FOUND=no
29357 if test "${AST_SQLITE_FOUND}" = "yes"; then
29358 SQLITE_LIB="-lsqlite "
29359 SQLITE_HEADER_FOUND="1"
29360 if test "x${SQLITE_DIR}" != "x"; then
29361 SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
29362 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
29363 saved_cppflags="${CPPFLAGS}"
29364 CPPFLAGS="${CPPFLAGS} -I${SQLITE_DIR}/include"
29365 if test "xsqlite.h" != "x" ; then
29366 as_ac_Header=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
29367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29368 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29369 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29371 echo $ECHO_N "(cached) $ECHO_C" >&6
29373 ac_res=`eval echo '${'$as_ac_Header'}'`
29374 { echo "$as_me:$LINENO: result: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29376 else
29377 # Is the header compilable?
29378 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
29379 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h. */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 $ac_includes_default
29387 #include <${SQLITE_DIR}/include/sqlite.h>
29388 _ACEOF
29389 rm -f conftest.$ac_objext
29390 if { (ac_try="$ac_compile"
29391 case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_compile") 2>conftest.er1
29397 ac_status=$?
29398 grep -v '^ *+' conftest.er1 >conftest.err
29399 rm -f conftest.er1
29400 cat conftest.err >&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } && {
29403 test -z "$ac_c_werror_flag" ||
29404 test ! -s conftest.err
29405 } && test -s conftest.$ac_objext; then
29406 ac_header_compiler=yes
29407 else
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ac_header_compiler=no
29414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29416 echo "${ECHO_T}$ac_header_compiler" >&6; }
29418 # Is the header present?
29419 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
29420 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
29421 cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h. */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h. */
29427 #include <${SQLITE_DIR}/include/sqlite.h>
29428 _ACEOF
29429 if { (ac_try="$ac_cpp conftest.$ac_ext"
29430 case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29433 esac
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29436 ac_status=$?
29437 grep -v '^ *+' conftest.er1 >conftest.err
29438 rm -f conftest.er1
29439 cat conftest.err >&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } >/dev/null && {
29442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29443 test ! -s conftest.err
29444 }; then
29445 ac_header_preproc=yes
29446 else
29447 echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29450 ac_header_preproc=no
29453 rm -f conftest.err conftest.$ac_ext
29454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29455 echo "${ECHO_T}$ac_header_preproc" >&6; }
29457 # So? What about this header?
29458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29459 yes:no: )
29460 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29461 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29462 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
29463 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
29464 ac_header_preproc=yes
29466 no:yes:* )
29467 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
29468 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
29469 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
29470 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
29471 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
29472 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
29473 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29474 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29475 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
29476 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
29477 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
29478 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
29479 ( cat <<\_ASBOX
29480 ## ------------------------------- ##
29481 ## Report this to www.asterisk.org ##
29482 ## ------------------------------- ##
29483 _ASBOX
29484 ) | sed "s/^/$as_me: WARNING: /" >&2
29486 esac
29487 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
29488 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
29489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492 eval "$as_ac_Header=\$ac_header_preproc"
29494 ac_res=`eval echo '${'$as_ac_Header'}'`
29495 { echo "$as_me:$LINENO: result: $ac_res" >&5
29496 echo "${ECHO_T}$ac_res" >&6; }
29499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29500 SQLITE_HEADER_FOUND=1
29501 else
29502 SQLITE_HEADER_FOUND=0
29507 CPPFLAGS="${saved_cppflags}"
29508 else
29509 if test "xsqlite.h" != "x" ; then
29510 if test "${ac_cv_header_sqlite_h+set}" = set; then
29511 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29512 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29513 if test "${ac_cv_header_sqlite_h+set}" = set; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29516 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29517 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29518 else
29519 # Is the header compilable?
29520 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
29521 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h. */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 $ac_includes_default
29529 #include <sqlite.h>
29530 _ACEOF
29531 rm -f conftest.$ac_objext
29532 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
29548 ac_header_compiler=yes
29549 else
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 ac_header_compiler=no
29556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29558 echo "${ECHO_T}$ac_header_compiler" >&6; }
29560 # Is the header present?
29561 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
29562 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
29563 cat >conftest.$ac_ext <<_ACEOF
29564 /* confdefs.h. */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 #include <sqlite.h>
29570 _ACEOF
29571 if { (ac_try="$ac_cpp conftest.$ac_ext"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29578 ac_status=$?
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } >/dev/null && {
29584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29585 test ! -s conftest.err
29586 }; then
29587 ac_header_preproc=yes
29588 else
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_header_preproc=no
29595 rm -f conftest.err conftest.$ac_ext
29596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29597 echo "${ECHO_T}$ac_header_preproc" >&6; }
29599 # So? What about this header?
29600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29601 yes:no: )
29602 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
29603 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
29605 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
29606 ac_header_preproc=yes
29608 no:yes:* )
29609 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
29610 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
29611 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
29612 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
29614 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
29616 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
29618 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
29620 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
29621 ( cat <<\_ASBOX
29622 ## ------------------------------- ##
29623 ## Report this to www.asterisk.org ##
29624 ## ------------------------------- ##
29625 _ASBOX
29626 ) | sed "s/^/$as_me: WARNING: /" >&2
29628 esac
29629 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
29630 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
29631 if test "${ac_cv_header_sqlite_h+set}" = set; then
29632 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634 ac_cv_header_sqlite_h=$ac_header_preproc
29636 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
29637 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
29640 if test $ac_cv_header_sqlite_h = yes; then
29641 SQLITE_HEADER_FOUND=1
29642 else
29643 SQLITE_HEADER_FOUND=0
29649 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
29650 if test -n "${SQLITE_MANDATORY}" ;
29651 then
29652 { echo "$as_me:$LINENO: ***" >&5
29653 echo "$as_me: ***" >&6;}
29654 { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
29655 echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
29656 { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
29657 echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
29658 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
29659 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
29660 exit 1
29662 SQLITE_LIB=""
29663 SQLITE_INCLUDE=""
29664 PBX_SQLITE=0
29665 else
29666 PBX_SQLITE=1
29668 cat >>confdefs.h <<_ACEOF
29669 #define HAVE_SQLITE 1
29670 _ACEOF
29673 elif test -n "${SQLITE_MANDATORY}";
29674 then
29675 { echo "$as_me:$LINENO: ***" >&5
29676 echo "$as_me: ***" >&6;}
29677 { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
29678 echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
29679 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
29680 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
29681 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
29682 echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
29683 exit 1
29689 if test "${USE_OPENSSL}" != "no"; then
29690 pbxlibdir=""
29691 if test "x${OPENSSL_DIR}" != "x"; then
29692 if test -d ${OPENSSL_DIR}/lib; then
29693 pbxlibdir="-L${OPENSSL_DIR}/lib"
29694 else
29695 pbxlibdir="-L${OPENSSL_DIR}"
29698 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
29699 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
29700 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703 ac_check_lib_save_LIBS=$LIBS
29704 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
29705 cat >conftest.$ac_ext <<_ACEOF
29706 /* confdefs.h. */
29707 _ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h. */
29712 /* Override any GCC internal prototype to avoid an error.
29713 Use char because int might match the return type of a GCC
29714 builtin and then its argument prototype would still apply. */
29715 #ifdef __cplusplus
29716 extern "C"
29717 #endif
29718 char ssl2_connect ();
29720 main ()
29722 return ssl2_connect ();
29724 return 0;
29726 _ACEOF
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (ac_try="$ac_link"
29729 case "(($ac_try" in
29730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731 *) ac_try_echo=$ac_try;;
29732 esac
29733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29734 (eval "$ac_link") 2>conftest.er1
29735 ac_status=$?
29736 grep -v '^ *+' conftest.er1 >conftest.err
29737 rm -f conftest.er1
29738 cat conftest.err >&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && {
29741 test -z "$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 } && test -s conftest$ac_exeext &&
29744 $as_test_x conftest$ac_exeext; then
29745 ac_cv_lib_ssl_ssl2_connect=yes
29746 else
29747 echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29750 ac_cv_lib_ssl_ssl2_connect=no
29753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29754 conftest$ac_exeext conftest.$ac_ext
29755 LIBS=$ac_check_lib_save_LIBS
29757 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
29758 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
29759 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
29760 AST_OPENSSL_FOUND=yes
29761 else
29762 AST_OPENSSL_FOUND=no
29766 if test "${AST_OPENSSL_FOUND}" = "yes"; then
29767 OPENSSL_LIB="-lssl -lcrypto"
29768 OPENSSL_HEADER_FOUND="1"
29769 if test "x${OPENSSL_DIR}" != "x"; then
29770 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
29771 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
29772 saved_cppflags="${CPPFLAGS}"
29773 CPPFLAGS="${CPPFLAGS} -I${OPENSSL_DIR}/include"
29774 if test "xopenssl/ssl.h" != "x" ; then
29775 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" | $as_tr_sh`
29776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29777 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
29778 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
29779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29782 ac_res=`eval echo '${'$as_ac_Header'}'`
29783 { echo "$as_me:$LINENO: result: $ac_res" >&5
29784 echo "${ECHO_T}$ac_res" >&6; }
29785 else
29786 # Is the header compilable?
29787 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
29788 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
29789 cat >conftest.$ac_ext <<_ACEOF
29790 /* confdefs.h. */
29791 _ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h. */
29795 $ac_includes_default
29796 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29797 _ACEOF
29798 rm -f conftest.$ac_objext
29799 if { (ac_try="$ac_compile"
29800 case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29803 esac
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_compile") 2>conftest.er1
29806 ac_status=$?
29807 grep -v '^ *+' conftest.er1 >conftest.err
29808 rm -f conftest.er1
29809 cat conftest.err >&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); } && {
29812 test -z "$ac_c_werror_flag" ||
29813 test ! -s conftest.err
29814 } && test -s conftest.$ac_objext; then
29815 ac_header_compiler=yes
29816 else
29817 echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29820 ac_header_compiler=no
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29825 echo "${ECHO_T}$ac_header_compiler" >&6; }
29827 # Is the header present?
29828 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
29829 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
29830 cat >conftest.$ac_ext <<_ACEOF
29831 /* confdefs.h. */
29832 _ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h. */
29836 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
29837 _ACEOF
29838 if { (ac_try="$ac_cpp conftest.$ac_ext"
29839 case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29845 ac_status=$?
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } >/dev/null && {
29851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29852 test ! -s conftest.err
29853 }; then
29854 ac_header_preproc=yes
29855 else
29856 echo "$as_me: failed program was:" >&5
29857 sed 's/^/| /' conftest.$ac_ext >&5
29859 ac_header_preproc=no
29862 rm -f conftest.err conftest.$ac_ext
29863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29864 echo "${ECHO_T}$ac_header_preproc" >&6; }
29866 # So? What about this header?
29867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29868 yes:no: )
29869 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29870 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29871 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
29872 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
29873 ac_header_preproc=yes
29875 no:yes:* )
29876 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
29877 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
29878 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
29879 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
29880 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
29881 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
29883 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
29885 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
29887 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
29888 ( cat <<\_ASBOX
29889 ## ------------------------------- ##
29890 ## Report this to www.asterisk.org ##
29891 ## ------------------------------- ##
29892 _ASBOX
29893 ) | sed "s/^/$as_me: WARNING: /" >&2
29895 esac
29896 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
29897 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
29898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 else
29901 eval "$as_ac_Header=\$ac_header_preproc"
29903 ac_res=`eval echo '${'$as_ac_Header'}'`
29904 { echo "$as_me:$LINENO: result: $ac_res" >&5
29905 echo "${ECHO_T}$ac_res" >&6; }
29908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29909 OPENSSL_HEADER_FOUND=1
29910 else
29911 OPENSSL_HEADER_FOUND=0
29916 CPPFLAGS="${saved_cppflags}"
29917 else
29918 if test "xopenssl/ssl.h" != "x" ; then
29919 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29920 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
29921 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
29922 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
29926 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
29927 else
29928 # Is the header compilable?
29929 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
29930 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
29931 cat >conftest.$ac_ext <<_ACEOF
29932 /* confdefs.h. */
29933 _ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29937 $ac_includes_default
29938 #include <openssl/ssl.h>
29939 _ACEOF
29940 rm -f conftest.$ac_objext
29941 if { (ac_try="$ac_compile"
29942 case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945 esac
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_compile") 2>conftest.er1
29948 ac_status=$?
29949 grep -v '^ *+' conftest.er1 >conftest.err
29950 rm -f conftest.er1
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } && {
29954 test -z "$ac_c_werror_flag" ||
29955 test ! -s conftest.err
29956 } && test -s conftest.$ac_objext; then
29957 ac_header_compiler=yes
29958 else
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_header_compiler=no
29965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29967 echo "${ECHO_T}$ac_header_compiler" >&6; }
29969 # Is the header present?
29970 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
29971 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
29972 cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h. */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29978 #include <openssl/ssl.h>
29979 _ACEOF
29980 if { (ac_try="$ac_cpp conftest.$ac_ext"
29981 case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29987 ac_status=$?
29988 grep -v '^ *+' conftest.er1 >conftest.err
29989 rm -f conftest.er1
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } >/dev/null && {
29993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29994 test ! -s conftest.err
29995 }; then
29996 ac_header_preproc=yes
29997 else
29998 echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30001 ac_header_preproc=no
30004 rm -f conftest.err conftest.$ac_ext
30005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30006 echo "${ECHO_T}$ac_header_preproc" >&6; }
30008 # So? What about this header?
30009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30010 yes:no: )
30011 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30012 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30013 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
30014 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
30015 ac_header_preproc=yes
30017 no:yes:* )
30018 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
30019 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
30021 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
30023 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
30025 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
30027 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
30028 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
30029 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
30030 ( cat <<\_ASBOX
30031 ## ------------------------------- ##
30032 ## Report this to www.asterisk.org ##
30033 ## ------------------------------- ##
30034 _ASBOX
30035 ) | sed "s/^/$as_me: WARNING: /" >&2
30037 esac
30038 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
30039 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
30040 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
30041 echo $ECHO_N "(cached) $ECHO_C" >&6
30042 else
30043 ac_cv_header_openssl_ssl_h=$ac_header_preproc
30045 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
30046 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
30049 if test $ac_cv_header_openssl_ssl_h = yes; then
30050 OPENSSL_HEADER_FOUND=1
30051 else
30052 OPENSSL_HEADER_FOUND=0
30058 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
30059 if test -n "${OPENSSL_MANDATORY}" ;
30060 then
30061 { echo "$as_me:$LINENO: ***" >&5
30062 echo "$as_me: ***" >&6;}
30063 { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
30064 echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
30065 { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
30066 echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
30067 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30068 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30069 exit 1
30071 OPENSSL_LIB=""
30072 OPENSSL_INCLUDE=""
30073 PBX_OPENSSL=0
30074 else
30075 PBX_OPENSSL=1
30077 cat >>confdefs.h <<_ACEOF
30078 #define HAVE_OPENSSL 1
30079 _ACEOF
30082 elif test -n "${OPENSSL_MANDATORY}";
30083 then
30084 { echo "$as_me:$LINENO: ***" >&5
30085 echo "$as_me: ***" >&6;}
30086 { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
30087 echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
30088 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30089 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30090 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
30091 echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
30092 exit 1
30096 if test "$PBX_OPENSSL" = "1";
30097 then
30099 if test "${USE_OSPTK}" != "no"; then
30100 pbxlibdir=""
30101 if test "x${OSPTK_DIR}" != "x"; then
30102 if test -d ${OSPTK_DIR}/lib; then
30103 pbxlibdir="-L${OSPTK_DIR}/lib"
30104 else
30105 pbxlibdir="-L${OSPTK_DIR}"
30108 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
30109 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
30110 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30112 else
30113 ac_check_lib_save_LIBS=$LIBS
30114 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
30115 cat >conftest.$ac_ext <<_ACEOF
30116 /* confdefs.h. */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30122 /* Override any GCC internal prototype to avoid an error.
30123 Use char because int might match the return type of a GCC
30124 builtin and then its argument prototype would still apply. */
30125 #ifdef __cplusplus
30126 extern "C"
30127 #endif
30128 char OSPPCryptoDecrypt ();
30130 main ()
30132 return OSPPCryptoDecrypt ();
30134 return 0;
30136 _ACEOF
30137 rm -f conftest.$ac_objext conftest$ac_exeext
30138 if { (ac_try="$ac_link"
30139 case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142 esac
30143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_link") 2>conftest.er1
30145 ac_status=$?
30146 grep -v '^ *+' conftest.er1 >conftest.err
30147 rm -f conftest.er1
30148 cat conftest.err >&5
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); } && {
30151 test -z "$ac_c_werror_flag" ||
30152 test ! -s conftest.err
30153 } && test -s conftest$ac_exeext &&
30154 $as_test_x conftest$ac_exeext; then
30155 ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
30156 else
30157 echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 ac_cv_lib_osptk_OSPPCryptoDecrypt=no
30163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30164 conftest$ac_exeext conftest.$ac_ext
30165 LIBS=$ac_check_lib_save_LIBS
30167 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
30168 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
30169 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
30170 AST_OSPTK_FOUND=yes
30171 else
30172 AST_OSPTK_FOUND=no
30176 if test "${AST_OSPTK_FOUND}" = "yes"; then
30177 OSPTK_LIB="-losptk -lcrypto -lssl"
30178 OSPTK_HEADER_FOUND="1"
30179 if test "x${OSPTK_DIR}" != "x"; then
30180 OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
30181 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
30182 saved_cppflags="${CPPFLAGS}"
30183 CPPFLAGS="${CPPFLAGS} -I${OSPTK_DIR}/include"
30184 if test "xosp/osp.h" != "x" ; then
30185 as_ac_Header=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
30186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30187 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30188 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 ac_res=`eval echo '${'$as_ac_Header'}'`
30193 { echo "$as_me:$LINENO: result: $ac_res" >&5
30194 echo "${ECHO_T}$ac_res" >&6; }
30195 else
30196 # Is the header compilable?
30197 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
30198 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
30199 cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h. */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 $ac_includes_default
30206 #include <${OSPTK_DIR}/include/osp/osp.h>
30207 _ACEOF
30208 rm -f conftest.$ac_objext
30209 if { (ac_try="$ac_compile"
30210 case "(($ac_try" in
30211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212 *) ac_try_echo=$ac_try;;
30213 esac
30214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215 (eval "$ac_compile") 2>conftest.er1
30216 ac_status=$?
30217 grep -v '^ *+' conftest.er1 >conftest.err
30218 rm -f conftest.er1
30219 cat conftest.err >&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); } && {
30222 test -z "$ac_c_werror_flag" ||
30223 test ! -s conftest.err
30224 } && test -s conftest.$ac_objext; then
30225 ac_header_compiler=yes
30226 else
30227 echo "$as_me: failed program was:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30230 ac_header_compiler=no
30233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30235 echo "${ECHO_T}$ac_header_compiler" >&6; }
30237 # Is the header present?
30238 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
30239 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
30240 cat >conftest.$ac_ext <<_ACEOF
30241 /* confdefs.h. */
30242 _ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 #include <${OSPTK_DIR}/include/osp/osp.h>
30247 _ACEOF
30248 if { (ac_try="$ac_cpp conftest.$ac_ext"
30249 case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30255 ac_status=$?
30256 grep -v '^ *+' conftest.er1 >conftest.err
30257 rm -f conftest.er1
30258 cat conftest.err >&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } >/dev/null && {
30261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30262 test ! -s conftest.err
30263 }; then
30264 ac_header_preproc=yes
30265 else
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_header_preproc=no
30272 rm -f conftest.err conftest.$ac_ext
30273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30274 echo "${ECHO_T}$ac_header_preproc" >&6; }
30276 # So? What about this header?
30277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278 yes:no: )
30279 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30280 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
30282 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
30283 ac_header_preproc=yes
30285 no:yes:* )
30286 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
30287 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
30289 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
30291 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30293 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
30295 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
30297 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
30298 ( cat <<\_ASBOX
30299 ## ------------------------------- ##
30300 ## Report this to www.asterisk.org ##
30301 ## ------------------------------- ##
30302 _ASBOX
30303 ) | sed "s/^/$as_me: WARNING: /" >&2
30305 esac
30306 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
30307 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
30308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311 eval "$as_ac_Header=\$ac_header_preproc"
30313 ac_res=`eval echo '${'$as_ac_Header'}'`
30314 { echo "$as_me:$LINENO: result: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30319 OSPTK_HEADER_FOUND=1
30320 else
30321 OSPTK_HEADER_FOUND=0
30326 CPPFLAGS="${saved_cppflags}"
30327 else
30328 if test "xosp/osp.h" != "x" ; then
30329 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30330 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30331 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30332 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30335 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30336 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30337 else
30338 # Is the header compilable?
30339 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
30340 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
30341 cat >conftest.$ac_ext <<_ACEOF
30342 /* confdefs.h. */
30343 _ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 $ac_includes_default
30348 #include <osp/osp.h>
30349 _ACEOF
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30355 esac
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
30358 ac_status=$?
30359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } && {
30364 test -z "$ac_c_werror_flag" ||
30365 test ! -s conftest.err
30366 } && test -s conftest.$ac_objext; then
30367 ac_header_compiler=yes
30368 else
30369 echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_header_compiler=no
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30377 echo "${ECHO_T}$ac_header_compiler" >&6; }
30379 # Is the header present?
30380 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
30381 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
30382 cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h. */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h. */
30388 #include <osp/osp.h>
30389 _ACEOF
30390 if { (ac_try="$ac_cpp conftest.$ac_ext"
30391 case "(($ac_try" in
30392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393 *) ac_try_echo=$ac_try;;
30394 esac
30395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30397 ac_status=$?
30398 grep -v '^ *+' conftest.er1 >conftest.err
30399 rm -f conftest.er1
30400 cat conftest.err >&5
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); } >/dev/null && {
30403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30404 test ! -s conftest.err
30405 }; then
30406 ac_header_preproc=yes
30407 else
30408 echo "$as_me: failed program was:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30411 ac_header_preproc=no
30414 rm -f conftest.err conftest.$ac_ext
30415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30416 echo "${ECHO_T}$ac_header_preproc" >&6; }
30418 # So? What about this header?
30419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30420 yes:no: )
30421 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
30422 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30423 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
30424 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
30425 ac_header_preproc=yes
30427 no:yes:* )
30428 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
30429 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
30431 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
30433 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
30435 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
30436 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
30437 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
30438 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
30439 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
30440 ( cat <<\_ASBOX
30441 ## ------------------------------- ##
30442 ## Report this to www.asterisk.org ##
30443 ## ------------------------------- ##
30444 _ASBOX
30445 ) | sed "s/^/$as_me: WARNING: /" >&2
30447 esac
30448 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
30449 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
30450 if test "${ac_cv_header_osp_osp_h+set}" = set; then
30451 echo $ECHO_N "(cached) $ECHO_C" >&6
30452 else
30453 ac_cv_header_osp_osp_h=$ac_header_preproc
30455 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
30456 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
30459 if test $ac_cv_header_osp_osp_h = yes; then
30460 OSPTK_HEADER_FOUND=1
30461 else
30462 OSPTK_HEADER_FOUND=0
30468 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
30469 if test -n "${OSPTK_MANDATORY}" ;
30470 then
30471 { echo "$as_me:$LINENO: ***" >&5
30472 echo "$as_me: ***" >&6;}
30473 { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
30474 echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
30475 { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
30476 echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
30477 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30478 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30479 exit 1
30481 OSPTK_LIB=""
30482 OSPTK_INCLUDE=""
30483 PBX_OSPTK=0
30484 else
30485 PBX_OSPTK=1
30487 cat >>confdefs.h <<_ACEOF
30488 #define HAVE_OSPTK 1
30489 _ACEOF
30492 elif test -n "${OSPTK_MANDATORY}";
30493 then
30494 { echo "$as_me:$LINENO: ***" >&5
30495 echo "$as_me: ***" >&6;}
30496 { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
30497 echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
30498 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30499 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30500 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
30501 echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
30502 exit 1
30509 if test "${USE_FREETDS}" != "no"; then
30510 pbxlibdir=""
30511 if test "x${FREETDS_DIR}" != "x"; then
30512 if test -d ${FREETDS_DIR}/lib; then
30513 pbxlibdir="-L${FREETDS_DIR}/lib"
30514 else
30515 pbxlibdir="-L${FREETDS_DIR}"
30518 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
30519 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
30520 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30522 else
30523 ac_check_lib_save_LIBS=$LIBS
30524 LIBS="-ltds ${pbxlibdir} $LIBS"
30525 cat >conftest.$ac_ext <<_ACEOF
30526 /* confdefs.h. */
30527 _ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30532 /* Override any GCC internal prototype to avoid an error.
30533 Use char because int might match the return type of a GCC
30534 builtin and then its argument prototype would still apply. */
30535 #ifdef __cplusplus
30536 extern "C"
30537 #endif
30538 char tds_version ();
30540 main ()
30542 return tds_version ();
30544 return 0;
30546 _ACEOF
30547 rm -f conftest.$ac_objext conftest$ac_exeext
30548 if { (ac_try="$ac_link"
30549 case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30552 esac
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_link") 2>conftest.er1
30555 ac_status=$?
30556 grep -v '^ *+' conftest.er1 >conftest.err
30557 rm -f conftest.er1
30558 cat conftest.err >&5
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); } && {
30561 test -z "$ac_c_werror_flag" ||
30562 test ! -s conftest.err
30563 } && test -s conftest$ac_exeext &&
30564 $as_test_x conftest$ac_exeext; then
30565 ac_cv_lib_tds_tds_version=yes
30566 else
30567 echo "$as_me: failed program was:" >&5
30568 sed 's/^/| /' conftest.$ac_ext >&5
30570 ac_cv_lib_tds_tds_version=no
30573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30574 conftest$ac_exeext conftest.$ac_ext
30575 LIBS=$ac_check_lib_save_LIBS
30577 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
30578 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
30579 if test $ac_cv_lib_tds_tds_version = yes; then
30580 AST_FREETDS_FOUND=yes
30581 else
30582 AST_FREETDS_FOUND=no
30586 if test "${AST_FREETDS_FOUND}" = "yes"; then
30587 FREETDS_LIB="-ltds "
30588 FREETDS_HEADER_FOUND="1"
30589 if test "x${FREETDS_DIR}" != "x"; then
30590 FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
30591 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
30592 saved_cppflags="${CPPFLAGS}"
30593 CPPFLAGS="${CPPFLAGS} -I${FREETDS_DIR}/include"
30594 if test "xtds.h" != "x" ; then
30595 as_ac_Header=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
30596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30597 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
30598 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
30599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30602 ac_res=`eval echo '${'$as_ac_Header'}'`
30603 { echo "$as_me:$LINENO: result: $ac_res" >&5
30604 echo "${ECHO_T}$ac_res" >&6; }
30605 else
30606 # Is the header compilable?
30607 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
30608 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
30609 cat >conftest.$ac_ext <<_ACEOF
30610 /* confdefs.h. */
30611 _ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h. */
30615 $ac_includes_default
30616 #include <${FREETDS_DIR}/include/tds.h>
30617 _ACEOF
30618 rm -f conftest.$ac_objext
30619 if { (ac_try="$ac_compile"
30620 case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_compile") 2>conftest.er1
30626 ac_status=$?
30627 grep -v '^ *+' conftest.er1 >conftest.err
30628 rm -f conftest.er1
30629 cat conftest.err >&5
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); } && {
30632 test -z "$ac_c_werror_flag" ||
30633 test ! -s conftest.err
30634 } && test -s conftest.$ac_objext; then
30635 ac_header_compiler=yes
30636 else
30637 echo "$as_me: failed program was:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30640 ac_header_compiler=no
30643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30645 echo "${ECHO_T}$ac_header_compiler" >&6; }
30647 # Is the header present?
30648 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
30649 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
30650 cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h. */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30656 #include <${FREETDS_DIR}/include/tds.h>
30657 _ACEOF
30658 if { (ac_try="$ac_cpp conftest.$ac_ext"
30659 case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30662 esac
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30665 ac_status=$?
30666 grep -v '^ *+' conftest.er1 >conftest.err
30667 rm -f conftest.er1
30668 cat conftest.err >&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } >/dev/null && {
30671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30672 test ! -s conftest.err
30673 }; then
30674 ac_header_preproc=yes
30675 else
30676 echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30679 ac_header_preproc=no
30682 rm -f conftest.err conftest.$ac_ext
30683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30684 echo "${ECHO_T}$ac_header_preproc" >&6; }
30686 # So? What about this header?
30687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30688 yes:no: )
30689 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
30690 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30691 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
30692 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
30693 ac_header_preproc=yes
30695 no:yes:* )
30696 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
30697 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
30699 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
30701 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
30703 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
30704 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
30705 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
30706 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
30707 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
30708 ( cat <<\_ASBOX
30709 ## ------------------------------- ##
30710 ## Report this to www.asterisk.org ##
30711 ## ------------------------------- ##
30712 _ASBOX
30713 ) | sed "s/^/$as_me: WARNING: /" >&2
30715 esac
30716 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
30717 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
30718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30719 echo $ECHO_N "(cached) $ECHO_C" >&6
30720 else
30721 eval "$as_ac_Header=\$ac_header_preproc"
30723 ac_res=`eval echo '${'$as_ac_Header'}'`
30724 { echo "$as_me:$LINENO: result: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729 FREETDS_HEADER_FOUND=1
30730 else
30731 FREETDS_HEADER_FOUND=0
30736 CPPFLAGS="${saved_cppflags}"
30737 else
30738 if test "xtds.h" != "x" ; then
30739 if test "${ac_cv_header_tds_h+set}" = set; then
30740 { echo "$as_me:$LINENO: checking for tds.h" >&5
30741 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
30742 if test "${ac_cv_header_tds_h+set}" = set; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30745 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
30746 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30747 else
30748 # Is the header compilable?
30749 { echo "$as_me:$LINENO: checking tds.h usability" >&5
30750 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
30751 cat >conftest.$ac_ext <<_ACEOF
30752 /* confdefs.h. */
30753 _ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h. */
30757 $ac_includes_default
30758 #include <tds.h>
30759 _ACEOF
30760 rm -f conftest.$ac_objext
30761 if { (ac_try="$ac_compile"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30765 esac
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_compile") 2>conftest.er1
30768 ac_status=$?
30769 grep -v '^ *+' conftest.er1 >conftest.err
30770 rm -f conftest.er1
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } && {
30774 test -z "$ac_c_werror_flag" ||
30775 test ! -s conftest.err
30776 } && test -s conftest.$ac_objext; then
30777 ac_header_compiler=yes
30778 else
30779 echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30782 ac_header_compiler=no
30785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30787 echo "${ECHO_T}$ac_header_compiler" >&6; }
30789 # Is the header present?
30790 { echo "$as_me:$LINENO: checking tds.h presence" >&5
30791 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
30792 cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h. */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798 #include <tds.h>
30799 _ACEOF
30800 if { (ac_try="$ac_cpp conftest.$ac_ext"
30801 case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30804 esac
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30807 ac_status=$?
30808 grep -v '^ *+' conftest.er1 >conftest.err
30809 rm -f conftest.er1
30810 cat conftest.err >&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } >/dev/null && {
30813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30814 test ! -s conftest.err
30815 }; then
30816 ac_header_preproc=yes
30817 else
30818 echo "$as_me: failed program was:" >&5
30819 sed 's/^/| /' conftest.$ac_ext >&5
30821 ac_header_preproc=no
30824 rm -f conftest.err conftest.$ac_ext
30825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30826 echo "${ECHO_T}$ac_header_preproc" >&6; }
30828 # So? What about this header?
30829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30830 yes:no: )
30831 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
30832 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
30834 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
30835 ac_header_preproc=yes
30837 no:yes:* )
30838 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
30839 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
30840 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
30841 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
30842 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
30843 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
30844 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
30845 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
30846 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
30847 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
30849 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
30850 ( cat <<\_ASBOX
30851 ## ------------------------------- ##
30852 ## Report this to www.asterisk.org ##
30853 ## ------------------------------- ##
30854 _ASBOX
30855 ) | sed "s/^/$as_me: WARNING: /" >&2
30857 esac
30858 { echo "$as_me:$LINENO: checking for tds.h" >&5
30859 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
30860 if test "${ac_cv_header_tds_h+set}" = set; then
30861 echo $ECHO_N "(cached) $ECHO_C" >&6
30862 else
30863 ac_cv_header_tds_h=$ac_header_preproc
30865 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
30866 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
30869 if test $ac_cv_header_tds_h = yes; then
30870 FREETDS_HEADER_FOUND=1
30871 else
30872 FREETDS_HEADER_FOUND=0
30878 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
30879 if test -n "${FREETDS_MANDATORY}" ;
30880 then
30881 { echo "$as_me:$LINENO: ***" >&5
30882 echo "$as_me: ***" >&6;}
30883 { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
30884 echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
30885 { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
30886 echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
30887 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
30888 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
30889 exit 1
30891 FREETDS_LIB=""
30892 FREETDS_INCLUDE=""
30893 PBX_FREETDS=0
30894 else
30895 PBX_FREETDS=1
30897 cat >>confdefs.h <<_ACEOF
30898 #define HAVE_FREETDS 1
30899 _ACEOF
30902 elif test -n "${FREETDS_MANDATORY}";
30903 then
30904 { echo "$as_me:$LINENO: ***" >&5
30905 echo "$as_me: ***" >&6;}
30906 { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
30907 echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
30908 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
30909 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
30910 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
30911 echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
30912 exit 1
30916 if test "${PBX_FREETDS}" != "0";
30917 then
30918 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
30919 *0.64*)
30920 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
30922 *0.63*)
30923 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
30925 *0.62*)
30926 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
30929 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
30931 esac
30935 if test "${USE_TERMCAP}" != "no"; then
30936 pbxlibdir=""
30937 if test "x${TERMCAP_DIR}" != "x"; then
30938 if test -d ${TERMCAP_DIR}/lib; then
30939 pbxlibdir="-L${TERMCAP_DIR}/lib"
30940 else
30941 pbxlibdir="-L${TERMCAP_DIR}"
30944 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30945 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
30946 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30947 echo $ECHO_N "(cached) $ECHO_C" >&6
30948 else
30949 ac_check_lib_save_LIBS=$LIBS
30950 LIBS="-ltermcap ${pbxlibdir} $LIBS"
30951 cat >conftest.$ac_ext <<_ACEOF
30952 /* confdefs.h. */
30953 _ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30958 /* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
30961 #ifdef __cplusplus
30962 extern "C"
30963 #endif
30964 char tgetent ();
30966 main ()
30968 return tgetent ();
30970 return 0;
30972 _ACEOF
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (ac_try="$ac_link"
30975 case "(($ac_try" in
30976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30977 *) ac_try_echo=$ac_try;;
30978 esac
30979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30980 (eval "$ac_link") 2>conftest.er1
30981 ac_status=$?
30982 grep -v '^ *+' conftest.er1 >conftest.err
30983 rm -f conftest.er1
30984 cat conftest.err >&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } && {
30987 test -z "$ac_c_werror_flag" ||
30988 test ! -s conftest.err
30989 } && test -s conftest$ac_exeext &&
30990 $as_test_x conftest$ac_exeext; then
30991 ac_cv_lib_termcap_tgetent=yes
30992 else
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30996 ac_cv_lib_termcap_tgetent=no
30999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31000 conftest$ac_exeext conftest.$ac_ext
31001 LIBS=$ac_check_lib_save_LIBS
31003 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
31004 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
31005 if test $ac_cv_lib_termcap_tgetent = yes; then
31006 AST_TERMCAP_FOUND=yes
31007 else
31008 AST_TERMCAP_FOUND=no
31012 if test "${AST_TERMCAP_FOUND}" = "yes"; then
31013 TERMCAP_LIB="-ltermcap "
31014 TERMCAP_HEADER_FOUND="1"
31015 if test "x${TERMCAP_DIR}" != "x"; then
31016 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
31017 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
31018 saved_cppflags="${CPPFLAGS}"
31019 CPPFLAGS="${CPPFLAGS} -I${TERMCAP_DIR}/include"
31020 if test "x" != "x" ; then
31021 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" | $as_tr_sh`
31022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31023 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31024 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31028 ac_res=`eval echo '${'$as_ac_Header'}'`
31029 { echo "$as_me:$LINENO: result: $ac_res" >&5
31030 echo "${ECHO_T}$ac_res" >&6; }
31031 else
31032 # Is the header compilable?
31033 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
31034 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
31035 cat >conftest.$ac_ext <<_ACEOF
31036 /* confdefs.h. */
31037 _ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31041 $ac_includes_default
31042 #include <${TERMCAP_DIR}/include/>
31043 _ACEOF
31044 rm -f conftest.$ac_objext
31045 if { (ac_try="$ac_compile"
31046 case "(($ac_try" in
31047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048 *) ac_try_echo=$ac_try;;
31049 esac
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051 (eval "$ac_compile") 2>conftest.er1
31052 ac_status=$?
31053 grep -v '^ *+' conftest.er1 >conftest.err
31054 rm -f conftest.er1
31055 cat conftest.err >&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } && {
31058 test -z "$ac_c_werror_flag" ||
31059 test ! -s conftest.err
31060 } && test -s conftest.$ac_objext; then
31061 ac_header_compiler=yes
31062 else
31063 echo "$as_me: failed program was:" >&5
31064 sed 's/^/| /' conftest.$ac_ext >&5
31066 ac_header_compiler=no
31069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31071 echo "${ECHO_T}$ac_header_compiler" >&6; }
31073 # Is the header present?
31074 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
31075 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
31076 cat >conftest.$ac_ext <<_ACEOF
31077 /* confdefs.h. */
31078 _ACEOF
31079 cat confdefs.h >>conftest.$ac_ext
31080 cat >>conftest.$ac_ext <<_ACEOF
31081 /* end confdefs.h. */
31082 #include <${TERMCAP_DIR}/include/>
31083 _ACEOF
31084 if { (ac_try="$ac_cpp conftest.$ac_ext"
31085 case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31088 esac
31089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31091 ac_status=$?
31092 grep -v '^ *+' conftest.er1 >conftest.err
31093 rm -f conftest.er1
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } >/dev/null && {
31097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31098 test ! -s conftest.err
31099 }; then
31100 ac_header_preproc=yes
31101 else
31102 echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 ac_header_preproc=no
31108 rm -f conftest.err conftest.$ac_ext
31109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31110 echo "${ECHO_T}$ac_header_preproc" >&6; }
31112 # So? What about this header?
31113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31114 yes:no: )
31115 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31116 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31117 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
31118 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
31119 ac_header_preproc=yes
31121 no:yes:* )
31122 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
31123 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
31124 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
31125 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
31126 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
31127 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
31128 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31129 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31130 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
31131 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31132 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
31133 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31134 ( cat <<\_ASBOX
31135 ## ------------------------------- ##
31136 ## Report this to www.asterisk.org ##
31137 ## ------------------------------- ##
31138 _ASBOX
31139 ) | sed "s/^/$as_me: WARNING: /" >&2
31141 esac
31142 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
31143 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
31144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31145 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 else
31147 eval "$as_ac_Header=\$ac_header_preproc"
31149 ac_res=`eval echo '${'$as_ac_Header'}'`
31150 { echo "$as_me:$LINENO: result: $ac_res" >&5
31151 echo "${ECHO_T}$ac_res" >&6; }
31154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31155 TERMCAP_HEADER_FOUND=1
31156 else
31157 TERMCAP_HEADER_FOUND=0
31162 CPPFLAGS="${saved_cppflags}"
31163 else
31164 if test "x" != "x" ; then
31165 if test "${ac_cv_header_+set}" = set; then
31166 { echo "$as_me:$LINENO: checking for " >&5
31167 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31168 if test "${ac_cv_header_+set}" = set; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31172 echo "${ECHO_T}$ac_cv_header_" >&6; }
31173 else
31174 # Is the header compilable?
31175 { echo "$as_me:$LINENO: checking usability" >&5
31176 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31177 cat >conftest.$ac_ext <<_ACEOF
31178 /* confdefs.h. */
31179 _ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h. */
31183 $ac_includes_default
31184 #include <>
31185 _ACEOF
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_compile") 2>conftest.er1
31194 ac_status=$?
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } && {
31200 test -z "$ac_c_werror_flag" ||
31201 test ! -s conftest.err
31202 } && test -s conftest.$ac_objext; then
31203 ac_header_compiler=yes
31204 else
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 ac_header_compiler=no
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31213 echo "${ECHO_T}$ac_header_compiler" >&6; }
31215 # Is the header present?
31216 { echo "$as_me:$LINENO: checking presence" >&5
31217 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31218 cat >conftest.$ac_ext <<_ACEOF
31219 /* confdefs.h. */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31224 #include <>
31225 _ACEOF
31226 if { (ac_try="$ac_cpp conftest.$ac_ext"
31227 case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31233 ac_status=$?
31234 grep -v '^ *+' conftest.er1 >conftest.err
31235 rm -f conftest.er1
31236 cat conftest.err >&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } >/dev/null && {
31239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31240 test ! -s conftest.err
31241 }; then
31242 ac_header_preproc=yes
31243 else
31244 echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247 ac_header_preproc=no
31250 rm -f conftest.err conftest.$ac_ext
31251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6; }
31254 # So? What about this header?
31255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31256 yes:no: )
31257 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31260 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31261 ac_header_preproc=yes
31263 no:yes:* )
31264 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31265 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31266 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31267 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31268 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31269 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31270 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31271 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31272 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31273 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31274 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31275 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31276 ( cat <<\_ASBOX
31277 ## ------------------------------- ##
31278 ## Report this to www.asterisk.org ##
31279 ## ------------------------------- ##
31280 _ASBOX
31281 ) | sed "s/^/$as_me: WARNING: /" >&2
31283 esac
31284 { echo "$as_me:$LINENO: checking for " >&5
31285 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31286 if test "${ac_cv_header_+set}" = set; then
31287 echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289 ac_cv_header_=$ac_header_preproc
31291 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31292 echo "${ECHO_T}$ac_cv_header_" >&6; }
31295 if test $ac_cv_header_ = yes; then
31296 TERMCAP_HEADER_FOUND=1
31297 else
31298 TERMCAP_HEADER_FOUND=0
31304 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
31305 if test -n "${TERMCAP_MANDATORY}" ;
31306 then
31307 { echo "$as_me:$LINENO: ***" >&5
31308 echo "$as_me: ***" >&6;}
31309 { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
31310 echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
31311 { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
31312 echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
31313 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31314 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31315 exit 1
31317 TERMCAP_LIB=""
31318 TERMCAP_INCLUDE=""
31319 PBX_TERMCAP=0
31320 else
31321 PBX_TERMCAP=1
31323 cat >>confdefs.h <<_ACEOF
31324 #define HAVE_TERMCAP 1
31325 _ACEOF
31328 elif test -n "${TERMCAP_MANDATORY}";
31329 then
31330 { echo "$as_me:$LINENO: ***" >&5
31331 echo "$as_me: ***" >&6;}
31332 { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
31333 echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
31334 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31335 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31336 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
31337 echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
31338 exit 1
31344 if test "${USE_TINFO}" != "no"; then
31345 pbxlibdir=""
31346 if test "x${TINFO_DIR}" != "x"; then
31347 if test -d ${TINFO_DIR}/lib; then
31348 pbxlibdir="-L${TINFO_DIR}/lib"
31349 else
31350 pbxlibdir="-L${TINFO_DIR}"
31353 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
31354 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
31355 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
31356 echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358 ac_check_lib_save_LIBS=$LIBS
31359 LIBS="-ltinfo ${pbxlibdir} $LIBS"
31360 cat >conftest.$ac_ext <<_ACEOF
31361 /* confdefs.h. */
31362 _ACEOF
31363 cat confdefs.h >>conftest.$ac_ext
31364 cat >>conftest.$ac_ext <<_ACEOF
31365 /* end confdefs.h. */
31367 /* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply. */
31370 #ifdef __cplusplus
31371 extern "C"
31372 #endif
31373 char tgetent ();
31375 main ()
31377 return tgetent ();
31379 return 0;
31381 _ACEOF
31382 rm -f conftest.$ac_objext conftest$ac_exeext
31383 if { (ac_try="$ac_link"
31384 case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31387 esac
31388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_link") 2>conftest.er1
31390 ac_status=$?
31391 grep -v '^ *+' conftest.er1 >conftest.err
31392 rm -f conftest.er1
31393 cat conftest.err >&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } && {
31396 test -z "$ac_c_werror_flag" ||
31397 test ! -s conftest.err
31398 } && test -s conftest$ac_exeext &&
31399 $as_test_x conftest$ac_exeext; then
31400 ac_cv_lib_tinfo_tgetent=yes
31401 else
31402 echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31405 ac_cv_lib_tinfo_tgetent=no
31408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31409 conftest$ac_exeext conftest.$ac_ext
31410 LIBS=$ac_check_lib_save_LIBS
31412 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
31413 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
31414 if test $ac_cv_lib_tinfo_tgetent = yes; then
31415 AST_TINFO_FOUND=yes
31416 else
31417 AST_TINFO_FOUND=no
31421 if test "${AST_TINFO_FOUND}" = "yes"; then
31422 TINFO_LIB="-ltinfo "
31423 TINFO_HEADER_FOUND="1"
31424 if test "x${TINFO_DIR}" != "x"; then
31425 TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
31426 TINFO_INCLUDE="-I${TINFO_DIR}/include"
31427 saved_cppflags="${CPPFLAGS}"
31428 CPPFLAGS="${CPPFLAGS} -I${TINFO_DIR}/include"
31429 if test "x" != "x" ; then
31430 as_ac_Header=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
31431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31432 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31433 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31435 echo $ECHO_N "(cached) $ECHO_C" >&6
31437 ac_res=`eval echo '${'$as_ac_Header'}'`
31438 { echo "$as_me:$LINENO: result: $ac_res" >&5
31439 echo "${ECHO_T}$ac_res" >&6; }
31440 else
31441 # Is the header compilable?
31442 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
31443 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
31444 cat >conftest.$ac_ext <<_ACEOF
31445 /* confdefs.h. */
31446 _ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h. */
31450 $ac_includes_default
31451 #include <${TINFO_DIR}/include/>
31452 _ACEOF
31453 rm -f conftest.$ac_objext
31454 if { (ac_try="$ac_compile"
31455 case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458 esac
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_compile") 2>conftest.er1
31461 ac_status=$?
31462 grep -v '^ *+' conftest.er1 >conftest.err
31463 rm -f conftest.er1
31464 cat conftest.err >&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); } && {
31467 test -z "$ac_c_werror_flag" ||
31468 test ! -s conftest.err
31469 } && test -s conftest.$ac_objext; then
31470 ac_header_compiler=yes
31471 else
31472 echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31475 ac_header_compiler=no
31478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31480 echo "${ECHO_T}$ac_header_compiler" >&6; }
31482 # Is the header present?
31483 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
31484 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
31485 cat >conftest.$ac_ext <<_ACEOF
31486 /* confdefs.h. */
31487 _ACEOF
31488 cat confdefs.h >>conftest.$ac_ext
31489 cat >>conftest.$ac_ext <<_ACEOF
31490 /* end confdefs.h. */
31491 #include <${TINFO_DIR}/include/>
31492 _ACEOF
31493 if { (ac_try="$ac_cpp conftest.$ac_ext"
31494 case "(($ac_try" in
31495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31496 *) ac_try_echo=$ac_try;;
31497 esac
31498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31500 ac_status=$?
31501 grep -v '^ *+' conftest.er1 >conftest.err
31502 rm -f conftest.er1
31503 cat conftest.err >&5
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); } >/dev/null && {
31506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31507 test ! -s conftest.err
31508 }; then
31509 ac_header_preproc=yes
31510 else
31511 echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31514 ac_header_preproc=no
31517 rm -f conftest.err conftest.$ac_ext
31518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31519 echo "${ECHO_T}$ac_header_preproc" >&6; }
31521 # So? What about this header?
31522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31523 yes:no: )
31524 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
31525 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
31526 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
31527 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
31528 ac_header_preproc=yes
31530 no:yes:* )
31531 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
31532 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
31533 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
31534 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
31535 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
31536 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
31537 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
31538 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
31539 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
31540 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
31541 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
31542 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
31543 ( cat <<\_ASBOX
31544 ## ------------------------------- ##
31545 ## Report this to www.asterisk.org ##
31546 ## ------------------------------- ##
31547 _ASBOX
31548 ) | sed "s/^/$as_me: WARNING: /" >&2
31550 esac
31551 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
31552 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
31553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31555 else
31556 eval "$as_ac_Header=\$ac_header_preproc"
31558 ac_res=`eval echo '${'$as_ac_Header'}'`
31559 { echo "$as_me:$LINENO: result: $ac_res" >&5
31560 echo "${ECHO_T}$ac_res" >&6; }
31563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31564 TINFO_HEADER_FOUND=1
31565 else
31566 TINFO_HEADER_FOUND=0
31571 CPPFLAGS="${saved_cppflags}"
31572 else
31573 if test "x" != "x" ; then
31574 if test "${ac_cv_header_+set}" = set; then
31575 { echo "$as_me:$LINENO: checking for " >&5
31576 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31577 if test "${ac_cv_header_+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31580 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31581 echo "${ECHO_T}$ac_cv_header_" >&6; }
31582 else
31583 # Is the header compilable?
31584 { echo "$as_me:$LINENO: checking usability" >&5
31585 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31586 cat >conftest.$ac_ext <<_ACEOF
31587 /* confdefs.h. */
31588 _ACEOF
31589 cat confdefs.h >>conftest.$ac_ext
31590 cat >>conftest.$ac_ext <<_ACEOF
31591 /* end confdefs.h. */
31592 $ac_includes_default
31593 #include <>
31594 _ACEOF
31595 rm -f conftest.$ac_objext
31596 if { (ac_try="$ac_compile"
31597 case "(($ac_try" in
31598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31599 *) ac_try_echo=$ac_try;;
31600 esac
31601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31602 (eval "$ac_compile") 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } && {
31609 test -z "$ac_c_werror_flag" ||
31610 test ! -s conftest.err
31611 } && test -s conftest.$ac_objext; then
31612 ac_header_compiler=yes
31613 else
31614 echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.$ac_ext >&5
31617 ac_header_compiler=no
31620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31622 echo "${ECHO_T}$ac_header_compiler" >&6; }
31624 # Is the header present?
31625 { echo "$as_me:$LINENO: checking presence" >&5
31626 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31627 cat >conftest.$ac_ext <<_ACEOF
31628 /* confdefs.h. */
31629 _ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31633 #include <>
31634 _ACEOF
31635 if { (ac_try="$ac_cpp conftest.$ac_ext"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639 esac
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31642 ac_status=$?
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } >/dev/null && {
31648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31649 test ! -s conftest.err
31650 }; then
31651 ac_header_preproc=yes
31652 else
31653 echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31656 ac_header_preproc=no
31659 rm -f conftest.err conftest.$ac_ext
31660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31661 echo "${ECHO_T}$ac_header_preproc" >&6; }
31663 # So? What about this header?
31664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31665 yes:no: )
31666 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31667 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31668 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31669 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31670 ac_header_preproc=yes
31672 no:yes:* )
31673 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31674 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31675 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31676 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31677 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31678 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31679 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31680 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31681 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31682 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31683 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31684 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31685 ( cat <<\_ASBOX
31686 ## ------------------------------- ##
31687 ## Report this to www.asterisk.org ##
31688 ## ------------------------------- ##
31689 _ASBOX
31690 ) | sed "s/^/$as_me: WARNING: /" >&2
31692 esac
31693 { echo "$as_me:$LINENO: checking for " >&5
31694 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31695 if test "${ac_cv_header_+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698 ac_cv_header_=$ac_header_preproc
31700 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31701 echo "${ECHO_T}$ac_cv_header_" >&6; }
31704 if test $ac_cv_header_ = yes; then
31705 TINFO_HEADER_FOUND=1
31706 else
31707 TINFO_HEADER_FOUND=0
31713 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
31714 if test -n "${TINFO_MANDATORY}" ;
31715 then
31716 { echo "$as_me:$LINENO: ***" >&5
31717 echo "$as_me: ***" >&6;}
31718 { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
31719 echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
31720 { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
31721 echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
31722 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
31723 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
31724 exit 1
31726 TINFO_LIB=""
31727 TINFO_INCLUDE=""
31728 PBX_TINFO=0
31729 else
31730 PBX_TINFO=1
31732 cat >>confdefs.h <<_ACEOF
31733 #define HAVE_TINFO 1
31734 _ACEOF
31737 elif test -n "${TINFO_MANDATORY}";
31738 then
31739 { echo "$as_me:$LINENO: ***" >&5
31740 echo "$as_me: ***" >&6;}
31741 { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
31742 echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
31743 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
31744 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
31745 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
31746 echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
31747 exit 1
31752 if test "${host_os}" != "linux-gnu" ; then
31753 tonezone_extra="-lm"
31757 if test "${USE_TONEZONE}" != "no"; then
31758 pbxlibdir=""
31759 if test "x${TONEZONE_DIR}" != "x"; then
31760 if test -d ${TONEZONE_DIR}/lib; then
31761 pbxlibdir="-L${TONEZONE_DIR}/lib"
31762 else
31763 pbxlibdir="-L${TONEZONE_DIR}"
31766 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
31767 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
31768 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771 ac_check_lib_save_LIBS=$LIBS
31772 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
31773 cat >conftest.$ac_ext <<_ACEOF
31774 /* confdefs.h. */
31775 _ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h. */
31780 /* Override any GCC internal prototype to avoid an error.
31781 Use char because int might match the return type of a GCC
31782 builtin and then its argument prototype would still apply. */
31783 #ifdef __cplusplus
31784 extern "C"
31785 #endif
31786 char tone_zone_find ();
31788 main ()
31790 return tone_zone_find ();
31792 return 0;
31794 _ACEOF
31795 rm -f conftest.$ac_objext conftest$ac_exeext
31796 if { (ac_try="$ac_link"
31797 case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31800 esac
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_link") 2>conftest.er1
31803 ac_status=$?
31804 grep -v '^ *+' conftest.er1 >conftest.err
31805 rm -f conftest.er1
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } && {
31809 test -z "$ac_c_werror_flag" ||
31810 test ! -s conftest.err
31811 } && test -s conftest$ac_exeext &&
31812 $as_test_x conftest$ac_exeext; then
31813 ac_cv_lib_tonezone_tone_zone_find=yes
31814 else
31815 echo "$as_me: failed program was:" >&5
31816 sed 's/^/| /' conftest.$ac_ext >&5
31818 ac_cv_lib_tonezone_tone_zone_find=no
31821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31822 conftest$ac_exeext conftest.$ac_ext
31823 LIBS=$ac_check_lib_save_LIBS
31825 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
31826 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
31827 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
31828 AST_TONEZONE_FOUND=yes
31829 else
31830 AST_TONEZONE_FOUND=no
31834 if test "${AST_TONEZONE_FOUND}" = "yes"; then
31835 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
31836 TONEZONE_HEADER_FOUND="1"
31837 if test "x${TONEZONE_DIR}" != "x"; then
31838 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
31839 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
31840 saved_cppflags="${CPPFLAGS}"
31841 CPPFLAGS="${CPPFLAGS} -I${TONEZONE_DIR}/include"
31842 if test "xzaptel/tonezone.h" != "x" ; then
31843 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" | $as_tr_sh`
31844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31845 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
31846 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
31847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31850 ac_res=`eval echo '${'$as_ac_Header'}'`
31851 { echo "$as_me:$LINENO: result: $ac_res" >&5
31852 echo "${ECHO_T}$ac_res" >&6; }
31853 else
31854 # Is the header compilable?
31855 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
31856 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
31857 cat >conftest.$ac_ext <<_ACEOF
31858 /* confdefs.h. */
31859 _ACEOF
31860 cat confdefs.h >>conftest.$ac_ext
31861 cat >>conftest.$ac_ext <<_ACEOF
31862 /* end confdefs.h. */
31863 $ac_includes_default
31864 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31865 _ACEOF
31866 rm -f conftest.$ac_objext
31867 if { (ac_try="$ac_compile"
31868 case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31871 esac
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_compile") 2>conftest.er1
31874 ac_status=$?
31875 grep -v '^ *+' conftest.er1 >conftest.err
31876 rm -f conftest.er1
31877 cat conftest.err >&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } && {
31880 test -z "$ac_c_werror_flag" ||
31881 test ! -s conftest.err
31882 } && test -s conftest.$ac_objext; then
31883 ac_header_compiler=yes
31884 else
31885 echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31888 ac_header_compiler=no
31891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31893 echo "${ECHO_T}$ac_header_compiler" >&6; }
31895 # Is the header present?
31896 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
31897 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
31898 cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h. */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
31905 _ACEOF
31906 if { (ac_try="$ac_cpp conftest.$ac_ext"
31907 case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31910 esac
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31913 ac_status=$?
31914 grep -v '^ *+' conftest.er1 >conftest.err
31915 rm -f conftest.er1
31916 cat conftest.err >&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); } >/dev/null && {
31919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31920 test ! -s conftest.err
31921 }; then
31922 ac_header_preproc=yes
31923 else
31924 echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31927 ac_header_preproc=no
31930 rm -f conftest.err conftest.$ac_ext
31931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31932 echo "${ECHO_T}$ac_header_preproc" >&6; }
31934 # So? What about this header?
31935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31936 yes:no: )
31937 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
31938 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31939 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
31940 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
31941 ac_header_preproc=yes
31943 no:yes:* )
31944 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
31945 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
31946 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
31947 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
31948 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
31949 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
31950 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
31951 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
31952 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
31953 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
31954 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
31955 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
31956 ( cat <<\_ASBOX
31957 ## ------------------------------- ##
31958 ## Report this to www.asterisk.org ##
31959 ## ------------------------------- ##
31960 _ASBOX
31961 ) | sed "s/^/$as_me: WARNING: /" >&2
31963 esac
31964 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
31965 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
31966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31967 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 else
31969 eval "$as_ac_Header=\$ac_header_preproc"
31971 ac_res=`eval echo '${'$as_ac_Header'}'`
31972 { echo "$as_me:$LINENO: result: $ac_res" >&5
31973 echo "${ECHO_T}$ac_res" >&6; }
31976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31977 TONEZONE_HEADER_FOUND=1
31978 else
31979 TONEZONE_HEADER_FOUND=0
31984 CPPFLAGS="${saved_cppflags}"
31985 else
31986 if test "xzaptel/tonezone.h" != "x" ; then
31987 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31988 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
31989 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
31990 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
31991 echo $ECHO_N "(cached) $ECHO_C" >&6
31993 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
31994 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
31995 else
31996 # Is the header compilable?
31997 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
31998 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
31999 cat >conftest.$ac_ext <<_ACEOF
32000 /* confdefs.h. */
32001 _ACEOF
32002 cat confdefs.h >>conftest.$ac_ext
32003 cat >>conftest.$ac_ext <<_ACEOF
32004 /* end confdefs.h. */
32005 $ac_includes_default
32006 #include <zaptel/tonezone.h>
32007 _ACEOF
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32013 esac
32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32016 ac_status=$?
32017 grep -v '^ *+' conftest.er1 >conftest.err
32018 rm -f conftest.er1
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_c_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest.$ac_objext; then
32025 ac_header_compiler=yes
32026 else
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_header_compiler=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32035 echo "${ECHO_T}$ac_header_compiler" >&6; }
32037 # Is the header present?
32038 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
32039 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
32040 cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h. */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32046 #include <zaptel/tonezone.h>
32047 _ACEOF
32048 if { (ac_try="$ac_cpp conftest.$ac_ext"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32055 ac_status=$?
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } >/dev/null && {
32061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32062 test ! -s conftest.err
32063 }; then
32064 ac_header_preproc=yes
32065 else
32066 echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_header_preproc=no
32072 rm -f conftest.err conftest.$ac_ext
32073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32074 echo "${ECHO_T}$ac_header_preproc" >&6; }
32076 # So? What about this header?
32077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32078 yes:no: )
32079 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
32080 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32081 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
32082 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
32083 ac_header_preproc=yes
32085 no:yes:* )
32086 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
32087 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
32088 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
32089 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
32090 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
32091 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
32092 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
32093 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
32094 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
32095 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
32096 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
32097 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
32098 ( cat <<\_ASBOX
32099 ## ------------------------------- ##
32100 ## Report this to www.asterisk.org ##
32101 ## ------------------------------- ##
32102 _ASBOX
32103 ) | sed "s/^/$as_me: WARNING: /" >&2
32105 esac
32106 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
32107 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
32108 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
32109 echo $ECHO_N "(cached) $ECHO_C" >&6
32110 else
32111 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
32113 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
32114 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
32117 if test $ac_cv_header_zaptel_tonezone_h = yes; then
32118 TONEZONE_HEADER_FOUND=1
32119 else
32120 TONEZONE_HEADER_FOUND=0
32126 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
32127 if test -n "${TONEZONE_MANDATORY}" ;
32128 then
32129 { echo "$as_me:$LINENO: ***" >&5
32130 echo "$as_me: ***" >&6;}
32131 { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
32132 echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
32133 { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
32134 echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
32135 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32136 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32137 exit 1
32139 TONEZONE_LIB=""
32140 TONEZONE_INCLUDE=""
32141 PBX_TONEZONE=0
32142 else
32143 PBX_TONEZONE=1
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_TONEZONE 1
32147 _ACEOF
32150 elif test -n "${TONEZONE_MANDATORY}";
32151 then
32152 { echo "$as_me:$LINENO: ***" >&5
32153 echo "$as_me: ***" >&6;}
32154 { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
32155 echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
32156 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32157 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32158 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
32159 echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
32160 exit 1
32166 if test "${USE_USB}" != "no"; then
32167 pbxlibdir=""
32168 if test "x${USB_DIR}" != "x"; then
32169 if test -d ${USB_DIR}/lib; then
32170 pbxlibdir="-L${USB_DIR}/lib"
32171 else
32172 pbxlibdir="-L${USB_DIR}"
32175 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
32176 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
32177 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32179 else
32180 ac_check_lib_save_LIBS=$LIBS
32181 LIBS="-lusb ${pbxlibdir} $LIBS"
32182 cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h. */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32189 /* Override any GCC internal prototype to avoid an error.
32190 Use char because int might match the return type of a GCC
32191 builtin and then its argument prototype would still apply. */
32192 #ifdef __cplusplus
32193 extern "C"
32194 #endif
32195 char usb_init ();
32197 main ()
32199 return usb_init ();
32201 return 0;
32203 _ACEOF
32204 rm -f conftest.$ac_objext conftest$ac_exeext
32205 if { (ac_try="$ac_link"
32206 case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209 esac
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_link") 2>conftest.er1
32212 ac_status=$?
32213 grep -v '^ *+' conftest.er1 >conftest.err
32214 rm -f conftest.er1
32215 cat conftest.err >&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); } && {
32218 test -z "$ac_c_werror_flag" ||
32219 test ! -s conftest.err
32220 } && test -s conftest$ac_exeext &&
32221 $as_test_x conftest$ac_exeext; then
32222 ac_cv_lib_usb_usb_init=yes
32223 else
32224 echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32227 ac_cv_lib_usb_usb_init=no
32230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32231 conftest$ac_exeext conftest.$ac_ext
32232 LIBS=$ac_check_lib_save_LIBS
32234 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
32235 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
32236 if test $ac_cv_lib_usb_usb_init = yes; then
32237 AST_USB_FOUND=yes
32238 else
32239 AST_USB_FOUND=no
32243 if test "${AST_USB_FOUND}" = "yes"; then
32244 USB_LIB="-lusb "
32245 USB_HEADER_FOUND="1"
32246 if test "x${USB_DIR}" != "x"; then
32247 USB_LIB="${pbxlibdir} ${USB_LIB}"
32248 USB_INCLUDE="-I${USB_DIR}/include"
32249 saved_cppflags="${CPPFLAGS}"
32250 CPPFLAGS="${CPPFLAGS} -I${USB_DIR}/include"
32251 if test "xusb.h" != "x" ; then
32252 as_ac_Header=`echo "ac_cv_header_${USB_DIR}/include/usb.h" | $as_tr_sh`
32253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32254 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32255 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 ac_res=`eval echo '${'$as_ac_Header'}'`
32260 { echo "$as_me:$LINENO: result: $ac_res" >&5
32261 echo "${ECHO_T}$ac_res" >&6; }
32262 else
32263 # Is the header compilable?
32264 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h usability" >&5
32265 echo $ECHO_N "checking ${USB_DIR}/include/usb.h usability... $ECHO_C" >&6; }
32266 cat >conftest.$ac_ext <<_ACEOF
32267 /* confdefs.h. */
32268 _ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 $ac_includes_default
32273 #include <${USB_DIR}/include/usb.h>
32274 _ACEOF
32275 rm -f conftest.$ac_objext
32276 if { (ac_try="$ac_compile"
32277 case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32280 esac
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_compile") 2>conftest.er1
32283 ac_status=$?
32284 grep -v '^ *+' conftest.er1 >conftest.err
32285 rm -f conftest.er1
32286 cat conftest.err >&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); } && {
32289 test -z "$ac_c_werror_flag" ||
32290 test ! -s conftest.err
32291 } && test -s conftest.$ac_objext; then
32292 ac_header_compiler=yes
32293 else
32294 echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32297 ac_header_compiler=no
32300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32302 echo "${ECHO_T}$ac_header_compiler" >&6; }
32304 # Is the header present?
32305 { echo "$as_me:$LINENO: checking ${USB_DIR}/include/usb.h presence" >&5
32306 echo $ECHO_N "checking ${USB_DIR}/include/usb.h presence... $ECHO_C" >&6; }
32307 cat >conftest.$ac_ext <<_ACEOF
32308 /* confdefs.h. */
32309 _ACEOF
32310 cat confdefs.h >>conftest.$ac_ext
32311 cat >>conftest.$ac_ext <<_ACEOF
32312 /* end confdefs.h. */
32313 #include <${USB_DIR}/include/usb.h>
32314 _ACEOF
32315 if { (ac_try="$ac_cpp conftest.$ac_ext"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32322 ac_status=$?
32323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } >/dev/null && {
32328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32329 test ! -s conftest.err
32330 }; then
32331 ac_header_preproc=yes
32332 else
32333 echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32336 ac_header_preproc=no
32339 rm -f conftest.err conftest.$ac_ext
32340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32341 echo "${ECHO_T}$ac_header_preproc" >&6; }
32343 # So? What about this header?
32344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32345 yes:no: )
32346 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32347 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32348 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&5
32349 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the compiler's result" >&2;}
32350 ac_header_preproc=yes
32352 no:yes:* )
32353 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&5
32354 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: present but cannot be compiled" >&2;}
32355 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&5
32356 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: check for missing prerequisite headers?" >&2;}
32357 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&5
32358 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: see the Autoconf documentation" >&2;}
32359 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&5
32360 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32361 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&5
32362 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: proceeding with the preprocessor's result" >&2;}
32363 { echo "$as_me:$LINENO: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&5
32364 echo "$as_me: WARNING: ${USB_DIR}/include/usb.h: in the future, the compiler will take precedence" >&2;}
32365 ( cat <<\_ASBOX
32366 ## ------------------------------- ##
32367 ## Report this to www.asterisk.org ##
32368 ## ------------------------------- ##
32369 _ASBOX
32370 ) | sed "s/^/$as_me: WARNING: /" >&2
32372 esac
32373 { echo "$as_me:$LINENO: checking for ${USB_DIR}/include/usb.h" >&5
32374 echo $ECHO_N "checking for ${USB_DIR}/include/usb.h... $ECHO_C" >&6; }
32375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32376 echo $ECHO_N "(cached) $ECHO_C" >&6
32377 else
32378 eval "$as_ac_Header=\$ac_header_preproc"
32380 ac_res=`eval echo '${'$as_ac_Header'}'`
32381 { echo "$as_me:$LINENO: result: $ac_res" >&5
32382 echo "${ECHO_T}$ac_res" >&6; }
32385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32386 USB_HEADER_FOUND=1
32387 else
32388 USB_HEADER_FOUND=0
32393 CPPFLAGS="${saved_cppflags}"
32394 else
32395 if test "xusb.h" != "x" ; then
32396 if test "${ac_cv_header_usb_h+set}" = set; then
32397 { echo "$as_me:$LINENO: checking for usb.h" >&5
32398 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32399 if test "${ac_cv_header_usb_h+set}" = set; then
32400 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32403 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32404 else
32405 # Is the header compilable?
32406 { echo "$as_me:$LINENO: checking usb.h usability" >&5
32407 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
32408 cat >conftest.$ac_ext <<_ACEOF
32409 /* confdefs.h. */
32410 _ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h. */
32414 $ac_includes_default
32415 #include <usb.h>
32416 _ACEOF
32417 rm -f conftest.$ac_objext
32418 if { (ac_try="$ac_compile"
32419 case "(($ac_try" in
32420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32421 *) ac_try_echo=$ac_try;;
32422 esac
32423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32424 (eval "$ac_compile") 2>conftest.er1
32425 ac_status=$?
32426 grep -v '^ *+' conftest.er1 >conftest.err
32427 rm -f conftest.er1
32428 cat conftest.err >&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); } && {
32431 test -z "$ac_c_werror_flag" ||
32432 test ! -s conftest.err
32433 } && test -s conftest.$ac_objext; then
32434 ac_header_compiler=yes
32435 else
32436 echo "$as_me: failed program was:" >&5
32437 sed 's/^/| /' conftest.$ac_ext >&5
32439 ac_header_compiler=no
32442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32444 echo "${ECHO_T}$ac_header_compiler" >&6; }
32446 # Is the header present?
32447 { echo "$as_me:$LINENO: checking usb.h presence" >&5
32448 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
32449 cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h. */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32455 #include <usb.h>
32456 _ACEOF
32457 if { (ac_try="$ac_cpp conftest.$ac_ext"
32458 case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461 esac
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32464 ac_status=$?
32465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } >/dev/null && {
32470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32471 test ! -s conftest.err
32472 }; then
32473 ac_header_preproc=yes
32474 else
32475 echo "$as_me: failed program was:" >&5
32476 sed 's/^/| /' conftest.$ac_ext >&5
32478 ac_header_preproc=no
32481 rm -f conftest.err conftest.$ac_ext
32482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32483 echo "${ECHO_T}$ac_header_preproc" >&6; }
32485 # So? What about this header?
32486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32487 yes:no: )
32488 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
32489 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
32491 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
32492 ac_header_preproc=yes
32494 no:yes:* )
32495 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
32496 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
32497 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
32498 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
32499 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
32500 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
32501 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
32502 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
32503 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
32504 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
32505 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
32506 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
32507 ( cat <<\_ASBOX
32508 ## ------------------------------- ##
32509 ## Report this to www.asterisk.org ##
32510 ## ------------------------------- ##
32511 _ASBOX
32512 ) | sed "s/^/$as_me: WARNING: /" >&2
32514 esac
32515 { echo "$as_me:$LINENO: checking for usb.h" >&5
32516 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
32517 if test "${ac_cv_header_usb_h+set}" = set; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32519 else
32520 ac_cv_header_usb_h=$ac_header_preproc
32522 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
32523 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
32526 if test $ac_cv_header_usb_h = yes; then
32527 USB_HEADER_FOUND=1
32528 else
32529 USB_HEADER_FOUND=0
32535 if test "x${USB_HEADER_FOUND}" = "x0" ; then
32536 if test -n "${USB_MANDATORY}" ;
32537 then
32538 { echo "$as_me:$LINENO: ***" >&5
32539 echo "$as_me: ***" >&6;}
32540 { echo "$as_me:$LINENO: *** It appears that you do not have the usb development package installed." >&5
32541 echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
32542 { echo "$as_me:$LINENO: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
32543 echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
32544 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32545 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32546 exit 1
32548 USB_LIB=""
32549 USB_INCLUDE=""
32550 PBX_USB=0
32551 else
32552 PBX_USB=1
32554 cat >>confdefs.h <<_ACEOF
32555 #define HAVE_USB 1
32556 _ACEOF
32559 elif test -n "${USB_MANDATORY}";
32560 then
32561 { echo "$as_me:$LINENO: ***" >&5
32562 echo "$as_me: ***" >&6;}
32563 { echo "$as_me:$LINENO: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
32564 echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
32565 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32566 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32567 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${USB_OPTION}" >&5
32568 echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
32569 exit 1
32575 if test "${USE_VORBIS}" != "no"; then
32576 pbxlibdir=""
32577 if test "x${VORBIS_DIR}" != "x"; then
32578 if test -d ${VORBIS_DIR}/lib; then
32579 pbxlibdir="-L${VORBIS_DIR}/lib"
32580 else
32581 pbxlibdir="-L${VORBIS_DIR}"
32584 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
32585 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
32586 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
32587 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 else
32589 ac_check_lib_save_LIBS=$LIBS
32590 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
32591 cat >conftest.$ac_ext <<_ACEOF
32592 /* confdefs.h. */
32593 _ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h. */
32598 /* Override any GCC internal prototype to avoid an error.
32599 Use char because int might match the return type of a GCC
32600 builtin and then its argument prototype would still apply. */
32601 #ifdef __cplusplus
32602 extern "C"
32603 #endif
32604 char vorbis_info_init ();
32606 main ()
32608 return vorbis_info_init ();
32610 return 0;
32612 _ACEOF
32613 rm -f conftest.$ac_objext conftest$ac_exeext
32614 if { (ac_try="$ac_link"
32615 case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_link") 2>conftest.er1
32621 ac_status=$?
32622 grep -v '^ *+' conftest.er1 >conftest.err
32623 rm -f conftest.er1
32624 cat conftest.err >&5
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); } && {
32627 test -z "$ac_c_werror_flag" ||
32628 test ! -s conftest.err
32629 } && test -s conftest$ac_exeext &&
32630 $as_test_x conftest$ac_exeext; then
32631 ac_cv_lib_vorbis_vorbis_info_init=yes
32632 else
32633 echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32636 ac_cv_lib_vorbis_vorbis_info_init=no
32639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32640 conftest$ac_exeext conftest.$ac_ext
32641 LIBS=$ac_check_lib_save_LIBS
32643 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
32644 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
32645 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
32646 AST_VORBIS_FOUND=yes
32647 else
32648 AST_VORBIS_FOUND=no
32652 if test "${AST_VORBIS_FOUND}" = "yes"; then
32653 VORBIS_LIB="-lvorbis -lm -lvorbisenc"
32654 VORBIS_HEADER_FOUND="1"
32655 if test "x${VORBIS_DIR}" != "x"; then
32656 VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
32657 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
32658 saved_cppflags="${CPPFLAGS}"
32659 CPPFLAGS="${CPPFLAGS} -I${VORBIS_DIR}/include"
32660 if test "xvorbis/codec.h" != "x" ; then
32661 as_ac_Header=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
32662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32663 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
32664 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
32665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32668 ac_res=`eval echo '${'$as_ac_Header'}'`
32669 { echo "$as_me:$LINENO: result: $ac_res" >&5
32670 echo "${ECHO_T}$ac_res" >&6; }
32671 else
32672 # Is the header compilable?
32673 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
32674 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
32675 cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h. */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 $ac_includes_default
32682 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32683 _ACEOF
32684 rm -f conftest.$ac_objext
32685 if { (ac_try="$ac_compile"
32686 case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32689 esac
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_compile") 2>conftest.er1
32692 ac_status=$?
32693 grep -v '^ *+' conftest.er1 >conftest.err
32694 rm -f conftest.er1
32695 cat conftest.err >&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } && {
32698 test -z "$ac_c_werror_flag" ||
32699 test ! -s conftest.err
32700 } && test -s conftest.$ac_objext; then
32701 ac_header_compiler=yes
32702 else
32703 echo "$as_me: failed program was:" >&5
32704 sed 's/^/| /' conftest.$ac_ext >&5
32706 ac_header_compiler=no
32709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32711 echo "${ECHO_T}$ac_header_compiler" >&6; }
32713 # Is the header present?
32714 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
32715 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
32716 cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h. */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h. */
32722 #include <${VORBIS_DIR}/include/vorbis/codec.h>
32723 _ACEOF
32724 if { (ac_try="$ac_cpp conftest.$ac_ext"
32725 case "(($ac_try" in
32726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727 *) ac_try_echo=$ac_try;;
32728 esac
32729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32731 ac_status=$?
32732 grep -v '^ *+' conftest.er1 >conftest.err
32733 rm -f conftest.er1
32734 cat conftest.err >&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } >/dev/null && {
32737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32738 test ! -s conftest.err
32739 }; then
32740 ac_header_preproc=yes
32741 else
32742 echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_header_preproc=no
32748 rm -f conftest.err conftest.$ac_ext
32749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32750 echo "${ECHO_T}$ac_header_preproc" >&6; }
32752 # So? What about this header?
32753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32754 yes:no: )
32755 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
32756 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32757 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
32758 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
32759 ac_header_preproc=yes
32761 no:yes:* )
32762 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
32763 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
32764 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
32765 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
32766 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
32767 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
32768 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
32769 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
32771 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
32772 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
32773 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
32774 ( cat <<\_ASBOX
32775 ## ------------------------------- ##
32776 ## Report this to www.asterisk.org ##
32777 ## ------------------------------- ##
32778 _ASBOX
32779 ) | sed "s/^/$as_me: WARNING: /" >&2
32781 esac
32782 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
32783 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
32784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32785 echo $ECHO_N "(cached) $ECHO_C" >&6
32786 else
32787 eval "$as_ac_Header=\$ac_header_preproc"
32789 ac_res=`eval echo '${'$as_ac_Header'}'`
32790 { echo "$as_me:$LINENO: result: $ac_res" >&5
32791 echo "${ECHO_T}$ac_res" >&6; }
32794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32795 VORBIS_HEADER_FOUND=1
32796 else
32797 VORBIS_HEADER_FOUND=0
32802 CPPFLAGS="${saved_cppflags}"
32803 else
32804 if test "xvorbis/codec.h" != "x" ; then
32805 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32806 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
32807 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
32808 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32809 echo $ECHO_N "(cached) $ECHO_C" >&6
32811 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
32812 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32813 else
32814 # Is the header compilable?
32815 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
32816 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
32817 cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h. */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32823 $ac_includes_default
32824 #include <vorbis/codec.h>
32825 _ACEOF
32826 rm -f conftest.$ac_objext
32827 if { (ac_try="$ac_compile"
32828 case "(($ac_try" in
32829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32830 *) ac_try_echo=$ac_try;;
32831 esac
32832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32833 (eval "$ac_compile") 2>conftest.er1
32834 ac_status=$?
32835 grep -v '^ *+' conftest.er1 >conftest.err
32836 rm -f conftest.er1
32837 cat conftest.err >&5
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); } && {
32840 test -z "$ac_c_werror_flag" ||
32841 test ! -s conftest.err
32842 } && test -s conftest.$ac_objext; then
32843 ac_header_compiler=yes
32844 else
32845 echo "$as_me: failed program was:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32848 ac_header_compiler=no
32851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32853 echo "${ECHO_T}$ac_header_compiler" >&6; }
32855 # Is the header present?
32856 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
32857 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
32858 cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h. */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h. */
32864 #include <vorbis/codec.h>
32865 _ACEOF
32866 if { (ac_try="$ac_cpp conftest.$ac_ext"
32867 case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32870 esac
32871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32873 ac_status=$?
32874 grep -v '^ *+' conftest.er1 >conftest.err
32875 rm -f conftest.er1
32876 cat conftest.err >&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); } >/dev/null && {
32879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32880 test ! -s conftest.err
32881 }; then
32882 ac_header_preproc=yes
32883 else
32884 echo "$as_me: failed program was:" >&5
32885 sed 's/^/| /' conftest.$ac_ext >&5
32887 ac_header_preproc=no
32890 rm -f conftest.err conftest.$ac_ext
32891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32892 echo "${ECHO_T}$ac_header_preproc" >&6; }
32894 # So? What about this header?
32895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32896 yes:no: )
32897 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
32898 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32899 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
32900 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
32901 ac_header_preproc=yes
32903 no:yes:* )
32904 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
32905 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
32906 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
32907 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
32908 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
32909 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
32910 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
32911 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
32912 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
32913 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
32914 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
32915 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
32916 ( cat <<\_ASBOX
32917 ## ------------------------------- ##
32918 ## Report this to www.asterisk.org ##
32919 ## ------------------------------- ##
32920 _ASBOX
32921 ) | sed "s/^/$as_me: WARNING: /" >&2
32923 esac
32924 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
32925 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
32926 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928 else
32929 ac_cv_header_vorbis_codec_h=$ac_header_preproc
32931 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
32932 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
32935 if test $ac_cv_header_vorbis_codec_h = yes; then
32936 VORBIS_HEADER_FOUND=1
32937 else
32938 VORBIS_HEADER_FOUND=0
32944 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
32945 if test -n "${VORBIS_MANDATORY}" ;
32946 then
32947 { echo "$as_me:$LINENO: ***" >&5
32948 echo "$as_me: ***" >&6;}
32949 { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
32950 echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
32951 { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
32952 echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
32953 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
32954 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
32955 exit 1
32957 VORBIS_LIB=""
32958 VORBIS_INCLUDE=""
32959 PBX_VORBIS=0
32960 else
32961 PBX_VORBIS=1
32963 cat >>confdefs.h <<_ACEOF
32964 #define HAVE_VORBIS 1
32965 _ACEOF
32968 elif test -n "${VORBIS_MANDATORY}";
32969 then
32970 { echo "$as_me:$LINENO: ***" >&5
32971 echo "$as_me: ***" >&6;}
32972 { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
32973 echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
32974 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
32975 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
32976 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
32977 echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
32978 exit 1
32983 ac_ext=cpp
32984 ac_cpp='$CXXCPP $CPPFLAGS'
32985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32990 if test "${USE_VPB}" != "no"; then
32991 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
32992 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
32993 saved_libs="${LIBS}"
32994 saved_cppflags="${CPPFLAGS}"
32995 if test "x${VPB_DIR}" != "x"; then
32996 if test -d ${VPB_DIR}/lib; then
32997 vpblibdir=${VPB_DIR}/lib
32998 else
32999 vpblibdir=${VPB_DIR}
33001 LIBS="${LIBS} -L${vpblibdir}"
33002 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
33004 LIBS="${LIBS} -lvpb -lpthread"
33005 cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h. */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33012 #include <vpbapi.h>
33014 main ()
33016 int q = vpb_open(0,0);
33018 return 0;
33021 _ACEOF
33022 rm -f conftest.$ac_objext conftest$ac_exeext
33023 if { (ac_try="$ac_link"
33024 case "(($ac_try" in
33025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33026 *) ac_try_echo=$ac_try;;
33027 esac
33028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33029 (eval "$ac_link") 2>conftest.er1
33030 ac_status=$?
33031 grep -v '^ *+' conftest.er1 >conftest.err
33032 rm -f conftest.er1
33033 cat conftest.err >&5
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); } && {
33036 test -z "$ac_cxx_werror_flag" ||
33037 test ! -s conftest.err
33038 } && test -s conftest$ac_exeext &&
33039 $as_test_x conftest$ac_exeext; then
33040 { echo "$as_me:$LINENO: result: yes" >&5
33041 echo "${ECHO_T}yes" >&6; }
33042 ac_cv_lib_vpb_vpb_open="yes"
33044 else
33045 echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33048 { echo "$as_me:$LINENO: result: no" >&5
33049 echo "${ECHO_T}no" >&6; }
33050 ac_cv_lib_vpb_vpb_open="no"
33055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33056 conftest$ac_exeext conftest.$ac_ext
33057 LIBS="${saved_libs}"
33058 CPPFLAGS="${saved_cppflags}"
33059 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
33060 VPB_LIB="-lvpb"
33061 if test "${VPB_DIR}" != ""; then
33062 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
33063 VPB_INCLUDE="-I${VPB_DIR}/include"
33065 PBX_VPB=1
33067 cat >>confdefs.h <<\_ACEOF
33068 #define HAVE_VPB 1
33069 _ACEOF
33071 elif test -n "${VPB_MANDATORY}"; then
33072 { echo "$as_me:$LINENO: ***" >&5
33073 echo "$as_me: ***" >&6;}
33074 { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
33075 echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
33076 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33077 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33078 { echo "$as_me:$LINENO: *** including --without-vpb." >&5
33079 echo "$as_me: *** including --without-vpb." >&6;}
33080 exit 1
33084 ac_ext=c
33085 ac_cpp='$CPP $CPPFLAGS'
33086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33092 if test "${USE_ZLIB}" != "no"; then
33093 pbxlibdir=""
33094 if test "x${ZLIB_DIR}" != "x"; then
33095 if test -d ${ZLIB_DIR}/lib; then
33096 pbxlibdir="-L${ZLIB_DIR}/lib"
33097 else
33098 pbxlibdir="-L${ZLIB_DIR}"
33101 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
33102 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
33103 if test "${ac_cv_lib_z_compress+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105 else
33106 ac_check_lib_save_LIBS=$LIBS
33107 LIBS="-lz ${pbxlibdir} $LIBS"
33108 cat >conftest.$ac_ext <<_ACEOF
33109 /* confdefs.h. */
33110 _ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33115 /* Override any GCC internal prototype to avoid an error.
33116 Use char because int might match the return type of a GCC
33117 builtin and then its argument prototype would still apply. */
33118 #ifdef __cplusplus
33119 extern "C"
33120 #endif
33121 char compress ();
33123 main ()
33125 return compress ();
33127 return 0;
33129 _ACEOF
33130 rm -f conftest.$ac_objext conftest$ac_exeext
33131 if { (ac_try="$ac_link"
33132 case "(($ac_try" in
33133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33134 *) ac_try_echo=$ac_try;;
33135 esac
33136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33137 (eval "$ac_link") 2>conftest.er1
33138 ac_status=$?
33139 grep -v '^ *+' conftest.er1 >conftest.err
33140 rm -f conftest.er1
33141 cat conftest.err >&5
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); } && {
33144 test -z "$ac_c_werror_flag" ||
33145 test ! -s conftest.err
33146 } && test -s conftest$ac_exeext &&
33147 $as_test_x conftest$ac_exeext; then
33148 ac_cv_lib_z_compress=yes
33149 else
33150 echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33153 ac_cv_lib_z_compress=no
33156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33157 conftest$ac_exeext conftest.$ac_ext
33158 LIBS=$ac_check_lib_save_LIBS
33160 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
33161 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
33162 if test $ac_cv_lib_z_compress = yes; then
33163 AST_ZLIB_FOUND=yes
33164 else
33165 AST_ZLIB_FOUND=no
33169 if test "${AST_ZLIB_FOUND}" = "yes"; then
33170 ZLIB_LIB="-lz "
33171 ZLIB_HEADER_FOUND="1"
33172 if test "x${ZLIB_DIR}" != "x"; then
33173 ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
33174 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
33175 saved_cppflags="${CPPFLAGS}"
33176 CPPFLAGS="${CPPFLAGS} -I${ZLIB_DIR}/include"
33177 if test "xzlib.h" != "x" ; then
33178 as_ac_Header=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
33179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33180 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33181 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 ac_res=`eval echo '${'$as_ac_Header'}'`
33186 { echo "$as_me:$LINENO: result: $ac_res" >&5
33187 echo "${ECHO_T}$ac_res" >&6; }
33188 else
33189 # Is the header compilable?
33190 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
33191 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
33192 cat >conftest.$ac_ext <<_ACEOF
33193 /* confdefs.h. */
33194 _ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h. */
33198 $ac_includes_default
33199 #include <${ZLIB_DIR}/include/zlib.h>
33200 _ACEOF
33201 rm -f conftest.$ac_objext
33202 if { (ac_try="$ac_compile"
33203 case "(($ac_try" in
33204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33205 *) ac_try_echo=$ac_try;;
33206 esac
33207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33208 (eval "$ac_compile") 2>conftest.er1
33209 ac_status=$?
33210 grep -v '^ *+' conftest.er1 >conftest.err
33211 rm -f conftest.er1
33212 cat conftest.err >&5
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); } && {
33215 test -z "$ac_c_werror_flag" ||
33216 test ! -s conftest.err
33217 } && test -s conftest.$ac_objext; then
33218 ac_header_compiler=yes
33219 else
33220 echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33223 ac_header_compiler=no
33226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33228 echo "${ECHO_T}$ac_header_compiler" >&6; }
33230 # Is the header present?
33231 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
33232 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
33233 cat >conftest.$ac_ext <<_ACEOF
33234 /* confdefs.h. */
33235 _ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h. */
33239 #include <${ZLIB_DIR}/include/zlib.h>
33240 _ACEOF
33241 if { (ac_try="$ac_cpp conftest.$ac_ext"
33242 case "(($ac_try" in
33243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 *) ac_try_echo=$ac_try;;
33245 esac
33246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33248 ac_status=$?
33249 grep -v '^ *+' conftest.er1 >conftest.err
33250 rm -f conftest.er1
33251 cat conftest.err >&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); } >/dev/null && {
33254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33255 test ! -s conftest.err
33256 }; then
33257 ac_header_preproc=yes
33258 else
33259 echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33262 ac_header_preproc=no
33265 rm -f conftest.err conftest.$ac_ext
33266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33267 echo "${ECHO_T}$ac_header_preproc" >&6; }
33269 # So? What about this header?
33270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33271 yes:no: )
33272 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33273 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33274 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
33275 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
33276 ac_header_preproc=yes
33278 no:yes:* )
33279 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
33280 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
33281 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
33282 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
33283 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
33284 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
33285 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33286 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33287 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
33288 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
33289 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
33290 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
33291 ( cat <<\_ASBOX
33292 ## ------------------------------- ##
33293 ## Report this to www.asterisk.org ##
33294 ## ------------------------------- ##
33295 _ASBOX
33296 ) | sed "s/^/$as_me: WARNING: /" >&2
33298 esac
33299 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
33300 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
33301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33302 echo $ECHO_N "(cached) $ECHO_C" >&6
33303 else
33304 eval "$as_ac_Header=\$ac_header_preproc"
33306 ac_res=`eval echo '${'$as_ac_Header'}'`
33307 { echo "$as_me:$LINENO: result: $ac_res" >&5
33308 echo "${ECHO_T}$ac_res" >&6; }
33311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33312 ZLIB_HEADER_FOUND=1
33313 else
33314 ZLIB_HEADER_FOUND=0
33319 CPPFLAGS="${saved_cppflags}"
33320 else
33321 if test "xzlib.h" != "x" ; then
33322 if test "${ac_cv_header_zlib_h+set}" = set; then
33323 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33324 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33325 if test "${ac_cv_header_zlib_h+set}" = set; then
33326 echo $ECHO_N "(cached) $ECHO_C" >&6
33328 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33329 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33330 else
33331 # Is the header compilable?
33332 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33333 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33334 cat >conftest.$ac_ext <<_ACEOF
33335 /* confdefs.h. */
33336 _ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33340 $ac_includes_default
33341 #include <zlib.h>
33342 _ACEOF
33343 rm -f conftest.$ac_objext
33344 if { (ac_try="$ac_compile"
33345 case "(($ac_try" in
33346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347 *) ac_try_echo=$ac_try;;
33348 esac
33349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350 (eval "$ac_compile") 2>conftest.er1
33351 ac_status=$?
33352 grep -v '^ *+' conftest.er1 >conftest.err
33353 rm -f conftest.er1
33354 cat conftest.err >&5
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } && {
33357 test -z "$ac_c_werror_flag" ||
33358 test ! -s conftest.err
33359 } && test -s conftest.$ac_objext; then
33360 ac_header_compiler=yes
33361 else
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 ac_header_compiler=no
33368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33370 echo "${ECHO_T}$ac_header_compiler" >&6; }
33372 # Is the header present?
33373 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33374 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33375 cat >conftest.$ac_ext <<_ACEOF
33376 /* confdefs.h. */
33377 _ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33381 #include <zlib.h>
33382 _ACEOF
33383 if { (ac_try="$ac_cpp conftest.$ac_ext"
33384 case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33387 esac
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33390 ac_status=$?
33391 grep -v '^ *+' conftest.er1 >conftest.err
33392 rm -f conftest.er1
33393 cat conftest.err >&5
33394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395 (exit $ac_status); } >/dev/null && {
33396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33397 test ! -s conftest.err
33398 }; then
33399 ac_header_preproc=yes
33400 else
33401 echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33404 ac_header_preproc=no
33407 rm -f conftest.err conftest.$ac_ext
33408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33409 echo "${ECHO_T}$ac_header_preproc" >&6; }
33411 # So? What about this header?
33412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33413 yes:no: )
33414 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33415 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33416 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33417 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33418 ac_header_preproc=yes
33420 no:yes:* )
33421 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33422 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33423 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33424 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33425 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33426 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33427 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33428 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33429 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33430 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33431 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33432 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33433 ( cat <<\_ASBOX
33434 ## ------------------------------- ##
33435 ## Report this to www.asterisk.org ##
33436 ## ------------------------------- ##
33437 _ASBOX
33438 ) | sed "s/^/$as_me: WARNING: /" >&2
33440 esac
33441 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33442 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33443 if test "${ac_cv_header_zlib_h+set}" = set; then
33444 echo $ECHO_N "(cached) $ECHO_C" >&6
33445 else
33446 ac_cv_header_zlib_h=$ac_header_preproc
33448 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33449 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33452 if test $ac_cv_header_zlib_h = yes; then
33453 ZLIB_HEADER_FOUND=1
33454 else
33455 ZLIB_HEADER_FOUND=0
33461 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
33462 if test -n "${ZLIB_MANDATORY}" ;
33463 then
33464 { echo "$as_me:$LINENO: ***" >&5
33465 echo "$as_me: ***" >&6;}
33466 { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
33467 echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
33468 { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
33469 echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
33470 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33471 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33472 exit 1
33474 ZLIB_LIB=""
33475 ZLIB_INCLUDE=""
33476 PBX_ZLIB=0
33477 else
33478 PBX_ZLIB=1
33480 cat >>confdefs.h <<_ACEOF
33481 #define HAVE_ZLIB 1
33482 _ACEOF
33485 elif test -n "${ZLIB_MANDATORY}";
33486 then
33487 { echo "$as_me:$LINENO: ***" >&5
33488 echo "$as_me: ***" >&6;}
33489 { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
33490 echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
33491 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33492 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33493 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
33494 echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
33495 exit 1
33500 if test "${USE_ZAPTEL}" != "no"; then
33501 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
33502 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
33503 saved_cppflags="${CPPFLAGS}"
33504 if test "x${ZAPTEL_DIR}" != "x"; then
33505 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33507 cat >conftest.$ac_ext <<_ACEOF
33509 /* confdefs.h. */
33510 _ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h. */
33514 #include <zaptel/zaptel.h>
33516 main ()
33518 int foo = ZT_DIAL_OP_CANCEL;
33520 return 0;
33523 _ACEOF
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33529 esac
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_compile") 2>conftest.er1
33532 ac_status=$?
33533 grep -v '^ *+' conftest.er1 >conftest.err
33534 rm -f conftest.er1
33535 cat conftest.err >&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); } && {
33538 test -z "$ac_c_werror_flag" ||
33539 test ! -s conftest.err
33540 } && test -s conftest.$ac_objext; then
33541 { echo "$as_me:$LINENO: result: yes" >&5
33542 echo "${ECHO_T}yes" >&6; }
33543 ac_cv_zaptel_h="yes"
33545 else
33546 echo "$as_me: failed program was:" >&5
33547 sed 's/^/| /' conftest.$ac_ext >&5
33549 { echo "$as_me:$LINENO: result: no" >&5
33550 echo "${ECHO_T}no" >&6; }
33551 ac_cv_zaptel_h="no"
33556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33557 CPPFLAGS="${saved_cppflags}"
33558 if test "${ac_cv_zaptel_h}" = "yes"; then
33559 if test "${ZAPTEL_DIR}" != ""; then
33560 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
33562 PBX_ZAPTEL=1
33564 cat >>confdefs.h <<\_ACEOF
33565 #define HAVE_ZAPTEL 1
33566 _ACEOF
33568 elif test -n "${ZAPTEL_MANDATORY}";
33569 then
33570 { echo "$as_me:$LINENO: ***" >&5
33571 echo "$as_me: ***" >&6;}
33572 { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
33573 echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
33574 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
33575 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
33576 { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
33577 echo "$as_me: *** including --without-zaptel." >&6;}
33578 exit 1
33582 if test "${PBX_ZAPTEL}" = 1; then
33583 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
33584 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
33585 saved_cppflags="${CPPFLAGS}"
33586 if test "x${ZAPTEL_DIR}" != "x"; then
33587 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33589 cat >conftest.$ac_ext <<_ACEOF
33591 /* confdefs.h. */
33592 _ACEOF
33593 cat confdefs.h >>conftest.$ac_ext
33594 cat >>conftest.$ac_ext <<_ACEOF
33595 /* end confdefs.h. */
33596 #include <zaptel/zaptel.h>
33598 main ()
33600 int foo = ZT_EVENT_REMOVED;
33602 return 0;
33605 _ACEOF
33606 rm -f conftest.$ac_objext
33607 if { (ac_try="$ac_compile"
33608 case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33611 esac
33612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_compile") 2>conftest.er1
33614 ac_status=$?
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } && {
33620 test -z "$ac_c_werror_flag" ||
33621 test ! -s conftest.err
33622 } && test -s conftest.$ac_objext; then
33623 { echo "$as_me:$LINENO: result: yes" >&5
33624 echo "${ECHO_T}yes" >&6; }
33625 ac_cv_zaptel_vldtmf="yes"
33627 else
33628 echo "$as_me: failed program was:" >&5
33629 sed 's/^/| /' conftest.$ac_ext >&5
33631 { echo "$as_me:$LINENO: result: no" >&5
33632 echo "${ECHO_T}no" >&6; }
33633 ac_cv_zaptel_vldtmf="no"
33638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33639 CPPFLAGS="${saved_cppflags}"
33640 if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
33641 PBX_ZAPTEL_VLDTMF=1
33643 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
33644 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
33645 saved_cppflags="${CPPFLAGS}"
33646 if test "x${ZAPTEL_DIR}" != "x"; then
33647 CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
33649 cat >conftest.$ac_ext <<_ACEOF
33651 /* confdefs.h. */
33652 _ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h. */
33656 #include <zaptel/zaptel.h>
33658 main ()
33660 int foo = ZT_TCOP_ALLOCATE;
33662 return 0;
33665 _ACEOF
33666 rm -f conftest.$ac_objext
33667 if { (ac_try="$ac_compile"
33668 case "(($ac_try" in
33669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670 *) ac_try_echo=$ac_try;;
33671 esac
33672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33673 (eval "$ac_compile") 2>conftest.er1
33674 ac_status=$?
33675 grep -v '^ *+' conftest.er1 >conftest.err
33676 rm -f conftest.er1
33677 cat conftest.err >&5
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); } && {
33680 test -z "$ac_c_werror_flag" ||
33681 test ! -s conftest.err
33682 } && test -s conftest.$ac_objext; then
33683 { echo "$as_me:$LINENO: result: yes" >&5
33684 echo "${ECHO_T}yes" >&6; }
33685 ac_cv_zaptel_transcode="yes"
33687 else
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 { echo "$as_me:$LINENO: result: no" >&5
33692 echo "${ECHO_T}no" >&6; }
33693 ac_cv_zaptel_transcode="no"
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33699 CPPFLAGS="${saved_cppflags}"
33700 if test "${ac_cv_zaptel_transcode}" = "yes"; then
33701 PBX_ZAPTEL_TRANSCODE=1
33707 EDITLINE_LIB=""
33708 if test "x$TERMCAP_LIB" != "x" ; then
33709 EDITLINE_LIB="$TERMCAP_LIB"
33710 elif test "x$TINFO_LIB" != "x" ; then
33711 EDITLINE_LIB="$TINFO_LIB"
33712 elif test "x$CURSES_LIB" != "x" ; then
33713 EDITLINE_LIB="$CURSES_LIB"
33714 elif test "x$NCURSES_LIB" != "x" ; then
33715 EDITLINE_LIB="$NCURSES_LIB"
33716 else
33717 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
33718 echo "$as_me: error: *** termcap support not found" >&2;}
33719 { (exit 1); exit 1; }; }
33723 if test "${ac_cv_header_h323_h+set}" = set; then
33724 { echo "$as_me:$LINENO: checking for h323.h" >&5
33725 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
33726 if test "${ac_cv_header_h323_h+set}" = set; then
33727 echo $ECHO_N "(cached) $ECHO_C" >&6
33729 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
33730 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33731 else
33732 # Is the header compilable?
33733 { echo "$as_me:$LINENO: checking h323.h usability" >&5
33734 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
33735 cat >conftest.$ac_ext <<_ACEOF
33736 /* confdefs.h. */
33737 _ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h. */
33741 $ac_includes_default
33742 #include <h323.h>
33743 _ACEOF
33744 rm -f conftest.$ac_objext
33745 if { (ac_try="$ac_compile"
33746 case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33749 esac
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_compile") 2>conftest.er1
33752 ac_status=$?
33753 grep -v '^ *+' conftest.er1 >conftest.err
33754 rm -f conftest.er1
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } && {
33758 test -z "$ac_c_werror_flag" ||
33759 test ! -s conftest.err
33760 } && test -s conftest.$ac_objext; then
33761 ac_header_compiler=yes
33762 else
33763 echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33766 ac_header_compiler=no
33769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33771 echo "${ECHO_T}$ac_header_compiler" >&6; }
33773 # Is the header present?
33774 { echo "$as_me:$LINENO: checking h323.h presence" >&5
33775 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
33776 cat >conftest.$ac_ext <<_ACEOF
33777 /* confdefs.h. */
33778 _ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h. */
33782 #include <h323.h>
33783 _ACEOF
33784 if { (ac_try="$ac_cpp conftest.$ac_ext"
33785 case "(($ac_try" in
33786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33787 *) ac_try_echo=$ac_try;;
33788 esac
33789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33791 ac_status=$?
33792 grep -v '^ *+' conftest.er1 >conftest.err
33793 rm -f conftest.er1
33794 cat conftest.err >&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } >/dev/null && {
33797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33798 test ! -s conftest.err
33799 }; then
33800 ac_header_preproc=yes
33801 else
33802 echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33805 ac_header_preproc=no
33808 rm -f conftest.err conftest.$ac_ext
33809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33810 echo "${ECHO_T}$ac_header_preproc" >&6; }
33812 # So? What about this header?
33813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33814 yes:no: )
33815 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
33816 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33817 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
33818 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
33819 ac_header_preproc=yes
33821 no:yes:* )
33822 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
33823 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
33824 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
33825 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
33826 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
33827 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
33828 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
33829 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
33831 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
33833 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
33834 ( cat <<\_ASBOX
33835 ## ------------------------------- ##
33836 ## Report this to www.asterisk.org ##
33837 ## ------------------------------- ##
33838 _ASBOX
33839 ) | sed "s/^/$as_me: WARNING: /" >&2
33841 esac
33842 { echo "$as_me:$LINENO: checking for h323.h" >&5
33843 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
33844 if test "${ac_cv_header_h323_h+set}" = set; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33846 else
33847 ac_cv_header_h323_h=$ac_header_preproc
33849 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
33850 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
33853 if test $ac_cv_header_h323_h = yes; then
33854 PBX_H323=1
33855 else
33856 PBX_H323=0
33862 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33863 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
33864 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
33865 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33866 echo $ECHO_N "(cached) $ECHO_C" >&6
33868 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
33869 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33870 else
33871 # Is the header compilable?
33872 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
33873 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
33874 cat >conftest.$ac_ext <<_ACEOF
33875 /* confdefs.h. */
33876 _ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h. */
33880 $ac_includes_default
33881 #include <linux/compiler.h>
33882 _ACEOF
33883 rm -f conftest.$ac_objext
33884 if { (ac_try="$ac_compile"
33885 case "(($ac_try" in
33886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33888 esac
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_compile") 2>conftest.er1
33891 ac_status=$?
33892 grep -v '^ *+' conftest.er1 >conftest.err
33893 rm -f conftest.er1
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } && {
33897 test -z "$ac_c_werror_flag" ||
33898 test ! -s conftest.err
33899 } && test -s conftest.$ac_objext; then
33900 ac_header_compiler=yes
33901 else
33902 echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33905 ac_header_compiler=no
33908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33910 echo "${ECHO_T}$ac_header_compiler" >&6; }
33912 # Is the header present?
33913 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
33914 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
33915 cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h. */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33921 #include <linux/compiler.h>
33922 _ACEOF
33923 if { (ac_try="$ac_cpp conftest.$ac_ext"
33924 case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33930 ac_status=$?
33931 grep -v '^ *+' conftest.er1 >conftest.err
33932 rm -f conftest.er1
33933 cat conftest.err >&5
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); } >/dev/null && {
33936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33937 test ! -s conftest.err
33938 }; then
33939 ac_header_preproc=yes
33940 else
33941 echo "$as_me: failed program was:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33944 ac_header_preproc=no
33947 rm -f conftest.err conftest.$ac_ext
33948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33949 echo "${ECHO_T}$ac_header_preproc" >&6; }
33951 # So? What about this header?
33952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33953 yes:no: )
33954 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
33955 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33956 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
33957 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
33958 ac_header_preproc=yes
33960 no:yes:* )
33961 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
33962 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
33963 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
33964 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
33965 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
33966 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
33967 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
33968 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
33969 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
33970 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
33971 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
33972 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
33973 ( cat <<\_ASBOX
33974 ## ------------------------------- ##
33975 ## Report this to www.asterisk.org ##
33976 ## ------------------------------- ##
33977 _ASBOX
33978 ) | sed "s/^/$as_me: WARNING: /" >&2
33980 esac
33981 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
33982 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
33983 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
33984 echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986 ac_cv_header_linux_compiler_h=$ac_header_preproc
33988 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
33989 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
33992 if test $ac_cv_header_linux_compiler_h = yes; then
33994 cat >>confdefs.h <<_ACEOF
33995 #define HAVE_LINUX_COMPILER_H 1
33996 _ACEOF
34002 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
34003 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
34004 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34006 else
34007 cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h. */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h. */
34014 #include <linux/version.h>
34015 #ifdef HAVE_LINUX_COMPILER_H
34016 #include <linux/compiler.h>
34017 #endif
34020 #include <linux/ixjuser.h>
34021 _ACEOF
34022 rm -f conftest.$ac_objext
34023 if { (ac_try="$ac_compile"
34024 case "(($ac_try" in
34025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34026 *) ac_try_echo=$ac_try;;
34027 esac
34028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34029 (eval "$ac_compile") 2>conftest.er1
34030 ac_status=$?
34031 grep -v '^ *+' conftest.er1 >conftest.err
34032 rm -f conftest.er1
34033 cat conftest.err >&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); } && {
34036 test -z "$ac_c_werror_flag" ||
34037 test ! -s conftest.err
34038 } && test -s conftest.$ac_objext; then
34039 ac_cv_header_linux_ixjuser_h=yes
34040 else
34041 echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34044 ac_cv_header_linux_ixjuser_h=no
34047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34049 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
34050 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
34051 if test $ac_cv_header_linux_ixjuser_h = yes; then
34052 PBX_IXJUSER=1
34053 else
34054 PBX_IXJUSER=0
34060 if test "${cross_compiling}" = "no";
34061 then
34062 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
34063 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
34064 if test "${ac_cv_file__sbin_launchd+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34066 else
34067 test "$cross_compiling" = yes &&
34068 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34069 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34070 { (exit 1); exit 1; }; }
34071 if test -r "/sbin/launchd"; then
34072 ac_cv_file__sbin_launchd=yes
34073 else
34074 ac_cv_file__sbin_launchd=no
34077 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
34078 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
34079 if test $ac_cv_file__sbin_launchd = yes; then
34081 cat >>confdefs.h <<\_ACEOF
34082 #define HAVE_SBIN_LAUNCHD 1
34083 _ACEOF
34089 PBX_GTK=0
34090 if test -n "$ac_tool_prefix"; then
34091 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
34092 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
34093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34095 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
34096 echo $ECHO_N "(cached) $ECHO_C" >&6
34097 else
34098 if test -n "$GTKCONFIG"; then
34099 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
34100 else
34101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34102 for as_dir in $PATH
34104 IFS=$as_save_IFS
34105 test -z "$as_dir" && as_dir=.
34106 for ac_exec_ext in '' $ac_executable_extensions; do
34107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34108 ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
34109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34110 break 2
34112 done
34113 done
34114 IFS=$as_save_IFS
34118 GTKCONFIG=$ac_cv_prog_GTKCONFIG
34119 if test -n "$GTKCONFIG"; then
34120 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
34121 echo "${ECHO_T}$GTKCONFIG" >&6; }
34122 else
34123 { echo "$as_me:$LINENO: result: no" >&5
34124 echo "${ECHO_T}no" >&6; }
34129 if test -z "$ac_cv_prog_GTKCONFIG"; then
34130 ac_ct_GTKCONFIG=$GTKCONFIG
34131 # Extract the first word of "gtk-config", so it can be a program name with args.
34132 set dummy gtk-config; ac_word=$2
34133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34135 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34137 else
34138 if test -n "$ac_ct_GTKCONFIG"; then
34139 ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
34140 else
34141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34142 for as_dir in $PATH
34144 IFS=$as_save_IFS
34145 test -z "$as_dir" && as_dir=.
34146 for ac_exec_ext in '' $ac_executable_extensions; do
34147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34148 ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
34149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34150 break 2
34152 done
34153 done
34154 IFS=$as_save_IFS
34158 ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
34159 if test -n "$ac_ct_GTKCONFIG"; then
34160 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
34161 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
34162 else
34163 { echo "$as_me:$LINENO: result: no" >&5
34164 echo "${ECHO_T}no" >&6; }
34167 if test "x$ac_ct_GTKCONFIG" = x; then
34168 GTKCONFIG="No"
34169 else
34170 case $cross_compiling:$ac_tool_warned in
34171 yes:)
34172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34173 whose name does not start with the host triplet. If you think this
34174 configuration is useful to you, please write to autoconf@gnu.org." >&5
34175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34176 whose name does not start with the host triplet. If you think this
34177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34178 ac_tool_warned=yes ;;
34179 esac
34180 GTKCONFIG=$ac_ct_GTKCONFIG
34182 else
34183 GTKCONFIG="$ac_cv_prog_GTKCONFIG"
34186 if test ! "x${GTKCONFIG}" = xNo; then
34187 GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
34188 GTK_LIB=$(${GTKCONFIG} --libs gthread)
34189 PBX_GTK=1
34191 cat >>confdefs.h <<\_ACEOF
34192 #define HAVE_GTK 1
34193 _ACEOF
34200 PBX_GTK2=0
34201 if test -n "$ac_tool_prefix"; then
34202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34206 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
34207 echo $ECHO_N "(cached) $ECHO_C" >&6
34208 else
34209 if test -n "$PKGCONFIG"; then
34210 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
34211 else
34212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34213 for as_dir in $PATH
34215 IFS=$as_save_IFS
34216 test -z "$as_dir" && as_dir=.
34217 for ac_exec_ext in '' $ac_executable_extensions; do
34218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34219 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
34220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34221 break 2
34223 done
34224 done
34225 IFS=$as_save_IFS
34229 PKGCONFIG=$ac_cv_prog_PKGCONFIG
34230 if test -n "$PKGCONFIG"; then
34231 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
34232 echo "${ECHO_T}$PKGCONFIG" >&6; }
34233 else
34234 { echo "$as_me:$LINENO: result: no" >&5
34235 echo "${ECHO_T}no" >&6; }
34240 if test -z "$ac_cv_prog_PKGCONFIG"; then
34241 ac_ct_PKGCONFIG=$PKGCONFIG
34242 # Extract the first word of "pkg-config", so it can be a program name with args.
34243 set dummy pkg-config; ac_word=$2
34244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34246 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
34247 echo $ECHO_N "(cached) $ECHO_C" >&6
34248 else
34249 if test -n "$ac_ct_PKGCONFIG"; then
34250 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
34251 else
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253 for as_dir in $PATH
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
34257 for ac_exec_ext in '' $ac_executable_extensions; do
34258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34259 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
34260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34261 break 2
34263 done
34264 done
34265 IFS=$as_save_IFS
34269 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
34270 if test -n "$ac_ct_PKGCONFIG"; then
34271 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
34272 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
34273 else
34274 { echo "$as_me:$LINENO: result: no" >&5
34275 echo "${ECHO_T}no" >&6; }
34278 if test "x$ac_ct_PKGCONFIG" = x; then
34279 PKGCONFIG="No"
34280 else
34281 case $cross_compiling:$ac_tool_warned in
34282 yes:)
34283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34284 whose name does not start with the host triplet. If you think this
34285 configuration is useful to you, please write to autoconf@gnu.org." >&5
34286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34287 whose name does not start with the host triplet. If you think this
34288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34289 ac_tool_warned=yes ;;
34290 esac
34291 PKGCONFIG=$ac_ct_PKGCONFIG
34293 else
34294 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
34297 if test ! "x${PKGCONFIG}" = xNo; then
34298 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
34299 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
34300 PBX_GTK2=1
34302 cat >>confdefs.h <<\_ACEOF
34303 #define HAVE_GTK2 1
34304 _ACEOF
34311 if test "${USE_CURL}" != "no"; then
34312 if test -n "$ac_tool_prefix"; then
34313 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
34314 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
34315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34317 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34319 else
34320 case $CURL_CONFIG in
34321 [\\/]* | ?:[\\/]*)
34322 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
34325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34326 for as_dir in $PATH
34328 IFS=$as_save_IFS
34329 test -z "$as_dir" && as_dir=.
34330 for ac_exec_ext in '' $ac_executable_extensions; do
34331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34332 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34334 break 2
34336 done
34337 done
34338 IFS=$as_save_IFS
34341 esac
34343 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
34344 if test -n "$CURL_CONFIG"; then
34345 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
34346 echo "${ECHO_T}$CURL_CONFIG" >&6; }
34347 else
34348 { echo "$as_me:$LINENO: result: no" >&5
34349 echo "${ECHO_T}no" >&6; }
34354 if test -z "$ac_cv_path_CURL_CONFIG"; then
34355 ac_pt_CURL_CONFIG=$CURL_CONFIG
34356 # Extract the first word of "curl-config", so it can be a program name with args.
34357 set dummy curl-config; ac_word=$2
34358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34360 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
34361 echo $ECHO_N "(cached) $ECHO_C" >&6
34362 else
34363 case $ac_pt_CURL_CONFIG in
34364 [\\/]* | ?:[\\/]*)
34365 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
34368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369 for as_dir in $PATH
34371 IFS=$as_save_IFS
34372 test -z "$as_dir" && as_dir=.
34373 for ac_exec_ext in '' $ac_executable_extensions; do
34374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34375 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34377 break 2
34379 done
34380 done
34381 IFS=$as_save_IFS
34384 esac
34386 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
34387 if test -n "$ac_pt_CURL_CONFIG"; then
34388 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
34389 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
34390 else
34391 { echo "$as_me:$LINENO: result: no" >&5
34392 echo "${ECHO_T}no" >&6; }
34395 if test "x$ac_pt_CURL_CONFIG" = x; then
34396 CURL_CONFIG="No"
34397 else
34398 case $cross_compiling:$ac_tool_warned in
34399 yes:)
34400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34401 whose name does not start with the host triplet. If you think this
34402 configuration is useful to you, please write to autoconf@gnu.org." >&5
34403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34404 whose name does not start with the host triplet. If you think this
34405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34406 ac_tool_warned=yes ;;
34407 esac
34408 CURL_CONFIG=$ac_pt_CURL_CONFIG
34410 else
34411 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
34414 if test ! x"${CURL_CONFIG}" = xNo; then
34415 # check for version
34416 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
34417 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
34418 CURL_LIB=$(${CURL_CONFIG} --libs)
34420 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
34421 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
34422 saved_cppflags="${CPPFLAGS}"
34423 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
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 <curl/curl.h>
34432 main ()
34434 curl_version();
34436 return 0;
34439 _ACEOF
34440 rm -f conftest.$ac_objext
34441 if { (ac_try="$ac_compile"
34442 case "(($ac_try" in
34443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444 *) ac_try_echo=$ac_try;;
34445 esac
34446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447 (eval "$ac_compile") 2>conftest.er1
34448 ac_status=$?
34449 grep -v '^ *+' conftest.er1 >conftest.err
34450 rm -f conftest.er1
34451 cat conftest.err >&5
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); } && {
34454 test -z "$ac_c_werror_flag" ||
34455 test ! -s conftest.err
34456 } && test -s conftest.$ac_objext; then
34458 { echo "$as_me:$LINENO: result: yes" >&5
34459 echo "${ECHO_T}yes" >&6; }
34460 ac_cv_curl_h="yes"
34462 else
34463 echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34467 { echo "$as_me:$LINENO: result: no" >&5
34468 echo "${ECHO_T}no" >&6; }
34469 ac_cv_curl_h="no"
34474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34475 CPPFLAGS="${saved_cppflags}"
34476 if test "${ac_cv_curl_h}" = "yes"; then
34477 PBX_CURL=1
34479 cat >>confdefs.h <<\_ACEOF
34480 #define HAVE_CURL 1
34481 _ACEOF
34488 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
34490 cat >confcache <<\_ACEOF
34491 # This file is a shell script that caches the results of configure
34492 # tests run on this system so they can be shared between configure
34493 # scripts and configure runs, see configure's option --config-cache.
34494 # It is not useful on other systems. If it contains results you don't
34495 # want to keep, you may remove or edit it.
34497 # config.status only pays attention to the cache file if you give it
34498 # the --recheck option to rerun configure.
34500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34502 # following values.
34504 _ACEOF
34506 # The following way of writing the cache mishandles newlines in values,
34507 # but we know of no workaround that is simple, portable, and efficient.
34508 # So, we kill variables containing newlines.
34509 # Ultrix sh set writes to stderr and can't be redirected directly,
34510 # and sets the high bit in the cache file unless we assign to the vars.
34512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34513 eval ac_val=\$$ac_var
34514 case $ac_val in #(
34515 *${as_nl}*)
34516 case $ac_var in #(
34517 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34518 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34519 esac
34520 case $ac_var in #(
34521 _ | IFS | as_nl) ;; #(
34522 *) $as_unset $ac_var ;;
34523 esac ;;
34524 esac
34525 done
34527 (set) 2>&1 |
34528 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34529 *${as_nl}ac_space=\ *)
34530 # `set' does not quote correctly, so add quotes (double-quote
34531 # substitution turns \\\\ into \\, and sed turns \\ into \).
34532 sed -n \
34533 "s/'/'\\\\''/g;
34534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34535 ;; #(
34537 # `set' quotes correctly as required by POSIX, so do not add quotes.
34538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34540 esac |
34541 sort
34543 sed '
34544 /^ac_cv_env_/b end
34545 t clear
34546 :clear
34547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34548 t end
34549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34550 :end' >>confcache
34551 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34552 if test -w "$cache_file"; then
34553 test "x$cache_file" != "x/dev/null" &&
34554 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34555 echo "$as_me: updating cache $cache_file" >&6;}
34556 cat confcache >$cache_file
34557 else
34558 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34559 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34562 rm -f confcache
34564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34565 # Let make expand exec_prefix.
34566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34568 DEFS=-DHAVE_CONFIG_H
34570 ac_libobjs=
34571 ac_ltlibobjs=
34572 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34573 # 1. Remove the extension, and $U if already installed.
34574 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34575 ac_i=`echo "$ac_i" | sed "$ac_script"`
34576 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34577 # will be set to the directory where LIBOBJS objects are built.
34578 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34579 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34580 done
34581 LIBOBJS=$ac_libobjs
34583 LTLIBOBJS=$ac_ltlibobjs
34587 : ${CONFIG_STATUS=./config.status}
34588 ac_clean_files_save=$ac_clean_files
34589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34592 cat >$CONFIG_STATUS <<_ACEOF
34593 #! $SHELL
34594 # Generated by $as_me.
34595 # Run this file to recreate the current configuration.
34596 # Compiler output produced by configure, useful for debugging
34597 # configure, is in config.log if it exists.
34599 debug=false
34600 ac_cs_recheck=false
34601 ac_cs_silent=false
34602 SHELL=\${CONFIG_SHELL-$SHELL}
34603 _ACEOF
34605 cat >>$CONFIG_STATUS <<\_ACEOF
34606 ## --------------------- ##
34607 ## M4sh Initialization. ##
34608 ## --------------------- ##
34610 # Be more Bourne compatible
34611 DUALCASE=1; export DUALCASE # for MKS sh
34612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34613 emulate sh
34614 NULLCMD=:
34615 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34616 # is contrary to our usage. Disable this feature.
34617 alias -g '${1+"$@"}'='"$@"'
34618 setopt NO_GLOB_SUBST
34619 else
34620 case `(set -o) 2>/dev/null` in
34621 *posix*) set -o posix ;;
34622 esac
34629 # PATH needs CR
34630 # Avoid depending upon Character Ranges.
34631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34634 as_cr_digits='0123456789'
34635 as_cr_alnum=$as_cr_Letters$as_cr_digits
34637 # The user is always right.
34638 if test "${PATH_SEPARATOR+set}" != set; then
34639 echo "#! /bin/sh" >conf$$.sh
34640 echo "exit 0" >>conf$$.sh
34641 chmod +x conf$$.sh
34642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34643 PATH_SEPARATOR=';'
34644 else
34645 PATH_SEPARATOR=:
34647 rm -f conf$$.sh
34650 # Support unset when possible.
34651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34652 as_unset=unset
34653 else
34654 as_unset=false
34658 # IFS
34659 # We need space, tab and new line, in precisely that order. Quoting is
34660 # there to prevent editors from complaining about space-tab.
34661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34662 # splitting by setting IFS to empty value.)
34663 as_nl='
34665 IFS=" "" $as_nl"
34667 # Find who we are. Look in the path if we contain no directory separator.
34668 case $0 in
34669 *[\\/]* ) as_myself=$0 ;;
34670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34671 for as_dir in $PATH
34673 IFS=$as_save_IFS
34674 test -z "$as_dir" && as_dir=.
34675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34676 done
34677 IFS=$as_save_IFS
34680 esac
34681 # We did not find ourselves, most probably we were run as `sh COMMAND'
34682 # in which case we are not to be found in the path.
34683 if test "x$as_myself" = x; then
34684 as_myself=$0
34686 if test ! -f "$as_myself"; then
34687 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34688 { (exit 1); exit 1; }
34691 # Work around bugs in pre-3.0 UWIN ksh.
34692 for as_var in ENV MAIL MAILPATH
34693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34694 done
34695 PS1='$ '
34696 PS2='> '
34697 PS4='+ '
34699 # NLS nuisances.
34700 for as_var in \
34701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34703 LC_TELEPHONE LC_TIME
34705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34706 eval $as_var=C; export $as_var
34707 else
34708 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34710 done
34712 # Required to use basename.
34713 if expr a : '\(a\)' >/dev/null 2>&1 &&
34714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34715 as_expr=expr
34716 else
34717 as_expr=false
34720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34721 as_basename=basename
34722 else
34723 as_basename=false
34727 # Name of the executable.
34728 as_me=`$as_basename -- "$0" ||
34729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34730 X"$0" : 'X\(//\)$' \| \
34731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34732 echo X/"$0" |
34733 sed '/^.*\/\([^/][^/]*\)\/*$/{
34734 s//\1/
34737 /^X\/\(\/\/\)$/{
34738 s//\1/
34741 /^X\/\(\/\).*/{
34742 s//\1/
34745 s/.*/./; q'`
34747 # CDPATH.
34748 $as_unset CDPATH
34752 as_lineno_1=$LINENO
34753 as_lineno_2=$LINENO
34754 test "x$as_lineno_1" != "x$as_lineno_2" &&
34755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34758 # uniformly replaced by the line number. The first 'sed' inserts a
34759 # line-number line after each line using $LINENO; the second 'sed'
34760 # does the real work. The second script uses 'N' to pair each
34761 # line-number line with the line containing $LINENO, and appends
34762 # trailing '-' during substitution so that $LINENO is not a special
34763 # case at line end.
34764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34765 # scripts with optimization help from Paolo Bonzini. Blame Lee
34766 # E. McMahon (1931-1989) for sed's syntax. :-)
34767 sed -n '
34769 /[$]LINENO/=
34770 ' <$as_myself |
34771 sed '
34772 s/[$]LINENO.*/&-/
34773 t lineno
34775 :lineno
34777 :loop
34778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34779 t loop
34780 s/-\n.*//
34781 ' >$as_me.lineno &&
34782 chmod +x "$as_me.lineno" ||
34783 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34784 { (exit 1); exit 1; }; }
34786 # Don't try to exec as it changes $[0], causing all sort of problems
34787 # (the dirname of $[0] is not the place where we might find the
34788 # original and so on. Autoconf is especially sensitive to this).
34789 . "./$as_me.lineno"
34790 # Exit status is that of the last command.
34791 exit
34795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34796 as_dirname=dirname
34797 else
34798 as_dirname=false
34801 ECHO_C= ECHO_N= ECHO_T=
34802 case `echo -n x` in
34803 -n*)
34804 case `echo 'x\c'` in
34805 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34806 *) ECHO_C='\c';;
34807 esac;;
34809 ECHO_N='-n';;
34810 esac
34812 if expr a : '\(a\)' >/dev/null 2>&1 &&
34813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34814 as_expr=expr
34815 else
34816 as_expr=false
34819 rm -f conf$$ conf$$.exe conf$$.file
34820 if test -d conf$$.dir; then
34821 rm -f conf$$.dir/conf$$.file
34822 else
34823 rm -f conf$$.dir
34824 mkdir conf$$.dir
34826 echo >conf$$.file
34827 if ln -s conf$$.file conf$$ 2>/dev/null; then
34828 as_ln_s='ln -s'
34829 # ... but there are two gotchas:
34830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34832 # In both cases, we have to default to `cp -p'.
34833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34834 as_ln_s='cp -p'
34835 elif ln conf$$.file conf$$ 2>/dev/null; then
34836 as_ln_s=ln
34837 else
34838 as_ln_s='cp -p'
34840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34841 rmdir conf$$.dir 2>/dev/null
34843 if mkdir -p . 2>/dev/null; then
34844 as_mkdir_p=:
34845 else
34846 test -d ./-p && rmdir ./-p
34847 as_mkdir_p=false
34850 if test -x / >/dev/null 2>&1; then
34851 as_test_x='test -x'
34852 else
34853 if ls -dL / >/dev/null 2>&1; then
34854 as_ls_L_option=L
34855 else
34856 as_ls_L_option=
34858 as_test_x='
34859 eval sh -c '\''
34860 if test -d "$1"; then
34861 test -d "$1/.";
34862 else
34863 case $1 in
34864 -*)set "./$1";;
34865 esac;
34866 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34867 ???[sx]*):;;*)false;;esac;fi
34868 '\'' sh
34871 as_executable_p=$as_test_x
34873 # Sed expression to map a string onto a valid CPP name.
34874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34876 # Sed expression to map a string onto a valid variable name.
34877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34880 exec 6>&1
34882 # Save the log message, to keep $[0] and so on meaningful, and to
34883 # report actual input values of CONFIG_FILES etc. instead of their
34884 # values after options handling.
34885 ac_log="
34886 This file was extended by asterisk $as_me 1.4, which was
34887 generated by GNU Autoconf 2.61. Invocation command line was
34889 CONFIG_FILES = $CONFIG_FILES
34890 CONFIG_HEADERS = $CONFIG_HEADERS
34891 CONFIG_LINKS = $CONFIG_LINKS
34892 CONFIG_COMMANDS = $CONFIG_COMMANDS
34893 $ $0 $@
34895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34898 _ACEOF
34900 cat >>$CONFIG_STATUS <<_ACEOF
34901 # Files that config.status was made for.
34902 config_files="$ac_config_files"
34903 config_headers="$ac_config_headers"
34905 _ACEOF
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34908 ac_cs_usage="\
34909 \`$as_me' instantiates files from templates according to the
34910 current configuration.
34912 Usage: $0 [OPTIONS] [FILE]...
34914 -h, --help print this help, then exit
34915 -V, --version print version number and configuration settings, then exit
34916 -q, --quiet do not print progress messages
34917 -d, --debug don't remove temporary files
34918 --recheck update $as_me by reconfiguring in the same conditions
34919 --file=FILE[:TEMPLATE]
34920 instantiate the configuration file FILE
34921 --header=FILE[:TEMPLATE]
34922 instantiate the configuration header FILE
34924 Configuration files:
34925 $config_files
34927 Configuration headers:
34928 $config_headers
34930 Report bugs to <bug-autoconf@gnu.org>."
34932 _ACEOF
34933 cat >>$CONFIG_STATUS <<_ACEOF
34934 ac_cs_version="\\
34935 asterisk config.status 1.4
34936 configured by $0, generated by GNU Autoconf 2.61,
34937 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34939 Copyright (C) 2006 Free Software Foundation, Inc.
34940 This config.status script is free software; the Free Software Foundation
34941 gives unlimited permission to copy, distribute and modify it."
34943 ac_pwd='$ac_pwd'
34944 srcdir='$srcdir'
34945 INSTALL='$INSTALL'
34946 _ACEOF
34948 cat >>$CONFIG_STATUS <<\_ACEOF
34949 # If no file are specified by the user, then we need to provide default
34950 # value. By we need to know if files were specified by the user.
34951 ac_need_defaults=:
34952 while test $# != 0
34954 case $1 in
34955 --*=*)
34956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34957 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34958 ac_shift=:
34961 ac_option=$1
34962 ac_optarg=$2
34963 ac_shift=shift
34965 esac
34967 case $ac_option in
34968 # Handling of the options.
34969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34970 ac_cs_recheck=: ;;
34971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34972 echo "$ac_cs_version"; exit ;;
34973 --debug | --debu | --deb | --de | --d | -d )
34974 debug=: ;;
34975 --file | --fil | --fi | --f )
34976 $ac_shift
34977 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34978 ac_need_defaults=false;;
34979 --header | --heade | --head | --hea )
34980 $ac_shift
34981 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34982 ac_need_defaults=false;;
34983 --he | --h)
34984 # Conflict between --help and --header
34985 { echo "$as_me: error: ambiguous option: $1
34986 Try \`$0 --help' for more information." >&2
34987 { (exit 1); exit 1; }; };;
34988 --help | --hel | -h )
34989 echo "$ac_cs_usage"; exit ;;
34990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34992 ac_cs_silent=: ;;
34994 # This is an error.
34995 -*) { echo "$as_me: error: unrecognized option: $1
34996 Try \`$0 --help' for more information." >&2
34997 { (exit 1); exit 1; }; } ;;
34999 *) ac_config_targets="$ac_config_targets $1"
35000 ac_need_defaults=false ;;
35002 esac
35003 shift
35004 done
35006 ac_configure_extra_args=
35008 if $ac_cs_silent; then
35009 exec 6>/dev/null
35010 ac_configure_extra_args="$ac_configure_extra_args --silent"
35013 _ACEOF
35014 cat >>$CONFIG_STATUS <<_ACEOF
35015 if \$ac_cs_recheck; then
35016 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35017 CONFIG_SHELL=$SHELL
35018 export CONFIG_SHELL
35019 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35022 _ACEOF
35023 cat >>$CONFIG_STATUS <<\_ACEOF
35024 exec 5>>config.log
35026 echo
35027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35028 ## Running $as_me. ##
35029 _ASBOX
35030 echo "$ac_log"
35031 } >&5
35033 _ACEOF
35034 cat >>$CONFIG_STATUS <<_ACEOF
35035 _ACEOF
35037 cat >>$CONFIG_STATUS <<\_ACEOF
35039 # Handling of arguments.
35040 for ac_config_target in $ac_config_targets
35042 case $ac_config_target in
35043 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
35044 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
35045 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
35046 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
35048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35050 { (exit 1); exit 1; }; };;
35051 esac
35052 done
35055 # If the user did not use the arguments to specify the items to instantiate,
35056 # then the envvar interface is used. Set only those that are not.
35057 # We use the long form for the default assignment because of an extremely
35058 # bizarre bug on SunOS 4.1.3.
35059 if $ac_need_defaults; then
35060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35064 # Have a temporary directory for convenience. Make it in the build tree
35065 # simply because there is no reason against having it here, and in addition,
35066 # creating and moving files from /tmp can sometimes cause problems.
35067 # Hook for its removal unless debugging.
35068 # Note that there is a small window in which the directory will not be cleaned:
35069 # after its creation but before its name has been assigned to `$tmp'.
35070 $debug ||
35072 tmp=
35073 trap 'exit_status=$?
35074 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35076 trap '{ (exit 1); exit 1; }' 1 2 13 15
35078 # Create a (secure) tmp directory for tmp files.
35081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35082 test -n "$tmp" && test -d "$tmp"
35083 } ||
35085 tmp=./conf$$-$RANDOM
35086 (umask 077 && mkdir "$tmp")
35087 } ||
35089 echo "$me: cannot create a temporary directory in ." >&2
35090 { (exit 1); exit 1; }
35094 # Set up the sed scripts for CONFIG_FILES section.
35097 # No need to generate the scripts if there are no CONFIG_FILES.
35098 # This happens for instance when ./config.status config.h
35099 if test -n "$CONFIG_FILES"; then
35101 _ACEOF
35105 ac_delim='%!_!# '
35106 for ac_last_try in false false false false false :; do
35107 cat >conf$$subs.sed <<_ACEOF
35108 SHELL!$SHELL$ac_delim
35109 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35110 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35111 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35112 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35113 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35114 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35115 exec_prefix!$exec_prefix$ac_delim
35116 prefix!$prefix$ac_delim
35117 program_transform_name!$program_transform_name$ac_delim
35118 bindir!$bindir$ac_delim
35119 sbindir!$sbindir$ac_delim
35120 libexecdir!$libexecdir$ac_delim
35121 datarootdir!$datarootdir$ac_delim
35122 datadir!$datadir$ac_delim
35123 sysconfdir!$sysconfdir$ac_delim
35124 sharedstatedir!$sharedstatedir$ac_delim
35125 localstatedir!$localstatedir$ac_delim
35126 includedir!$includedir$ac_delim
35127 oldincludedir!$oldincludedir$ac_delim
35128 docdir!$docdir$ac_delim
35129 infodir!$infodir$ac_delim
35130 htmldir!$htmldir$ac_delim
35131 dvidir!$dvidir$ac_delim
35132 pdfdir!$pdfdir$ac_delim
35133 psdir!$psdir$ac_delim
35134 libdir!$libdir$ac_delim
35135 localedir!$localedir$ac_delim
35136 mandir!$mandir$ac_delim
35137 DEFS!$DEFS$ac_delim
35138 ECHO_C!$ECHO_C$ac_delim
35139 ECHO_N!$ECHO_N$ac_delim
35140 ECHO_T!$ECHO_T$ac_delim
35141 LIBS!$LIBS$ac_delim
35142 build_alias!$build_alias$ac_delim
35143 host_alias!$host_alias$ac_delim
35144 target_alias!$target_alias$ac_delim
35145 build!$build$ac_delim
35146 build_cpu!$build_cpu$ac_delim
35147 build_vendor!$build_vendor$ac_delim
35148 build_os!$build_os$ac_delim
35149 host!$host$ac_delim
35150 host_cpu!$host_cpu$ac_delim
35151 host_vendor!$host_vendor$ac_delim
35152 host_os!$host_os$ac_delim
35153 CC!$CC$ac_delim
35154 CFLAGS!$CFLAGS$ac_delim
35155 LDFLAGS!$LDFLAGS$ac_delim
35156 CPPFLAGS!$CPPFLAGS$ac_delim
35157 ac_ct_CC!$ac_ct_CC$ac_delim
35158 EXEEXT!$EXEEXT$ac_delim
35159 OBJEXT!$OBJEXT$ac_delim
35160 CPP!$CPP$ac_delim
35161 GREP!$GREP$ac_delim
35162 EGREP!$EGREP$ac_delim
35163 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
35164 BUILD_CPU!$BUILD_CPU$ac_delim
35165 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
35166 BUILD_OS!$BUILD_OS$ac_delim
35167 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
35168 HOST_CPU!$HOST_CPU$ac_delim
35169 HOST_VENDOR!$HOST_VENDOR$ac_delim
35170 HOST_OS!$HOST_OS$ac_delim
35171 OSARCH!$OSARCH$ac_delim
35172 UNAME!$UNAME$ac_delim
35173 PBX_OSREV!$PBX_OSREV$ac_delim
35174 CXX!$CXX$ac_delim
35175 LD!$LD$ac_delim
35176 RANLIB!$RANLIB$ac_delim
35177 CXXFLAGS!$CXXFLAGS$ac_delim
35178 ac_ct_CXX!$ac_ct_CXX$ac_delim
35179 CXXCPP!$CXXCPP$ac_delim
35180 SED!$SED$ac_delim
35181 AWK!$AWK$ac_delim
35182 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35183 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35184 INSTALL_DATA!$INSTALL_DATA$ac_delim
35185 LN_S!$LN_S$ac_delim
35186 GNU_MAKE!$GNU_MAKE$ac_delim
35187 STRIP!$STRIP$ac_delim
35188 AR!$AR$ac_delim
35189 GNU_LD!$GNU_LD$ac_delim
35190 FIND!$FIND$ac_delim
35191 COMPRESS!$COMPRESS$ac_delim
35192 BASENAME!$BASENAME$ac_delim
35193 ID!$ID$ac_delim
35194 DIRNAME!$DIRNAME$ac_delim
35195 LN!$LN$ac_delim
35196 DOT!$DOT$ac_delim
35197 WGET!$WGET$ac_delim
35198 FETCH!$FETCH$ac_delim
35199 DOWNLOAD!$DOWNLOAD$ac_delim
35200 SOXMIX!$SOXMIX$ac_delim
35201 acx_pthread_config!$acx_pthread_config$ac_delim
35202 PTHREAD_CC!$PTHREAD_CC$ac_delim
35203 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35204 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35205 _ACEOF
35207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35208 break
35209 elif $ac_last_try; then
35210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35212 { (exit 1); exit 1; }; }
35213 else
35214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35216 done
35218 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35219 if test -n "$ac_eof"; then
35220 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35221 ac_eof=`expr $ac_eof + 1`
35224 cat >>$CONFIG_STATUS <<_ACEOF
35225 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35227 _ACEOF
35228 sed '
35229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35230 s/^/s,@/; s/!/@,|#_!!_#|/
35233 s/'"$ac_delim"'$/,g/; t
35234 s/$/\\/; p
35235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35236 ' >>$CONFIG_STATUS <conf$$subs.sed
35237 rm -f conf$$subs.sed
35238 cat >>$CONFIG_STATUS <<_ACEOF
35239 CEOF$ac_eof
35240 _ACEOF
35243 ac_delim='%!_!# '
35244 for ac_last_try in false false false false false :; do
35245 cat >conf$$subs.sed <<_ACEOF
35246 AST_DEVMODE!$AST_DEVMODE$ac_delim
35247 ALSA_LIB!$ALSA_LIB$ac_delim
35248 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
35249 ALSA_DIR!$ALSA_DIR$ac_delim
35250 PBX_ALSA!$PBX_ALSA$ac_delim
35251 CURL_LIB!$CURL_LIB$ac_delim
35252 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
35253 CURL_DIR!$CURL_DIR$ac_delim
35254 PBX_CURL!$PBX_CURL$ac_delim
35255 CAP_LIB!$CAP_LIB$ac_delim
35256 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
35257 CAP_DIR!$CAP_DIR$ac_delim
35258 PBX_CAP!$PBX_CAP$ac_delim
35259 CURSES_LIB!$CURSES_LIB$ac_delim
35260 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
35261 CURSES_DIR!$CURSES_DIR$ac_delim
35262 PBX_CURSES!$PBX_CURSES$ac_delim
35263 GNUTLS_LIB!$GNUTLS_LIB$ac_delim
35264 GNUTLS_INCLUDE!$GNUTLS_INCLUDE$ac_delim
35265 GNUTLS_DIR!$GNUTLS_DIR$ac_delim
35266 PBX_GNUTLS!$PBX_GNUTLS$ac_delim
35267 GSM_LIB!$GSM_LIB$ac_delim
35268 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
35269 GSM_DIR!$GSM_DIR$ac_delim
35270 PBX_GSM!$PBX_GSM$ac_delim
35271 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
35272 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
35273 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
35274 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
35275 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
35276 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
35277 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
35278 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
35279 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
35280 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
35281 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
35282 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
35283 KDE_LIB!$KDE_LIB$ac_delim
35284 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
35285 KDE_DIR!$KDE_DIR$ac_delim
35286 PBX_KDE!$PBX_KDE$ac_delim
35287 LTDL_LIB!$LTDL_LIB$ac_delim
35288 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
35289 LTDL_DIR!$LTDL_DIR$ac_delim
35290 PBX_LTDL!$PBX_LTDL$ac_delim
35291 MISDN_LIB!$MISDN_LIB$ac_delim
35292 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
35293 MISDN_DIR!$MISDN_DIR$ac_delim
35294 PBX_MISDN!$PBX_MISDN$ac_delim
35295 NBS_LIB!$NBS_LIB$ac_delim
35296 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
35297 NBS_DIR!$NBS_DIR$ac_delim
35298 PBX_NBS!$PBX_NBS$ac_delim
35299 NCURSES_LIB!$NCURSES_LIB$ac_delim
35300 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
35301 NCURSES_DIR!$NCURSES_DIR$ac_delim
35302 PBX_NCURSES!$PBX_NCURSES$ac_delim
35303 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
35304 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
35305 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
35306 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
35307 NEWT_LIB!$NEWT_LIB$ac_delim
35308 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
35309 NEWT_DIR!$NEWT_DIR$ac_delim
35310 PBX_NEWT!$PBX_NEWT$ac_delim
35311 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
35312 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
35313 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
35314 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
35315 OGG_LIB!$OGG_LIB$ac_delim
35316 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
35317 OGG_DIR!$OGG_DIR$ac_delim
35318 PBX_OGG!$PBX_OGG$ac_delim
35319 OSPTK_LIB!$OSPTK_LIB$ac_delim
35320 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
35321 OSPTK_DIR!$OSPTK_DIR$ac_delim
35322 PBX_OSPTK!$PBX_OSPTK$ac_delim
35323 OSS_LIB!$OSS_LIB$ac_delim
35324 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
35325 OSS_DIR!$OSS_DIR$ac_delim
35326 PBX_OSS!$PBX_OSS$ac_delim
35327 POPT_LIB!$POPT_LIB$ac_delim
35328 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
35329 POPT_DIR!$POPT_DIR$ac_delim
35330 PBX_POPT!$PBX_POPT$ac_delim
35331 PGSQL_LIB!$PGSQL_LIB$ac_delim
35332 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
35333 PGSQL_DIR!$PGSQL_DIR$ac_delim
35334 PBX_PGSQL!$PBX_PGSQL$ac_delim
35335 PRI_LIB!$PRI_LIB$ac_delim
35336 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
35337 PRI_DIR!$PRI_DIR$ac_delim
35338 PBX_PRI!$PBX_PRI$ac_delim
35339 PWLIB_LIB!$PWLIB_LIB$ac_delim
35340 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
35341 PWLIB_DIR!$PWLIB_DIR$ac_delim
35342 PBX_PWLIB!$PBX_PWLIB$ac_delim
35343 _ACEOF
35345 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35346 break
35347 elif $ac_last_try; then
35348 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35350 { (exit 1); exit 1; }; }
35351 else
35352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35354 done
35356 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35357 if test -n "$ac_eof"; then
35358 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35359 ac_eof=`expr $ac_eof + 1`
35362 cat >>$CONFIG_STATUS <<_ACEOF
35363 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35365 _ACEOF
35366 sed '
35367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35368 s/^/s,@/; s/!/@,|#_!!_#|/
35371 s/'"$ac_delim"'$/,g/; t
35372 s/$/\\/; p
35373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35374 ' >>$CONFIG_STATUS <conf$$subs.sed
35375 rm -f conf$$subs.sed
35376 cat >>$CONFIG_STATUS <<_ACEOF
35377 CEOF$ac_eof
35378 _ACEOF
35381 ac_delim='%!_!# '
35382 for ac_last_try in false false false false false :; do
35383 cat >conf$$subs.sed <<_ACEOF
35384 OPENH323_LIB!$OPENH323_LIB$ac_delim
35385 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
35386 OPENH323_DIR!$OPENH323_DIR$ac_delim
35387 PBX_OPENH323!$PBX_OPENH323$ac_delim
35388 RADIUS_LIB!$RADIUS_LIB$ac_delim
35389 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
35390 RADIUS_DIR!$RADIUS_DIR$ac_delim
35391 PBX_RADIUS!$PBX_RADIUS$ac_delim
35392 SPEEX_LIB!$SPEEX_LIB$ac_delim
35393 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
35394 SPEEX_DIR!$SPEEX_DIR$ac_delim
35395 PBX_SPEEX!$PBX_SPEEX$ac_delim
35396 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
35397 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
35398 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
35399 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
35400 SQLITE_LIB!$SQLITE_LIB$ac_delim
35401 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
35402 SQLITE_DIR!$SQLITE_DIR$ac_delim
35403 PBX_SQLITE!$PBX_SQLITE$ac_delim
35404 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
35405 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
35406 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
35407 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
35408 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
35409 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
35410 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
35411 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
35412 FREETDS_LIB!$FREETDS_LIB$ac_delim
35413 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
35414 FREETDS_DIR!$FREETDS_DIR$ac_delim
35415 PBX_FREETDS!$PBX_FREETDS$ac_delim
35416 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
35417 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
35418 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
35419 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
35420 TINFO_LIB!$TINFO_LIB$ac_delim
35421 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
35422 TINFO_DIR!$TINFO_DIR$ac_delim
35423 PBX_TINFO!$PBX_TINFO$ac_delim
35424 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
35425 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
35426 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
35427 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
35428 USB_LIB!$USB_LIB$ac_delim
35429 USB_INCLUDE!$USB_INCLUDE$ac_delim
35430 USB_DIR!$USB_DIR$ac_delim
35431 PBX_USB!$PBX_USB$ac_delim
35432 VORBIS_LIB!$VORBIS_LIB$ac_delim
35433 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
35434 VORBIS_DIR!$VORBIS_DIR$ac_delim
35435 PBX_VORBIS!$PBX_VORBIS$ac_delim
35436 VPB_LIB!$VPB_LIB$ac_delim
35437 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
35438 VPB_DIR!$VPB_DIR$ac_delim
35439 PBX_VPB!$PBX_VPB$ac_delim
35440 ZLIB_LIB!$ZLIB_LIB$ac_delim
35441 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
35442 ZLIB_DIR!$ZLIB_DIR$ac_delim
35443 PBX_ZLIB!$PBX_ZLIB$ac_delim
35444 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
35445 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
35446 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
35447 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
35448 ALLOCA!$ALLOCA$ac_delim
35449 LIBOBJS!$LIBOBJS$ac_delim
35450 POW_LIB!$POW_LIB$ac_delim
35451 GC_CFLAGS!$GC_CFLAGS$ac_delim
35452 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
35453 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
35454 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
35455 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
35456 KDEINIT!$KDEINIT$ac_delim
35457 KDEDIR!$KDEDIR$ac_delim
35458 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
35459 PG_CONFIG!$PG_CONFIG$ac_delim
35460 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
35461 PWLIBDIR!$PWLIBDIR$ac_delim
35462 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
35463 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
35464 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
35465 OPENH323DIR!$OPENH323DIR$ac_delim
35466 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
35467 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
35468 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
35469 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
35470 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
35471 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
35472 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
35473 PBX_H323!$PBX_H323$ac_delim
35474 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
35475 GTKCONFIG!$GTKCONFIG$ac_delim
35476 PBX_GTK!$PBX_GTK$ac_delim
35477 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
35478 GTK_LIB!$GTK_LIB$ac_delim
35479 PKGCONFIG!$PKGCONFIG$ac_delim
35480 PBX_GTK2!$PBX_GTK2$ac_delim
35481 _ACEOF
35483 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35484 break
35485 elif $ac_last_try; then
35486 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35487 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35488 { (exit 1); exit 1; }; }
35489 else
35490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35492 done
35494 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35495 if test -n "$ac_eof"; then
35496 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35497 ac_eof=`expr $ac_eof + 1`
35500 cat >>$CONFIG_STATUS <<_ACEOF
35501 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35503 _ACEOF
35504 sed '
35505 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35506 s/^/s,@/; s/!/@,|#_!!_#|/
35509 s/'"$ac_delim"'$/,g/; t
35510 s/$/\\/; p
35511 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35512 ' >>$CONFIG_STATUS <conf$$subs.sed
35513 rm -f conf$$subs.sed
35514 cat >>$CONFIG_STATUS <<_ACEOF
35515 CEOF$ac_eof
35516 _ACEOF
35519 ac_delim='%!_!# '
35520 for ac_last_try in false false false false false :; do
35521 cat >conf$$subs.sed <<_ACEOF
35522 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
35523 GTK2_LIB!$GTK2_LIB$ac_delim
35524 CURL_CONFIG!$CURL_CONFIG$ac_delim
35525 LTLIBOBJS!$LTLIBOBJS$ac_delim
35526 _ACEOF
35528 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
35529 break
35530 elif $ac_last_try; then
35531 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35532 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35533 { (exit 1); exit 1; }; }
35534 else
35535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35537 done
35539 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35540 if test -n "$ac_eof"; then
35541 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35542 ac_eof=`expr $ac_eof + 1`
35545 cat >>$CONFIG_STATUS <<_ACEOF
35546 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
35547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35548 _ACEOF
35549 sed '
35550 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35551 s/^/s,@/; s/!/@,|#_!!_#|/
35554 s/'"$ac_delim"'$/,g/; t
35555 s/$/\\/; p
35556 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35557 ' >>$CONFIG_STATUS <conf$$subs.sed
35558 rm -f conf$$subs.sed
35559 cat >>$CONFIG_STATUS <<_ACEOF
35560 :end
35561 s/|#_!!_#|//g
35562 CEOF$ac_eof
35563 _ACEOF
35566 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35567 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35568 # trailing colons and then remove the whole line if VPATH becomes empty
35569 # (actually we leave an empty line to preserve line numbers).
35570 if test "x$srcdir" = x.; then
35571 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35572 s/:*\$(srcdir):*/:/
35573 s/:*\${srcdir}:*/:/
35574 s/:*@srcdir@:*/:/
35575 s/^\([^=]*=[ ]*\):*/\1/
35576 s/:*$//
35577 s/^[^=]*=[ ]*$//
35581 cat >>$CONFIG_STATUS <<\_ACEOF
35582 fi # test -n "$CONFIG_FILES"
35585 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
35587 case $ac_tag in
35588 :[FHLC]) ac_mode=$ac_tag; continue;;
35589 esac
35590 case $ac_mode$ac_tag in
35591 :[FHL]*:*);;
35592 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35593 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35594 { (exit 1); exit 1; }; };;
35595 :[FH]-) ac_tag=-:-;;
35596 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35597 esac
35598 ac_save_IFS=$IFS
35599 IFS=:
35600 set x $ac_tag
35601 IFS=$ac_save_IFS
35602 shift
35603 ac_file=$1
35604 shift
35606 case $ac_mode in
35607 :L) ac_source=$1;;
35608 :[FH])
35609 ac_file_inputs=
35610 for ac_f
35612 case $ac_f in
35613 -) ac_f="$tmp/stdin";;
35614 *) # Look for the file first in the build tree, then in the source tree
35615 # (if the path is not absolute). The absolute path cannot be DOS-style,
35616 # because $ac_f cannot contain `:'.
35617 test -f "$ac_f" ||
35618 case $ac_f in
35619 [\\/$]*) false;;
35620 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35621 esac ||
35622 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35623 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35624 { (exit 1); exit 1; }; };;
35625 esac
35626 ac_file_inputs="$ac_file_inputs $ac_f"
35627 done
35629 # Let's still pretend it is `configure' which instantiates (i.e., don't
35630 # use $as_me), people would be surprised to read:
35631 # /* config.h. Generated by config.status. */
35632 configure_input="Generated from "`IFS=:
35633 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35634 if test x"$ac_file" != x-; then
35635 configure_input="$ac_file. $configure_input"
35636 { echo "$as_me:$LINENO: creating $ac_file" >&5
35637 echo "$as_me: creating $ac_file" >&6;}
35640 case $ac_tag in
35641 *:-:* | *:-) cat >"$tmp/stdin";;
35642 esac
35644 esac
35646 ac_dir=`$as_dirname -- "$ac_file" ||
35647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35648 X"$ac_file" : 'X\(//\)[^/]' \| \
35649 X"$ac_file" : 'X\(//\)$' \| \
35650 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35651 echo X"$ac_file" |
35652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35653 s//\1/
35656 /^X\(\/\/\)[^/].*/{
35657 s//\1/
35660 /^X\(\/\/\)$/{
35661 s//\1/
35664 /^X\(\/\).*/{
35665 s//\1/
35668 s/.*/./; q'`
35669 { as_dir="$ac_dir"
35670 case $as_dir in #(
35671 -*) as_dir=./$as_dir;;
35672 esac
35673 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35674 as_dirs=
35675 while :; do
35676 case $as_dir in #(
35677 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35678 *) as_qdir=$as_dir;;
35679 esac
35680 as_dirs="'$as_qdir' $as_dirs"
35681 as_dir=`$as_dirname -- "$as_dir" ||
35682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683 X"$as_dir" : 'X\(//\)[^/]' \| \
35684 X"$as_dir" : 'X\(//\)$' \| \
35685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35686 echo X"$as_dir" |
35687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35688 s//\1/
35691 /^X\(\/\/\)[^/].*/{
35692 s//\1/
35695 /^X\(\/\/\)$/{
35696 s//\1/
35699 /^X\(\/\).*/{
35700 s//\1/
35703 s/.*/./; q'`
35704 test -d "$as_dir" && break
35705 done
35706 test -z "$as_dirs" || eval "mkdir $as_dirs"
35707 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35708 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35709 { (exit 1); exit 1; }; }; }
35710 ac_builddir=.
35712 case "$ac_dir" in
35713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35716 # A ".." for each directory in $ac_dir_suffix.
35717 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35718 case $ac_top_builddir_sub in
35719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35721 esac ;;
35722 esac
35723 ac_abs_top_builddir=$ac_pwd
35724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35725 # for backward compatibility:
35726 ac_top_builddir=$ac_top_build_prefix
35728 case $srcdir in
35729 .) # We are building in place.
35730 ac_srcdir=.
35731 ac_top_srcdir=$ac_top_builddir_sub
35732 ac_abs_top_srcdir=$ac_pwd ;;
35733 [\\/]* | ?:[\\/]* ) # Absolute name.
35734 ac_srcdir=$srcdir$ac_dir_suffix;
35735 ac_top_srcdir=$srcdir
35736 ac_abs_top_srcdir=$srcdir ;;
35737 *) # Relative name.
35738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35739 ac_top_srcdir=$ac_top_build_prefix$srcdir
35740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35741 esac
35742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35745 case $ac_mode in
35748 # CONFIG_FILE
35751 case $INSTALL in
35752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35754 esac
35755 _ACEOF
35757 cat >>$CONFIG_STATUS <<\_ACEOF
35758 # If the template does not know about datarootdir, expand it.
35759 # FIXME: This hack should be removed a few years after 2.60.
35760 ac_datarootdir_hack=; ac_datarootdir_seen=
35762 case `sed -n '/datarootdir/ {
35766 /@datadir@/p
35767 /@docdir@/p
35768 /@infodir@/p
35769 /@localedir@/p
35770 /@mandir@/p
35771 ' $ac_file_inputs` in
35772 *datarootdir*) ac_datarootdir_seen=yes;;
35773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35774 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35775 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35776 _ACEOF
35777 cat >>$CONFIG_STATUS <<_ACEOF
35778 ac_datarootdir_hack='
35779 s&@datadir@&$datadir&g
35780 s&@docdir@&$docdir&g
35781 s&@infodir@&$infodir&g
35782 s&@localedir@&$localedir&g
35783 s&@mandir@&$mandir&g
35784 s&\\\${datarootdir}&$datarootdir&g' ;;
35785 esac
35786 _ACEOF
35788 # Neutralize VPATH when `$srcdir' = `.'.
35789 # Shell code in configure.ac might set extrasub.
35790 # FIXME: do we really want to maintain this feature?
35791 cat >>$CONFIG_STATUS <<_ACEOF
35792 sed "$ac_vpsub
35793 $extrasub
35794 _ACEOF
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35798 s&@configure_input@&$configure_input&;t t
35799 s&@top_builddir@&$ac_top_builddir_sub&;t t
35800 s&@srcdir@&$ac_srcdir&;t t
35801 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35802 s&@top_srcdir@&$ac_top_srcdir&;t t
35803 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35804 s&@builddir@&$ac_builddir&;t t
35805 s&@abs_builddir@&$ac_abs_builddir&;t t
35806 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35807 s&@INSTALL@&$ac_INSTALL&;t t
35808 $ac_datarootdir_hack
35809 " $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
35811 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35814 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35815 which seems to be undefined. Please make sure it is defined." >&5
35816 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35817 which seems to be undefined. Please make sure it is defined." >&2;}
35819 rm -f "$tmp/stdin"
35820 case $ac_file in
35821 -) cat "$tmp/out"; rm -f "$tmp/out";;
35822 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35823 esac
35827 # CONFIG_HEADER
35829 _ACEOF
35831 # Transform confdefs.h into a sed script `conftest.defines', that
35832 # substitutes the proper values into config.h.in to produce config.h.
35833 rm -f conftest.defines conftest.tail
35834 # First, append a space to every undef/define line, to ease matching.
35835 echo 's/$/ /' >conftest.defines
35836 # Then, protect against being on the right side of a sed subst, or in
35837 # an unquoted here document, in config.status. If some macros were
35838 # called several times there might be several #defines for the same
35839 # symbol, which is useless. But do not sort them, since the last
35840 # AC_DEFINE must be honored.
35841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35842 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35843 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35844 # PARAMS is the parameter list in the macro definition--in most cases, it's
35845 # just an empty string.
35846 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35847 ac_dB='\\)[ (].*,\\1define\\2'
35848 ac_dC=' '
35849 ac_dD=' ,'
35851 uniq confdefs.h |
35852 sed -n '
35853 t rset
35854 :rset
35855 s/^[ ]*#[ ]*define[ ][ ]*//
35856 t ok
35859 s/[\\&,]/\\&/g
35860 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35861 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35862 ' >>conftest.defines
35864 # Remove the space that was appended to ease matching.
35865 # Then replace #undef with comments. This is necessary, for
35866 # example, in the case of _POSIX_SOURCE, which is predefined and required
35867 # on some systems where configure will not decide to define it.
35868 # (The regexp can be short, since the line contains either #define or #undef.)
35869 echo 's/ $//
35870 s,^[ #]*u.*,/* & */,' >>conftest.defines
35872 # Break up conftest.defines:
35873 ac_max_sed_lines=50
35875 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35876 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35877 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35878 # et cetera.
35879 ac_in='$ac_file_inputs'
35880 ac_out='"$tmp/out1"'
35881 ac_nxt='"$tmp/out2"'
35883 while :
35885 # Write a here document:
35886 cat >>$CONFIG_STATUS <<_ACEOF
35887 # First, check the format of the line:
35888 cat >"\$tmp/defines.sed" <<\\CEOF
35889 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35890 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35892 :def
35893 _ACEOF
35894 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35895 echo 'CEOF
35896 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35897 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35898 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35899 grep . conftest.tail >/dev/null || break
35900 rm -f conftest.defines
35901 mv conftest.tail conftest.defines
35902 done
35903 rm -f conftest.defines conftest.tail
35905 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35906 cat >>$CONFIG_STATUS <<\_ACEOF
35907 if test x"$ac_file" != x-; then
35908 echo "/* $configure_input */" >"$tmp/config.h"
35909 cat "$ac_result" >>"$tmp/config.h"
35910 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35911 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35912 echo "$as_me: $ac_file is unchanged" >&6;}
35913 else
35914 rm -f $ac_file
35915 mv "$tmp/config.h" $ac_file
35917 else
35918 echo "/* $configure_input */"
35919 cat "$ac_result"
35921 rm -f "$tmp/out12"
35925 esac
35927 done # for ac_tag
35930 { (exit 0); exit 0; }
35931 _ACEOF
35932 chmod +x $CONFIG_STATUS
35933 ac_clean_files=$ac_clean_files_save
35936 # configure is writing to config.log, and then calls config.status.
35937 # config.status does its own redirection, appending to config.log.
35938 # Unfortunately, on DOS this fails, as config.log is still kept open
35939 # by configure, so config.status won't be able to write to it; its
35940 # output is simply discarded. So we exec the FD to /dev/null,
35941 # effectively closing config.log, so it can be properly (re)opened and
35942 # appended to by config.status. When coming back to configure, we
35943 # need to make the FD available again.
35944 if test "$no_create" != yes; then
35945 ac_cs_success=:
35946 ac_config_status_args=
35947 test "$silent" = yes &&
35948 ac_config_status_args="$ac_config_status_args --quiet"
35949 exec 5>/dev/null
35950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35951 exec 5>>config.log
35952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35953 # would make configure fail if this is the last instruction.
35954 $ac_cs_success || { (exit 1); exit 1; }
35958 if test "x${silent}" != "xyes" ; then
35959 echo
35960 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
35961 echo " .\$7\$7.. .7\$\$7:. "
35962 echo " .\$\$:. ,\$7.7 "
35963 echo " .\$7. 7\$\$\$\$ .\$\$77 "
35964 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
35965 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
35966 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
35967 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
35968 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
35969 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
35970 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
35971 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
35972 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
35973 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
35974 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
35975 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
35976 echo " \$\$\$\$\$ \$\$\$ "
35977 echo " \$\$\$\$7. \$\$ (TM) "
35978 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
35979 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
35980 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
35981 echo
35984 { echo "$as_me:$LINENO: Package configured for: " >&5
35985 echo "$as_me: Package configured for: " >&6;}
35986 { echo "$as_me:$LINENO: OS type : $host_os" >&5
35987 echo "$as_me: OS type : $host_os" >&6;}
35988 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
35989 echo "$as_me: Host CPU : $host_cpu" >&6;}
35990 if test "${cross_compiling}" = "yes"; then
35991 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
35992 echo "$as_me: Cross Compilation = YES" >&6;}