Merge another change from team/russell/events
[asterisk-bristuff.git] / configure
blob3fe8da33e9816380bd6f56b2235f2a2980cf261e
1 #! /bin/sh
2 # From configure.ac Revision: 119826 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
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.6'
581 PACKAGE_STRING='asterisk 1.6'
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 WINARCH
687 UNAME
688 PBX_OSREV
691 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 STRIP
704 GNU_LD
705 FIND
706 COMPRESS
707 BASENAME
709 DIRNAME
712 WGET
713 RUBBER
714 KPATHSEA
715 FETCH
716 DOWNLOAD
717 SOXMIX
718 acx_pthread_config
719 PTHREAD_CC
720 PTHREAD_LIBS
721 PTHREAD_CFLAGS
722 AST_DEVMODE
723 ALSA_LIB
724 ALSA_INCLUDE
725 ALSA_DIR
726 PBX_ALSA
727 BKTR_LIB
728 BKTR_INCLUDE
729 BKTR_DIR
730 PBX_BKTR
731 CAP_LIB
732 CAP_INCLUDE
733 CAP_DIR
734 PBX_CAP
735 CURL_LIB
736 CURL_INCLUDE
737 CURL_DIR
738 PBX_CURL
739 CURSES_LIB
740 CURSES_INCLUDE
741 CURSES_DIR
742 PBX_CURSES
743 CRYPTO_LIB
744 CRYPTO_INCLUDE
745 CRYPTO_DIR
746 PBX_CRYPTO
747 FFMPEG_LIB
748 FFMPEG_INCLUDE
749 FFMPEG_DIR
750 PBX_FFMPEG
751 GSM_LIB
752 GSM_INCLUDE
753 GSM_DIR
754 PBX_GSM
755 GTK_LIB
756 GTK_INCLUDE
757 GTK_DIR
758 PBX_GTK
759 GTK2_LIB
760 GTK2_INCLUDE
761 GTK2_DIR
762 PBX_GTK2
763 GMIME_LIB
764 GMIME_INCLUDE
765 GMIME_DIR
766 PBX_GMIME
767 ICONV_LIB
768 ICONV_INCLUDE
769 ICONV_DIR
770 PBX_ICONV
771 IKSEMEL_LIB
772 IKSEMEL_INCLUDE
773 IKSEMEL_DIR
774 PBX_IKSEMEL
775 IMAP_TK_LIB
776 IMAP_TK_INCLUDE
777 IMAP_TK_DIR
778 PBX_IMAP_TK
779 ISDNNET_LIB
780 ISDNNET_INCLUDE
781 ISDNNET_DIR
782 PBX_ISDNNET
783 JACK_LIB
784 JACK_INCLUDE
785 JACK_DIR
786 PBX_JACK
787 LDAP_LIB
788 LDAP_INCLUDE
789 LDAP_DIR
790 PBX_LDAP
791 LTDL_LIB
792 LTDL_INCLUDE
793 LTDL_DIR
794 PBX_LTDL
795 LUA_LIB
796 LUA_INCLUDE
797 LUA_DIR
798 PBX_LUA
799 MISDN_LIB
800 MISDN_INCLUDE
801 MISDN_DIR
802 PBX_MISDN
803 NBS_LIB
804 NBS_INCLUDE
805 NBS_DIR
806 PBX_NBS
807 NCURSES_LIB
808 NCURSES_INCLUDE
809 NCURSES_DIR
810 PBX_NCURSES
811 NETSNMP_LIB
812 NETSNMP_INCLUDE
813 NETSNMP_DIR
814 PBX_NETSNMP
815 NEWT_LIB
816 NEWT_INCLUDE
817 NEWT_DIR
818 PBX_NEWT
819 UNIXODBC_LIB
820 UNIXODBC_INCLUDE
821 UNIXODBC_DIR
822 PBX_UNIXODBC
823 OGG_LIB
824 OGG_INCLUDE
825 OGG_DIR
826 PBX_OGG
827 OSPTK_LIB
828 OSPTK_INCLUDE
829 OSPTK_DIR
830 PBX_OSPTK
831 OSS_LIB
832 OSS_INCLUDE
833 OSS_DIR
834 PBX_OSS
835 PGSQL_LIB
836 PGSQL_INCLUDE
837 PGSQL_DIR
838 PBX_PGSQL
839 POPT_LIB
840 POPT_INCLUDE
841 POPT_DIR
842 PBX_POPT
843 PORTAUDIO_LIB
844 PORTAUDIO_INCLUDE
845 PORTAUDIO_DIR
846 PBX_PORTAUDIO
847 PRI_LIB
848 PRI_INCLUDE
849 PRI_DIR
850 PBX_PRI
851 SPANDSP_LIB
852 SPANDSP_INCLUDE
853 SPANDSP_DIR
854 PBX_SPANDSP
855 SS7_LIB
856 SS7_INCLUDE
857 SS7_DIR
858 PBX_SS7
859 PWLIB_LIB
860 PWLIB_INCLUDE
861 PWLIB_DIR
862 PBX_PWLIB
863 OPENH323_LIB
864 OPENH323_INCLUDE
865 OPENH323_DIR
866 PBX_OPENH323
867 RADIUS_LIB
868 RADIUS_INCLUDE
869 RADIUS_DIR
870 PBX_RADIUS
871 SDL_LIB
872 SDL_INCLUDE
873 SDL_DIR
874 PBX_SDL
875 SDL_IMAGE_LIB
876 SDL_IMAGE_INCLUDE
877 SDL_IMAGE_DIR
878 PBX_SDL_IMAGE
879 SACLM_LIB
880 SACLM_INCLUDE
881 SACLM_DIR
882 PBX_SACLM
883 SAEVT_LIB
884 SAEVT_INCLUDE
885 SAEVT_DIR
886 PBX_SAEVT
887 SPEEX_LIB
888 SPEEX_INCLUDE
889 SPEEX_DIR
890 PBX_SPEEX
891 SPEEXDSP_LIB
892 SPEEXDSP_INCLUDE
893 SPEEXDSP_DIR
894 PBX_SPEEXDSP
895 SQLITE_LIB
896 SQLITE_INCLUDE
897 SQLITE_DIR
898 PBX_SQLITE
899 SQLITE3_LIB
900 SQLITE3_INCLUDE
901 SQLITE3_DIR
902 PBX_SQLITE3
903 SUPPSERV_LIB
904 SUPPSERV_INCLUDE
905 SUPPSERV_DIR
906 PBX_SUPPSERV
907 OPENSSL_LIB
908 OPENSSL_INCLUDE
909 OPENSSL_DIR
910 PBX_OPENSSL
911 FREETDS_LIB
912 FREETDS_INCLUDE
913 FREETDS_DIR
914 PBX_FREETDS
915 TERMCAP_LIB
916 TERMCAP_INCLUDE
917 TERMCAP_DIR
918 PBX_TERMCAP
919 TINFO_LIB
920 TINFO_INCLUDE
921 TINFO_DIR
922 PBX_TINFO
923 TONEZONE_LIB
924 TONEZONE_INCLUDE
925 TONEZONE_DIR
926 PBX_TONEZONE
927 USB_LIB
928 USB_INCLUDE
929 USB_DIR
930 PBX_USB
931 VORBIS_LIB
932 VORBIS_INCLUDE
933 VORBIS_DIR
934 PBX_VORBIS
935 VPB_LIB
936 VPB_INCLUDE
937 VPB_DIR
938 PBX_VPB
939 X11_LIB
940 X11_INCLUDE
941 X11_DIR
942 PBX_X11
943 ZLIB_LIB
944 ZLIB_INCLUDE
945 ZLIB_DIR
946 PBX_ZLIB
947 ZAPTEL_LIB
948 ZAPTEL_INCLUDE
949 ZAPTEL_DIR
950 PBX_ZAPTEL
951 ALLOCA
952 LIBOBJS
953 POW_LIB
954 HAS_POLL
955 PBX_PTHREAD_RWLOCK_INITIALIZER
956 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
957 GC_CFLAGS
958 GC_LDFLAGS
959 AST_DECLARATION_AFTER_STATEMENT
960 AST_NO_STRICT_OVERFLOW
961 PBX_RTLD_NOLOAD
962 PBX_IP_MTU_DISCOVER
963 GSM_INTERNAL
964 PBX_MISDN_FAC_RESULT
965 PBX_MISDN_FAC_ERROR
966 CONFIG_NETSNMP
967 PG_CONFIG
968 PTLIB_CONFIG
969 PWLIBDIR
970 PWLIB_INCDIR
971 PWLIB_LIBDIR
972 PWLIB_PLATFORM
973 OPENH323DIR
974 OPENH323_INCDIR
975 OPENH323_LIBDIR
976 OPENH323_SUFFIX
977 OPENH323_BUILD
978 PBX_SPEEX_PREPROCESS
979 CONFIG_GMIME
980 PBX_ZAPTEL_VLDTMF
981 PBX_ZAPTEL_ECHOCANPARAMS
982 PBX_ZAPTEL_TRANSCODE
983 PBX_ZAPTEL_HWGAIN
984 PBX_ZAPTEL_NEONMWI
985 PBX_ZAPTEL_SIG_MTP2
986 EDITLINE_LIB
987 PBX_H323
988 PBX_IXJUSER
989 CONFIG_SDL
990 CONFIG_GTK
991 PKGCONFIG
992 CURL_CONFIG
993 LTLIBOBJS'
994 ac_subst_files=''
995 ac_precious_vars='build_alias
996 host_alias
997 target_alias
999 CFLAGS
1000 LDFLAGS
1001 LIBS
1002 CPPFLAGS
1005 CXXFLAGS
1007 CXXCPP'
1010 # Initialize some variables set by options.
1011 ac_init_help=
1012 ac_init_version=false
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047 infodir='${datarootdir}/info'
1048 htmldir='${docdir}'
1049 dvidir='${docdir}'
1050 pdfdir='${docdir}'
1051 psdir='${docdir}'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1056 ac_prev=
1057 ac_dashdash=
1058 for ac_option
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1063 ac_prev=
1064 continue
1067 case $ac_option in
1068 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069 *) ac_optarg=yes ;;
1070 esac
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1074 case $ac_dashdash$ac_option in
1076 ac_dashdash=yes ;;
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079 ac_prev=bindir ;;
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1098 -datadir | --datadir | --datadi | --datad)
1099 ac_prev=datadir ;;
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1110 -disable-* | --disable-*)
1111 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1117 eval enable_$ac_feature=no ;;
1119 -docdir | --docdir | --docdi | --doc | --do)
1120 ac_prev=docdir ;;
1121 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1122 docdir=$ac_optarg ;;
1124 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 ac_prev=dvidir ;;
1126 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1127 dvidir=$ac_optarg ;;
1129 -enable-* | --enable-*)
1130 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1136 eval enable_$ac_feature=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 ac_prev=sbindir ;;
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 | --sbi=* | --sb=*)
1285 sbindir=$ac_optarg ;;
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1290 | --sha | --sh)
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 | --sha=* | --sh=*)
1296 sharedstatedir=$ac_optarg ;;
1298 -site | --site | --sit)
1299 ac_prev=site ;;
1300 -site=* | --site=* | --sit=*)
1301 site=$ac_optarg ;;
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 ac_prev=srcdir ;;
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 verbose=yes ;;
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1326 -with-* | --with-*)
1327 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 { echo "$as_me: error: invalid package name: $ac_package" >&2
1331 { (exit 1); exit 1; }; }
1332 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1333 eval with_$ac_package=\$ac_optarg ;;
1335 -without-* | --without-*)
1336 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 { echo "$as_me: error: invalid package name: $ac_package" >&2
1340 { (exit 1); exit 1; }; }
1341 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1342 eval with_$ac_package=no ;;
1344 --x)
1345 # Obsolete; use --with-x.
1346 with_x=yes ;;
1348 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349 | --x-incl | --x-inc | --x-in | --x-i)
1350 ac_prev=x_includes ;;
1351 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353 x_includes=$ac_optarg ;;
1355 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357 ac_prev=x_libraries ;;
1358 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360 x_libraries=$ac_optarg ;;
1362 -*) { echo "$as_me: error: unrecognized option: $ac_option
1363 Try \`$0 --help' for more information." >&2
1364 { (exit 1); exit 1; }; }
1367 *=*)
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1371 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1372 { (exit 1); exit 1; }; }
1373 eval $ac_envvar=\$ac_optarg
1374 export $ac_envvar ;;
1377 # FIXME: should be removed in autoconf 3.0.
1378 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 esac
1385 done
1387 if test -n "$ac_prev"; then
1388 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389 { echo "$as_me: error: missing argument to $ac_option" >&2
1390 { (exit 1); exit 1; }; }
1393 # Be sure to have absolute directory names.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 case $ac_val in
1401 [\\/$]* | ?:[\\/]* ) continue;;
1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1403 esac
1404 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1405 { (exit 1); exit 1; }; }
1406 done
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1422 cross_compiling=yes
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429 test "$silent" = yes && exec 6>/dev/null
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 { echo "$as_me: error: Working directory cannot be determined" >&2
1436 { (exit 1); exit 1; }; }
1437 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438 { echo "$as_me: error: pwd does not report name of working directory" >&2
1439 { (exit 1); exit 1; }; }
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444 ac_srcdir_defaulted=yes
1445 # Try the directory containing this script, then the parent directory.
1446 ac_confdir=`$as_dirname -- "$0" ||
1447 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448 X"$0" : 'X\(//\)[^/]' \| \
1449 X"$0" : 'X\(//\)$' \| \
1450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1451 echo X"$0" |
1452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 s//\1/
1456 /^X\(\/\/\)[^/].*/{
1457 s//\1/
1460 /^X\(\/\/\)$/{
1461 s//\1/
1464 /^X\(\/\).*/{
1465 s//\1/
1468 s/.*/./; q'`
1469 srcdir=$ac_confdir
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 srcdir=..
1473 else
1474 ac_srcdir_defaulted=no
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1479 { (exit 1); exit 1; }; }
1481 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1482 ac_abs_confdir=`(
1483 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1484 { (exit 1); exit 1; }; }
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 System types:
1568 --build=BUILD configure for building on BUILD [guessed]
1569 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1570 _ACEOF
1573 if test -n "$ac_init_help"; then
1574 case $ac_init_help in
1575 short | recursive ) echo "Configuration of asterisk 1.6:";;
1576 esac
1577 cat <<\_ACEOF
1579 Optional Features:
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-dev-mode Turn on developer mode
1583 --disable-largefile omit support for large files
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1590 --with-execinfo=PATH use Stack Backtrace support files in PATH
1591 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1592 --with-curl=PATH use cURL files in PATH
1593 --with-curses=PATH use curses files in PATH
1594 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1595 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1596 --with-gsm=PATH use External GSM library files in PATH , use
1597 'internal' GSM otherwise
1598 --with-gtk=PATH use gtk libraries files in PATH
1599 --with-gtk2=PATH use gtk2 libraries files in PATH
1600 --with-gmime=PATH use GMime library files in PATH
1601 --with-iconv=PATH use Iconv Library files in PATH
1602 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1603 --with-imap=PATH use UW IMAP Toolkit files in PATH
1604 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1605 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1606 --with-ldap=PATH use OpenLDAP files in PATH
1607 --with-ltdl=PATH use libtool files in PATH
1608 --with-lua=PATH use Lua files in PATH
1609 --with-misdn=PATH use mISDN User Library files in PATH
1610 --with-nbs=PATH use Network Broadcast Sound files in PATH
1611 --with-ncurses=PATH use ncurses files in PATH
1612 --with-netsnmp=PATH use Net-SNMP files in PATH
1613 --with-newt=PATH use newt files in PATH
1614 --with-odbc=PATH use unixODBC files in PATH
1615 --with-ogg=PATH use OGG files in PATH
1616 --with-osptk=PATH use OSP Toolkit files in PATH
1617 --with-oss=PATH use Open Sound System files in PATH
1618 --with-postgres=PATH use PostgreSQL files in PATH
1619 --with-popt=PATH use popt files in PATH
1620 --with-portaudio=PATH use PortAudio files in PATH
1621 --with-pri=PATH use ISDN PRI files in PATH
1622 --with-spandsp=PATH use SPANDSP files in PATH
1623 --with-ss7=PATH use ISDN SS7 files in PATH
1624 --with-pwlib=PATH use PWlib files in PATH
1625 --with-h323=PATH use OpenH323 files in PATH
1626 --with-radius=PATH use Radius Client files in PATH
1627 --with-sdl=PATH use Sdl files in PATH
1628 --with-SDL_image=PATH use Sdl Image library files in PATH
1629 --with-SaClm=PATH use SAForum AIS CLM files in PATH
1630 --with-SaEvt=PATH use SAForum AIS EVT files in PATH
1631 --with-speex=PATH use Speex files in PATH
1632 --with-speexdsp=PATH use Speexdsp files in PATH
1633 --with-sqlite=PATH use SQLite files in PATH
1634 --with-sqlite3=PATH use SQLite files in PATH
1635 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1636 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1637 PATH
1638 --with-tds=PATH use FreeTDS files in PATH
1639 --with-termcap=PATH use Termcap files in PATH
1640 --with-tinfo=PATH use Term Info files in PATH
1641 --with-tonezone=PATH use tonezone files in PATH
1642 --with-usb=PATH use usb files in PATH
1643 --with-vorbis=PATH use Vorbis files in PATH
1644 --with-vpb=PATH use Voicetronix API files in PATH
1645 --with-x11=PATH use X11 support files in PATH
1646 --with-z=PATH use zlib files in PATH
1647 --with-zaptel=PATH use Zaptel files in PATH
1649 Some influential environment variables:
1650 CC C compiler command
1651 CFLAGS C compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1657 CPP C preprocessor
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 CXXCPP C++ preprocessor
1662 Use these variables to override the choices made by `configure' or to help
1663 it to find libraries and programs with nonstandard names/locations.
1665 Report bugs to <www.asterisk.org>.
1666 _ACEOF
1667 ac_status=$?
1670 if test "$ac_init_help" = "recursive"; then
1671 # If there are subdirs, report their specific --help.
1672 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1673 test -d "$ac_dir" || continue
1674 ac_builddir=.
1676 case "$ac_dir" in
1677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1680 # A ".." for each directory in $ac_dir_suffix.
1681 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1682 case $ac_top_builddir_sub in
1683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685 esac ;;
1686 esac
1687 ac_abs_top_builddir=$ac_pwd
1688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689 # for backward compatibility:
1690 ac_top_builddir=$ac_top_build_prefix
1692 case $srcdir in
1693 .) # We are building in place.
1694 ac_srcdir=.
1695 ac_top_srcdir=$ac_top_builddir_sub
1696 ac_abs_top_srcdir=$ac_pwd ;;
1697 [\\/]* | ?:[\\/]* ) # Absolute name.
1698 ac_srcdir=$srcdir$ac_dir_suffix;
1699 ac_top_srcdir=$srcdir
1700 ac_abs_top_srcdir=$srcdir ;;
1701 *) # Relative name.
1702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703 ac_top_srcdir=$ac_top_build_prefix$srcdir
1704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705 esac
1706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1708 cd "$ac_dir" || { ac_status=$?; continue; }
1709 # Check for guested configure.
1710 if test -f "$ac_srcdir/configure.gnu"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713 elif test -f "$ac_srcdir/configure"; then
1714 echo &&
1715 $SHELL "$ac_srcdir/configure" --help=recursive
1716 else
1717 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718 fi || ac_status=$?
1719 cd "$ac_pwd" || { ac_status=$?; break; }
1720 done
1723 test -n "$ac_init_help" && exit $ac_status
1724 if $ac_init_version; then
1725 cat <<\_ACEOF
1726 asterisk configure 1.6
1727 generated by GNU Autoconf 2.61
1729 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1730 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1734 "Asterisk"
1735 _ACEOF
1736 exit
1738 cat >config.log <<_ACEOF
1739 This file contains any messages produced by compilers while
1740 running configure, to aid debugging if configure makes a mistake.
1742 It was created by asterisk $as_me 1.6, which was
1743 generated by GNU Autoconf 2.61. Invocation command line was
1745 $ $0 $@
1747 _ACEOF
1748 exec 5>>config.log
1750 cat <<_ASUNAME
1751 ## --------- ##
1752 ## Platform. ##
1753 ## --------- ##
1755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1756 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1757 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1758 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1759 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1762 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1765 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1767 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1768 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1769 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1770 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772 _ASUNAME
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 echo "PATH: $as_dir"
1780 done
1781 IFS=$as_save_IFS
1783 } >&5
1785 cat >&5 <<_ACEOF
1788 ## ----------- ##
1789 ## Core tests. ##
1790 ## ----------- ##
1792 _ACEOF
1795 # Keep a trace of the command line.
1796 # Strip out --no-create and --no-recursion so they do not pile up.
1797 # Strip out --silent because we don't want to record it for future runs.
1798 # Also quote any args containing shell meta-characters.
1799 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_configure_args=
1801 ac_configure_args0=
1802 ac_configure_args1=
1803 ac_must_keep_next=false
1804 for ac_pass in 1 2
1806 for ac_arg
1808 case $ac_arg in
1809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1811 | -silent | --silent | --silen | --sile | --sil)
1812 continue ;;
1813 *\'*)
1814 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 esac
1816 case $ac_pass in
1817 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1819 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1820 if test $ac_must_keep_next = true; then
1821 ac_must_keep_next=false # Got value, back to normal.
1822 else
1823 case $ac_arg in
1824 *=* | --config-cache | -C | -disable-* | --disable-* \
1825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1827 | -with-* | --with-* | -without-* | --without-* | --x)
1828 case "$ac_configure_args0 " in
1829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 esac
1832 -* ) ac_must_keep_next=true ;;
1833 esac
1835 ac_configure_args="$ac_configure_args '$ac_arg'"
1837 esac
1838 done
1839 done
1840 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1841 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1843 # When interrupted or exit'd, cleanup temporary files, and complete
1844 # config.log. We remove comments because anyway the quotes in there
1845 # would cause problems or look ugly.
1846 # WARNING: Use '\'' to represent an apostrophe within the trap.
1847 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1848 trap 'exit_status=$?
1849 # Save into config.log some information that might help in debugging.
1851 echo
1853 cat <<\_ASBOX
1854 ## ---------------- ##
1855 ## Cache variables. ##
1856 ## ---------------- ##
1857 _ASBOX
1858 echo
1859 # The following way of writing the cache mishandles newlines in values,
1861 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in #(
1864 *${as_nl}*)
1865 case $ac_var in #(
1866 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1867 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1868 esac
1869 case $ac_var in #(
1870 _ | IFS | as_nl) ;; #(
1871 *) $as_unset $ac_var ;;
1872 esac ;;
1873 esac
1874 done
1875 (set) 2>&1 |
1876 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877 *${as_nl}ac_space=\ *)
1878 sed -n \
1879 "s/'\''/'\''\\\\'\'''\''/g;
1880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881 ;; #(
1883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885 esac |
1886 sort
1888 echo
1890 cat <<\_ASBOX
1891 ## ----------------- ##
1892 ## Output variables. ##
1893 ## ----------------- ##
1894 _ASBOX
1895 echo
1896 for ac_var in $ac_subst_vars
1898 eval ac_val=\$$ac_var
1899 case $ac_val in
1900 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 esac
1902 echo "$ac_var='\''$ac_val'\''"
1903 done | sort
1904 echo
1906 if test -n "$ac_subst_files"; then
1907 cat <<\_ASBOX
1908 ## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##
1911 _ASBOX
1912 echo
1913 for ac_var in $ac_subst_files
1915 eval ac_val=\$$ac_var
1916 case $ac_val in
1917 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 esac
1919 echo "$ac_var='\''$ac_val'\''"
1920 done | sort
1921 echo
1924 if test -s confdefs.h; then
1925 cat <<\_ASBOX
1926 ## ----------- ##
1927 ## confdefs.h. ##
1928 ## ----------- ##
1929 _ASBOX
1930 echo
1931 cat confdefs.h
1932 echo
1934 test "$ac_signal" != 0 &&
1935 echo "$as_me: caught signal $ac_signal"
1936 echo "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1944 done
1945 ac_signal=0
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1950 # Predefined preprocessor variables.
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_NAME "$PACKAGE_NAME"
1954 _ACEOF
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959 _ACEOF
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 _ACEOF
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_STRING "$PACKAGE_STRING"
1969 _ACEOF
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 _ACEOF
1977 # Let the site file select an alternate cache file if it wants to.
1978 # Prefer explicitly selected file to automatically selected ones.
1979 if test -n "$CONFIG_SITE"; then
1980 set x "$CONFIG_SITE"
1981 elif test "x$prefix" != xNONE; then
1982 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1983 else
1984 set x "$ac_default_prefix/share/config.site" \
1985 "$ac_default_prefix/etc/config.site"
1987 shift
1988 for ac_site_file
1990 if test -r "$ac_site_file"; then
1991 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1992 echo "$as_me: loading site script $ac_site_file" >&6;}
1993 sed 's/^/| /' "$ac_site_file" >&5
1994 . "$ac_site_file"
1996 done
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special
2000 # files actually), so we avoid doing that.
2001 if test -f "$cache_file"; then
2002 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2003 echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2009 else
2010 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2011 echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2015 ac_header_list="$ac_header_list utime.h"
2016 # Check that the precious variables saved in the cache have kept the same
2017 # value.
2018 ac_cache_corrupted=false
2019 for ac_var in $ac_precious_vars; do
2020 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2021 eval ac_new_set=\$ac_env_${ac_var}_set
2022 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2023 eval ac_new_val=\$ac_env_${ac_var}_value
2024 case $ac_old_set,$ac_new_set in
2025 set,)
2026 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2027 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2028 ac_cache_corrupted=: ;;
2029 ,set)
2030 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2031 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2032 ac_cache_corrupted=: ;;
2033 ,);;
2035 if test "x$ac_old_val" != "x$ac_new_val"; then
2036 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2037 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2038 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2039 echo "$as_me: former value: $ac_old_val" >&2;}
2040 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2041 echo "$as_me: current value: $ac_new_val" >&2;}
2042 ac_cache_corrupted=:
2043 fi;;
2044 esac
2045 # Pass precious variables to config.status.
2046 if test "$ac_new_set" = set; then
2047 case $ac_new_val in
2048 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 *) ac_arg=$ac_var=$ac_new_val ;;
2050 esac
2051 case " $ac_configure_args " in
2052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2053 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054 esac
2056 done
2057 if $ac_cache_corrupted; then
2058 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2059 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2060 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2061 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2062 { (exit 1); exit 1; }; }
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 # cross-compile macros
2098 ac_aux_dir=
2099 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100 if test -f "$ac_dir/install-sh"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install-sh -c"
2103 break
2104 elif test -f "$ac_dir/install.sh"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install.sh -c"
2107 break
2108 elif test -f "$ac_dir/shtool"; then
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/shtool install -c"
2111 break
2113 done
2114 if test -z "$ac_aux_dir"; then
2115 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2117 { (exit 1); exit 1; }; }
2120 # These three variables are undocumented and unsupported,
2121 # and are intended to be withdrawn in a future Autoconf release.
2122 # They can cause serious problems if a builder's source tree is in a directory
2123 # whose full name contains unusual characters.
2124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2153 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2156 *-*-*) ;;
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2160 esac
2161 build=$ac_cv_build
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_build
2164 shift
2165 build_cpu=$1
2166 build_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 build_os=$*
2171 IFS=$ac_save_IFS
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175 { echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2182 else
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2190 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6; }
2192 case $ac_cv_host in
2193 *-*-*) ;;
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2197 esac
2198 host=$ac_cv_host
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_host
2201 shift
2202 host_cpu=$1
2203 host_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 host_os=$*
2208 IFS=$ac_save_IFS
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2213 # check existence of the package
2216 # specify output header file
2217 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2224 cat >>confdefs.h <<\_ACEOF
2225 #define _GNU_SOURCE 1
2226 _ACEOF
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2256 done
2257 done
2258 IFS=$as_save_IFS
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2273 if test -z "$ac_cv_prog_CC"; then
2274 ac_ct_CC=$CC
2275 # Extract the first word of "gcc", so it can be a program name with args.
2276 set dummy gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2311 if test "x$ac_ct_CC" = x; then
2312 CC=""
2313 else
2314 case $cross_compiling:$ac_tool_warned in
2315 yes:)
2316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet. If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&5
2319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2322 ac_tool_warned=yes ;;
2323 esac
2324 CC=$ac_ct_CC
2326 else
2327 CC="$ac_cv_prog_CC"
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}cc; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="${ac_tool_prefix}cc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2359 CC=$ac_cv_prog_CC
2360 if test -n "$CC"; then
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2405 shift
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2410 shift
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418 { echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6; }
2420 else
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 for ac_prog in cl.exe
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2452 done
2453 done
2454 IFS=$as_save_IFS
2458 CC=$ac_cv_prog_CC
2459 if test -n "$CC"; then
2460 { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2462 else
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2468 test -n "$CC" && break
2469 done
2471 if test -z "$CC"; then
2472 ac_ct_CC=$CC
2473 for ac_prog in cl.exe
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2512 test -n "$ac_ct_CC" && break
2513 done
2515 if test "x$ac_ct_CC" = x; then
2516 CC=""
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528 CC=$ac_ct_CC
2535 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: no acceptable C compiler found in \$PATH
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO: checking for C compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (ac_try="$ac_compiler --version >&5"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compiler --version >&5") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (ac_try="$ac_compiler -v >&5"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compiler -v >&5") 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (ac_try="$ac_compiler -V >&5"
2565 case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compiler -V >&5") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2583 main ()
2587 return 0;
2589 _ACEOF
2590 ac_clean_files_save=$ac_clean_files
2591 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2592 # Try to create an executable without -o first, disregard a.out.
2593 # It will help us diagnose broken compilers, and finding out an intuition
2594 # of exeext.
2595 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2596 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2597 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2599 # List of possible output files, starting from the most likely.
2600 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2601 # only as a last resort. b.out is created by i960 compilers.
2602 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2604 # The IRIX 6 linker writes into existing files which may not be
2605 # executable, retaining their permissions. Remove them first so a
2606 # subsequent execution test works.
2607 ac_rmfiles=
2608 for ac_file in $ac_files
2610 case $ac_file in
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2613 esac
2614 done
2615 rm -f $ac_rmfiles
2617 if { (ac_try="$ac_link_default"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_link_default") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2630 # so that the user can short-circuit this test for compilers unknown to
2631 # Autoconf.
2632 for ac_file in $ac_files ''
2634 test -f "$ac_file" || continue
2635 case $ac_file in
2636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2638 [ab].out )
2639 # We found the default executable, but exeext='' is most
2640 # certainly right.
2641 break;;
2642 *.* )
2643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2644 then :; else
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647 # We set ac_cv_exeext here because the later test for it is not
2648 # safe: cross compilers may not add the suffix if given an `-o'
2649 # argument, so we may need to know it at that point already.
2650 # Even if this section looks crufty: it has the advantage of
2651 # actually working.
2652 break;;
2654 break;;
2655 esac
2656 done
2657 test "$ac_cv_exeext" = no && ac_cv_exeext=
2659 else
2660 ac_file=''
2663 { echo "$as_me:$LINENO: result: $ac_file" >&5
2664 echo "${ECHO_T}$ac_file" >&6; }
2665 if test -z "$ac_file"; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: C compiler cannot create executables
2672 See \`config.log' for more details." >&2;}
2673 { (exit 77); exit 77; }; }
2676 ac_exeext=$ac_cv_exeext
2678 # Check that the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try='./$ac_file'
2686 { (case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_try") 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 cross_compiling=no
2696 else
2697 if test "$cross_compiling" = maybe; then
2698 cross_compiling=yes
2699 else
2700 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot run C compiled programs.
2704 If you meant to cross compile, use \`--host'.
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2710 { echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6; }
2713 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2714 ac_clean_files=$ac_clean_files_save
2715 # Check that the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2719 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6; }
2722 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2723 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2724 if { (ac_try="$ac_link"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_link") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 break;;
2744 * ) break;;
2745 esac
2746 done
2747 else
2748 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2755 rm -f conftest$ac_cv_exeext
2756 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2757 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2759 rm -f conftest.$ac_ext
2760 EXEEXT=$ac_cv_exeext
2761 ac_exeext=$EXEEXT
2762 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2763 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2764 if test "${ac_cv_objext+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.o conftest.obj
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; then
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2795 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798 break;;
2799 esac
2800 done
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815 echo "${ECHO_T}$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2817 ac_objext=$OBJEXT
2818 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2820 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 main ()
2833 #ifndef __GNUC__
2834 choke me
2835 #endif
2838 return 0;
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2849 ac_status=$?
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2858 ac_compiler_gnu=yes
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 ac_compiler_gnu=no
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2872 GCC=`test $ac_compiler_gnu = yes && echo yes`
2873 ac_test_CFLAGS=${CFLAGS+set}
2874 ac_save_CFLAGS=$CFLAGS
2875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 ac_save_c_werror_flag=$ac_c_werror_flag
2881 ac_c_werror_flag=yes
2882 ac_cv_prog_cc_g=no
2883 CFLAGS="-g"
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2892 main ()
2896 return 0;
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2916 ac_cv_prog_cc_g=yes
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 CFLAGS=""
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2930 main ()
2934 return 0;
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2969 main ()
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2993 ac_cv_prog_cc_g=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_c_werror_flag=$ac_save_c_werror_flag
3010 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3012 if test "$ac_test_CFLAGS" = set; then
3013 CFLAGS=$ac_save_CFLAGS
3014 elif test $ac_cv_prog_cc_g = yes; then
3015 if test "$GCC" = yes; then
3016 CFLAGS="-g -O2"
3017 else
3018 CFLAGS="-g"
3020 else
3021 if test "$GCC" = yes; then
3022 CFLAGS="-O2"
3023 else
3024 CFLAGS=
3027 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3028 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cc_c89+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 ac_cv_prog_cc_c89=no
3033 ac_save_CC=$CC
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3040 #include <stdarg.h>
3041 #include <stdio.h>
3042 #include <sys/types.h>
3043 #include <sys/stat.h>
3044 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045 struct buf { int x; };
3046 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047 static char *e (p, i)
3048 char **p;
3049 int i;
3051 return p[i];
3053 static char *f (char * (*g) (char **, int), char **p, ...)
3055 char *s;
3056 va_list v;
3057 va_start (v,p);
3058 s = g (p, va_arg (v,int));
3059 va_end (v);
3060 return s;
3063 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3064 function prototypes and stuff, but not '\xHH' hex character constants.
3065 These don't provoke an error unfortunately, instead are silently treated
3066 as 'x'. The following induces an error, until -std is added to get
3067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3068 array size at least. It's necessary to write '\x00'==0 to get something
3069 that's true only with -std. */
3070 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3072 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3073 inside strings and character constants. */
3074 #define FOO(x) 'x'
3075 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3077 int test (int i, double x);
3078 struct s1 {int (*f) (int a);};
3079 struct s2 {int (*f) (double a);};
3080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3081 int argc;
3082 char **argv;
3084 main ()
3086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3088 return 0;
3090 _ACEOF
3091 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cc_c89=$ac_arg
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f core conftest.err conftest.$ac_objext
3121 test "x$ac_cv_prog_cc_c89" != "xno" && break
3122 done
3123 rm -f conftest.$ac_ext
3124 CC=$ac_save_CC
3127 # AC_CACHE_VAL
3128 case "x$ac_cv_prog_cc_c89" in
3130 { echo "$as_me:$LINENO: result: none needed" >&5
3131 echo "${ECHO_T}none needed" >&6; } ;;
3132 xno)
3133 { echo "$as_me:$LINENO: result: unsupported" >&5
3134 echo "${ECHO_T}unsupported" >&6; } ;;
3136 CC="$CC $ac_cv_prog_cc_c89"
3137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3139 esac
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3156 # On Suns, sometimes $CPP names a directory.
3157 if test -n "$CPP" && test -d "$CPP"; then
3158 CPP=
3160 if test -z "$CPP"; then
3161 if test "${ac_cv_prog_CPP+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 # Double quotes because CPP needs to be expanded
3165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3167 ac_preproc_ok=false
3168 for ac_c_preproc_warn_flag in '' yes
3170 # Use a header file that comes with gcc, so configuring glibc
3171 # with a fresh cross-compiler works.
3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173 # <limits.h> exists even on freestanding compilers.
3174 # On the NeXT, cc -E runs the code through the compiler's parser,
3175 # not just through cpp. "Syntax error" is here to catch this case.
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182 #ifdef __STDC__
3183 # include <limits.h>
3184 #else
3185 # include <assert.h>
3186 #endif
3187 Syntax error
3188 _ACEOF
3189 if { (ac_try="$ac_cpp conftest.$ac_ext"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null && {
3202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 }; then
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 # Broken: fails on valid input.
3211 continue
3214 rm -f conftest.err conftest.$ac_ext
3216 # OK, works on sane cases. Now check whether nonexistent headers
3217 # can be detected and how.
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <ac_nonexistent.h>
3225 _ACEOF
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null && {
3239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 }; then
3242 # Broken: success on invalid input.
3243 continue
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 # Passes both tests.
3249 ac_preproc_ok=:
3250 break
3253 rm -f conftest.err conftest.$ac_ext
3255 done
3256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257 rm -f conftest.err conftest.$ac_ext
3258 if $ac_preproc_ok; then
3259 break
3262 done
3263 ac_cv_prog_CPP=$CPP
3266 CPP=$ac_cv_prog_CPP
3267 else
3268 ac_cv_prog_CPP=$CPP
3270 { echo "$as_me:$LINENO: result: $CPP" >&5
3271 echo "${ECHO_T}$CPP" >&6; }
3272 ac_preproc_ok=false
3273 for ac_c_preproc_warn_flag in '' yes
3275 # Use a header file that comes with gcc, so configuring glibc
3276 # with a fresh cross-compiler works.
3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3278 # <limits.h> exists even on freestanding compilers.
3279 # On the NeXT, cc -E runs the code through the compiler's parser,
3280 # not just through cpp. "Syntax error" is here to catch this case.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #ifdef __STDC__
3288 # include <limits.h>
3289 #else
3290 # include <assert.h>
3291 #endif
3292 Syntax error
3293 _ACEOF
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null && {
3307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3309 }; then
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Broken: fails on valid input.
3316 continue
3319 rm -f conftest.err conftest.$ac_ext
3321 # OK, works on sane cases. Now check whether nonexistent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3330 _ACEOF
3331 if { (ac_try="$ac_cpp conftest.$ac_ext"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null && {
3344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 }; then
3347 # Broken: success on invalid input.
3348 continue
3349 else
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 # Passes both tests.
3354 ac_preproc_ok=:
3355 break
3358 rm -f conftest.err conftest.$ac_ext
3360 done
3361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3362 rm -f conftest.err conftest.$ac_ext
3363 if $ac_preproc_ok; then
3365 else
3366 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3369 See \`config.log' for more details." >&2;}
3370 { (exit 1); exit 1; }; }
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3381 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 # Extract the first word of "grep ggrep" to use in msg output
3386 if test -z "$GREP"; then
3387 set dummy grep ggrep; ac_prog_name=$2
3388 if test "${ac_cv_path_GREP+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 ac_path_GREP_found=false
3392 # Loop through the user's path and test for each of PROGNAME-LIST
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_prog in grep ggrep; do
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3401 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3402 # Check for GNU ac_path_GREP and select it if it is found.
3403 # Check for GNU $ac_path_GREP
3404 case `"$ac_path_GREP" --version 2>&1` in
3405 *GNU*)
3406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3408 ac_count=0
3409 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3410 while :
3412 cat "conftest.in" "conftest.in" >"conftest.tmp"
3413 mv "conftest.tmp" "conftest.in"
3414 cp "conftest.in" "conftest.nl"
3415 echo 'GREP' >> "conftest.nl"
3416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3418 ac_count=`expr $ac_count + 1`
3419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3420 # Best one so far, save it but keep looking for a better one
3421 ac_cv_path_GREP="$ac_path_GREP"
3422 ac_path_GREP_max=$ac_count
3424 # 10*(2^10) chars as input seems more than enough
3425 test $ac_count -gt 10 && break
3426 done
3427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3428 esac
3431 $ac_path_GREP_found && break 3
3432 done
3433 done
3435 done
3436 IFS=$as_save_IFS
3441 GREP="$ac_cv_path_GREP"
3442 if test -z "$GREP"; then
3443 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3444 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3445 { (exit 1); exit 1; }; }
3448 else
3449 ac_cv_path_GREP=$GREP
3454 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3455 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3456 GREP="$ac_cv_path_GREP"
3459 { echo "$as_me:$LINENO: checking for egrep" >&5
3460 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3461 if test "${ac_cv_path_EGREP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3465 then ac_cv_path_EGREP="$GREP -E"
3466 else
3467 # Extract the first word of "egrep" to use in msg output
3468 if test -z "$EGREP"; then
3469 set dummy egrep; ac_prog_name=$2
3470 if test "${ac_cv_path_EGREP+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 ac_path_EGREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in egrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3484 # Check for GNU ac_path_EGREP and select it if it is found.
3485 # Check for GNU $ac_path_EGREP
3486 case `"$ac_path_EGREP" --version 2>&1` in
3487 *GNU*)
3488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3490 ac_count=0
3491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3492 while :
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 echo 'EGREP' >> "conftest.nl"
3498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_EGREP="$ac_path_EGREP"
3504 ac_path_EGREP_max=$ac_count
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3508 done
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510 esac
3513 $ac_path_EGREP_found && break 3
3514 done
3515 done
3517 done
3518 IFS=$as_save_IFS
3523 EGREP="$ac_cv_path_EGREP"
3524 if test -z "$EGREP"; then
3525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527 { (exit 1); exit 1; }; }
3530 else
3531 ac_cv_path_EGREP=$EGREP
3537 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3538 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3539 EGREP="$ac_cv_path_EGREP"
3543 { echo "$as_me:$LINENO: checking for AIX" >&5
3544 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #ifdef _AIX
3553 #endif
3555 _ACEOF
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "yes" >/dev/null 2>&1; then
3558 { echo "$as_me:$LINENO: result: yes" >&5
3559 echo "${ECHO_T}yes" >&6; }
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _ALL_SOURCE 1
3562 _ACEOF
3564 else
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3568 rm -f conftest*
3571 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3573 if test "${ac_cv_header_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <stdlib.h>
3583 #include <stdarg.h>
3584 #include <string.h>
3585 #include <float.h>
3588 main ()
3592 return 0;
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_compile") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest.$ac_objext; then
3612 ac_cv_header_stdc=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 if test $ac_cv_header_stdc = yes; then
3623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <string.h>
3632 _ACEOF
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "memchr" >/dev/null 2>&1; then
3636 else
3637 ac_cv_header_stdc=no
3639 rm -f conftest*
3643 if test $ac_cv_header_stdc = yes; then
3644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <stdlib.h>
3653 _ACEOF
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 $EGREP "free" >/dev/null 2>&1; then
3657 else
3658 ac_cv_header_stdc=no
3660 rm -f conftest*
3664 if test $ac_cv_header_stdc = yes; then
3665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3666 if test "$cross_compiling" = yes; then
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 #include <ctype.h>
3676 #include <stdlib.h>
3677 #if ((' ' & 0x0FF) == 0x020)
3678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3680 #else
3681 # define ISLOWER(c) \
3682 (('a' <= (c) && (c) <= 'i') \
3683 || ('j' <= (c) && (c) <= 'r') \
3684 || ('s' <= (c) && (c) <= 'z'))
3685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3686 #endif
3688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3690 main ()
3692 int i;
3693 for (i = 0; i < 256; i++)
3694 if (XOR (islower (i), ISLOWER (i))
3695 || toupper (i) != TOUPPER (i))
3696 return 2;
3697 return 0;
3699 _ACEOF
3700 rm -f conftest$ac_exeext
3701 if { (ac_try="$ac_link"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711 { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_try") 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3721 else
3722 echo "$as_me: program exited with status $ac_status" >&5
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 ( exit $ac_status )
3727 ac_cv_header_stdc=no
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3735 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3736 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3737 if test $ac_cv_header_stdc = yes; then
3739 cat >>confdefs.h <<\_ACEOF
3740 #define STDC_HEADERS 1
3741 _ACEOF
3745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3756 inttypes.h stdint.h unistd.h
3758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 $ac_includes_default
3772 #include <$ac_header>
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 eval "$as_ac_Header=yes"
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 eval "$as_ac_Header=no"
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_res=`eval echo '${'$as_ac_Header'}'`
3802 { echo "$as_me:$LINENO: result: $ac_res" >&5
3803 echo "${ECHO_T}$ac_res" >&6; }
3804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3805 cat >>confdefs.h <<_ACEOF
3806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3807 _ACEOF
3811 done
3814 if test "${ac_cv_header_minix_config_h+set}" = set; then
3815 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3816 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3817 if test "${ac_cv_header_minix_config_h+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3821 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3822 else
3823 # Is the header compilable?
3824 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3825 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3833 #include <minix/config.h>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 ac_header_compiler=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_header_compiler=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3862 echo "${ECHO_T}$ac_header_compiler" >&6; }
3864 # Is the header present?
3865 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3866 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <minix/config.h>
3874 _ACEOF
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } >/dev/null && {
3888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889 test ! -s conftest.err
3890 }; then
3891 ac_header_preproc=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_header_preproc=no
3899 rm -f conftest.err conftest.$ac_ext
3900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3901 echo "${ECHO_T}$ac_header_preproc" >&6; }
3903 # So? What about this header?
3904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3905 yes:no: )
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3907 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3909 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3910 ac_header_preproc=yes
3912 no:yes:* )
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3914 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3916 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3918 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3920 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3921 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3922 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3924 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3925 ( cat <<\_ASBOX
3926 ## ------------------------------- ##
3927 ## Report this to www.asterisk.org ##
3928 ## ------------------------------- ##
3929 _ASBOX
3930 ) | sed "s/^/$as_me: WARNING: /" >&2
3932 esac
3933 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3934 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3935 if test "${ac_cv_header_minix_config_h+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 ac_cv_header_minix_config_h=$ac_header_preproc
3940 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3941 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3944 if test $ac_cv_header_minix_config_h = yes; then
3945 MINIX=yes
3946 else
3947 MINIX=
3951 if test "$MINIX" = yes; then
3953 cat >>confdefs.h <<\_ACEOF
3954 #define _POSIX_SOURCE 1
3955 _ACEOF
3958 cat >>confdefs.h <<\_ACEOF
3959 #define _POSIX_1_SOURCE 2
3960 _ACEOF
3963 cat >>confdefs.h <<\_ACEOF
3964 #define _MINIX 1
3965 _ACEOF
3979 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3980 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3981 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3991 # define __EXTENSIONS__ 1
3992 $ac_includes_default
3994 main ()
3998 return 0;
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest.$ac_objext; then
4018 ac_cv_safe_to_define___extensions__=yes
4019 else
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ac_cv_safe_to_define___extensions__=no
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4029 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4030 test $ac_cv_safe_to_define___extensions__ = yes &&
4031 cat >>confdefs.h <<\_ACEOF
4032 #define __EXTENSIONS__ 1
4033 _ACEOF
4035 cat >>confdefs.h <<\_ACEOF
4036 #define _POSIX_PTHREAD_SEMANTICS 1
4037 _ACEOF
4039 cat >>confdefs.h <<\_ACEOF
4040 #define _TANDEM_SOURCE 1
4041 _ACEOF
4043 # note- does not work on FreeBSD
4045 case "${host_os}" in
4046 freebsd*)
4047 ac_default_prefix=/usr/local
4048 CPPFLAGS=-I/usr/local/include
4049 LDFLAGS=-L/usr/local/lib
4053 ac_default_prefix=/usr
4054 if test ${sysconfdir} = '${prefix}/etc'; then
4055 sysconfdir=/etc
4057 if test ${mandir} = '${prefix}/man'; then
4058 mandir=/usr/share/man
4061 esac
4063 if test ${localstatedir} = '${prefix}/var'; then
4064 localstatedir=/var
4067 BUILD_PLATFORM=${build}
4068 BUILD_CPU=${build_cpu}
4069 BUILD_VENDOR=${build_vendor}
4070 BUILD_OS=${build_os}
4077 HOST_PLATFORM=${host}
4078 HOST_CPU=${host_cpu}
4079 HOST_VENDOR=${host_vendor}
4080 HOST_OS=${host_os}
4087 WINARCH=0
4089 case "${host_os}" in
4090 freebsd*)
4091 OSARCH=FreeBSD
4093 netbsd*)
4094 OSARCH=NetBSD
4096 openbsd*)
4097 OSARCH=OpenBSD
4099 solaris*)
4100 OSARCH=SunOS
4102 mingw32)
4103 OSARCH=mingw32
4104 WINARCH=1
4106 cygwin)
4107 OSARCH=cygwin
4108 WINARCH=1
4111 OSARCH=${host_os}
4113 esac
4118 # check for uname
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}uname; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_UNAME+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 case $UNAME in
4128 [\\/]* | ?:[\\/]*)
4129 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4143 done
4144 done
4145 IFS=$as_save_IFS
4148 esac
4150 UNAME=$ac_cv_path_UNAME
4151 if test -n "$UNAME"; then
4152 { echo "$as_me:$LINENO: result: $UNAME" >&5
4153 echo "${ECHO_T}$UNAME" >&6; }
4154 else
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4161 if test -z "$ac_cv_path_UNAME"; then
4162 ac_pt_UNAME=$UNAME
4163 # Extract the first word of "uname", so it can be a program name with args.
4164 set dummy uname; ac_word=$2
4165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 case $ac_pt_UNAME in
4171 [\\/]* | ?:[\\/]*)
4172 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4188 IFS=$as_save_IFS
4191 esac
4193 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4194 if test -n "$ac_pt_UNAME"; then
4195 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4196 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4202 if test "x$ac_pt_UNAME" = x; then
4203 UNAME="No"
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4208 whose name does not start with the host triplet. If you think this
4209 configuration is useful to you, please write to autoconf@gnu.org." >&5
4210 echo "$as_me: 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." >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 UNAME=$ac_pt_UNAME
4217 else
4218 UNAME="$ac_cv_path_UNAME"
4221 if test ! x"${UNAME}" = xNo; then
4222 PBX_OSREV=$(${UNAME} -r)
4232 # cross-compile checks
4233 if test "${cross_compiling}" = "yes";
4234 then
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4257 done
4258 done
4259 IFS=$as_save_IFS
4263 CC=$ac_cv_prog_CC
4264 if test -n "$CC"; then
4265 { echo "$as_me:$LINENO: result: $CC" >&5
4266 echo "${ECHO_T}$CC" >&6; }
4267 else
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4274 if test -z "$ac_cv_prog_CC"; then
4275 ac_ct_CC=$CC
4276 # Extract the first word of "gcc", so it can be a program name with args.
4277 set dummy gcc; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 if test -n "$ac_ct_CC"; then
4284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_ac_ct_CC="gcc"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4304 if test -n "$ac_ct_CC"; then
4305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4306 echo "${ECHO_T}$ac_ct_CC" >&6; }
4307 else
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4312 if test "x$ac_ct_CC" = x; then
4313 CC=":"
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316 yes:)
4317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&5
4320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4321 whose name does not start with the host triplet. If you think this
4322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4323 ac_tool_warned=yes ;;
4324 esac
4325 CC=$ac_ct_CC
4327 else
4328 CC="$ac_cv_prog_CC"
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4333 set dummy ${ac_tool_prefix}g++; ac_word=$2
4334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4336 if test "${ac_cv_prog_CXX+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 if test -n "$CXX"; then
4340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4359 CXX=$ac_cv_prog_CXX
4360 if test -n "$CXX"; then
4361 { echo "$as_me:$LINENO: result: $CXX" >&5
4362 echo "${ECHO_T}$CXX" >&6; }
4363 else
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4370 if test -z "$ac_cv_prog_CXX"; then
4371 ac_ct_CXX=$CXX
4372 # Extract the first word of "g++", so it can be a program name with args.
4373 set dummy g++; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$ac_ct_CXX"; then
4380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_ac_ct_CXX="g++"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4400 if test -n "$ac_ct_CXX"; then
4401 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4402 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4403 else
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4408 if test "x$ac_ct_CXX" = x; then
4409 CXX=":"
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412 yes:)
4413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&5
4416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4417 whose name does not start with the host triplet. If you think this
4418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4419 ac_tool_warned=yes ;;
4420 esac
4421 CXX=$ac_ct_CXX
4423 else
4424 CXX="$ac_cv_prog_CXX"
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}ld; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_LD+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$LD"; then
4436 ac_cv_prog_LD="$LD" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_LD="${ac_tool_prefix}ld"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 LD=$ac_cv_prog_LD
4456 if test -n "$LD"; then
4457 { echo "$as_me:$LINENO: result: $LD" >&5
4458 echo "${ECHO_T}$LD" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4466 if test -z "$ac_cv_prog_LD"; then
4467 ac_ct_LD=$LD
4468 # Extract the first word of "ld", so it can be a program name with args.
4469 set dummy ld; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test -n "$ac_ct_LD"; then
4476 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_ac_ct_LD="ld"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4496 if test -n "$ac_ct_LD"; then
4497 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4498 echo "${ECHO_T}$ac_ct_LD" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4504 if test "x$ac_ct_LD" = x; then
4505 LD=":"
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&5
4512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4513 whose name does not start with the host triplet. If you think this
4514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 LD=$ac_ct_LD
4519 else
4520 LD="$ac_cv_prog_LD"
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_RANLIB+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$RANLIB"; then
4532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4545 done
4546 done
4547 IFS=$as_save_IFS
4551 RANLIB=$ac_cv_prog_RANLIB
4552 if test -n "$RANLIB"; then
4553 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4554 echo "${ECHO_T}$RANLIB" >&6; }
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4562 if test -z "$ac_cv_prog_RANLIB"; then
4563 ac_ct_RANLIB=$RANLIB
4564 # Extract the first word of "ranlib", so it can be a program name with args.
4565 set dummy ranlib; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$ac_ct_RANLIB"; then
4572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_ac_ct_RANLIB="ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4592 if test -n "$ac_ct_RANLIB"; then
4593 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4594 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4595 else
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4600 if test "x$ac_ct_RANLIB" = x; then
4601 RANLIB=":"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { echo "$as_me:$LINENO: 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." >&5
4608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4609 whose name does not start with the host triplet. If you think this
4610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 RANLIB=$ac_ct_RANLIB
4615 else
4616 RANLIB="$ac_cv_prog_RANLIB"
4621 # Checks for programs.
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4698 echo "${ECHO_T}$ac_ct_CC" >&6; }
4699 else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&5
4712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4719 else
4720 CC="$ac_cv_prog_CC"
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4787 ac_cv_prog_CC="cc"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { echo "$as_me:$LINENO: result: $CC" >&5
4812 echo "${ECHO_T}$CC" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { echo "$as_me:$LINENO: result: $CC" >&5
4854 echo "${ECHO_T}$CC" >&6; }
4855 else
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 test -n "$CC" && break
4862 done
4864 if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4898 echo "${ECHO_T}$ac_ct_CC" >&6; }
4899 else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 test -n "$ac_ct_CC" && break
4906 done
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4914 whose name does not start with the host triplet. If you think this
4915 configuration is useful to you, please write to autoconf@gnu.org." >&5
4916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4917 whose name does not start with the host triplet. If you think this
4918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 CC=$ac_ct_CC
4928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." >&5
4930 echo "$as_me: error: no acceptable C compiler found in \$PATH
4931 See \`config.log' for more details." >&2;}
4932 { (exit 1); exit 1; }; }
4934 # Provide some information about the compiler.
4935 echo "$as_me:$LINENO: checking for C compiler version" >&5
4936 ac_compiler=`set X $ac_compile; echo $2`
4937 { (ac_try="$ac_compiler --version >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_compiler --version >&5") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }
4947 { (ac_try="$ac_compiler -v >&5"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compiler -v >&5") 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }
4957 { (ac_try="$ac_compiler -V >&5"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compiler -V >&5") 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }
4968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 main ()
4983 #ifndef __GNUC__
4984 choke me
4985 #endif
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_compiler_gnu=yes
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_compiler_gnu=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5022 GCC=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_cc_g+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5042 main ()
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_prog_cc_g=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 CFLAGS=""
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5080 main ()
5084 return 0;
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_compile") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest.$ac_objext; then
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_c_werror_flag=$ac_save_c_werror_flag
5110 CFLAGS="-g"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5119 main ()
5123 return 0;
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5143 ac_cv_prog_cc_g=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 ac_c_werror_flag=$ac_save_c_werror_flag
5160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5162 if test "$ac_test_CFLAGS" = set; then
5163 CFLAGS=$ac_save_CFLAGS
5164 elif test $ac_cv_prog_cc_g = yes; then
5165 if test "$GCC" = yes; then
5166 CFLAGS="-g -O2"
5167 else
5168 CFLAGS="-g"
5170 else
5171 if test "$GCC" = yes; then
5172 CFLAGS="-O2"
5173 else
5174 CFLAGS=
5177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_cc_c89+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 ac_cv_prog_cc_c89=no
5183 ac_save_CC=$CC
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <stdarg.h>
5191 #include <stdio.h>
5192 #include <sys/types.h>
5193 #include <sys/stat.h>
5194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195 struct buf { int x; };
5196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197 static char *e (p, i)
5198 char **p;
5199 int i;
5201 return p[i];
5203 static char *f (char * (*g) (char **, int), char **p, ...)
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224 #define FOO(x) 'x'
5225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5227 int test (int i, double x);
5228 struct s1 {int (*f) (int a);};
5229 struct s2 {int (*f) (double a);};
5230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231 int argc;
5232 char **argv;
5234 main ()
5236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5238 return 0;
5240 _ACEOF
5241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5244 CC="$ac_save_CC $ac_arg"
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_prog_cc_c89=$ac_arg
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext
5271 test "x$ac_cv_prog_cc_c89" != "xno" && break
5272 done
5273 rm -f conftest.$ac_ext
5274 CC=$ac_save_CC
5277 # AC_CACHE_VAL
5278 case "x$ac_cv_prog_cc_c89" in
5280 { echo "$as_me:$LINENO: result: none needed" >&5
5281 echo "${ECHO_T}none needed" >&6; } ;;
5282 xno)
5283 { echo "$as_me:$LINENO: result: unsupported" >&5
5284 echo "${ECHO_T}unsupported" >&6; } ;;
5286 CC="$CC $ac_cv_prog_cc_c89"
5287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5289 esac
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 ac_ext=cpp
5299 ac_cpp='$CXXCPP $CPPFLAGS'
5300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5303 if test -z "$CXX"; then
5304 if test -n "$CCC"; then
5305 CXX=$CCC
5306 else
5307 if test -n "$ac_tool_prefix"; then
5308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_CXX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$CXX"; then
5318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5337 CXX=$ac_cv_prog_CXX
5338 if test -n "$CXX"; then
5339 { echo "$as_me:$LINENO: result: $CXX" >&5
5340 echo "${ECHO_T}$CXX" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 test -n "$CXX" && break
5348 done
5350 if test -z "$CXX"; then
5351 ac_ct_CXX=$CXX
5352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354 # Extract the first word of "$ac_prog", so it can be a program name with args.
5355 set dummy $ac_prog; ac_word=$2
5356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 if test -n "$ac_ct_CXX"; then
5362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_ac_ct_CXX="$ac_prog"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5382 if test -n "$ac_ct_CXX"; then
5383 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5385 else
5386 { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5391 test -n "$ac_ct_CXX" && break
5392 done
5394 if test "x$ac_ct_CXX" = x; then
5395 CXX="g++"
5396 else
5397 case $cross_compiling:$ac_tool_warned in
5398 yes:)
5399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5400 whose name does not start with the host triplet. If you think this
5401 configuration is useful to you, please write to autoconf@gnu.org." >&5
5402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5403 whose name does not start with the host triplet. If you think this
5404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5405 ac_tool_warned=yes ;;
5406 esac
5407 CXX=$ac_ct_CXX
5413 # Provide some information about the compiler.
5414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5415 ac_compiler=`set X $ac_compile; echo $2`
5416 { (ac_try="$ac_compiler --version >&5"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compiler --version >&5") 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }
5426 { (ac_try="$ac_compiler -v >&5"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compiler -v >&5") 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436 { (ac_try="$ac_compiler -V >&5"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compiler -V >&5") 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }
5447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5460 main ()
5462 #ifndef __GNUC__
5463 choke me
5464 #endif
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_cxx_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_compiler_gnu=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_compiler_gnu=no
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5501 GXX=`test $ac_compiler_gnu = yes && echo yes`
5502 ac_test_CXXFLAGS=${CXXFLAGS+set}
5503 ac_save_CXXFLAGS=$CXXFLAGS
5504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_cxx_g+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5510 ac_cxx_werror_flag=yes
5511 ac_cv_prog_cxx_g=no
5512 CXXFLAGS="-g"
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5521 main ()
5525 return 0;
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_cxx_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5545 ac_cv_prog_cxx_g=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 CXXFLAGS=""
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5559 main ()
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_cxx_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5589 CXXFLAGS="-g"
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5598 main ()
5602 return 0;
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compile") 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_cxx_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest.$ac_objext; then
5622 ac_cv_prog_cxx_g=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5641 if test "$ac_test_CXXFLAGS" = set; then
5642 CXXFLAGS=$ac_save_CXXFLAGS
5643 elif test $ac_cv_prog_cxx_g = yes; then
5644 if test "$GXX" = yes; then
5645 CXXFLAGS="-g -O2"
5646 else
5647 CXXFLAGS="-g"
5649 else
5650 if test "$GXX" = yes; then
5651 CXXFLAGS="-O2"
5652 else
5653 CXXFLAGS=
5656 ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5669 # On Suns, sometimes $CPP names a directory.
5670 if test -n "$CPP" && test -d "$CPP"; then
5671 CPP=
5673 if test -z "$CPP"; then
5674 if test "${ac_cv_prog_CPP+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 # Double quotes because CPP needs to be expanded
5678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5680 ac_preproc_ok=false
5681 for ac_c_preproc_warn_flag in '' yes
5683 # Use a header file that comes with gcc, so configuring glibc
5684 # with a fresh cross-compiler works.
5685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5686 # <limits.h> exists even on freestanding compilers.
5687 # On the NeXT, cc -E runs the code through the compiler's parser,
5688 # not just through cpp. "Syntax error" is here to catch this case.
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #ifdef __STDC__
5696 # include <limits.h>
5697 #else
5698 # include <assert.h>
5699 #endif
5700 Syntax error
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 }; then
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 # Broken: fails on valid input.
5724 continue
5727 rm -f conftest.err conftest.$ac_ext
5729 # OK, works on sane cases. Now check whether nonexistent headers
5730 # can be detected and how.
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <ac_nonexistent.h>
5738 _ACEOF
5739 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 }; then
5755 # Broken: success on invalid input.
5756 continue
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 # Passes both tests.
5762 ac_preproc_ok=:
5763 break
5766 rm -f conftest.err conftest.$ac_ext
5768 done
5769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770 rm -f conftest.err conftest.$ac_ext
5771 if $ac_preproc_ok; then
5772 break
5775 done
5776 ac_cv_prog_CPP=$CPP
5779 CPP=$ac_cv_prog_CPP
5780 else
5781 ac_cv_prog_CPP=$CPP
5783 { echo "$as_me:$LINENO: result: $CPP" >&5
5784 echo "${ECHO_T}$CPP" >&6; }
5785 ac_preproc_ok=false
5786 for ac_c_preproc_warn_flag in '' yes
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805 Syntax error
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev/null && {
5820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 }; then
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 # Broken: fails on valid input.
5829 continue
5832 rm -f conftest.err conftest.$ac_ext
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <ac_nonexistent.h>
5843 _ACEOF
5844 if { (ac_try="$ac_cpp conftest.$ac_ext"
5845 case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev/null && {
5857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 }; then
5860 # Broken: success on invalid input.
5861 continue
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 # Passes both tests.
5867 ac_preproc_ok=:
5868 break
5871 rm -f conftest.err conftest.$ac_ext
5873 done
5874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875 rm -f conftest.err conftest.$ac_ext
5876 if $ac_preproc_ok; then
5878 else
5879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5880 See \`config.log' for more details." >&5
5881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5882 See \`config.log' for more details." >&2;}
5883 { (exit 1); exit 1; }; }
5886 ac_ext=c
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 ac_ext=cpp
5893 ac_cpp='$CXXCPP $CPPFLAGS'
5894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5897 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5899 if test -z "$CXXCPP"; then
5900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 # Double quotes because CXXCPP needs to be expanded
5904 for CXXCPP in "$CXX -E" "/lib/cpp"
5906 ac_preproc_ok=false
5907 for ac_cxx_preproc_warn_flag in '' yes
5909 # Use a header file that comes with gcc, so configuring glibc
5910 # with a fresh cross-compiler works.
5911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5912 # <limits.h> exists even on freestanding compilers.
5913 # On the NeXT, cc -E runs the code through the compiler's parser,
5914 # not just through cpp. "Syntax error" is here to catch this case.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #ifdef __STDC__
5922 # include <limits.h>
5923 #else
5924 # include <assert.h>
5925 #endif
5926 Syntax error
5927 _ACEOF
5928 if { (ac_try="$ac_cpp conftest.$ac_ext"
5929 case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null && {
5941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5942 test ! -s conftest.err
5943 }; then
5945 else
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5949 # Broken: fails on valid input.
5950 continue
5953 rm -f conftest.err conftest.$ac_ext
5955 # OK, works on sane cases. Now check whether nonexistent headers
5956 # can be detected and how.
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <ac_nonexistent.h>
5964 _ACEOF
5965 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null && {
5978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5979 test ! -s conftest.err
5980 }; then
5981 # Broken: success on invalid input.
5982 continue
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 # Passes both tests.
5988 ac_preproc_ok=:
5989 break
5992 rm -f conftest.err conftest.$ac_ext
5994 done
5995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5996 rm -f conftest.err conftest.$ac_ext
5997 if $ac_preproc_ok; then
5998 break
6001 done
6002 ac_cv_prog_CXXCPP=$CXXCPP
6005 CXXCPP=$ac_cv_prog_CXXCPP
6006 else
6007 ac_cv_prog_CXXCPP=$CXXCPP
6009 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6010 echo "${ECHO_T}$CXXCPP" >&6; }
6011 ac_preproc_ok=false
6012 for ac_cxx_preproc_warn_flag in '' yes
6014 # Use a header file that comes with gcc, so configuring glibc
6015 # with a fresh cross-compiler works.
6016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 # <limits.h> exists even on freestanding compilers.
6018 # On the NeXT, cc -E runs the code through the compiler's parser,
6019 # not just through cpp. "Syntax error" is here to catch this case.
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #ifdef __STDC__
6027 # include <limits.h>
6028 #else
6029 # include <assert.h>
6030 #endif
6031 Syntax error
6032 _ACEOF
6033 if { (ac_try="$ac_cpp conftest.$ac_ext"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null && {
6046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6047 test ! -s conftest.err
6048 }; then
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 # Broken: fails on valid input.
6055 continue
6058 rm -f conftest.err conftest.$ac_ext
6060 # OK, works on sane cases. Now check whether nonexistent headers
6061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084 test ! -s conftest.err
6085 }; then
6086 # Broken: success on invalid input.
6087 continue
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 # Passes both tests.
6093 ac_preproc_ok=:
6094 break
6097 rm -f conftest.err conftest.$ac_ext
6099 done
6100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101 rm -f conftest.err conftest.$ac_ext
6102 if $ac_preproc_ok; then
6104 else
6105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6106 See \`config.log' for more details." >&5
6107 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6108 See \`config.log' for more details." >&2;}
6109 { (exit 1); exit 1; }; }
6112 ac_ext=c
6113 ac_cpp='$CPP $CPPFLAGS'
6114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6119 # the developers regenerating the configure script don't have to install libtool.
6120 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6121 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6122 if test "${ac_cv_path_SED+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6126 for ac_i in 1 2 3 4 5 6 7; do
6127 ac_script="$ac_script$as_nl$ac_script"
6128 done
6129 echo "$ac_script" | sed 99q >conftest.sed
6130 $as_unset ac_script || ac_script=
6131 # Extract the first word of "sed gsed" to use in msg output
6132 if test -z "$SED"; then
6133 set dummy sed gsed; ac_prog_name=$2
6134 if test "${ac_cv_path_SED+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 ac_path_SED_found=false
6138 # Loop through the user's path and test for each of PROGNAME-LIST
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_prog in sed gsed; do
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6147 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6148 # Check for GNU ac_path_SED and select it if it is found.
6149 # Check for GNU $ac_path_SED
6150 case `"$ac_path_SED" --version 2>&1` in
6151 *GNU*)
6152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6154 ac_count=0
6155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6156 while :
6158 cat "conftest.in" "conftest.in" >"conftest.tmp"
6159 mv "conftest.tmp" "conftest.in"
6160 cp "conftest.in" "conftest.nl"
6161 echo '' >> "conftest.nl"
6162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6164 ac_count=`expr $ac_count + 1`
6165 if test $ac_count -gt ${ac_path_SED_max-0}; then
6166 # Best one so far, save it but keep looking for a better one
6167 ac_cv_path_SED="$ac_path_SED"
6168 ac_path_SED_max=$ac_count
6170 # 10*(2^10) chars as input seems more than enough
6171 test $ac_count -gt 10 && break
6172 done
6173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6174 esac
6177 $ac_path_SED_found && break 3
6178 done
6179 done
6181 done
6182 IFS=$as_save_IFS
6187 SED="$ac_cv_path_SED"
6188 if test -z "$SED"; then
6189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6190 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6191 { (exit 1); exit 1; }; }
6194 else
6195 ac_cv_path_SED=$SED
6199 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6200 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6201 SED="$ac_cv_path_SED"
6202 rm -f conftest.sed
6204 { echo "$as_me:$LINENO: checking for egrep" >&5
6205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_egrep+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6210 then ac_cv_prog_egrep='grep -E'
6211 else ac_cv_prog_egrep='egrep'
6214 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6215 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6216 EGREP=$ac_cv_prog_egrep
6220 # Check whether --with-gnu-ld was given.
6221 if test "${with_gnu_ld+set}" = set; then
6222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6223 else
6224 with_gnu_ld=no
6227 ac_prog=ld
6228 if test "$GCC" = yes; then
6229 # Check if gcc -print-prog-name=ld gives a path.
6230 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6231 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6232 case $host in
6233 *-*-mingw*)
6234 # gcc leaves a trailing carriage return which upsets mingw
6235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6238 esac
6239 case $ac_prog in
6240 # Accept absolute paths.
6241 [\\/]* | ?:[\\/]*)
6242 re_direlt='/[^/][^/]*/\.\./'
6243 # Canonicalize the pathname of ld
6244 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6245 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6246 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6247 done
6248 test -z "$LD" && LD="$ac_prog"
6251 # If it fails, then pretend we aren't using GCC.
6252 ac_prog=ld
6255 # If it is relative, then search for the first ld in PATH.
6256 with_gnu_ld=unknown
6258 esac
6259 elif test "$with_gnu_ld" = yes; then
6260 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6261 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6262 else
6263 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6264 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6266 if test "${lt_cv_path_LD+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 if test -z "$LD"; then
6270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6271 for ac_dir in $PATH; do
6272 IFS="$lt_save_ifs"
6273 test -z "$ac_dir" && ac_dir=.
6274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6275 lt_cv_path_LD="$ac_dir/$ac_prog"
6276 # Check to see if the program is GNU ld. I'd rather use --version,
6277 # but apparently some variants of GNU ld only accept -v.
6278 # Break only if it was the GNU/non-GNU ld that we prefer.
6279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6280 *GNU* | *'with BFD'*)
6281 test "$with_gnu_ld" != no && break
6284 test "$with_gnu_ld" != yes && break
6286 esac
6288 done
6289 IFS="$lt_save_ifs"
6290 else
6291 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6295 LD="$lt_cv_path_LD"
6296 if test -n "$LD"; then
6297 { echo "$as_me:$LINENO: result: $LD" >&5
6298 echo "${ECHO_T}$LD" >&6; }
6299 else
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6303 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6304 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6305 { (exit 1); exit 1; }; }
6306 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6307 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6308 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6312 case `$LD -v 2>&1 </dev/null` in
6313 *GNU* | *'with BFD'*)
6314 lt_cv_prog_gnu_ld=yes
6317 lt_cv_prog_gnu_ld=no
6319 esac
6321 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6322 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6323 with_gnu_ld=$lt_cv_prog_gnu_ld
6325 # note, does not work on FreeBSD
6326 for ac_prog in gawk mawk nawk awk
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329 set dummy $ac_prog; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_AWK+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test -n "$AWK"; then
6336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_AWK="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 AWK=$ac_cv_prog_AWK
6356 if test -n "$AWK"; then
6357 { echo "$as_me:$LINENO: result: $AWK" >&5
6358 echo "${ECHO_T}$AWK" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6365 test -n "$AWK" && break
6366 done
6368 # Find a good install program. We prefer a C program (faster),
6369 # so one script is as good as another. But avoid the broken or
6370 # incompatible versions:
6371 # SysV /etc/install, /usr/sbin/install
6372 # SunOS /usr/etc/install
6373 # IRIX /sbin/install
6374 # AIX /bin/install
6375 # AmigaOS /C/install, which installs bootblocks on floppy discs
6376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6379 # OS/2's system install, which has a completely different semantic
6380 # ./install, which can be erroneously created by make from ./install.sh.
6381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6383 if test -z "$INSTALL"; then
6384 if test "${ac_cv_path_install+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 # Account for people who put trailing slashes in PATH elements.
6393 case $as_dir/ in
6394 ./ | .// | /cC/* | \
6395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6397 /usr/ucb/* ) ;;
6399 # OSF1 and SCO ODT 3.0 have their own names for install.
6400 # Don't use installbsd from OSF since it installs stuff as root
6401 # by default.
6402 for ac_prog in ginstall scoinst install; do
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6405 if test $ac_prog = install &&
6406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6407 # AIX install. It has an incompatible calling convention.
6409 elif test $ac_prog = install &&
6410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6411 # program-specific install script used by HP pwplus--don't use.
6413 else
6414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6415 break 3
6418 done
6419 done
6421 esac
6422 done
6423 IFS=$as_save_IFS
6427 if test "${ac_cv_path_install+set}" = set; then
6428 INSTALL=$ac_cv_path_install
6429 else
6430 # As a last resort, use the slow shell script. Don't cache a
6431 # value for INSTALL within a source directory, because that will
6432 # break other packages using the cache if that directory is
6433 # removed, or if the value is a relative name.
6434 INSTALL=$ac_install_sh
6437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6438 echo "${ECHO_T}$INSTALL" >&6; }
6440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6441 # It thinks the first close brace ends the variable substitution.
6442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6448 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6449 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6450 LN_S=$as_ln_s
6451 if test "$LN_S" = "ln -s"; then
6452 { echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6; }
6454 else
6455 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6456 echo "${ECHO_T}no, using $LN_S" >&6; }
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 RANLIB=$ac_cv_prog_RANLIB
6488 if test -n "$RANLIB"; then
6489 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6490 echo "${ECHO_T}$RANLIB" >&6; }
6491 else
6492 { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6498 if test -z "$ac_cv_prog_RANLIB"; then
6499 ac_ct_RANLIB=$RANLIB
6500 # Extract the first word of "ranlib", so it can be a program name with args.
6501 set dummy ranlib; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 if test -n "$ac_ct_RANLIB"; then
6508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_RANLIB="ranlib"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6528 if test -n "$ac_ct_RANLIB"; then
6529 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6531 else
6532 { echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6; }
6536 if test "x$ac_ct_RANLIB" = x; then
6537 RANLIB=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542 whose name does not start with the host triplet. If you think this
6543 configuration is useful to you, please write to autoconf@gnu.org." >&5
6544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545 whose name does not start with the host triplet. If you think this
6546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 RANLIB=$ac_ct_RANLIB
6551 else
6552 RANLIB="$ac_cv_prog_RANLIB"
6555 { echo "$as_me:$LINENO: checking for GNU make" >&5
6556 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6557 if test "${GNU_MAKE+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 GNU_MAKE='Not Found' ;
6561 GNU_MAKE_VERSION_MAJOR=0 ;
6562 GNU_MAKE_VERSION_MINOR=0 ;
6563 for a in make gmake gnumake ; do
6564 if test -z "$a" ; then continue ; fi ;
6565 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6566 GNU_MAKE=$a ;
6567 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6568 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6569 break;
6571 done ;
6574 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6575 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6576 if test "x$GNU_MAKE" = "xNot Found" ; then
6577 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6578 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6579 { (exit 1); exit 1; }; }
6580 exit 1
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_STRIP+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 case $STRIP in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6614 esac
6616 STRIP=$ac_cv_path_STRIP
6617 if test -n "$STRIP"; then
6618 { echo "$as_me:$LINENO: result: $STRIP" >&5
6619 echo "${ECHO_T}$STRIP" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6627 if test -z "$ac_cv_path_STRIP"; then
6628 ac_pt_STRIP=$STRIP
6629 # Extract the first word of "strip", so it can be a program name with args.
6630 set dummy strip; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 case $ac_pt_STRIP in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6657 esac
6659 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6660 if test -n "$ac_pt_STRIP"; then
6661 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6662 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6663 else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6668 if test "x$ac_pt_STRIP" = x; then
6669 STRIP=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6674 whose name does not start with the host triplet. If you think this
6675 configuration is useful to you, please write to autoconf@gnu.org." >&5
6676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 STRIP=$ac_pt_STRIP
6683 else
6684 STRIP="$ac_cv_path_STRIP"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}ar; ac_word=$2
6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692 if test "${ac_cv_path_AR+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 case $AR in
6696 [\\/]* | ?:[\\/]*)
6697 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6716 esac
6718 AR=$ac_cv_path_AR
6719 if test -n "$AR"; then
6720 { echo "$as_me:$LINENO: result: $AR" >&5
6721 echo "${ECHO_T}$AR" >&6; }
6722 else
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6729 if test -z "$ac_cv_path_AR"; then
6730 ac_pt_AR=$AR
6731 # Extract the first word of "ar", so it can be a program name with args.
6732 set dummy ar; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 case $ac_pt_AR in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6759 esac
6761 ac_pt_AR=$ac_cv_path_ac_pt_AR
6762 if test -n "$ac_pt_AR"; then
6763 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6764 echo "${ECHO_T}$ac_pt_AR" >&6; }
6765 else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6770 if test "x$ac_pt_AR" = x; then
6771 AR=":"
6772 else
6773 case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet. If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&5
6778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 AR=$ac_pt_AR
6785 else
6786 AR="$ac_cv_path_AR"
6790 GNU_LD=0
6791 if test "x$with_gnu_ld" = "xyes" ; then
6792 GNU_LD=1
6796 # Extract the first word of "grep", so it can be a program name with args.
6797 set dummy grep; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_GREP+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 case $GREP in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6823 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6825 esac
6827 GREP=$ac_cv_path_GREP
6828 if test -n "$GREP"; then
6829 { echo "$as_me:$LINENO: result: $GREP" >&5
6830 echo "${ECHO_T}$GREP" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "find", so it can be a program name with args.
6838 set dummy find; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_FIND+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case $FIND in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6864 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6866 esac
6868 FIND=$ac_cv_path_FIND
6869 if test -n "$FIND"; then
6870 { echo "$as_me:$LINENO: result: $FIND" >&5
6871 echo "${ECHO_T}$FIND" >&6; }
6872 else
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 # Extract the first word of "compress", so it can be a program name with args.
6879 set dummy compress; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_COMPRESS+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 case $COMPRESS in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6905 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6907 esac
6909 COMPRESS=$ac_cv_path_COMPRESS
6910 if test -n "$COMPRESS"; then
6911 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6912 echo "${ECHO_T}$COMPRESS" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "basename", so it can be a program name with args.
6920 set dummy basename; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_BASENAME+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $BASENAME in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6948 esac
6950 BASENAME=$ac_cv_path_BASENAME
6951 if test -n "$BASENAME"; then
6952 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6953 echo "${ECHO_T}$BASENAME" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "id", so it can be a program name with args.
6961 set dummy id; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_ID+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 case $ID in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6987 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6989 esac
6991 ID=$ac_cv_path_ID
6992 if test -n "$ID"; then
6993 { echo "$as_me:$LINENO: result: $ID" >&5
6994 echo "${ECHO_T}$ID" >&6; }
6995 else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "dirname", so it can be a program name with args.
7002 set dummy dirname; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_DIRNAME+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 case $DIRNAME in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7024 done
7025 done
7026 IFS=$as_save_IFS
7028 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7030 esac
7032 DIRNAME=$ac_cv_path_DIRNAME
7033 if test -n "$DIRNAME"; then
7034 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7035 echo "${ECHO_T}$DIRNAME" >&6; }
7036 else
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "sh", so it can be a program name with args.
7043 set dummy sh; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_SHELL+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 case $SHELL in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7069 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7071 esac
7073 SHELL=$ac_cv_path_SHELL
7074 if test -n "$SHELL"; then
7075 { echo "$as_me:$LINENO: result: $SHELL" >&5
7076 echo "${ECHO_T}$SHELL" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "ln", so it can be a program name with args.
7084 set dummy ln; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_LN+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 case $LN in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7110 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7112 esac
7114 LN=$ac_cv_path_LN
7115 if test -n "$LN"; then
7116 { echo "$as_me:$LINENO: result: $LN" >&5
7117 echo "${ECHO_T}$LN" >&6; }
7118 else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "dot", so it can be a program name with args.
7125 set dummy dot; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_DOT+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 case $DOT in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7151 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7153 esac
7155 DOT=$ac_cv_path_DOT
7156 if test -n "$DOT"; then
7157 { echo "$as_me:$LINENO: result: $DOT" >&5
7158 echo "${ECHO_T}$DOT" >&6; }
7159 else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 # Extract the first word of "wget", so it can be a program name with args.
7166 set dummy wget; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_WGET+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 case $WGET in
7173 [\\/]* | ?:[\\/]*)
7174 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7188 done
7189 done
7190 IFS=$as_save_IFS
7192 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7194 esac
7196 WGET=$ac_cv_path_WGET
7197 if test -n "$WGET"; then
7198 { echo "$as_me:$LINENO: result: $WGET" >&5
7199 echo "${ECHO_T}$WGET" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "rubber", so it can be a program name with args.
7207 set dummy rubber; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_RUBBER+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 case $RUBBER in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7233 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7235 esac
7237 RUBBER=$ac_cv_path_RUBBER
7238 if test -n "$RUBBER"; then
7239 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7240 echo "${ECHO_T}$RUBBER" >&6; }
7241 else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7247 # Extract the first word of "kpsewhich", so it can be a program name with args.
7248 set dummy kpsewhich; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 case $KPATHSEA in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7270 done
7271 done
7272 IFS=$as_save_IFS
7274 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7276 esac
7278 KPATHSEA=$ac_cv_path_KPATHSEA
7279 if test -n "$KPATHSEA"; then
7280 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7281 echo "${ECHO_T}$KPATHSEA" >&6; }
7282 else
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 if test "${WGET}" != ":" ; then
7289 DOWNLOAD=${WGET}
7290 else
7291 # Extract the first word of "fetch", so it can be a program name with args.
7292 set dummy fetch; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_FETCH+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 case $FETCH in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7314 done
7315 done
7316 IFS=$as_save_IFS
7318 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7320 esac
7322 FETCH=$ac_cv_path_FETCH
7323 if test -n "$FETCH"; then
7324 { echo "$as_me:$LINENO: result: $FETCH" >&5
7325 echo "${ECHO_T}$FETCH" >&6; }
7326 else
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7332 DOWNLOAD=${FETCH}
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 if test -n "$SOXMIX"; then
7345 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7360 IFS=$as_save_IFS
7364 SOXMIX=$ac_cv_prog_SOXMIX
7365 if test -n "$SOXMIX"; then
7366 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7367 echo "${ECHO_T}$SOXMIX" >&6; }
7368 else
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7375 if test -z "$ac_cv_prog_SOXMIX"; then
7376 ac_ct_SOXMIX=$SOXMIX
7377 # Extract the first word of "soxmix", so it can be a program name with args.
7378 set dummy soxmix; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 if test -n "$ac_ct_SOXMIX"; then
7385 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7398 done
7399 done
7400 IFS=$as_save_IFS
7404 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7405 if test -n "$ac_ct_SOXMIX"; then
7406 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7407 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7408 else
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7413 if test "x$ac_ct_SOXMIX" = x; then
7414 SOXMIX=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7419 whose name does not start with the host triplet. If you think this
7420 configuration is useful to you, please write to autoconf@gnu.org." >&5
7421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7422 whose name does not start with the host triplet. If you think this
7423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 SOXMIX=$ac_ct_SOXMIX
7428 else
7429 SOXMIX="$ac_cv_prog_SOXMIX"
7432 if test "${SOXMIX}" != ":" ; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_SOXMIX 1
7436 _ACEOF
7443 ac_ext=c
7444 ac_cpp='$CPP $CPPFLAGS'
7445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449 acx_pthread_ok=no
7451 # We used to check for pthread.h first, but this fails if pthread.h
7452 # requires special compiler flags (e.g. on True64 or Sequent).
7453 # It gets checked for in the link test anyway.
7455 # First of all, check if the user has set any of the PTHREAD_LIBS,
7456 # etcetera environment variables, and if threads linking works using
7457 # them:
7458 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7459 save_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461 save_LIBS="$LIBS"
7462 LIBS="$PTHREAD_LIBS $LIBS"
7463 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7464 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7472 /* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 char pthread_join ();
7480 main ()
7482 return pthread_join ();
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest$ac_exeext &&
7504 $as_test_x conftest$ac_exeext; then
7505 acx_pthread_ok=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7516 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7517 if test x"$acx_pthread_ok" = xno; then
7518 PTHREAD_LIBS=""
7519 PTHREAD_CFLAGS=""
7521 LIBS="$save_LIBS"
7522 CFLAGS="$save_CFLAGS"
7525 # We must check for the threads library under a number of different
7526 # names; the ordering is very important because some systems
7527 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7528 # libraries is broken (non-POSIX).
7530 # Create a list of thread flags to try. Items starting with a "-" are
7531 # C compiler flags, and other items are library names, except for "none"
7532 # which indicates that we try without any flags at all, and "pthread-config"
7533 # which is a program returning the flags for the Pth emulation library.
7535 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7537 # The ordering *is* (sometimes) important. Some notes on the
7538 # individual items follow:
7540 # pthreads: AIX (must check this before -lpthread)
7541 # none: in case threads are in libc; should be tried before -Kthread and
7542 # other compiler flags to prevent continual compiler warnings
7543 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7544 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7545 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7546 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7547 # -pthreads: Solaris/gcc
7548 # -mthreads: Mingw32/gcc, Lynx/gcc
7549 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7550 # doesn't hurt to check since this sometimes defines pthreads too;
7551 # also defines -D_REENTRANT)
7552 # ... -mt is also the pthreads flag for HP/aCC
7553 # pthread: Linux, etcetera
7554 # --thread-safe: KAI C++
7555 # pthread-config: use pthread-config program (for GNU Pth library)
7557 case "${host_cpu}-${host_os}" in
7558 *solaris*)
7560 # On Solaris (at least, for some versions), libc contains stubbed
7561 # (non-functional) versions of the pthreads routines, so link-based
7562 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7563 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7564 # a function called by this macro, so we could check for that, but
7565 # who knows whether they'll stub that too in a future libc.) So,
7566 # we'll just look for -pthreads and -lpthread first:
7568 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7570 esac
7572 if test x"$acx_pthread_ok" = xno; then
7573 for flag in $acx_pthread_flags; do
7575 case $flag in
7576 none)
7577 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7578 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7582 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7583 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7584 PTHREAD_CFLAGS="$flag"
7587 pthread-config)
7588 # Extract the first word of "pthread-config", so it can be a program name with args.
7589 set dummy pthread-config; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 if test -n "$acx_pthread_config"; then
7596 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_acx_pthread_config="yes"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7609 done
7610 done
7611 IFS=$as_save_IFS
7613 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7616 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7617 if test -n "$acx_pthread_config"; then
7618 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7619 echo "${ECHO_T}$acx_pthread_config" >&6; }
7620 else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 if test x"$acx_pthread_config" = xno; then continue; fi
7627 PTHREAD_CFLAGS="`pthread-config --cflags`"
7628 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7632 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7633 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7634 PTHREAD_LIBS="-l$flag"
7636 esac
7638 save_LIBS="$LIBS"
7639 save_CFLAGS="$CFLAGS"
7640 LIBS="$PTHREAD_LIBS $LIBS"
7641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7643 # Check for various functions. We must include pthread.h,
7644 # since some functions may be macros. (On the Sequent, we
7645 # need a special flag -Kthread to make this header compile.)
7646 # We check for pthread_join because it is in -lpthread on IRIX
7647 # while pthread_create is in libc. We check for pthread_attr_init
7648 # due to DEC craziness with -lpthreads. We check for
7649 # pthread_cleanup_push because it is one of the few pthread
7650 # functions on Solaris that doesn't have a non-functional libc stub.
7651 # We try pthread_create on general principles.
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <pthread.h>
7660 main ()
7662 pthread_t th; pthread_join(th, 0);
7663 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7664 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7666 return 0;
7668 _ACEOF
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (ac_try="$ac_link"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_link") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest$ac_exeext &&
7686 $as_test_x conftest$ac_exeext; then
7687 acx_pthread_ok=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7696 conftest$ac_exeext conftest.$ac_ext
7698 LIBS="$save_LIBS"
7699 CFLAGS="$save_CFLAGS"
7701 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7702 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7703 if test "x$acx_pthread_ok" = xyes; then
7704 break;
7707 PTHREAD_LIBS=""
7708 PTHREAD_CFLAGS=""
7709 done
7712 # Various other checks:
7713 if test "x$acx_pthread_ok" = xyes; then
7714 save_LIBS="$LIBS"
7715 LIBS="$PTHREAD_LIBS $LIBS"
7716 save_CFLAGS="$CFLAGS"
7717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7719 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7720 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7721 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7722 attr_name=unknown
7723 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 #include <pthread.h>
7732 main ()
7734 int attr=$attr; return attr;
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (ac_try="$ac_link"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_link") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest$ac_exeext &&
7756 $as_test_x conftest$ac_exeext; then
7757 attr_name=$attr; break
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7766 conftest$ac_exeext conftest.$ac_ext
7767 done
7768 { echo "$as_me:$LINENO: result: $attr_name" >&5
7769 echo "${ECHO_T}$attr_name" >&6; }
7770 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7772 cat >>confdefs.h <<_ACEOF
7773 #define PTHREAD_CREATE_JOINABLE $attr_name
7774 _ACEOF
7778 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7779 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7780 flag=no
7781 case "${host_cpu}-${host_os}" in
7782 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7783 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7784 esac
7785 { echo "$as_me:$LINENO: result: ${flag}" >&5
7786 echo "${ECHO_T}${flag}" >&6; }
7787 if test "x$flag" != xno; then
7788 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7791 LIBS="$save_LIBS"
7792 CFLAGS="$save_CFLAGS"
7794 # More AIX lossage: must compile with xlc_r or cc_r
7795 if test x"$GCC" != xyes; then
7796 for ac_prog in xlc_r cc_r
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 if test -n "$PTHREAD_CC"; then
7806 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_PTHREAD_CC="$ac_prog"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7819 done
7820 done
7821 IFS=$as_save_IFS
7825 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7826 if test -n "$PTHREAD_CC"; then
7827 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7828 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7829 else
7830 { echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6; }
7835 test -n "$PTHREAD_CC" && break
7836 done
7837 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7839 else
7840 PTHREAD_CC=$CC
7842 else
7843 PTHREAD_CC="$CC"
7850 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7851 if test x"$acx_pthread_ok" = xyes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_PTHREAD 1
7855 _ACEOF
7858 else
7859 acx_pthread_ok=no
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870 ac_ext=c
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877 # Check whether --enable-dev-mode was given.
7878 if test "${enable_dev_mode+set}" = set; then
7879 enableval=$enable_dev_mode; case "${enableval}" in
7880 y|ye|yes) AST_DEVMODE=yes ;;
7881 n|no) AST_DEVMODE=no ;;
7882 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7883 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7884 { (exit 1); exit 1; }; } ;;
7885 esac
7890 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7891 # various packages.
7892 # $1 is the prefix for the variables in makeopts and autoconfig.h
7893 # $2 is the short comment, $4 is the long comment
7894 # $3 is the name used in --with- or --without- flags for configure.
7896 # Package option names should be in alphabetical order
7897 # by the --with option name (the third field),
7898 # to make things easier for the users.
7901 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7902 ALSA_OPTION="asound"
7904 # Check whether --with-asound was given.
7905 if test "${with_asound+set}" = set; then
7906 withval=$with_asound;
7907 case ${withval} in
7908 n|no)
7909 USE_ALSA=no
7911 y|ye|yes)
7912 ac_mandatory_list="${ac_mandatory_list} ALSA"
7915 ALSA_DIR="${withval}"
7916 ac_mandatory_list="${ac_mandatory_list} ALSA"
7918 esac
7922 PBX_ALSA=0
7929 # BKTR is used for backtrace support on platforms that do not
7930 # have it natively.
7932 BKTR_DESCRIP="Stack Backtrace support"
7933 BKTR_OPTION="execinfo"
7935 # Check whether --with-execinfo was given.
7936 if test "${with_execinfo+set}" = set; then
7937 withval=$with_execinfo;
7938 case ${withval} in
7939 n|no)
7940 USE_BKTR=no
7942 y|ye|yes)
7943 ac_mandatory_list="${ac_mandatory_list} BKTR"
7946 BKTR_DIR="${withval}"
7947 ac_mandatory_list="${ac_mandatory_list} BKTR"
7949 esac
7953 PBX_BKTR=0
7960 CAP_DESCRIP="POSIX 1.e capabilities"
7961 CAP_OPTION="cap"
7963 # Check whether --with-cap was given.
7964 if test "${with_cap+set}" = set; then
7965 withval=$with_cap;
7966 case ${withval} in
7967 n|no)
7968 USE_CAP=no
7970 y|ye|yes)
7971 ac_mandatory_list="${ac_mandatory_list} CAP"
7974 CAP_DIR="${withval}"
7975 ac_mandatory_list="${ac_mandatory_list} CAP"
7977 esac
7981 PBX_CAP=0
7988 CURL_DESCRIP="cURL"
7989 CURL_OPTION="curl"
7991 # Check whether --with-curl was given.
7992 if test "${with_curl+set}" = set; then
7993 withval=$with_curl;
7994 case ${withval} in
7995 n|no)
7996 USE_CURL=no
7998 y|ye|yes)
7999 ac_mandatory_list="${ac_mandatory_list} CURL"
8002 CURL_DIR="${withval}"
8003 ac_mandatory_list="${ac_mandatory_list} CURL"
8005 esac
8009 PBX_CURL=0
8016 CURSES_DESCRIP="curses"
8017 CURSES_OPTION="curses"
8019 # Check whether --with-curses was given.
8020 if test "${with_curses+set}" = set; then
8021 withval=$with_curses;
8022 case ${withval} in
8023 n|no)
8024 USE_CURSES=no
8026 y|ye|yes)
8027 ac_mandatory_list="${ac_mandatory_list} CURSES"
8030 CURSES_DIR="${withval}"
8031 ac_mandatory_list="${ac_mandatory_list} CURSES"
8033 esac
8037 PBX_CURSES=0
8044 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8045 CRYPTO_OPTION="crypto"
8047 # Check whether --with-crypto was given.
8048 if test "${with_crypto+set}" = set; then
8049 withval=$with_crypto;
8050 case ${withval} in
8051 n|no)
8052 USE_CRYPTO=no
8054 y|ye|yes)
8055 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8058 CRYPTO_DIR="${withval}"
8059 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8061 esac
8065 PBX_CRYPTO=0
8072 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8073 FFMPEG_OPTION="avcodec"
8075 # Check whether --with-avcodec was given.
8076 if test "${with_avcodec+set}" = set; then
8077 withval=$with_avcodec;
8078 case ${withval} in
8079 n|no)
8080 USE_FFMPEG=no
8082 y|ye|yes)
8083 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8086 FFMPEG_DIR="${withval}"
8087 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8089 esac
8093 PBX_FFMPEG=0
8100 GSM_DESCRIP="External GSM library"
8101 GSM_OPTION="gsm"
8103 # Check whether --with-gsm was given.
8104 if test "${with_gsm+set}" = set; then
8105 withval=$with_gsm;
8106 case ${withval} in
8107 n|no)
8108 USE_GSM=no
8110 y|ye|yes)
8111 ac_mandatory_list="${ac_mandatory_list} GSM"
8114 GSM_DIR="${withval}"
8115 ac_mandatory_list="${ac_mandatory_list} GSM"
8117 esac
8121 PBX_GSM=0
8128 GTK_DESCRIP="gtk libraries"
8129 GTK_OPTION="gtk"
8131 # Check whether --with-gtk was given.
8132 if test "${with_gtk+set}" = set; then
8133 withval=$with_gtk;
8134 case ${withval} in
8135 n|no)
8136 USE_GTK=no
8138 y|ye|yes)
8139 ac_mandatory_list="${ac_mandatory_list} GTK"
8142 GTK_DIR="${withval}"
8143 ac_mandatory_list="${ac_mandatory_list} GTK"
8145 esac
8149 PBX_GTK=0
8156 GTK2_DESCRIP="gtk2 libraries"
8157 GTK2_OPTION="gtk2"
8159 # Check whether --with-gtk2 was given.
8160 if test "${with_gtk2+set}" = set; then
8161 withval=$with_gtk2;
8162 case ${withval} in
8163 n|no)
8164 USE_GTK2=no
8166 y|ye|yes)
8167 ac_mandatory_list="${ac_mandatory_list} GTK2"
8170 GTK2_DIR="${withval}"
8171 ac_mandatory_list="${ac_mandatory_list} GTK2"
8173 esac
8177 PBX_GTK2=0
8184 GMIME_DESCRIP="GMime library"
8185 GMIME_OPTION="gmime"
8187 # Check whether --with-gmime was given.
8188 if test "${with_gmime+set}" = set; then
8189 withval=$with_gmime;
8190 case ${withval} in
8191 n|no)
8192 USE_GMIME=no
8194 y|ye|yes)
8195 ac_mandatory_list="${ac_mandatory_list} GMIME"
8198 GMIME_DIR="${withval}"
8199 ac_mandatory_list="${ac_mandatory_list} GMIME"
8201 esac
8205 PBX_GMIME=0
8212 ICONV_DESCRIP="Iconv Library"
8213 ICONV_OPTION="iconv"
8215 # Check whether --with-iconv was given.
8216 if test "${with_iconv+set}" = set; then
8217 withval=$with_iconv;
8218 case ${withval} in
8219 n|no)
8220 USE_ICONV=no
8222 y|ye|yes)
8223 ac_mandatory_list="${ac_mandatory_list} ICONV"
8226 ICONV_DIR="${withval}"
8227 ac_mandatory_list="${ac_mandatory_list} ICONV"
8229 esac
8233 PBX_ICONV=0
8240 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8241 IKSEMEL_OPTION="iksemel"
8243 # Check whether --with-iksemel was given.
8244 if test "${with_iksemel+set}" = set; then
8245 withval=$with_iksemel;
8246 case ${withval} in
8247 n|no)
8248 USE_IKSEMEL=no
8250 y|ye|yes)
8251 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8254 IKSEMEL_DIR="${withval}"
8255 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8257 esac
8261 PBX_IKSEMEL=0
8268 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8269 IMAP_TK_OPTION="imap"
8271 # Check whether --with-imap was given.
8272 if test "${with_imap+set}" = set; then
8273 withval=$with_imap;
8274 case ${withval} in
8275 n|no)
8276 USE_IMAP_TK=no
8278 y|ye|yes)
8279 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8282 IMAP_TK_DIR="${withval}"
8283 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8285 esac
8289 PBX_IMAP_TK=0
8296 ISDNNET_DESCRIP="ISDN4Linux Library"
8297 ISDNNET_OPTION="isdnnet"
8299 # Check whether --with-isdnnet was given.
8300 if test "${with_isdnnet+set}" = set; then
8301 withval=$with_isdnnet;
8302 case ${withval} in
8303 n|no)
8304 USE_ISDNNET=no
8306 y|ye|yes)
8307 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8310 ISDNNET_DIR="${withval}"
8311 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8313 esac
8317 PBX_ISDNNET=0
8324 JACK_DESCRIP="Jack Audio Connection Kit"
8325 JACK_OPTION="jack"
8327 # Check whether --with-jack was given.
8328 if test "${with_jack+set}" = set; then
8329 withval=$with_jack;
8330 case ${withval} in
8331 n|no)
8332 USE_JACK=no
8334 y|ye|yes)
8335 ac_mandatory_list="${ac_mandatory_list} JACK"
8338 JACK_DIR="${withval}"
8339 ac_mandatory_list="${ac_mandatory_list} JACK"
8341 esac
8345 PBX_JACK=0
8352 LDAP_DESCRIP="OpenLDAP"
8353 LDAP_OPTION="ldap"
8355 # Check whether --with-ldap was given.
8356 if test "${with_ldap+set}" = set; then
8357 withval=$with_ldap;
8358 case ${withval} in
8359 n|no)
8360 USE_LDAP=no
8362 y|ye|yes)
8363 ac_mandatory_list="${ac_mandatory_list} LDAP"
8366 LDAP_DIR="${withval}"
8367 ac_mandatory_list="${ac_mandatory_list} LDAP"
8369 esac
8373 PBX_LDAP=0
8380 LTDL_DESCRIP="libtool"
8381 LTDL_OPTION="ltdl"
8383 # Check whether --with-ltdl was given.
8384 if test "${with_ltdl+set}" = set; then
8385 withval=$with_ltdl;
8386 case ${withval} in
8387 n|no)
8388 USE_LTDL=no
8390 y|ye|yes)
8391 ac_mandatory_list="${ac_mandatory_list} LTDL"
8394 LTDL_DIR="${withval}"
8395 ac_mandatory_list="${ac_mandatory_list} LTDL"
8397 esac
8401 PBX_LTDL=0
8408 LUA_DESCRIP="Lua"
8409 LUA_OPTION="lua"
8411 # Check whether --with-lua was given.
8412 if test "${with_lua+set}" = set; then
8413 withval=$with_lua;
8414 case ${withval} in
8415 n|no)
8416 USE_LUA=no
8418 y|ye|yes)
8419 ac_mandatory_list="${ac_mandatory_list} LUA"
8422 LUA_DIR="${withval}"
8423 ac_mandatory_list="${ac_mandatory_list} LUA"
8425 esac
8429 PBX_LUA=0
8436 MISDN_DESCRIP="mISDN User Library"
8437 MISDN_OPTION="misdn"
8439 # Check whether --with-misdn was given.
8440 if test "${with_misdn+set}" = set; then
8441 withval=$with_misdn;
8442 case ${withval} in
8443 n|no)
8444 USE_MISDN=no
8446 y|ye|yes)
8447 ac_mandatory_list="${ac_mandatory_list} MISDN"
8450 MISDN_DIR="${withval}"
8451 ac_mandatory_list="${ac_mandatory_list} MISDN"
8453 esac
8457 PBX_MISDN=0
8464 NBS_DESCRIP="Network Broadcast Sound"
8465 NBS_OPTION="nbs"
8467 # Check whether --with-nbs was given.
8468 if test "${with_nbs+set}" = set; then
8469 withval=$with_nbs;
8470 case ${withval} in
8471 n|no)
8472 USE_NBS=no
8474 y|ye|yes)
8475 ac_mandatory_list="${ac_mandatory_list} NBS"
8478 NBS_DIR="${withval}"
8479 ac_mandatory_list="${ac_mandatory_list} NBS"
8481 esac
8485 PBX_NBS=0
8492 NCURSES_DESCRIP="ncurses"
8493 NCURSES_OPTION="ncurses"
8495 # Check whether --with-ncurses was given.
8496 if test "${with_ncurses+set}" = set; then
8497 withval=$with_ncurses;
8498 case ${withval} in
8499 n|no)
8500 USE_NCURSES=no
8502 y|ye|yes)
8503 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8506 NCURSES_DIR="${withval}"
8507 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8509 esac
8513 PBX_NCURSES=0
8520 NETSNMP_DESCRIP="Net-SNMP"
8521 NETSNMP_OPTION="netsnmp"
8523 # Check whether --with-netsnmp was given.
8524 if test "${with_netsnmp+set}" = set; then
8525 withval=$with_netsnmp;
8526 case ${withval} in
8527 n|no)
8528 USE_NETSNMP=no
8530 y|ye|yes)
8531 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8534 NETSNMP_DIR="${withval}"
8535 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8537 esac
8541 PBX_NETSNMP=0
8548 NEWT_DESCRIP="newt"
8549 NEWT_OPTION="newt"
8551 # Check whether --with-newt was given.
8552 if test "${with_newt+set}" = set; then
8553 withval=$with_newt;
8554 case ${withval} in
8555 n|no)
8556 USE_NEWT=no
8558 y|ye|yes)
8559 ac_mandatory_list="${ac_mandatory_list} NEWT"
8562 NEWT_DIR="${withval}"
8563 ac_mandatory_list="${ac_mandatory_list} NEWT"
8565 esac
8569 PBX_NEWT=0
8576 UNIXODBC_DESCRIP="unixODBC"
8577 UNIXODBC_OPTION="odbc"
8579 # Check whether --with-odbc was given.
8580 if test "${with_odbc+set}" = set; then
8581 withval=$with_odbc;
8582 case ${withval} in
8583 n|no)
8584 USE_UNIXODBC=no
8586 y|ye|yes)
8587 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8590 UNIXODBC_DIR="${withval}"
8591 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8593 esac
8597 PBX_UNIXODBC=0
8604 OGG_DESCRIP="OGG"
8605 OGG_OPTION="ogg"
8607 # Check whether --with-ogg was given.
8608 if test "${with_ogg+set}" = set; then
8609 withval=$with_ogg;
8610 case ${withval} in
8611 n|no)
8612 USE_OGG=no
8614 y|ye|yes)
8615 ac_mandatory_list="${ac_mandatory_list} OGG"
8618 OGG_DIR="${withval}"
8619 ac_mandatory_list="${ac_mandatory_list} OGG"
8621 esac
8625 PBX_OGG=0
8632 OSPTK_DESCRIP="OSP Toolkit"
8633 OSPTK_OPTION="osptk"
8635 # Check whether --with-osptk was given.
8636 if test "${with_osptk+set}" = set; then
8637 withval=$with_osptk;
8638 case ${withval} in
8639 n|no)
8640 USE_OSPTK=no
8642 y|ye|yes)
8643 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8646 OSPTK_DIR="${withval}"
8647 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8649 esac
8653 PBX_OSPTK=0
8660 OSS_DESCRIP="Open Sound System"
8661 OSS_OPTION="oss"
8663 # Check whether --with-oss was given.
8664 if test "${with_oss+set}" = set; then
8665 withval=$with_oss;
8666 case ${withval} in
8667 n|no)
8668 USE_OSS=no
8670 y|ye|yes)
8671 ac_mandatory_list="${ac_mandatory_list} OSS"
8674 OSS_DIR="${withval}"
8675 ac_mandatory_list="${ac_mandatory_list} OSS"
8677 esac
8681 PBX_OSS=0
8688 PGSQL_DESCRIP="PostgreSQL"
8689 PGSQL_OPTION="postgres"
8691 # Check whether --with-postgres was given.
8692 if test "${with_postgres+set}" = set; then
8693 withval=$with_postgres;
8694 case ${withval} in
8695 n|no)
8696 USE_PGSQL=no
8698 y|ye|yes)
8699 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8702 PGSQL_DIR="${withval}"
8703 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8705 esac
8709 PBX_PGSQL=0
8716 POPT_DESCRIP="popt"
8717 POPT_OPTION="popt"
8719 # Check whether --with-popt was given.
8720 if test "${with_popt+set}" = set; then
8721 withval=$with_popt;
8722 case ${withval} in
8723 n|no)
8724 USE_POPT=no
8726 y|ye|yes)
8727 ac_mandatory_list="${ac_mandatory_list} POPT"
8730 POPT_DIR="${withval}"
8731 ac_mandatory_list="${ac_mandatory_list} POPT"
8733 esac
8737 PBX_POPT=0
8744 PORTAUDIO_DESCRIP="PortAudio"
8745 PORTAUDIO_OPTION="portaudio"
8747 # Check whether --with-portaudio was given.
8748 if test "${with_portaudio+set}" = set; then
8749 withval=$with_portaudio;
8750 case ${withval} in
8751 n|no)
8752 USE_PORTAUDIO=no
8754 y|ye|yes)
8755 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8758 PORTAUDIO_DIR="${withval}"
8759 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8761 esac
8765 PBX_PORTAUDIO=0
8772 PRI_DESCRIP="ISDN PRI"
8773 PRI_OPTION="pri"
8775 # Check whether --with-pri was given.
8776 if test "${with_pri+set}" = set; then
8777 withval=$with_pri;
8778 case ${withval} in
8779 n|no)
8780 USE_PRI=no
8782 y|ye|yes)
8783 ac_mandatory_list="${ac_mandatory_list} PRI"
8786 PRI_DIR="${withval}"
8787 ac_mandatory_list="${ac_mandatory_list} PRI"
8789 esac
8793 PBX_PRI=0
8800 SPANDSP_DESCRIP="SPANDSP"
8801 SPANDSP_OPTION="spandsp"
8803 # Check whether --with-spandsp was given.
8804 if test "${with_spandsp+set}" = set; then
8805 withval=$with_spandsp;
8806 case ${withval} in
8807 n|no)
8808 USE_SPANDSP=no
8810 y|ye|yes)
8811 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8814 SPANDSP_DIR="${withval}"
8815 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8817 esac
8821 PBX_SPANDSP=0
8828 SS7_DESCRIP="ISDN SS7"
8829 SS7_OPTION="ss7"
8831 # Check whether --with-ss7 was given.
8832 if test "${with_ss7+set}" = set; then
8833 withval=$with_ss7;
8834 case ${withval} in
8835 n|no)
8836 USE_SS7=no
8838 y|ye|yes)
8839 ac_mandatory_list="${ac_mandatory_list} SS7"
8842 SS7_DIR="${withval}"
8843 ac_mandatory_list="${ac_mandatory_list} SS7"
8845 esac
8849 PBX_SS7=0
8856 PWLIB_DESCRIP="PWlib"
8857 PWLIB_OPTION="pwlib"
8859 # Check whether --with-pwlib was given.
8860 if test "${with_pwlib+set}" = set; then
8861 withval=$with_pwlib;
8862 case ${withval} in
8863 n|no)
8864 USE_PWLIB=no
8866 y|ye|yes)
8867 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8870 PWLIB_DIR="${withval}"
8871 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8873 esac
8877 PBX_PWLIB=0
8884 OPENH323_DESCRIP="OpenH323"
8885 OPENH323_OPTION="h323"
8887 # Check whether --with-h323 was given.
8888 if test "${with_h323+set}" = set; then
8889 withval=$with_h323;
8890 case ${withval} in
8891 n|no)
8892 USE_OPENH323=no
8894 y|ye|yes)
8895 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8898 OPENH323_DIR="${withval}"
8899 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8901 esac
8905 PBX_OPENH323=0
8912 RADIUS_DESCRIP="Radius Client"
8913 RADIUS_OPTION="radius"
8915 # Check whether --with-radius was given.
8916 if test "${with_radius+set}" = set; then
8917 withval=$with_radius;
8918 case ${withval} in
8919 n|no)
8920 USE_RADIUS=no
8922 y|ye|yes)
8923 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8926 RADIUS_DIR="${withval}"
8927 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8929 esac
8933 PBX_RADIUS=0
8940 SDL_DESCRIP="Sdl"
8941 SDL_OPTION="sdl"
8943 # Check whether --with-sdl was given.
8944 if test "${with_sdl+set}" = set; then
8945 withval=$with_sdl;
8946 case ${withval} in
8947 n|no)
8948 USE_SDL=no
8950 y|ye|yes)
8951 ac_mandatory_list="${ac_mandatory_list} SDL"
8954 SDL_DIR="${withval}"
8955 ac_mandatory_list="${ac_mandatory_list} SDL"
8957 esac
8961 PBX_SDL=0
8968 SDL_IMAGE_DESCRIP="Sdl Image library"
8969 SDL_IMAGE_OPTION="SDL_image"
8971 # Check whether --with-SDL_image was given.
8972 if test "${with_SDL_image+set}" = set; then
8973 withval=$with_SDL_image;
8974 case ${withval} in
8975 n|no)
8976 USE_SDL_IMAGE=no
8978 y|ye|yes)
8979 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8982 SDL_IMAGE_DIR="${withval}"
8983 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8985 esac
8989 PBX_SDL_IMAGE=0
8996 SACLM_DESCRIP="SAForum AIS CLM"
8997 SACLM_OPTION="SaClm"
8999 # Check whether --with-SaClm was given.
9000 if test "${with_SaClm+set}" = set; then
9001 withval=$with_SaClm;
9002 case ${withval} in
9003 n|no)
9004 USE_SACLM=no
9006 y|ye|yes)
9007 ac_mandatory_list="${ac_mandatory_list} SACLM"
9010 SACLM_DIR="${withval}"
9011 ac_mandatory_list="${ac_mandatory_list} SACLM"
9013 esac
9017 PBX_SACLM=0
9024 SAEVT_DESCRIP="SAForum AIS EVT"
9025 SAEVT_OPTION="SaEvt"
9027 # Check whether --with-SaEvt was given.
9028 if test "${with_SaEvt+set}" = set; then
9029 withval=$with_SaEvt;
9030 case ${withval} in
9031 n|no)
9032 USE_SAEVT=no
9034 y|ye|yes)
9035 ac_mandatory_list="${ac_mandatory_list} SAEVT"
9038 SAEVT_DIR="${withval}"
9039 ac_mandatory_list="${ac_mandatory_list} SAEVT"
9041 esac
9045 PBX_SAEVT=0
9052 SPEEX_DESCRIP="Speex"
9053 SPEEX_OPTION="speex"
9055 # Check whether --with-speex was given.
9056 if test "${with_speex+set}" = set; then
9057 withval=$with_speex;
9058 case ${withval} in
9059 n|no)
9060 USE_SPEEX=no
9062 y|ye|yes)
9063 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9066 SPEEX_DIR="${withval}"
9067 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9069 esac
9073 PBX_SPEEX=0
9080 SPEEXDSP_DESCRIP="Speexdsp"
9081 SPEEXDSP_OPTION="speexdsp"
9083 # Check whether --with-speexdsp was given.
9084 if test "${with_speexdsp+set}" = set; then
9085 withval=$with_speexdsp;
9086 case ${withval} in
9087 n|no)
9088 USE_SPEEXDSP=no
9090 y|ye|yes)
9091 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9094 SPEEXDSP_DIR="${withval}"
9095 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9097 esac
9101 PBX_SPEEXDSP=0
9108 SQLITE_DESCRIP="SQLite"
9109 SQLITE_OPTION="sqlite"
9111 # Check whether --with-sqlite was given.
9112 if test "${with_sqlite+set}" = set; then
9113 withval=$with_sqlite;
9114 case ${withval} in
9115 n|no)
9116 USE_SQLITE=no
9118 y|ye|yes)
9119 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9122 SQLITE_DIR="${withval}"
9123 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9125 esac
9129 PBX_SQLITE=0
9136 SQLITE3_DESCRIP="SQLite"
9137 SQLITE3_OPTION="sqlite3"
9139 # Check whether --with-sqlite3 was given.
9140 if test "${with_sqlite3+set}" = set; then
9141 withval=$with_sqlite3;
9142 case ${withval} in
9143 n|no)
9144 USE_SQLITE3=no
9146 y|ye|yes)
9147 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9150 SQLITE3_DIR="${withval}"
9151 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9153 esac
9157 PBX_SQLITE3=0
9164 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9165 SUPPSERV_OPTION="suppserv"
9167 # Check whether --with-suppserv was given.
9168 if test "${with_suppserv+set}" = set; then
9169 withval=$with_suppserv;
9170 case ${withval} in
9171 n|no)
9172 USE_SUPPSERV=no
9174 y|ye|yes)
9175 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9178 SUPPSERV_DIR="${withval}"
9179 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9181 esac
9185 PBX_SUPPSERV=0
9192 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9193 OPENSSL_OPTION="ssl"
9195 # Check whether --with-ssl was given.
9196 if test "${with_ssl+set}" = set; then
9197 withval=$with_ssl;
9198 case ${withval} in
9199 n|no)
9200 USE_OPENSSL=no
9202 y|ye|yes)
9203 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9206 OPENSSL_DIR="${withval}"
9207 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9209 esac
9213 PBX_OPENSSL=0
9220 FREETDS_DESCRIP="FreeTDS"
9221 FREETDS_OPTION="tds"
9223 # Check whether --with-tds was given.
9224 if test "${with_tds+set}" = set; then
9225 withval=$with_tds;
9226 case ${withval} in
9227 n|no)
9228 USE_FREETDS=no
9230 y|ye|yes)
9231 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9234 FREETDS_DIR="${withval}"
9235 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9237 esac
9241 PBX_FREETDS=0
9248 TERMCAP_DESCRIP="Termcap"
9249 TERMCAP_OPTION="termcap"
9251 # Check whether --with-termcap was given.
9252 if test "${with_termcap+set}" = set; then
9253 withval=$with_termcap;
9254 case ${withval} in
9255 n|no)
9256 USE_TERMCAP=no
9258 y|ye|yes)
9259 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9262 TERMCAP_DIR="${withval}"
9263 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9265 esac
9269 PBX_TERMCAP=0
9276 TINFO_DESCRIP="Term Info"
9277 TINFO_OPTION="tinfo"
9279 # Check whether --with-tinfo was given.
9280 if test "${with_tinfo+set}" = set; then
9281 withval=$with_tinfo;
9282 case ${withval} in
9283 n|no)
9284 USE_TINFO=no
9286 y|ye|yes)
9287 ac_mandatory_list="${ac_mandatory_list} TINFO"
9290 TINFO_DIR="${withval}"
9291 ac_mandatory_list="${ac_mandatory_list} TINFO"
9293 esac
9297 PBX_TINFO=0
9304 TONEZONE_DESCRIP="tonezone"
9305 TONEZONE_OPTION="tonezone"
9307 # Check whether --with-tonezone was given.
9308 if test "${with_tonezone+set}" = set; then
9309 withval=$with_tonezone;
9310 case ${withval} in
9311 n|no)
9312 USE_TONEZONE=no
9314 y|ye|yes)
9315 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9318 TONEZONE_DIR="${withval}"
9319 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9321 esac
9325 PBX_TONEZONE=0
9332 USB_DESCRIP="usb"
9333 USB_OPTION="usb"
9335 # Check whether --with-usb was given.
9336 if test "${with_usb+set}" = set; then
9337 withval=$with_usb;
9338 case ${withval} in
9339 n|no)
9340 USE_USB=no
9342 y|ye|yes)
9343 ac_mandatory_list="${ac_mandatory_list} USB"
9346 USB_DIR="${withval}"
9347 ac_mandatory_list="${ac_mandatory_list} USB"
9349 esac
9353 PBX_USB=0
9360 VORBIS_DESCRIP="Vorbis"
9361 VORBIS_OPTION="vorbis"
9363 # Check whether --with-vorbis was given.
9364 if test "${with_vorbis+set}" = set; then
9365 withval=$with_vorbis;
9366 case ${withval} in
9367 n|no)
9368 USE_VORBIS=no
9370 y|ye|yes)
9371 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9374 VORBIS_DIR="${withval}"
9375 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9377 esac
9381 PBX_VORBIS=0
9388 VPB_DESCRIP="Voicetronix API"
9389 VPB_OPTION="vpb"
9391 # Check whether --with-vpb was given.
9392 if test "${with_vpb+set}" = set; then
9393 withval=$with_vpb;
9394 case ${withval} in
9395 n|no)
9396 USE_VPB=no
9398 y|ye|yes)
9399 ac_mandatory_list="${ac_mandatory_list} VPB"
9402 VPB_DIR="${withval}"
9403 ac_mandatory_list="${ac_mandatory_list} VPB"
9405 esac
9409 PBX_VPB=0
9416 X11_DESCRIP="X11 support"
9417 X11_OPTION="x11"
9419 # Check whether --with-x11 was given.
9420 if test "${with_x11+set}" = set; then
9421 withval=$with_x11;
9422 case ${withval} in
9423 n|no)
9424 USE_X11=no
9426 y|ye|yes)
9427 ac_mandatory_list="${ac_mandatory_list} X11"
9430 X11_DIR="${withval}"
9431 ac_mandatory_list="${ac_mandatory_list} X11"
9433 esac
9437 PBX_X11=0
9444 ZLIB_DESCRIP="zlib"
9445 ZLIB_OPTION="z"
9447 # Check whether --with-z was given.
9448 if test "${with_z+set}" = set; then
9449 withval=$with_z;
9450 case ${withval} in
9451 n|no)
9452 USE_ZLIB=no
9454 y|ye|yes)
9455 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9458 ZLIB_DIR="${withval}"
9459 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9461 esac
9465 PBX_ZLIB=0
9472 ZAPTEL_DESCRIP="Zaptel"
9473 ZAPTEL_OPTION="zaptel"
9475 # Check whether --with-zaptel was given.
9476 if test "${with_zaptel+set}" = set; then
9477 withval=$with_zaptel;
9478 case ${withval} in
9479 n|no)
9480 USE_ZAPTEL=no
9482 y|ye|yes)
9483 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9486 ZAPTEL_DIR="${withval}"
9487 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9489 esac
9493 PBX_ZAPTEL=0
9500 # check for basic system features and functionality before
9501 # checking for package libraries
9503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9504 # for constant arguments. Useless!
9505 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9507 if test "${ac_cv_working_alloca_h+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <alloca.h>
9518 main ()
9520 char *p = (char *) alloca (2 * sizeof (int));
9521 if (p) return 0;
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_working_alloca_h=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_working_alloca_h=no
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9557 if test $ac_cv_working_alloca_h = yes; then
9559 cat >>confdefs.h <<\_ACEOF
9560 #define HAVE_ALLOCA_H 1
9561 _ACEOF
9565 { echo "$as_me:$LINENO: checking for alloca" >&5
9566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9567 if test "${ac_cv_func_alloca_works+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #ifdef __GNUC__
9577 # define alloca __builtin_alloca
9578 #else
9579 # ifdef _MSC_VER
9580 # include <malloc.h>
9581 # define alloca _alloca
9582 # else
9583 # ifdef HAVE_ALLOCA_H
9584 # include <alloca.h>
9585 # else
9586 # ifdef _AIX
9587 #pragma alloca
9588 # else
9589 # ifndef alloca /* predefined by HP cc +Olibcalls */
9590 char *alloca ();
9591 # endif
9592 # endif
9593 # endif
9594 # endif
9595 #endif
9598 main ()
9600 char *p = (char *) alloca (1);
9601 if (p) return 0;
9603 return 0;
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_alloca_works=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_alloca_works=no
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9638 if test $ac_cv_func_alloca_works = yes; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_ALLOCA 1
9642 _ACEOF
9644 else
9645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9646 # that cause trouble. Some versions do not even contain alloca or
9647 # contain a buggy version. If you still want to use their alloca,
9648 # use ar to extract alloca.o from them instead of compiling alloca.c.
9650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9652 cat >>confdefs.h <<\_ACEOF
9653 #define C_ALLOCA 1
9654 _ACEOF
9657 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9659 if test "${ac_cv_os_cray+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 #if defined CRAY && ! defined CRAY2
9669 webecray
9670 #else
9671 wenotbecray
9672 #endif
9674 _ACEOF
9675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9676 $EGREP "webecray" >/dev/null 2>&1; then
9677 ac_cv_os_cray=yes
9678 else
9679 ac_cv_os_cray=no
9681 rm -f conftest*
9684 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9685 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9686 if test $ac_cv_os_cray = yes; then
9687 for ac_func in _getb67 GETB67 getb67; do
9688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define $ac_func innocuous_$ac_func
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char $ac_func (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9709 #ifdef __STDC__
9710 # include <limits.h>
9711 #else
9712 # include <assert.h>
9713 #endif
9715 #undef $ac_func
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char $ac_func ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_$ac_func || defined __stub___$ac_func
9728 choke me
9729 #endif
9732 main ()
9734 return $ac_func ();
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9741 case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_link") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } && {
9753 test -z "$ac_c_werror_flag" ||
9754 test ! -s conftest.err
9755 } && test -s conftest$ac_exeext &&
9756 $as_test_x conftest$ac_exeext; then
9757 eval "$as_ac_var=yes"
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 eval "$as_ac_var=no"
9765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766 conftest$ac_exeext conftest.$ac_ext
9768 ac_res=`eval echo '${'$as_ac_var'}'`
9769 { echo "$as_me:$LINENO: result: $ac_res" >&5
9770 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_var'}'` = yes; then
9773 cat >>confdefs.h <<_ACEOF
9774 #define CRAY_STACKSEG_END $ac_func
9775 _ACEOF
9777 break
9780 done
9783 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9785 if test "${ac_cv_c_stack_direction+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 if test "$cross_compiling" = yes; then
9789 ac_cv_c_stack_direction=0
9790 else
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9799 find_stack_direction ()
9801 static char *addr = 0;
9802 auto char dummy;
9803 if (addr == 0)
9805 addr = &dummy;
9806 return find_stack_direction ();
9808 else
9809 return (&dummy > addr) ? 1 : -1;
9813 main ()
9815 return find_stack_direction () < 0;
9817 _ACEOF
9818 rm -f conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_c_stack_direction=1
9839 else
9840 echo "$as_me: program exited with status $ac_status" >&5
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ( exit $ac_status )
9845 ac_cv_c_stack_direction=-1
9847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9855 cat >>confdefs.h <<_ACEOF
9856 #define STACK_DIRECTION $ac_cv_c_stack_direction
9857 _ACEOF
9867 ac_header_dirent=no
9868 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9869 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9870 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9871 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <sys/types.h>
9882 #include <$ac_hdr>
9885 main ()
9887 if ((DIR *) 0)
9888 return 0;
9890 return 0;
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9895 case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest.$ac_objext; then
9910 eval "$as_ac_Header=yes"
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 eval "$as_ac_Header=no"
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 ac_res=`eval echo '${'$as_ac_Header'}'`
9921 { echo "$as_me:$LINENO: result: $ac_res" >&5
9922 echo "${ECHO_T}$ac_res" >&6; }
9923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9926 _ACEOF
9928 ac_header_dirent=$ac_hdr; break
9931 done
9932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9933 if test $ac_header_dirent = dirent.h; then
9934 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9935 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9936 if test "${ac_cv_search_opendir+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 ac_func_search_save_LIBS=$LIBS
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any GCC internal prototype to avoid an error.
9948 Use char because int might match the return type of a GCC
9949 builtin and then its argument prototype would still apply. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 char opendir ();
9955 main ()
9957 return opendir ();
9959 return 0;
9961 _ACEOF
9962 for ac_lib in '' dir; do
9963 if test -z "$ac_lib"; then
9964 ac_res="none required"
9965 else
9966 ac_res=-l$ac_lib
9967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9971 case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest$ac_exeext &&
9986 $as_test_x conftest$ac_exeext; then
9987 ac_cv_search_opendir=$ac_res
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9996 conftest$ac_exeext
9997 if test "${ac_cv_search_opendir+set}" = set; then
9998 break
10000 done
10001 if test "${ac_cv_search_opendir+set}" = set; then
10003 else
10004 ac_cv_search_opendir=no
10006 rm conftest.$ac_ext
10007 LIBS=$ac_func_search_save_LIBS
10009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10011 ac_res=$ac_cv_search_opendir
10012 if test "$ac_res" != no; then
10013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10017 else
10018 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10019 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10020 if test "${ac_cv_search_opendir+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 ac_func_search_save_LIBS=$LIBS
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char opendir ();
10039 main ()
10041 return opendir ();
10043 return 0;
10045 _ACEOF
10046 for ac_lib in '' x; do
10047 if test -z "$ac_lib"; then
10048 ac_res="none required"
10049 else
10050 ac_res=-l$ac_lib
10051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext &&
10070 $as_test_x conftest$ac_exeext; then
10071 ac_cv_search_opendir=$ac_res
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext
10081 if test "${ac_cv_search_opendir+set}" = set; then
10082 break
10084 done
10085 if test "${ac_cv_search_opendir+set}" = set; then
10087 else
10088 ac_cv_search_opendir=no
10090 rm conftest.$ac_ext
10091 LIBS=$ac_func_search_save_LIBS
10093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10095 ac_res=$ac_cv_search_opendir
10096 if test "$ac_res" != no; then
10097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10105 if test "${ac_cv_header_stdc+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <stdlib.h>
10115 #include <stdarg.h>
10116 #include <string.h>
10117 #include <float.h>
10120 main ()
10124 return 0;
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 ac_cv_header_stdc=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_header_stdc=no
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 if test $ac_cv_header_stdc = yes; then
10155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <string.h>
10164 _ACEOF
10165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10166 $EGREP "memchr" >/dev/null 2>&1; then
10168 else
10169 ac_cv_header_stdc=no
10171 rm -f conftest*
10175 if test $ac_cv_header_stdc = yes; then
10176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <stdlib.h>
10185 _ACEOF
10186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10187 $EGREP "free" >/dev/null 2>&1; then
10189 else
10190 ac_cv_header_stdc=no
10192 rm -f conftest*
10196 if test $ac_cv_header_stdc = yes; then
10197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10198 if test "$cross_compiling" = yes; then
10200 else
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <ctype.h>
10208 #include <stdlib.h>
10209 #if ((' ' & 0x0FF) == 0x020)
10210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10212 #else
10213 # define ISLOWER(c) \
10214 (('a' <= (c) && (c) <= 'i') \
10215 || ('j' <= (c) && (c) <= 'r') \
10216 || ('s' <= (c) && (c) <= 'z'))
10217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10218 #endif
10220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10222 main ()
10224 int i;
10225 for (i = 0; i < 256; i++)
10226 if (XOR (islower (i), ISLOWER (i))
10227 || toupper (i) != TOUPPER (i))
10228 return 2;
10229 return 0;
10231 _ACEOF
10232 rm -f conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_link") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10253 else
10254 echo "$as_me: program exited with status $ac_status" >&5
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ( exit $ac_status )
10259 ac_cv_header_stdc=no
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10269 if test $ac_cv_header_stdc = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define STDC_HEADERS 1
10273 _ACEOF
10277 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10278 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10279 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <sys/types.h>
10289 #include <sys/wait.h>
10290 #ifndef WEXITSTATUS
10291 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10292 #endif
10293 #ifndef WIFEXITED
10294 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10295 #endif
10298 main ()
10300 int s;
10301 wait (&s);
10302 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (ac_try="$ac_compile"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_cv_header_sys_wait_h=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_header_sys_wait_h=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10335 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10336 if test $ac_cv_header_sys_wait_h = yes; then
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_SYS_WAIT_H 1
10340 _ACEOF
10368 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h
10370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_res=`eval echo '${'$as_ac_Header'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10380 else
10381 # Is the header compilable?
10382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 #include <$ac_header>
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.$ac_objext; then
10410 ac_header_compiler=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_header_compiler=no
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10420 echo "${ECHO_T}$ac_header_compiler" >&6; }
10422 # Is the header present?
10423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <$ac_header>
10432 _ACEOF
10433 if { (ac_try="$ac_cpp conftest.$ac_ext"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } >/dev/null && {
10446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10448 }; then
10449 ac_header_preproc=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_header_preproc=no
10457 rm -f conftest.err conftest.$ac_ext
10458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10459 echo "${ECHO_T}$ac_header_preproc" >&6; }
10461 # So? What about this header?
10462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10463 yes:no: )
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10468 ac_header_preproc=yes
10470 no:yes:* )
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10483 ( cat <<\_ASBOX
10484 ## ------------------------------- ##
10485 ## Report this to www.asterisk.org ##
10486 ## ------------------------------- ##
10487 _ASBOX
10488 ) | sed "s/^/$as_me: WARNING: /" >&2
10490 esac
10491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 eval "$as_ac_Header=\$ac_header_preproc"
10498 ac_res=`eval echo '${'$as_ac_Header'}'`
10499 { echo "$as_me:$LINENO: result: $ac_res" >&5
10500 echo "${ECHO_T}$ac_res" >&6; }
10503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10506 _ACEOF
10510 done
10515 for ac_header in winsock.h winsock2.h
10517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_res=`eval echo '${'$as_ac_Header'}'`
10525 { echo "$as_me:$LINENO: result: $ac_res" >&5
10526 echo "${ECHO_T}$ac_res" >&6; }
10527 else
10528 # Is the header compilable?
10529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10538 #include <$ac_header>
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (ac_try="$ac_compile"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 ac_header_compiler=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_header_compiler=no
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567 echo "${ECHO_T}$ac_header_compiler" >&6; }
10569 # Is the header present?
10570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <$ac_header>
10579 _ACEOF
10580 if { (ac_try="$ac_cpp conftest.$ac_ext"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null && {
10593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 }; then
10596 ac_header_preproc=yes
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10610 yes:no: )
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10617 no:yes:* )
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10630 ( cat <<\_ASBOX
10631 ## ------------------------------- ##
10632 ## Report this to www.asterisk.org ##
10633 ## ------------------------------- ##
10634 _ASBOX
10635 ) | sed "s/^/$as_me: WARNING: /" >&2
10637 esac
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 eval "$as_ac_Header=\$ac_header_preproc"
10645 ac_res=`eval echo '${'$as_ac_Header'}'`
10646 { echo "$as_me:$LINENO: result: $ac_res" >&5
10647 echo "${ECHO_T}$ac_res" >&6; }
10650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10651 cat >>confdefs.h <<_ACEOF
10652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653 _ACEOF
10657 done
10660 # Check whether --enable-largefile was given.
10661 if test "${enable_largefile+set}" = set; then
10662 enableval=$enable_largefile;
10665 if test "$enable_largefile" != no; then
10667 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10668 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10669 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 ac_cv_sys_largefile_CC=no
10673 if test "$GCC" != yes; then
10674 ac_save_CC=$CC
10675 while :; do
10676 # IRIX 6.2 and later do not support large files by default,
10677 # so use the C compiler's -n32 option if that helps.
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <sys/types.h>
10685 /* Check that off_t can represent 2**63 - 1 correctly.
10686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10687 since some C++ compilers masquerading as C compilers
10688 incorrectly reject 9223372036854775807. */
10689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10691 && LARGE_OFF_T % 2147483647 == 1)
10692 ? 1 : -1];
10694 main ()
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_compile") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest.$ac_objext; then
10718 break
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10726 rm -f core conftest.err conftest.$ac_objext
10727 CC="$CC -n32"
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_cv_sys_largefile_CC=' -n32'; break
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10753 rm -f core conftest.err conftest.$ac_objext
10754 break
10755 done
10756 CC=$ac_save_CC
10757 rm -f conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10761 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10762 if test "$ac_cv_sys_largefile_CC" != no; then
10763 CC=$CC$ac_cv_sys_largefile_CC
10766 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10767 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10768 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 while :; do
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <sys/types.h>
10779 /* Check that off_t can represent 2**63 - 1 correctly.
10780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10781 since some C++ compilers masquerading as C compilers
10782 incorrectly reject 9223372036854775807. */
10783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10785 && LARGE_OFF_T % 2147483647 == 1)
10786 ? 1 : -1];
10788 main ()
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (ac_try="$ac_compile"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest.$ac_objext; then
10812 ac_cv_sys_file_offset_bits=no; break
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 #define _FILE_OFFSET_BITS 64
10828 #include <sys/types.h>
10829 /* Check that off_t can represent 2**63 - 1 correctly.
10830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10831 since some C++ compilers masquerading as C compilers
10832 incorrectly reject 9223372036854775807. */
10833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10835 && LARGE_OFF_T % 2147483647 == 1)
10836 ? 1 : -1];
10838 main ()
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest.$ac_objext; then
10862 ac_cv_sys_file_offset_bits=64; break
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 ac_cv_sys_file_offset_bits=unknown
10872 break
10873 done
10875 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10876 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10877 case $ac_cv_sys_file_offset_bits in #(
10878 no | unknown) ;;
10880 cat >>confdefs.h <<_ACEOF
10881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10882 _ACEOF
10884 esac
10885 rm -f conftest*
10886 if test $ac_cv_sys_file_offset_bits = unknown; then
10887 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10888 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10889 if test "${ac_cv_sys_large_files+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892 while :; do
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #include <sys/types.h>
10900 /* Check that off_t can represent 2**63 - 1 correctly.
10901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10902 since some C++ compilers masquerading as C compilers
10903 incorrectly reject 9223372036854775807. */
10904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10906 && LARGE_OFF_T % 2147483647 == 1)
10907 ? 1 : -1];
10909 main ()
10913 return 0;
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && {
10930 test -z "$ac_c_werror_flag" ||
10931 test ! -s conftest.err
10932 } && test -s conftest.$ac_objext; then
10933 ac_cv_sys_large_files=no; break
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #define _LARGE_FILES 1
10949 #include <sys/types.h>
10950 /* Check that off_t can represent 2**63 - 1 correctly.
10951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10952 since some C++ compilers masquerading as C compilers
10953 incorrectly reject 9223372036854775807. */
10954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10956 && LARGE_OFF_T % 2147483647 == 1)
10957 ? 1 : -1];
10959 main ()
10963 return 0;
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 ac_cv_sys_large_files=1; break
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 ac_cv_sys_large_files=unknown
10993 break
10994 done
10996 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10997 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10998 case $ac_cv_sys_large_files in #(
10999 no | unknown) ;;
11001 cat >>confdefs.h <<_ACEOF
11002 #define _LARGE_FILES $ac_cv_sys_large_files
11003 _ACEOF
11005 esac
11006 rm -f conftest*
11011 # Checks for typedefs, structures, and compiler characteristics.
11012 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11013 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11014 if test "${ac_cv_header_stdbool_h+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 cat >conftest.$ac_ext <<_ACEOF
11018 /* confdefs.h. */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11024 #include <stdbool.h>
11025 #ifndef bool
11026 "error: bool is not defined"
11027 #endif
11028 #ifndef false
11029 "error: false is not defined"
11030 #endif
11031 #if false
11032 "error: false is not 0"
11033 #endif
11034 #ifndef true
11035 "error: true is not defined"
11036 #endif
11037 #if true != 1
11038 "error: true is not 1"
11039 #endif
11040 #ifndef __bool_true_false_are_defined
11041 "error: __bool_true_false_are_defined is not defined"
11042 #endif
11044 struct s { _Bool s: 1; _Bool t; } s;
11046 char a[true == 1 ? 1 : -1];
11047 char b[false == 0 ? 1 : -1];
11048 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11049 char d[(bool) 0.5 == true ? 1 : -1];
11050 bool e = &s;
11051 char f[(_Bool) 0.0 == false ? 1 : -1];
11052 char g[true];
11053 char h[sizeof (_Bool)];
11054 char i[sizeof s.t];
11055 enum { j = false, k = true, l = false * true, m = true * 256 };
11056 _Bool n[m];
11057 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11058 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11059 # if defined __xlc__ || defined __GNUC__
11060 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11061 reported by James Lemley on 2005-10-05; see
11062 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11063 This test is not quite right, since xlc is allowed to
11064 reject this program, as the initializer for xlcbug is
11065 not one of the forms that C requires support for.
11066 However, doing the test right would require a runtime
11067 test, and that would make cross-compilation harder.
11068 Let us hope that IBM fixes the xlc bug, and also adds
11069 support for this kind of constant expression. In the
11070 meantime, this test will reject xlc, which is OK, since
11071 our stdbool.h substitute should suffice. We also test
11072 this with GCC, where it should work, to detect more
11073 quickly whether someone messes up the test in the
11074 future. */
11075 char digs[] = "0123456789";
11076 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11077 # endif
11078 /* Catch a bug in an HP-UX C compiler. See
11079 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11080 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11082 _Bool q = true;
11083 _Bool *pq = &q;
11086 main ()
11089 *pq |= q;
11090 *pq |= ! q;
11091 /* Refer to every declared value, to avoid compiler optimizations. */
11092 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11093 + !m + !n + !o + !p + !q + !pq);
11096 return 0;
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 ac_cv_header_stdbool_h=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_header_stdbool_h=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11127 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11128 { echo "$as_me:$LINENO: checking for _Bool" >&5
11129 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11130 if test "${ac_cv_type__Bool+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 $ac_includes_default
11140 typedef _Bool ac__type_new_;
11142 main ()
11144 if ((ac__type_new_ *) 0)
11145 return 0;
11146 if (sizeof (ac__type_new_))
11147 return 0;
11149 return 0;
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (ac_try="$ac_compile"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_compile") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest.$ac_objext; then
11169 ac_cv_type__Bool=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_type__Bool=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11180 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11181 if test $ac_cv_type__Bool = yes; then
11183 cat >>confdefs.h <<_ACEOF
11184 #define HAVE__BOOL 1
11185 _ACEOF
11190 if test $ac_cv_header_stdbool_h = yes; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_STDBOOL_H 1
11194 _ACEOF
11198 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11199 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11200 if test "${ac_cv_c_const+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11211 main ()
11213 /* FIXME: Include the comments suggested by Paul. */
11214 #ifndef __cplusplus
11215 /* Ultrix mips cc rejects this. */
11216 typedef int charset[2];
11217 const charset cs;
11218 /* SunOS 4.1.1 cc rejects this. */
11219 char const *const *pcpcc;
11220 char **ppc;
11221 /* NEC SVR4.0.2 mips cc rejects this. */
11222 struct point {int x, y;};
11223 static struct point const zero = {0,0};
11224 /* AIX XL C 1.02.0.0 rejects this.
11225 It does not let you subtract one const X* pointer from another in
11226 an arm of an if-expression whose if-part is not a constant
11227 expression */
11228 const char *g = "string";
11229 pcpcc = &g + (g ? g-g : 0);
11230 /* HPUX 7.0 cc rejects these. */
11231 ++pcpcc;
11232 ppc = (char**) pcpcc;
11233 pcpcc = (char const *const *) ppc;
11234 { /* SCO 3.2v4 cc rejects this. */
11235 char *t;
11236 char const *s = 0 ? (char *) 0 : (char const *) 0;
11238 *t++ = 0;
11239 if (s) return 0;
11241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11242 int x[] = {25, 17};
11243 const int *foo = &x[0];
11244 ++foo;
11246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11247 typedef const int *iptr;
11248 iptr p = 0;
11249 ++p;
11251 { /* AIX XL C 1.02.0.0 rejects this saying
11252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11253 struct s { int j; const int *ap[3]; };
11254 struct s *b; b->j = 5;
11256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11257 const int foo = 10;
11258 if (!foo) return 0;
11260 return !cs[0] && !zero.x;
11261 #endif
11264 return 0;
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest.$ac_objext; then
11284 ac_cv_c_const=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_c_const=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11295 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11296 if test $ac_cv_c_const = no; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define const
11300 _ACEOF
11304 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11305 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11306 if test "${ac_cv_type_uid_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11317 _ACEOF
11318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11319 $EGREP "uid_t" >/dev/null 2>&1; then
11320 ac_cv_type_uid_t=yes
11321 else
11322 ac_cv_type_uid_t=no
11324 rm -f conftest*
11327 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11328 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11329 if test $ac_cv_type_uid_t = no; then
11331 cat >>confdefs.h <<\_ACEOF
11332 #define uid_t int
11333 _ACEOF
11336 cat >>confdefs.h <<\_ACEOF
11337 #define gid_t int
11338 _ACEOF
11342 { echo "$as_me:$LINENO: checking for inline" >&5
11343 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11344 if test "${ac_cv_c_inline+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347 ac_cv_c_inline=no
11348 for ac_kw in inline __inline__ __inline; do
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #ifndef __cplusplus
11356 typedef int foo_t;
11357 static $ac_kw foo_t static_foo () {return 0; }
11358 $ac_kw foo_t foo () {return 0; }
11359 #endif
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.$ac_objext; then
11379 ac_cv_c_inline=$ac_kw
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 test "$ac_cv_c_inline" != no && break
11389 done
11392 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11393 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11396 case $ac_cv_c_inline in
11397 inline | yes) ;;
11399 case $ac_cv_c_inline in
11400 no) ac_val=;;
11401 *) ac_val=$ac_cv_c_inline;;
11402 esac
11403 cat >>confdefs.h <<_ACEOF
11404 #ifndef __cplusplus
11405 #define inline $ac_val
11406 #endif
11407 _ACEOF
11409 esac
11411 { echo "$as_me:$LINENO: checking for mode_t" >&5
11412 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11413 if test "${ac_cv_type_mode_t+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 typedef mode_t ac__type_new_;
11425 main ()
11427 if ((ac__type_new_ *) 0)
11428 return 0;
11429 if (sizeof (ac__type_new_))
11430 return 0;
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_compile") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest.$ac_objext; then
11452 ac_cv_type_mode_t=yes
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_cv_type_mode_t=no
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11464 if test $ac_cv_type_mode_t = yes; then
11466 else
11468 cat >>confdefs.h <<_ACEOF
11469 #define mode_t int
11470 _ACEOF
11474 { echo "$as_me:$LINENO: checking for off_t" >&5
11475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11476 if test "${ac_cv_type_off_t+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef off_t ac__type_new_;
11488 main ()
11490 if ((ac__type_new_ *) 0)
11491 return 0;
11492 if (sizeof (ac__type_new_))
11493 return 0;
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (ac_try="$ac_compile"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 ac_cv_type_off_t=yes
11516 else
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_cv_type_off_t=no
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11527 if test $ac_cv_type_off_t = yes; then
11529 else
11531 cat >>confdefs.h <<_ACEOF
11532 #define off_t long int
11533 _ACEOF
11537 { echo "$as_me:$LINENO: checking for pid_t" >&5
11538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11539 if test "${ac_cv_type_pid_t+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 $ac_includes_default
11549 typedef pid_t ac__type_new_;
11551 main ()
11553 if ((ac__type_new_ *) 0)
11554 return 0;
11555 if (sizeof (ac__type_new_))
11556 return 0;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (ac_try="$ac_compile"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
11578 ac_cv_type_pid_t=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_type_pid_t=no
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11590 if test $ac_cv_type_pid_t = yes; then
11592 else
11594 cat >>confdefs.h <<_ACEOF
11595 #define pid_t int
11596 _ACEOF
11600 { echo "$as_me:$LINENO: checking for size_t" >&5
11601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11602 if test "${ac_cv_type_size_t+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 $ac_includes_default
11612 typedef size_t ac__type_new_;
11614 main ()
11616 if ((ac__type_new_ *) 0)
11617 return 0;
11618 if (sizeof (ac__type_new_))
11619 return 0;
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11641 ac_cv_type_size_t=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_cv_type_size_t=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11653 if test $ac_cv_type_size_t = yes; then
11655 else
11657 cat >>confdefs.h <<_ACEOF
11658 #define size_t unsigned int
11659 _ACEOF
11663 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11664 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11665 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h. */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11676 main ()
11678 static struct stat ac_aggr;
11679 if (ac_aggr.st_blksize)
11680 return 0;
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_compile") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest.$ac_objext; then
11702 ac_cv_member_struct_stat_st_blksize=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 $ac_includes_default
11715 main ()
11717 static struct stat ac_aggr;
11718 if (sizeof ac_aggr.st_blksize)
11719 return 0;
11721 return 0;
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (ac_try="$ac_compile"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_compile") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest.$ac_objext; then
11741 ac_cv_member_struct_stat_st_blksize=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_member_struct_stat_st_blksize=no
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11756 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11760 _ACEOF
11765 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11766 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11767 if test "${ac_cv_header_time+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 #include <sys/types.h>
11777 #include <sys/time.h>
11778 #include <time.h>
11781 main ()
11783 if ((struct tm *) 0)
11784 return 0;
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
11806 ac_cv_header_time=yes
11807 else
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_cv_header_time=no
11814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11817 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11818 if test $ac_cv_header_time = yes; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define TIME_WITH_SYS_TIME 1
11822 _ACEOF
11826 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11828 if test "${ac_cv_struct_tm+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <sys/types.h>
11838 #include <time.h>
11841 main ()
11843 struct tm tm;
11844 int *p = &tm.tm_sec;
11845 return !p;
11847 return 0;
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.$ac_objext; then
11867 ac_cv_struct_tm=time.h
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_cv_struct_tm=sys/time.h
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11878 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11879 if test $ac_cv_struct_tm = sys/time.h; then
11881 cat >>confdefs.h <<\_ACEOF
11882 #define TM_IN_SYS_TIME 1
11883 _ACEOF
11887 { echo "$as_me:$LINENO: checking for working volatile" >&5
11888 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11889 if test "${ac_cv_c_volatile+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11900 main ()
11903 volatile int x;
11904 int * volatile y = (int *) 0;
11905 return !x && !y;
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_cv_c_volatile=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_c_volatile=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11938 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11939 if test $ac_cv_c_volatile = no; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define volatile
11943 _ACEOF
11947 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11948 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11949 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 $ac_includes_default
11959 typedef ptrdiff_t ac__type_new_;
11961 main ()
11963 if ((ac__type_new_ *) 0)
11964 return 0;
11965 if (sizeof (ac__type_new_))
11966 return 0;
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.$ac_objext; then
11988 ac_cv_type_ptrdiff_t=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_type_ptrdiff_t=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11999 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12000 if test $ac_cv_type_ptrdiff_t = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_PTRDIFF_T 1
12004 _ACEOF
12010 # Checks for library functions.
12012 for ac_header in unistd.h
12014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024 else
12025 # Is the header compilable?
12026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12035 #include <$ac_header>
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest.$ac_objext; then
12054 ac_header_compiler=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_compiler=no
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064 echo "${ECHO_T}$ac_header_compiler" >&6; }
12066 # Is the header present?
12067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 #include <$ac_header>
12076 _ACEOF
12077 if { (ac_try="$ac_cpp conftest.$ac_ext"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null && {
12090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 }; then
12093 ac_header_preproc=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ( cat <<\_ASBOX
12128 ## ------------------------------- ##
12129 ## Report this to www.asterisk.org ##
12130 ## ------------------------------- ##
12131 _ASBOX
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12154 done
12156 { echo "$as_me:$LINENO: checking for working chown" >&5
12157 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12158 if test "${ac_cv_func_chown_works+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 if test "$cross_compiling" = yes; then
12162 ac_cv_func_chown_works=no
12163 else
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 $ac_includes_default
12171 #include <fcntl.h>
12174 main ()
12176 char *f = "conftest.chown";
12177 struct stat before, after;
12179 if (creat (f, 0600) < 0)
12180 return 1;
12181 if (stat (f, &before) < 0)
12182 return 1;
12183 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12184 return 1;
12185 if (stat (f, &after) < 0)
12186 return 1;
12187 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12190 return 0;
12192 _ACEOF
12193 rm -f conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_func_chown_works=yes
12214 else
12215 echo "$as_me: program exited with status $ac_status" >&5
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ( exit $ac_status )
12220 ac_cv_func_chown_works=no
12222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12226 rm -f conftest.chown
12229 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12230 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12231 if test $ac_cv_func_chown_works = yes; then
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_CHOWN 1
12235 _ACEOF
12239 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12240 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12241 if test "${ac_cv_func_closedir_void+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 if test "$cross_compiling" = yes; then
12245 ac_cv_func_closedir_void=yes
12246 else
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 $ac_includes_default
12254 #include <$ac_header_dirent>
12255 #ifndef __cplusplus
12256 int closedir ();
12257 #endif
12260 main ()
12262 return closedir (opendir (".")) != 0;
12264 return 0;
12266 _ACEOF
12267 rm -f conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_func_closedir_void=no
12288 else
12289 echo "$as_me: program exited with status $ac_status" >&5
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ( exit $ac_status )
12294 ac_cv_func_closedir_void=yes
12296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12301 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12302 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12303 if test $ac_cv_func_closedir_void = yes; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define CLOSEDIR_VOID 1
12307 _ACEOF
12311 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12312 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_error_at_line+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <error.h>
12324 main ()
12326 error_at_line (0, 0, "", 0, "an error occurred");
12328 return 0;
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest$ac_exeext &&
12348 $as_test_x conftest$ac_exeext; then
12349 ac_cv_lib_error_at_line=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_error_at_line=no
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12361 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12362 if test $ac_cv_lib_error_at_line = no; then
12363 case " $LIBOBJS " in
12364 *" error.$ac_objext "* ) ;;
12365 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12367 esac
12372 for ac_header in vfork.h
12374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 ac_res=`eval echo '${'$as_ac_Header'}'`
12382 { echo "$as_me:$LINENO: result: $ac_res" >&5
12383 echo "${ECHO_T}$ac_res" >&6; }
12384 else
12385 # Is the header compilable?
12386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 $ac_includes_default
12395 #include <$ac_header>
12396 _ACEOF
12397 rm -f conftest.$ac_objext
12398 if { (ac_try="$ac_compile"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 ac_header_compiler=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_compiler=no
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12424 echo "${ECHO_T}$ac_header_compiler" >&6; }
12426 # Is the header present?
12427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 #include <$ac_header>
12436 _ACEOF
12437 if { (ac_try="$ac_cpp conftest.$ac_ext"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } >/dev/null && {
12450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 }; then
12453 ac_header_preproc=yes
12454 else
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_header_preproc=no
12461 rm -f conftest.err conftest.$ac_ext
12462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12463 echo "${ECHO_T}$ac_header_preproc" >&6; }
12465 # So? What about this header?
12466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12467 yes:no: )
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12472 ac_header_preproc=yes
12474 no:yes:* )
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12487 ( cat <<\_ASBOX
12488 ## ------------------------------- ##
12489 ## Report this to www.asterisk.org ##
12490 ## ------------------------------- ##
12491 _ASBOX
12492 ) | sed "s/^/$as_me: WARNING: /" >&2
12494 esac
12495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 eval "$as_ac_Header=\$ac_header_preproc"
12502 ac_res=`eval echo '${'$as_ac_Header'}'`
12503 { echo "$as_me:$LINENO: result: $ac_res" >&5
12504 echo "${ECHO_T}$ac_res" >&6; }
12507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510 _ACEOF
12514 done
12518 for ac_func in fork vfork
12520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534 #define $ac_func innocuous_$ac_func
12536 /* System header to define __stub macros and hopefully few prototypes,
12537 which can conflict with char $ac_func (); below.
12538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 <limits.h> exists even on freestanding compilers. */
12541 #ifdef __STDC__
12542 # include <limits.h>
12543 #else
12544 # include <assert.h>
12545 #endif
12547 #undef $ac_func
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char $ac_func ();
12556 /* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559 #if defined __stub_$ac_func || defined __stub___$ac_func
12560 choke me
12561 #endif
12564 main ()
12566 return $ac_func ();
12568 return 0;
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext &&
12588 $as_test_x conftest$ac_exeext; then
12589 eval "$as_ac_var=yes"
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 eval "$as_ac_var=no"
12597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598 conftest$ac_exeext conftest.$ac_ext
12600 ac_res=`eval echo '${'$as_ac_var'}'`
12601 { echo "$as_me:$LINENO: result: $ac_res" >&5
12602 echo "${ECHO_T}$ac_res" >&6; }
12603 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12606 _ACEOF
12609 done
12611 if test "x$ac_cv_func_fork" = xyes; then
12612 { echo "$as_me:$LINENO: checking for working fork" >&5
12613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12614 if test "${ac_cv_func_fork_works+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 if test "$cross_compiling" = yes; then
12618 ac_cv_func_fork_works=cross
12619 else
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 $ac_includes_default
12628 main ()
12631 /* By Ruediger Kuhlmann. */
12632 return fork () < 0;
12635 return 0;
12637 _ACEOF
12638 rm -f conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_func_fork_works=yes
12659 else
12660 echo "$as_me: program exited with status $ac_status" >&5
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ( exit $ac_status )
12665 ac_cv_func_fork_works=no
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12673 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12675 else
12676 ac_cv_func_fork_works=$ac_cv_func_fork
12678 if test "x$ac_cv_func_fork_works" = xcross; then
12679 case $host in
12680 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12681 # Override, as these systems have only a dummy fork() stub
12682 ac_cv_func_fork_works=no
12685 ac_cv_func_fork_works=yes
12687 esac
12688 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12689 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12691 ac_cv_func_vfork_works=$ac_cv_func_vfork
12692 if test "x$ac_cv_func_vfork" = xyes; then
12693 { echo "$as_me:$LINENO: checking for working vfork" >&5
12694 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12695 if test "${ac_cv_func_vfork_works+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698 if test "$cross_compiling" = yes; then
12699 ac_cv_func_vfork_works=cross
12700 else
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 /* Thanks to Paul Eggert for this test. */
12708 $ac_includes_default
12709 #include <sys/wait.h>
12710 #ifdef HAVE_VFORK_H
12711 # include <vfork.h>
12712 #endif
12713 /* On some sparc systems, changes by the child to local and incoming
12714 argument registers are propagated back to the parent. The compiler
12715 is told about this with #include <vfork.h>, but some compilers
12716 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12717 static variable whose address is put into a register that is
12718 clobbered by the vfork. */
12719 static void
12720 #ifdef __cplusplus
12721 sparc_address_test (int arg)
12722 # else
12723 sparc_address_test (arg) int arg;
12724 #endif
12726 static pid_t child;
12727 if (!child) {
12728 child = vfork ();
12729 if (child < 0) {
12730 perror ("vfork");
12731 _exit(2);
12733 if (!child) {
12734 arg = getpid();
12735 write(-1, "", 0);
12736 _exit (arg);
12742 main ()
12744 pid_t parent = getpid ();
12745 pid_t child;
12747 sparc_address_test (0);
12749 child = vfork ();
12751 if (child == 0) {
12752 /* Here is another test for sparc vfork register problems. This
12753 test uses lots of local variables, at least as many local
12754 variables as main has allocated so far including compiler
12755 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12756 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12757 reuse the register of parent for one of the local variables,
12758 since it will think that parent can't possibly be used any more
12759 in this routine. Assigning to the local variable will thus
12760 munge parent in the parent process. */
12761 pid_t
12762 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12763 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12764 /* Convince the compiler that p..p7 are live; otherwise, it might
12765 use the same hardware register for all 8 local variables. */
12766 if (p != p1 || p != p2 || p != p3 || p != p4
12767 || p != p5 || p != p6 || p != p7)
12768 _exit(1);
12770 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12771 from child file descriptors. If the child closes a descriptor
12772 before it execs or exits, this munges the parent's descriptor
12773 as well. Test for this by closing stdout in the child. */
12774 _exit(close(fileno(stdout)) != 0);
12775 } else {
12776 int status;
12777 struct stat st;
12779 while (wait(&status) != child)
12781 return (
12782 /* Was there some problem with vforking? */
12783 child < 0
12785 /* Did the child fail? (This shouldn't happen.) */
12786 || status
12788 /* Did the vfork/compiler bug occur? */
12789 || parent != getpid()
12791 /* Did the file descriptor bug occur? */
12792 || fstat(fileno(stdout), &st) != 0
12796 _ACEOF
12797 rm -f conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_link") 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_func_vfork_works=yes
12818 else
12819 echo "$as_me: program exited with status $ac_status" >&5
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ( exit $ac_status )
12824 ac_cv_func_vfork_works=no
12826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12832 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12835 if test "x$ac_cv_func_fork_works" = xcross; then
12836 ac_cv_func_vfork_works=$ac_cv_func_vfork
12837 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12838 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12841 if test "x$ac_cv_func_vfork_works" = xyes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_WORKING_VFORK 1
12845 _ACEOF
12847 else
12849 cat >>confdefs.h <<\_ACEOF
12850 #define vfork fork
12851 _ACEOF
12854 if test "x$ac_cv_func_fork_works" = xyes; then
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_WORKING_FORK 1
12858 _ACEOF
12862 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12863 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12864 if test "${ac_cv_sys_largefile_source+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867 while :; do
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 #include <sys/types.h> /* for off_t */
12875 #include <stdio.h>
12877 main ()
12879 int (*fp) (FILE *, off_t, int) = fseeko;
12880 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_link") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } && {
12899 test -z "$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12901 } && test -s conftest$ac_exeext &&
12902 $as_test_x conftest$ac_exeext; then
12903 ac_cv_sys_largefile_source=no; break
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12912 conftest$ac_exeext conftest.$ac_ext
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 #define _LARGEFILE_SOURCE 1
12920 #include <sys/types.h> /* for off_t */
12921 #include <stdio.h>
12923 main ()
12925 int (*fp) (FILE *, off_t, int) = fseeko;
12926 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (ac_try="$ac_link"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_link") 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest$ac_exeext &&
12948 $as_test_x conftest$ac_exeext; then
12949 ac_cv_sys_largefile_source=1; break
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12958 conftest$ac_exeext conftest.$ac_ext
12959 ac_cv_sys_largefile_source=unknown
12960 break
12961 done
12963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12964 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12965 case $ac_cv_sys_largefile_source in #(
12966 no | unknown) ;;
12968 cat >>confdefs.h <<_ACEOF
12969 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12970 _ACEOF
12972 esac
12973 rm -f conftest*
12975 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12976 # in glibc 2.1.3, but that breaks too many other things.
12977 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12978 if test $ac_cv_sys_largefile_source != unknown; then
12980 cat >>confdefs.h <<\_ACEOF
12981 #define HAVE_FSEEKO 1
12982 _ACEOF
12986 if test $ac_cv_c_compiler_gnu = yes; then
12987 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12988 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12989 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992 ac_pattern="Autoconf.*'x'"
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 #include <sgtty.h>
13000 Autoconf TIOCGETP
13001 _ACEOF
13002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13003 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13004 ac_cv_prog_gcc_traditional=yes
13005 else
13006 ac_cv_prog_gcc_traditional=no
13008 rm -f conftest*
13011 if test $ac_cv_prog_gcc_traditional = no; then
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <termio.h>
13019 Autoconf TCGETA
13020 _ACEOF
13021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13022 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13023 ac_cv_prog_gcc_traditional=yes
13025 rm -f conftest*
13029 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13030 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13031 if test $ac_cv_prog_gcc_traditional = yes; then
13032 CC="$CC -traditional"
13036 # XXX: these are commented out until we determine whether it matters if our malloc()
13037 # acts exactly like glibc's or not
13038 # AC_FUNC_MALLOC
13039 # AC_FUNC_REALLOC
13040 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13041 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13042 if test "${ac_cv_func_memcmp_working+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 if test "$cross_compiling" = yes; then
13046 ac_cv_func_memcmp_working=no
13047 else
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 $ac_includes_default
13056 main ()
13059 /* Some versions of memcmp are not 8-bit clean. */
13060 char c0 = '\100', c1 = '\200', c2 = '\201';
13061 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13062 return 1;
13064 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13065 or more and with at least one buffer not starting on a 4-byte boundary.
13066 William Lewis provided this test program. */
13068 char foo[21];
13069 char bar[21];
13070 int i;
13071 for (i = 0; i < 4; i++)
13073 char *a = foo + i;
13074 char *b = bar + i;
13075 strcpy (a, "--------01111111");
13076 strcpy (b, "--------10000000");
13077 if (memcmp (a, b, 16) >= 0)
13078 return 1;
13080 return 0;
13084 return 0;
13086 _ACEOF
13087 rm -f conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_func_memcmp_working=yes
13108 else
13109 echo "$as_me: program exited with status $ac_status" >&5
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ( exit $ac_status )
13114 ac_cv_func_memcmp_working=no
13116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13121 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13122 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13123 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13124 *" memcmp.$ac_objext "* ) ;;
13125 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13127 esac
13132 for ac_header in stdlib.h unistd.h
13134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 ac_res=`eval echo '${'$as_ac_Header'}'`
13142 { echo "$as_me:$LINENO: result: $ac_res" >&5
13143 echo "${ECHO_T}$ac_res" >&6; }
13144 else
13145 # Is the header compilable?
13146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 $ac_includes_default
13155 #include <$ac_header>
13156 _ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest.$ac_objext; then
13174 ac_header_compiler=yes
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 ac_header_compiler=no
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13184 echo "${ECHO_T}$ac_header_compiler" >&6; }
13186 # Is the header present?
13187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #include <$ac_header>
13196 _ACEOF
13197 if { (ac_try="$ac_cpp conftest.$ac_ext"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } >/dev/null && {
13210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 }; then
13213 ac_header_preproc=yes
13214 else
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 ac_header_preproc=no
13221 rm -f conftest.err conftest.$ac_ext
13222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13223 echo "${ECHO_T}$ac_header_preproc" >&6; }
13225 # So? What about this header?
13226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13227 yes:no: )
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13232 ac_header_preproc=yes
13234 no:yes:* )
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13247 ( cat <<\_ASBOX
13248 ## ------------------------------- ##
13249 ## Report this to www.asterisk.org ##
13250 ## ------------------------------- ##
13251 _ASBOX
13252 ) | sed "s/^/$as_me: WARNING: /" >&2
13254 esac
13255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260 eval "$as_ac_Header=\$ac_header_preproc"
13262 ac_res=`eval echo '${'$as_ac_Header'}'`
13263 { echo "$as_me:$LINENO: result: $ac_res" >&5
13264 echo "${ECHO_T}$ac_res" >&6; }
13267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13268 cat >>confdefs.h <<_ACEOF
13269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13270 _ACEOF
13274 done
13277 for ac_func in getpagesize
13279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13293 #define $ac_func innocuous_$ac_func
13295 /* System header to define __stub macros and hopefully few prototypes,
13296 which can conflict with char $ac_func (); below.
13297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13298 <limits.h> exists even on freestanding compilers. */
13300 #ifdef __STDC__
13301 # include <limits.h>
13302 #else
13303 # include <assert.h>
13304 #endif
13306 #undef $ac_func
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char $ac_func ();
13315 /* The GNU C library defines this for functions which it implements
13316 to always fail with ENOSYS. Some functions are actually named
13317 something starting with __ and the normal name is an alias. */
13318 #if defined __stub_$ac_func || defined __stub___$ac_func
13319 choke me
13320 #endif
13323 main ()
13325 return $ac_func ();
13327 return 0;
13329 _ACEOF
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest$ac_exeext &&
13347 $as_test_x conftest$ac_exeext; then
13348 eval "$as_ac_var=yes"
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 eval "$as_ac_var=no"
13356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13357 conftest$ac_exeext conftest.$ac_ext
13359 ac_res=`eval echo '${'$as_ac_var'}'`
13360 { echo "$as_me:$LINENO: result: $ac_res" >&5
13361 echo "${ECHO_T}$ac_res" >&6; }
13362 if test `eval echo '${'$as_ac_var'}'` = yes; then
13363 cat >>confdefs.h <<_ACEOF
13364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13365 _ACEOF
13368 done
13370 { echo "$as_me:$LINENO: checking for working mmap" >&5
13371 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13372 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 if test "$cross_compiling" = yes; then
13376 ac_cv_func_mmap_fixed_mapped=no
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 $ac_includes_default
13385 /* malloc might have been renamed as rpl_malloc. */
13386 #undef malloc
13388 /* Thanks to Mike Haertel and Jim Avera for this test.
13389 Here is a matrix of mmap possibilities:
13390 mmap private not fixed
13391 mmap private fixed at somewhere currently unmapped
13392 mmap private fixed at somewhere already mapped
13393 mmap shared not fixed
13394 mmap shared fixed at somewhere currently unmapped
13395 mmap shared fixed at somewhere already mapped
13396 For private mappings, we should verify that changes cannot be read()
13397 back from the file, nor mmap's back from the file at a different
13398 address. (There have been systems where private was not correctly
13399 implemented like the infamous i386 svr4.0, and systems where the
13400 VM page cache was not coherent with the file system buffer cache
13401 like early versions of FreeBSD and possibly contemporary NetBSD.)
13402 For shared mappings, we should conversely verify that changes get
13403 propagated back to all the places they're supposed to be.
13405 Grep wants private fixed already mapped.
13406 The main things grep needs to know about mmap are:
13407 * does it exist and is it safe to write into the mmap'd area
13408 * how to use it (BSD variants) */
13410 #include <fcntl.h>
13411 #include <sys/mman.h>
13413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13414 char *malloc ();
13415 #endif
13417 /* This mess was copied from the GNU getpagesize.h. */
13418 #ifndef HAVE_GETPAGESIZE
13419 /* Assume that all systems that can run configure have sys/param.h. */
13420 # ifndef HAVE_SYS_PARAM_H
13421 # define HAVE_SYS_PARAM_H 1
13422 # endif
13424 # ifdef _SC_PAGESIZE
13425 # define getpagesize() sysconf(_SC_PAGESIZE)
13426 # else /* no _SC_PAGESIZE */
13427 # ifdef HAVE_SYS_PARAM_H
13428 # include <sys/param.h>
13429 # ifdef EXEC_PAGESIZE
13430 # define getpagesize() EXEC_PAGESIZE
13431 # else /* no EXEC_PAGESIZE */
13432 # ifdef NBPG
13433 # define getpagesize() NBPG * CLSIZE
13434 # ifndef CLSIZE
13435 # define CLSIZE 1
13436 # endif /* no CLSIZE */
13437 # else /* no NBPG */
13438 # ifdef NBPC
13439 # define getpagesize() NBPC
13440 # else /* no NBPC */
13441 # ifdef PAGESIZE
13442 # define getpagesize() PAGESIZE
13443 # endif /* PAGESIZE */
13444 # endif /* no NBPC */
13445 # endif /* no NBPG */
13446 # endif /* no EXEC_PAGESIZE */
13447 # else /* no HAVE_SYS_PARAM_H */
13448 # define getpagesize() 8192 /* punt totally */
13449 # endif /* no HAVE_SYS_PARAM_H */
13450 # endif /* no _SC_PAGESIZE */
13452 #endif /* no HAVE_GETPAGESIZE */
13455 main ()
13457 char *data, *data2, *data3;
13458 int i, pagesize;
13459 int fd;
13461 pagesize = getpagesize ();
13463 /* First, make a file with some known garbage in it. */
13464 data = (char *) malloc (pagesize);
13465 if (!data)
13466 return 1;
13467 for (i = 0; i < pagesize; ++i)
13468 *(data + i) = rand ();
13469 umask (0);
13470 fd = creat ("conftest.mmap", 0600);
13471 if (fd < 0)
13472 return 1;
13473 if (write (fd, data, pagesize) != pagesize)
13474 return 1;
13475 close (fd);
13477 /* Next, try to mmap the file at a fixed address which already has
13478 something else allocated at it. If we can, also make sure that
13479 we see the same garbage. */
13480 fd = open ("conftest.mmap", O_RDWR);
13481 if (fd < 0)
13482 return 1;
13483 data2 = (char *) malloc (2 * pagesize);
13484 if (!data2)
13485 return 1;
13486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13489 return 1;
13490 for (i = 0; i < pagesize; ++i)
13491 if (*(data + i) != *(data2 + i))
13492 return 1;
13494 /* Finally, make sure that changes to the mapped area do not
13495 percolate back to the file as seen by read(). (This is a bug on
13496 some variants of i386 svr4.0.) */
13497 for (i = 0; i < pagesize; ++i)
13498 *(data2 + i) = *(data2 + i) + 1;
13499 data3 = (char *) malloc (pagesize);
13500 if (!data3)
13501 return 1;
13502 if (read (fd, data3, pagesize) != pagesize)
13503 return 1;
13504 for (i = 0; i < pagesize; ++i)
13505 if (*(data + i) != *(data3 + i))
13506 return 1;
13507 close (fd);
13508 return 0;
13510 _ACEOF
13511 rm -f conftest$ac_exeext
13512 if { (ac_try="$ac_link"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_link") 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_func_mmap_fixed_mapped=yes
13532 else
13533 echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ( exit $ac_status )
13538 ac_cv_func_mmap_fixed_mapped=no
13540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13546 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13547 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_MMAP 1
13551 _ACEOF
13554 rm -f conftest.mmap
13558 for ac_header in sys/select.h sys/socket.h
13560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 ac_res=`eval echo '${'$as_ac_Header'}'`
13568 { echo "$as_me:$LINENO: result: $ac_res" >&5
13569 echo "${ECHO_T}$ac_res" >&6; }
13570 else
13571 # Is the header compilable?
13572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h. */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 $ac_includes_default
13581 #include <$ac_header>
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (ac_try="$ac_compile"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_compile") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
13600 ac_header_compiler=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_compiler=no
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13610 echo "${ECHO_T}$ac_header_compiler" >&6; }
13612 # Is the header present?
13613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <$ac_header>
13622 _ACEOF
13623 if { (ac_try="$ac_cpp conftest.$ac_ext"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null && {
13636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13637 test ! -s conftest.err
13638 }; then
13639 ac_header_preproc=yes
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_header_preproc=no
13647 rm -f conftest.err conftest.$ac_ext
13648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649 echo "${ECHO_T}$ac_header_preproc" >&6; }
13651 # So? What about this header?
13652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13673 ( cat <<\_ASBOX
13674 ## ------------------------------- ##
13675 ## Report this to www.asterisk.org ##
13676 ## ------------------------------- ##
13677 _ASBOX
13678 ) | sed "s/^/$as_me: WARNING: /" >&2
13680 esac
13681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 eval "$as_ac_Header=\$ac_header_preproc"
13688 ac_res=`eval echo '${'$as_ac_Header'}'`
13689 { echo "$as_me:$LINENO: result: $ac_res" >&5
13690 echo "${ECHO_T}$ac_res" >&6; }
13693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13694 cat >>confdefs.h <<_ACEOF
13695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13696 _ACEOF
13700 done
13702 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13703 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13704 if test "${ac_cv_func_select_args+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13708 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13709 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 #ifdef HAVE_SYS_SELECT_H
13718 # include <sys/select.h>
13719 #endif
13720 #ifdef HAVE_SYS_SOCKET_H
13721 # include <sys/socket.h>
13722 #endif
13725 main ()
13727 extern int select ($ac_arg1,
13728 $ac_arg234, $ac_arg234, $ac_arg234,
13729 $ac_arg5);
13731 return 0;
13733 _ACEOF
13734 rm -f conftest.$ac_objext
13735 if { (ac_try="$ac_compile"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.$ac_objext; then
13751 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 done
13761 done
13762 done
13763 # Provide a safe default value.
13764 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13767 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13768 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13769 ac_save_IFS=$IFS; IFS=','
13770 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13771 IFS=$ac_save_IFS
13772 shift
13774 cat >>confdefs.h <<_ACEOF
13775 #define SELECT_TYPE_ARG1 $1
13776 _ACEOF
13779 cat >>confdefs.h <<_ACEOF
13780 #define SELECT_TYPE_ARG234 ($2)
13781 _ACEOF
13784 cat >>confdefs.h <<_ACEOF
13785 #define SELECT_TYPE_ARG5 ($3)
13786 _ACEOF
13788 rm -f conftest*
13790 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13791 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13792 if test "$ac_cv_prog_cc_c89" != no; then
13793 { echo "$as_me:$LINENO: result: yes" >&5
13794 echo "${ECHO_T}yes" >&6; }
13796 cat >>confdefs.h <<\_ACEOF
13797 #define PROTOTYPES 1
13798 _ACEOF
13801 cat >>confdefs.h <<\_ACEOF
13802 #define __PROTOTYPES 1
13803 _ACEOF
13805 else
13806 { echo "$as_me:$LINENO: result: no" >&5
13807 echo "${ECHO_T}no" >&6; }
13810 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13811 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13812 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815 ac_cv_func_setvbuf_reversed=no
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #include <stdio.h>
13823 # ifdef PROTOTYPES
13824 int (setvbuf) (FILE *, int, char *, size_t);
13825 # endif
13827 main ()
13829 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <stdio.h>
13859 # ifdef PROTOTYPES
13860 int (setvbuf) (FILE *, int, char *, size_t);
13861 # endif
13863 main ()
13865 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext &&
13887 $as_test_x conftest$ac_exeext; then
13888 # It compiles and links either way, so it must not be declared
13889 # with a prototype and most likely this is a K&R C compiler.
13890 # Try running it.
13891 if test "$cross_compiling" = yes; then
13892 : # Assume setvbuf is not reversed when cross-compiling.
13893 else
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13902 main ()
13904 /* This call has the arguments reversed.
13905 A reversed system may check and see that the address of buf
13906 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13907 char buf;
13908 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13909 return 1;
13910 putchar ('\r');
13911 return 0; /* Non-reversed systems SEGV here. */
13913 return 0;
13915 _ACEOF
13916 rm -f conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13927 { (case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_try") 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_func_setvbuf_reversed=yes
13937 else
13938 echo "$as_me: program exited with status $ac_status" >&5
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13947 ac_cv_func_setvbuf_reversed=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965 conftest$ac_exeext conftest.$ac_ext
13967 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13968 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13969 if test $ac_cv_func_setvbuf_reversed = yes; then
13971 cat >>confdefs.h <<\_ACEOF
13972 #define SETVBUF_REVERSED 1
13973 _ACEOF
13977 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13978 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13979 if test "${ac_cv_type_signal+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <sys/types.h>
13989 #include <signal.h>
13992 main ()
13994 return *(signal (0, 0)) (0) == 1;
13996 return 0;
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (ac_try="$ac_compile"
14001 case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_compile") 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest.$ac_objext; then
14016 ac_cv_type_signal=int
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_type_signal=void
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14027 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14029 cat >>confdefs.h <<_ACEOF
14030 #define RETSIGTYPE $ac_cv_type_signal
14031 _ACEOF
14034 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14035 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14036 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039 rm -f conftest.sym conftest.file
14040 echo >conftest.file
14041 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14042 if test "$cross_compiling" = yes; then
14043 ac_cv_func_lstat_dereferences_slashed_symlink=no
14044 else
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14053 main ()
14055 struct stat sbuf;
14056 /* Linux will dereference the symlink and fail.
14057 That is better in the sense that it means we will not
14058 have to compile and use the lstat wrapper. */
14059 return lstat ("conftest.sym/", &sbuf) == 0;
14061 return 0;
14063 _ACEOF
14064 rm -f conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14085 else
14086 echo "$as_me: program exited with status $ac_status" >&5
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ( exit $ac_status )
14091 ac_cv_func_lstat_dereferences_slashed_symlink=no
14093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14097 else
14098 # If the `ln -s' command failed, then we probably don't even
14099 # have an lstat function.
14100 ac_cv_func_lstat_dereferences_slashed_symlink=no
14102 rm -f conftest.sym conftest.file
14105 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14106 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14108 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14110 cat >>confdefs.h <<_ACEOF
14111 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14112 _ACEOF
14115 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14116 case " $LIBOBJS " in
14117 *" lstat.$ac_objext "* ) ;;
14118 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14120 esac
14124 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14125 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14126 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129 if test "$cross_compiling" = yes; then
14130 ac_cv_func_stat_empty_string_bug=yes
14131 else
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 $ac_includes_default
14140 main ()
14142 struct stat sbuf;
14143 return stat ("", &sbuf) == 0;
14145 return 0;
14147 _ACEOF
14148 rm -f conftest$ac_exeext
14149 if { (ac_try="$ac_link"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_func_stat_empty_string_bug=no
14169 else
14170 echo "$as_me: program exited with status $ac_status" >&5
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ( exit $ac_status )
14175 ac_cv_func_stat_empty_string_bug=yes
14177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14183 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14184 if test $ac_cv_func_stat_empty_string_bug = yes; then
14185 case " $LIBOBJS " in
14186 *" stat.$ac_objext "* ) ;;
14187 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14189 esac
14192 cat >>confdefs.h <<_ACEOF
14193 #define HAVE_STAT_EMPTY_STRING_BUG 1
14194 _ACEOF
14198 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14199 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14200 if test "${ac_cv_func_strcoll_works+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 if test "$cross_compiling" = yes; then
14204 ac_cv_func_strcoll_works=no
14205 else
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14214 main ()
14216 return (strcoll ("abc", "def") >= 0 ||
14217 strcoll ("ABC", "DEF") >= 0 ||
14218 strcoll ("123", "456") >= 0)
14220 return 0;
14222 _ACEOF
14223 rm -f conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14234 { (case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237 esac
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_try") 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_func_strcoll_works=yes
14244 else
14245 echo "$as_me: program exited with status $ac_status" >&5
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 ac_cv_func_strcoll_works=no
14252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14258 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14259 if test $ac_cv_func_strcoll_works = yes; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_STRCOLL 1
14263 _ACEOF
14268 for ac_func in strftime
14270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14284 #define $ac_func innocuous_$ac_func
14286 /* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func (); below.
14288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289 <limits.h> exists even on freestanding compilers. */
14291 #ifdef __STDC__
14292 # include <limits.h>
14293 #else
14294 # include <assert.h>
14295 #endif
14297 #undef $ac_func
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char $ac_func ();
14306 /* The GNU C library defines this for functions which it implements
14307 to always fail with ENOSYS. Some functions are actually named
14308 something starting with __ and the normal name is an alias. */
14309 #if defined __stub_$ac_func || defined __stub___$ac_func
14310 choke me
14311 #endif
14314 main ()
14316 return $ac_func ();
14318 return 0;
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest$ac_exeext &&
14338 $as_test_x conftest$ac_exeext; then
14339 eval "$as_ac_var=yes"
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_var=no"
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348 conftest$ac_exeext conftest.$ac_ext
14350 ac_res=`eval echo '${'$as_ac_var'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_var'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14356 _ACEOF
14358 else
14359 # strftime is in -lintl on SCO UNIX.
14360 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_check_lib_save_LIBS=$LIBS
14366 LIBS="-lintl $LIBS"
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char strftime ();
14382 main ()
14384 return strftime ();
14386 return 0;
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext &&
14406 $as_test_x conftest$ac_exeext; then
14407 ac_cv_lib_intl_strftime=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_lib_intl_strftime=no
14415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14419 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14420 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14421 if test $ac_cv_lib_intl_strftime = yes; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_STRFTIME 1
14424 _ACEOF
14426 LIBS="-lintl $LIBS"
14430 done
14432 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14433 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14434 if test "${ac_cv_func_strnlen_working+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 if test "$cross_compiling" = yes; then
14438 ac_cv_func_strnlen_working=no
14439 else
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14448 main ()
14451 #define S "foobar"
14452 #define S_LEN (sizeof S - 1)
14454 /* At least one implementation is buggy: that of AIX 4.3 would
14455 give strnlen (S, 1) == 3. */
14457 int i;
14458 for (i = 0; i < S_LEN + 1; ++i)
14460 int expected = i <= S_LEN ? i : S_LEN;
14461 if (strnlen (S, i) != expected)
14462 return 1;
14464 return 0;
14467 return 0;
14469 _ACEOF
14470 rm -f conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_func_strnlen_working=yes
14491 else
14492 echo "$as_me: program exited with status $ac_status" >&5
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ( exit $ac_status )
14497 ac_cv_func_strnlen_working=no
14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14505 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14506 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14507 *" strnlen.$ac_objext "* ) ;;
14508 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14510 esac
14513 { echo "$as_me:$LINENO: checking for working strtod" >&5
14514 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14515 if test "${ac_cv_func_strtod+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 if test "$cross_compiling" = yes; then
14519 ac_cv_func_strtod=no
14520 else
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 $ac_includes_default
14529 #ifndef strtod
14530 double strtod ();
14531 #endif
14533 main()
14536 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14537 char *string = " +69";
14538 char *term;
14539 double value;
14540 value = strtod (string, &term);
14541 if (value != 69 || term != (string + 4))
14542 return 1;
14546 /* Under Solaris 2.4, strtod returns the wrong value for the
14547 terminating character under some conditions. */
14548 char *string = "NaN";
14549 char *term;
14550 strtod (string, &term);
14551 if (term != string && *(term - 1) == 0)
14552 return 1;
14554 return 0;
14557 _ACEOF
14558 rm -f conftest$ac_exeext
14559 if { (ac_try="$ac_link"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_link") 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_func_strtod=yes
14579 else
14580 echo "$as_me: program exited with status $ac_status" >&5
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ( exit $ac_status )
14585 ac_cv_func_strtod=no
14587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14592 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14593 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14594 if test $ac_cv_func_strtod = no; then
14595 case " $LIBOBJS " in
14596 *" strtod.$ac_objext "* ) ;;
14597 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14599 esac
14601 { echo "$as_me:$LINENO: checking for pow" >&5
14602 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14603 if test "${ac_cv_func_pow+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614 #define pow innocuous_pow
14616 /* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char pow (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14621 #ifdef __STDC__
14622 # include <limits.h>
14623 #else
14624 # include <assert.h>
14625 #endif
14627 #undef pow
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char pow ();
14636 /* The GNU C library defines this for functions which it implements
14637 to always fail with ENOSYS. Some functions are actually named
14638 something starting with __ and the normal name is an alias. */
14639 #if defined __stub_pow || defined __stub___pow
14640 choke me
14641 #endif
14644 main ()
14646 return pow ();
14648 return 0;
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } && {
14665 test -z "$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext &&
14668 $as_test_x conftest$ac_exeext; then
14669 ac_cv_func_pow=yes
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_func_pow=no
14677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678 conftest$ac_exeext conftest.$ac_ext
14680 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14681 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14683 if test $ac_cv_func_pow = no; then
14684 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14685 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14686 if test "${ac_cv_lib_m_pow+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-lm $LIBS"
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14701 #ifdef __cplusplus
14702 extern "C"
14703 #endif
14704 char pow ();
14706 main ()
14708 return pow ();
14710 return 0;
14712 _ACEOF
14713 rm -f conftest.$ac_objext conftest$ac_exeext
14714 if { (ac_try="$ac_link"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_link") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && {
14727 test -z "$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14729 } && test -s conftest$ac_exeext &&
14730 $as_test_x conftest$ac_exeext; then
14731 ac_cv_lib_m_pow=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_lib_m_pow=no
14739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LIBS=$ac_check_lib_save_LIBS
14743 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14744 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14745 if test $ac_cv_lib_m_pow = yes; then
14746 POW_LIB=-lm
14747 else
14748 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14749 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14760 for ac_header in $ac_header_list
14762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_res=`eval echo '${'$as_ac_Header'}'`
14770 { echo "$as_me:$LINENO: result: $ac_res" >&5
14771 echo "${ECHO_T}$ac_res" >&6; }
14772 else
14773 # Is the header compilable?
14774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 #include <$ac_header>
14784 _ACEOF
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_compile") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && {
14799 test -z "$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14801 } && test -s conftest.$ac_objext; then
14802 ac_header_compiler=yes
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_header_compiler=no
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14812 echo "${ECHO_T}$ac_header_compiler" >&6; }
14814 # Is the header present?
14815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <$ac_header>
14824 _ACEOF
14825 if { (ac_try="$ac_cpp conftest.$ac_ext"
14826 case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14832 ac_status=$?
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } >/dev/null && {
14838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14839 test ! -s conftest.err
14840 }; then
14841 ac_header_preproc=yes
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_header_preproc=no
14849 rm -f conftest.err conftest.$ac_ext
14850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14851 echo "${ECHO_T}$ac_header_preproc" >&6; }
14853 # So? What about this header?
14854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14855 yes:no: )
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14860 ac_header_preproc=yes
14862 no:yes:* )
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14875 ( cat <<\_ASBOX
14876 ## ------------------------------- ##
14877 ## Report this to www.asterisk.org ##
14878 ## ------------------------------- ##
14879 _ASBOX
14880 ) | sed "s/^/$as_me: WARNING: /" >&2
14882 esac
14883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 eval "$as_ac_Header=\$ac_header_preproc"
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14896 cat >>confdefs.h <<_ACEOF
14897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14898 _ACEOF
14902 done
14912 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14913 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14914 if test "${ac_cv_func_utime_null+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917 rm -f conftest.data; >conftest.data
14918 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14919 if test "$cross_compiling" = yes; then
14920 ac_cv_func_utime_null=no
14921 else
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14929 #ifdef HAVE_UTIME_H
14930 # include <utime.h>
14931 #endif
14933 main ()
14935 struct stat s, t;
14936 return ! (stat ("conftest.data", &s) == 0
14937 && utime ("conftest.data", 0) == 0
14938 && stat ("conftest.data", &t) == 0
14939 && t.st_mtime >= s.st_mtime
14940 && t.st_mtime - s.st_mtime < 120);
14942 return 0;
14944 _ACEOF
14945 rm -f conftest$ac_exeext
14946 if { (ac_try="$ac_link"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_link") 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14956 { (case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14959 esac
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_try") 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_func_utime_null=yes
14966 else
14967 echo "$as_me: program exited with status $ac_status" >&5
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ( exit $ac_status )
14972 ac_cv_func_utime_null=no
14974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14980 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14981 if test $ac_cv_func_utime_null = yes; then
14983 cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_UTIME_NULL 1
14985 _ACEOF
14988 rm -f conftest.data
14991 for ac_func in vprintf
14993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15007 #define $ac_func innocuous_$ac_func
15009 /* System header to define __stub macros and hopefully few prototypes,
15010 which can conflict with char $ac_func (); below.
15011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15012 <limits.h> exists even on freestanding compilers. */
15014 #ifdef __STDC__
15015 # include <limits.h>
15016 #else
15017 # include <assert.h>
15018 #endif
15020 #undef $ac_func
15022 /* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 char $ac_func ();
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined __stub_$ac_func || defined __stub___$ac_func
15033 choke me
15034 #endif
15037 main ()
15039 return $ac_func ();
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest$ac_exeext &&
15061 $as_test_x conftest$ac_exeext; then
15062 eval "$as_ac_var=yes"
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 eval "$as_ac_var=no"
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071 conftest$ac_exeext conftest.$ac_ext
15073 ac_res=`eval echo '${'$as_ac_var'}'`
15074 { echo "$as_me:$LINENO: result: $ac_res" >&5
15075 echo "${ECHO_T}$ac_res" >&6; }
15076 if test `eval echo '${'$as_ac_var'}'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15079 _ACEOF
15081 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15082 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15083 if test "${ac_cv_func__doprnt+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15094 #define _doprnt innocuous__doprnt
15096 /* System header to define __stub macros and hopefully few prototypes,
15097 which can conflict with char _doprnt (); below.
15098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15099 <limits.h> exists even on freestanding compilers. */
15101 #ifdef __STDC__
15102 # include <limits.h>
15103 #else
15104 # include <assert.h>
15105 #endif
15107 #undef _doprnt
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 char _doprnt ();
15116 /* The GNU C library defines this for functions which it implements
15117 to always fail with ENOSYS. Some functions are actually named
15118 something starting with __ and the normal name is an alias. */
15119 #if defined __stub__doprnt || defined __stub____doprnt
15120 choke me
15121 #endif
15124 main ()
15126 return _doprnt ();
15128 return 0;
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (ac_try="$ac_link"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_link") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest$ac_exeext &&
15148 $as_test_x conftest$ac_exeext; then
15149 ac_cv_func__doprnt=yes
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_func__doprnt=no
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15161 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15162 if test $ac_cv_func__doprnt = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_DOPRNT 1
15166 _ACEOF
15171 done
15219 for ac_func in asprintf atexit bzero dup2 endpwent ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
15221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15235 #define $ac_func innocuous_$ac_func
15237 /* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char $ac_func (); below.
15239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15240 <limits.h> exists even on freestanding compilers. */
15242 #ifdef __STDC__
15243 # include <limits.h>
15244 #else
15245 # include <assert.h>
15246 #endif
15248 #undef $ac_func
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15253 #ifdef __cplusplus
15254 extern "C"
15255 #endif
15256 char $ac_func ();
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined __stub_$ac_func || defined __stub___$ac_func
15261 choke me
15262 #endif
15265 main ()
15267 return $ac_func ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 eval "$as_ac_var=yes"
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 eval "$as_ac_var=no"
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15301 ac_res=`eval echo '${'$as_ac_var'}'`
15302 { echo "$as_me:$LINENO: result: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15307 _ACEOF
15310 done
15314 for ac_func in glob
15316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15330 #define $ac_func innocuous_$ac_func
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char $ac_func (); below.
15334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335 <limits.h> exists even on freestanding compilers. */
15337 #ifdef __STDC__
15338 # include <limits.h>
15339 #else
15340 # include <assert.h>
15341 #endif
15343 #undef $ac_func
15345 /* Override any GCC internal prototype to avoid an error.
15346 Use char because int might match the return type of a GCC
15347 builtin and then its argument prototype would still apply. */
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 char $ac_func ();
15352 /* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355 #if defined __stub_$ac_func || defined __stub___$ac_func
15356 choke me
15357 #endif
15360 main ()
15362 return $ac_func ();
15364 return 0;
15366 _ACEOF
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (ac_try="$ac_link"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_link") 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest$ac_exeext &&
15384 $as_test_x conftest$ac_exeext; then
15385 eval "$as_ac_var=yes"
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 eval "$as_ac_var=no"
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394 conftest$ac_exeext conftest.$ac_ext
15396 ac_res=`eval echo '${'$as_ac_var'}'`
15397 { echo "$as_me:$LINENO: result: $ac_res" >&5
15398 echo "${ECHO_T}$ac_res" >&6; }
15399 if test `eval echo '${'$as_ac_var'}'` = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15402 _ACEOF
15405 done
15408 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15409 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 #include <sys/time.h>
15418 main ()
15420 struct timeval *a; timersub(a, a, a);
15422 return 0;
15424 _ACEOF
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } && {
15439 test -z "$ac_c_werror_flag" ||
15440 test ! -s conftest.err
15441 } && test -s conftest$ac_exeext &&
15442 $as_test_x conftest$ac_exeext; then
15443 { echo "$as_me:$LINENO: result: yes" >&5
15444 echo "${ECHO_T}yes" >&6; }
15446 cat >>confdefs.h <<\_ACEOF
15447 #define HAVE_TIMERSUB 1
15448 _ACEOF
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 { echo "$as_me:$LINENO: result: no" >&5
15455 echo "${ECHO_T}no" >&6; }
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15462 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15463 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15464 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15465 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15469 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15470 else
15471 # Is the header compilable?
15472 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15473 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <sys/poll.h>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (ac_try="$ac_compile"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_compile") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest.$ac_objext; then
15500 ac_header_compiler=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15514 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <sys/poll.h>
15522 _ACEOF
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null && {
15536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 }; then
15539 ac_header_preproc=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_header_preproc=no
15547 rm -f conftest.err conftest.$ac_ext
15548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15549 echo "${ECHO_T}$ac_header_preproc" >&6; }
15551 # So? What about this header?
15552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 yes:no: )
15554 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15555 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15557 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15558 ac_header_preproc=yes
15560 no:yes:* )
15561 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15562 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15564 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15566 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15568 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15570 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15572 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15573 ( cat <<\_ASBOX
15574 ## ------------------------------- ##
15575 ## Report this to www.asterisk.org ##
15576 ## ------------------------------- ##
15577 _ASBOX
15578 ) | sed "s/^/$as_me: WARNING: /" >&2
15580 esac
15581 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15582 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15583 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 ac_cv_header_sys_poll_h=$ac_header_preproc
15588 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15589 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15592 if test $ac_cv_header_sys_poll_h = yes; then
15593 HAS_POLL=1
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_SYS_POLL_H 1
15597 _ACEOF
15604 # https support (in main/http.c) uses funopen on BSD systems,
15605 # fopencookie on linux
15608 for ac_func in funopen fopencookie
15610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15624 #define $ac_func innocuous_$ac_func
15626 /* System header to define __stub macros and hopefully few prototypes,
15627 which can conflict with char $ac_func (); below.
15628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15629 <limits.h> exists even on freestanding compilers. */
15631 #ifdef __STDC__
15632 # include <limits.h>
15633 #else
15634 # include <assert.h>
15635 #endif
15637 #undef $ac_func
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char $ac_func ();
15646 /* The GNU C library defines this for functions which it implements
15647 to always fail with ENOSYS. Some functions are actually named
15648 something starting with __ and the normal name is an alias. */
15649 #if defined __stub_$ac_func || defined __stub___$ac_func
15650 choke me
15651 #endif
15654 main ()
15656 return $ac_func ();
15658 return 0;
15660 _ACEOF
15661 rm -f conftest.$ac_objext conftest$ac_exeext
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_link") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest$ac_exeext &&
15678 $as_test_x conftest$ac_exeext; then
15679 eval "$as_ac_var=yes"
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 eval "$as_ac_var=no"
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15690 ac_res=`eval echo '${'$as_ac_var'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15693 if test `eval echo '${'$as_ac_var'}'` = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15696 _ACEOF
15699 done
15703 for ac_func in inet_aton
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15719 #define $ac_func innocuous_$ac_func
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15726 #ifdef __STDC__
15727 # include <limits.h>
15728 #else
15729 # include <assert.h>
15730 #endif
15732 #undef $ac_func
15734 /* Override any GCC internal prototype to avoid an error.
15735 Use char because int might match the return type of a GCC
15736 builtin and then its argument prototype would still apply. */
15737 #ifdef __cplusplus
15738 extern "C"
15739 #endif
15740 char $ac_func ();
15741 /* The GNU C library defines this for functions which it implements
15742 to always fail with ENOSYS. Some functions are actually named
15743 something starting with __ and the normal name is an alias. */
15744 #if defined __stub_$ac_func || defined __stub___$ac_func
15745 choke me
15746 #endif
15749 main ()
15751 return $ac_func ();
15753 return 0;
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (ac_try="$ac_link"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_link") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } && {
15770 test -z "$ac_c_werror_flag" ||
15771 test ! -s conftest.err
15772 } && test -s conftest$ac_exeext &&
15773 $as_test_x conftest$ac_exeext; then
15774 eval "$as_ac_var=yes"
15775 else
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 eval "$as_ac_var=no"
15782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15783 conftest$ac_exeext conftest.$ac_ext
15785 ac_res=`eval echo '${'$as_ac_var'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787 echo "${ECHO_T}$ac_res" >&6; }
15788 if test `eval echo '${'$as_ac_var'}'` = yes; then
15789 cat >>confdefs.h <<_ACEOF
15790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15791 _ACEOF
15794 done
15797 # check if we have IP_PKTINFO constant defined
15798 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15799 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 #include <netinet/in.h>
15808 main ()
15810 int pi = IP_PKTINFO;
15812 return 0;
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_link") 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 } && test -s conftest$ac_exeext &&
15832 $as_test_x conftest$ac_exeext; then
15833 { echo "$as_me:$LINENO: result: yes" >&5
15834 echo "${ECHO_T}yes" >&6; }
15836 cat >>confdefs.h <<\_ACEOF
15837 #define HAVE_PKTINFO 1
15838 _ACEOF
15840 else
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 { echo "$as_me:$LINENO: result: no" >&5
15845 echo "${ECHO_T}no" >&6; }
15849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15850 conftest$ac_exeext conftest.$ac_ext
15852 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15853 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15854 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15855 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 ac_func_search_save_LIBS=$LIBS
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h. */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15866 /* Override any GCC internal prototype to avoid an error.
15867 Use char because int might match the return type of a GCC
15868 builtin and then its argument prototype would still apply. */
15869 #ifdef __cplusplus
15870 extern "C"
15871 #endif
15872 char gethostbyname_r ();
15874 main ()
15876 return gethostbyname_r ();
15878 return 0;
15880 _ACEOF
15881 for ac_lib in '' socket nsl; do
15882 if test -z "$ac_lib"; then
15883 ac_res="none required"
15884 else
15885 ac_res=-l$ac_lib
15886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_link") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest$ac_exeext &&
15905 $as_test_x conftest$ac_exeext; then
15906 ac_cv_search_gethostbyname_r=$ac_res
15907 else
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15915 conftest$ac_exeext
15916 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15917 break
15919 done
15920 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15922 else
15923 ac_cv_search_gethostbyname_r=no
15925 rm conftest.$ac_ext
15926 LIBS=$ac_func_search_save_LIBS
15928 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15929 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15930 ac_res=$ac_cv_search_gethostbyname_r
15931 if test "$ac_res" != no; then
15932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15937 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15938 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <stdlib.h>
15946 #include <netdb.h>
15948 main ()
15950 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15952 return 0;
15954 _ACEOF
15955 rm -f conftest.$ac_objext conftest$ac_exeext
15956 if { (ac_try="$ac_link"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_link") 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } && {
15969 test -z "$ac_c_werror_flag" ||
15970 test ! -s conftest.err
15971 } && test -s conftest$ac_exeext &&
15972 $as_test_x conftest$ac_exeext; then
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6; }
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_GETHOSTBYNAME_R_6 1
15978 _ACEOF
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 { echo "$as_me:$LINENO: result: no" >&5
15985 echo "${ECHO_T}no" >&6; }
15989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15990 conftest$ac_exeext conftest.$ac_ext
15992 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15993 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h. */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 #include <stdlib.h>
16001 #include <netdb.h>
16003 main ()
16005 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16007 return 0;
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (ac_try="$ac_link"
16012 case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_link") 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } && {
16024 test -z "$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 } && test -s conftest$ac_exeext &&
16027 $as_test_x conftest$ac_exeext; then
16028 { echo "$as_me:$LINENO: result: yes" >&5
16029 echo "${ECHO_T}yes" >&6; }
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_GETHOSTBYNAME_R_5 1
16033 _ACEOF
16035 else
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 { echo "$as_me:$LINENO: result: no" >&5
16040 echo "${ECHO_T}no" >&6; }
16044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16045 conftest$ac_exeext conftest.$ac_ext
16047 if test "${ac_cv_header_byteswap_h+set}" = set; then
16048 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16049 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16050 if test "${ac_cv_header_byteswap_h+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16054 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16055 else
16056 # Is the header compilable?
16057 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
16058 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 $ac_includes_default
16066 #include <byteswap.h>
16067 _ACEOF
16068 rm -f conftest.$ac_objext
16069 if { (ac_try="$ac_compile"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_compile") 2>conftest.er1
16076 ac_status=$?
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } && {
16082 test -z "$ac_c_werror_flag" ||
16083 test ! -s conftest.err
16084 } && test -s conftest.$ac_objext; then
16085 ac_header_compiler=yes
16086 else
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_header_compiler=no
16093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16095 echo "${ECHO_T}$ac_header_compiler" >&6; }
16097 # Is the header present?
16098 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16099 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <byteswap.h>
16107 _ACEOF
16108 if { (ac_try="$ac_cpp conftest.$ac_ext"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } >/dev/null && {
16121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16122 test ! -s conftest.err
16123 }; then
16124 ac_header_preproc=yes
16125 else
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16129 ac_header_preproc=no
16132 rm -f conftest.err conftest.$ac_ext
16133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16134 echo "${ECHO_T}$ac_header_preproc" >&6; }
16136 # So? What about this header?
16137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16138 yes:no: )
16139 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16140 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16142 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16143 ac_header_preproc=yes
16145 no:yes:* )
16146 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16147 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16149 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16151 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16153 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16155 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16157 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16158 ( cat <<\_ASBOX
16159 ## ------------------------------- ##
16160 ## Report this to www.asterisk.org ##
16161 ## ------------------------------- ##
16162 _ASBOX
16163 ) | sed "s/^/$as_me: WARNING: /" >&2
16165 esac
16166 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16167 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16168 if test "${ac_cv_header_byteswap_h+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171 ac_cv_header_byteswap_h=$ac_header_preproc
16173 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16174 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16177 if test $ac_cv_header_byteswap_h = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define HAVE_BYTESWAP_H 1
16181 _ACEOF
16187 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16188 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <sys/endian.h>
16197 main ()
16199 int a = 1; int b = __swap16(a);
16201 return 0;
16203 _ACEOF
16204 rm -f conftest.$ac_objext conftest$ac_exeext
16205 if { (ac_try="$ac_link"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_link") 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest$ac_exeext &&
16221 $as_test_x conftest$ac_exeext; then
16222 { echo "$as_me:$LINENO: result: yes" >&5
16223 echo "${ECHO_T}yes" >&6; }
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_SYS_ENDIAN_SWAP16 1
16227 _ACEOF
16229 else
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 { echo "$as_me:$LINENO: result: no" >&5
16234 echo "${ECHO_T}no" >&6; }
16238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16239 conftest$ac_exeext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16242 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/endian.h>
16251 main ()
16253 int a = 1; int b = bswap16(a);
16255 return 0;
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_link") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext &&
16275 $as_test_x conftest$ac_exeext; then
16276 { echo "$as_me:$LINENO: result: yes" >&5
16277 echo "${ECHO_T}yes" >&6; }
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_SYS_ENDIAN_BSWAP16 1
16281 _ACEOF
16283 else
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 { echo "$as_me:$LINENO: result: no" >&5
16288 echo "${ECHO_T}no" >&6; }
16292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16293 conftest$ac_exeext conftest.$ac_ext
16295 if test "${cross_compiling}" = "no";
16296 then
16297 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16298 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16299 if test "${ac_cv_file__dev_urandom+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 test "$cross_compiling" = yes &&
16303 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16304 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16305 { (exit 1); exit 1; }; }
16306 if test -r "/dev/urandom"; then
16307 ac_cv_file__dev_urandom=yes
16308 else
16309 ac_cv_file__dev_urandom=no
16312 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16313 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16314 if test $ac_cv_file__dev_urandom = yes; then
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_DEV_URANDOM 1
16318 _ACEOF
16325 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16326 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16327 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16328 saved_cppflags="${CPPFLAGS}"
16329 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16330 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16332 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <pthread.h>
16342 main ()
16344 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16345 int foo = 0;
16346 #else
16347 int foo = bar;
16348 #endif
16352 return 0;
16354 _ACEOF
16355 rm -f conftest.$ac_objext
16356 if { (ac_try="$ac_compile"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16372 { echo "$as_me:$LINENO: result: yes" >&5
16373 echo "${ECHO_T}yes" >&6; }
16374 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16378 _ACEOF
16381 cat >>confdefs.h <<\_ACEOF
16382 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16383 _ACEOF
16386 else
16387 echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 { echo "$as_me:$LINENO: result: no" >&5
16391 echo "${ECHO_T}no" >&6; }
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396 CPPFLAGS="${saved_cppflags}"
16401 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16402 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 #include <pthread.h>
16411 main ()
16413 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16415 return 0;
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (ac_try="$ac_link"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_link") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest$ac_exeext &&
16435 $as_test_x conftest$ac_exeext; then
16436 { echo "$as_me:$LINENO: result: yes" >&5
16437 echo "${ECHO_T}yes" >&6; }
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16441 _ACEOF
16443 else
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 { echo "$as_me:$LINENO: result: no" >&5
16448 echo "${ECHO_T}no" >&6; }
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16455 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16456 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <pthread.h>
16465 main ()
16467 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16469 return 0;
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 { echo "$as_me:$LINENO: result: yes" >&5
16491 echo "${ECHO_T}yes" >&6; }
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16495 _ACEOF
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 { echo "$as_me:$LINENO: result: no" >&5
16502 echo "${ECHO_T}no" >&6; }
16506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16507 conftest$ac_exeext conftest.$ac_ext
16510 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16511 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16512 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16513 saved_cppflags="${CPPFLAGS}"
16514 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16515 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16517 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16519 cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h. */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 #include <pthread.h>
16527 main ()
16529 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16530 int foo = 0;
16531 #else
16532 int foo = bar;
16533 #endif
16537 return 0;
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_compile") 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } && {
16554 test -z "$ac_c_werror_flag" ||
16555 test ! -s conftest.err
16556 } && test -s conftest.$ac_objext; then
16557 { echo "$as_me:$LINENO: result: yes" >&5
16558 echo "${ECHO_T}yes" >&6; }
16559 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16563 _ACEOF
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16568 _ACEOF
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 { echo "$as_me:$LINENO: result: no" >&5
16576 echo "${ECHO_T}no" >&6; }
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 CPPFLAGS="${saved_cppflags}"
16586 #if test "${cross_compiling}" = "no";
16587 #then
16588 #AC_MSG_CHECKING(for working epoll support)
16589 #AC_LINK_IFELSE(
16590 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16591 # if (res < 0)
16592 # return 1;
16593 # close (res);
16594 # return 0;]),
16595 #AC_MSG_RESULT(yes)
16596 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16597 #AC_MSG_RESULT(no)
16601 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16602 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h. */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16611 main ()
16613 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16615 return 0;
16617 _ACEOF
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (ac_try="$ac_link"
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_link") 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_exeext &&
16635 $as_test_x conftest$ac_exeext; then
16636 { echo "$as_me:$LINENO: result: yes" >&5
16637 echo "${ECHO_T}yes" >&6; }
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_GCC_ATOMICS 1
16641 _ACEOF
16643 else
16644 echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 { echo "$as_me:$LINENO: result: no" >&5
16648 echo "${ECHO_T}no" >&6; }
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653 conftest$ac_exeext conftest.$ac_ext
16656 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16657 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16658 saved_CFLAGS="$CFLAGS"
16659 CFLAGS="$CFLAGS -Werror"
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 static void __attribute__((pure)) *test(void *muffin, ...) {}
16668 main ()
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext
16676 if { (ac_try="$ac_compile"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_compile") 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && {
16689 test -z "$ac_c_werror_flag" ||
16690 test ! -s conftest.err
16691 } && test -s conftest.$ac_objext; then
16692 { echo "$as_me:$LINENO: result: yes" >&5
16693 echo "${ECHO_T}yes" >&6; }
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_ATTRIBUTE_pure 1
16697 _ACEOF
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 { echo "$as_me:$LINENO: result: no" >&5
16704 echo "${ECHO_T}no" >&6; }
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 CFLAGS="$saved_CFLAGS"
16712 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16713 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16714 saved_CFLAGS="$CFLAGS"
16715 CFLAGS="$CFLAGS -Werror"
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h. */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16724 main ()
16728 return 0;
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_compile") 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && {
16745 test -z "$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 } && test -s conftest.$ac_objext; then
16748 { echo "$as_me:$LINENO: result: yes" >&5
16749 echo "${ECHO_T}yes" >&6; }
16751 cat >>confdefs.h <<_ACEOF
16752 #define HAVE_ATTRIBUTE_malloc 1
16753 _ACEOF
16755 else
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 { echo "$as_me:$LINENO: result: no" >&5
16760 echo "${ECHO_T}no" >&6; }
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 CFLAGS="$saved_CFLAGS"
16768 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16769 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16770 saved_CFLAGS="$CFLAGS"
16771 CFLAGS="$CFLAGS -Werror"
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h. */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 static void __attribute__((const)) *test(void *muffin, ...) {}
16780 main ()
16784 return 0;
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (ac_try="$ac_compile"
16789 case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_compile") 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_c_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest.$ac_objext; then
16804 { echo "$as_me:$LINENO: result: yes" >&5
16805 echo "${ECHO_T}yes" >&6; }
16807 cat >>confdefs.h <<_ACEOF
16808 #define HAVE_ATTRIBUTE_const 1
16809 _ACEOF
16811 else
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 { echo "$as_me:$LINENO: result: no" >&5
16816 echo "${ECHO_T}no" >&6; }
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821 CFLAGS="$saved_CFLAGS"
16824 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16825 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16826 saved_CFLAGS="$CFLAGS"
16827 CFLAGS="$CFLAGS -Werror"
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 static void __attribute__((unused)) *test(void *muffin, ...) {}
16836 main ()
16840 return 0;
16842 _ACEOF
16843 rm -f conftest.$ac_objext
16844 if { (ac_try="$ac_compile"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_compile") 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest.$ac_objext; then
16860 { echo "$as_me:$LINENO: result: yes" >&5
16861 echo "${ECHO_T}yes" >&6; }
16863 cat >>confdefs.h <<_ACEOF
16864 #define HAVE_ATTRIBUTE_unused 1
16865 _ACEOF
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 { echo "$as_me:$LINENO: result: no" >&5
16872 echo "${ECHO_T}no" >&6; }
16875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877 CFLAGS="$saved_CFLAGS"
16880 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16881 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16882 saved_CFLAGS="$CFLAGS"
16883 CFLAGS="$CFLAGS -Werror"
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16892 main ()
16896 return 0;
16898 _ACEOF
16899 rm -f conftest.$ac_objext
16900 if { (ac_try="$ac_compile"
16901 case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_compile") 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest.$ac_objext; then
16916 { echo "$as_me:$LINENO: result: yes" >&5
16917 echo "${ECHO_T}yes" >&6; }
16919 cat >>confdefs.h <<_ACEOF
16920 #define HAVE_ATTRIBUTE_always_inline 1
16921 _ACEOF
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 { echo "$as_me:$LINENO: result: no" >&5
16928 echo "${ECHO_T}no" >&6; }
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 CFLAGS="$saved_CFLAGS"
16936 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16937 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16938 saved_CFLAGS="$CFLAGS"
16939 CFLAGS="$CFLAGS -Werror"
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h. */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16948 main ()
16952 return 0;
16954 _ACEOF
16955 rm -f conftest.$ac_objext
16956 if { (ac_try="$ac_compile"
16957 case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_compile") 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest.$ac_objext; then
16972 { echo "$as_me:$LINENO: result: yes" >&5
16973 echo "${ECHO_T}yes" >&6; }
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_ATTRIBUTE_deprecated 1
16977 _ACEOF
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 { echo "$as_me:$LINENO: result: no" >&5
16984 echo "${ECHO_T}no" >&6; }
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 CFLAGS="$saved_CFLAGS"
16992 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16993 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16994 saved_CFLAGS="$CFLAGS"
16995 CFLAGS="$CFLAGS -Werror"
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
17004 main ()
17008 return 0;
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (ac_try="$ac_compile"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest.$ac_objext; then
17028 { echo "$as_me:$LINENO: result: yes" >&5
17029 echo "${ECHO_T}yes" >&6; }
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_ATTRIBUTE_sentinel 1
17033 _ACEOF
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 { echo "$as_me:$LINENO: result: no" >&5
17040 echo "${ECHO_T}no" >&6; }
17043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 CFLAGS="$saved_CFLAGS"
17048 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17049 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17050 saved_CFLAGS="${CFLAGS}"
17051 CFLAGS="${CFLAGS} -ffunction-sections"
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h. */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17060 main ()
17062 int x = 1;
17064 return 0;
17066 _ACEOF
17067 rm -f conftest.$ac_objext
17068 if { (ac_try="$ac_compile"
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_compile") 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); } && {
17081 test -z "$ac_c_werror_flag" ||
17082 test ! -s conftest.err
17083 } && test -s conftest.$ac_objext; then
17084 { echo "$as_me:$LINENO: result: yes" >&5
17085 echo "${ECHO_T}yes" >&6; }
17086 saved_LDFLAGS="${LDFLAGS}"
17087 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17088 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17089 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17098 main ()
17100 int x = 1;
17102 return 0;
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest$ac_exeext &&
17122 $as_test_x conftest$ac_exeext; then
17123 { echo "$as_me:$LINENO: result: yes" >&5
17124 echo "${ECHO_T}yes" >&6; }
17125 GC_CFLAGS="-ffunction-sections"
17126 GC_LDFLAGS="-Wl,--gc-sections"
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 { echo "$as_me:$LINENO: result: no" >&5
17132 echo "${ECHO_T}no" >&6; }
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LDFLAGS="${saved_LDFLAGS}"
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 { echo "$as_me:$LINENO: result: no" >&5
17144 echo "${ECHO_T}no" >&6; }
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 CFLAGS="${saved_CFLAGS}"
17153 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17154 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17155 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17156 { echo "$as_me:$LINENO: result: yes" >&5
17157 echo "${ECHO_T}yes" >&6; }
17158 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17159 else
17160 { echo "$as_me:$LINENO: result: no" >&5
17161 echo "${ECHO_T}no" >&6; }
17162 AST_DECLARATION_AFTER_STATEMENT=
17166 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17167 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17168 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17169 { echo "$as_me:$LINENO: result: yes" >&5
17170 echo "${ECHO_T}yes" >&6; }
17171 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17172 else
17173 { echo "$as_me:$LINENO: result: no" >&5
17174 echo "${ECHO_T}no" >&6; }
17175 AST_NO_STRICT_OVERFLOW=
17179 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17180 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <sys/sysinfo.h>
17189 main ()
17191 struct sysinfo sys_info; int uptime = sys_info.uptime
17193 return 0;
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext &&
17213 $as_test_x conftest$ac_exeext; then
17214 { echo "$as_me:$LINENO: result: yes" >&5
17215 echo "${ECHO_T}yes" >&6; }
17217 cat >>confdefs.h <<\_ACEOF
17218 #define HAVE_SYSINFO 1
17219 _ACEOF
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 { echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6; }
17230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17231 conftest$ac_exeext conftest.$ac_ext
17233 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17234 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17235 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238 ac_func_search_save_LIBS=$LIBS
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char res_9_ninit ();
17254 main ()
17256 return res_9_ninit ();
17258 return 0;
17260 _ACEOF
17261 for ac_lib in '' resolv; do
17262 if test -z "$ac_lib"; then
17263 ac_res="none required"
17264 else
17265 ac_res=-l$ac_lib
17266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17286 ac_cv_search_res_9_ninit=$ac_res
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext
17296 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17297 break
17299 done
17300 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17302 else
17303 ac_cv_search_res_9_ninit=no
17305 rm conftest.$ac_ext
17306 LIBS=$ac_func_search_save_LIBS
17308 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17309 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17310 ac_res=$ac_cv_search_res_9_ninit
17311 if test "$ac_res" != no; then
17312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17316 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17317 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 #ifdef HAVE_SYS_SOCKET_H
17326 #include <sys/socket.h>
17327 #endif
17328 #ifdef HAVE_NETINET_IN_H
17329 #include <netinet/in.h>
17330 #endif
17331 #ifdef HAVE_ARPA_NAMESER_H
17332 #include <arpa/nameser.h>
17333 #endif
17334 #include <resolv.h>
17336 main ()
17338 int foo = res_ninit(NULL);
17340 return 0;
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 { echo "$as_me:$LINENO: result: yes" >&5
17362 echo "${ECHO_T}yes" >&6; }
17364 cat >>confdefs.h <<\_ACEOF
17365 #define HAVE_RES_NINIT 1
17366 _ACEOF
17368 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17369 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17370 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 ac_func_search_save_LIBS=$LIBS
17374 cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17381 /* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 char res_9_ndestroy ();
17389 main ()
17391 return res_9_ndestroy ();
17393 return 0;
17395 _ACEOF
17396 for ac_lib in '' resolv; do
17397 if test -z "$ac_lib"; then
17398 ac_res="none required"
17399 else
17400 ac_res=-l$ac_lib
17401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && {
17417 test -z "$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17419 } && test -s conftest$ac_exeext &&
17420 $as_test_x conftest$ac_exeext; then
17421 ac_cv_search_res_9_ndestroy=$ac_res
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17430 conftest$ac_exeext
17431 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17432 break
17434 done
17435 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17437 else
17438 ac_cv_search_res_9_ndestroy=no
17440 rm conftest.$ac_ext
17441 LIBS=$ac_func_search_save_LIBS
17443 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17444 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17445 ac_res=$ac_cv_search_res_9_ndestroy
17446 if test "$ac_res" != no; then
17447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17451 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17452 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 #ifdef HAVE_SYS_SOCKET_H
17461 #include <sys/socket.h>
17462 #endif
17463 #ifdef HAVE_NETINET_IN_H
17464 #include <netinet/in.h>
17465 #endif
17466 #ifdef HAVE_ARPA_NAMESER_H
17467 #include <arpa/nameser.h>
17468 #endif
17469 #include <resolv.h>
17471 main ()
17473 res_ndestroy(NULL);
17475 return 0;
17477 _ACEOF
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_link") 2>conftest.er1
17486 ac_status=$?
17487 grep -v '^ *+' conftest.er1 >conftest.err
17488 rm -f conftest.er1
17489 cat conftest.err >&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } && {
17492 test -z "$ac_c_werror_flag" ||
17493 test ! -s conftest.err
17494 } && test -s conftest$ac_exeext &&
17495 $as_test_x conftest$ac_exeext; then
17496 { echo "$as_me:$LINENO: result: yes" >&5
17497 echo "${ECHO_T}yes" >&6; }
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_RES_NDESTROY 1
17501 _ACEOF
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17513 conftest$ac_exeext conftest.$ac_ext
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 { echo "$as_me:$LINENO: result: no" >&5
17519 echo "${ECHO_T}no" >&6; }
17523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17524 conftest$ac_exeext conftest.$ac_ext
17527 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17528 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17529 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17530 saved_cppflags="${CPPFLAGS}"
17531 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17532 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17534 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 #include <dlfcn.h>
17544 main ()
17546 #if defined(RTLD_NOLOAD)
17547 int foo = 0;
17548 #else
17549 int foo = bar;
17550 #endif
17554 return 0;
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 { echo "$as_me:$LINENO: result: yes" >&5
17575 echo "${ECHO_T}yes" >&6; }
17576 PBX_RTLD_NOLOAD=1
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_RTLD_NOLOAD 1
17580 _ACEOF
17583 cat >>confdefs.h <<\_ACEOF
17584 #define HAVE_RTLD_NOLOAD_VERSION
17585 _ACEOF
17588 else
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17592 { echo "$as_me:$LINENO: result: no" >&5
17593 echo "${ECHO_T}no" >&6; }
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 CPPFLAGS="${saved_cppflags}"
17604 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17605 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17606 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17607 saved_cppflags="${CPPFLAGS}"
17608 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17609 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17611 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <netinet/in.h>
17621 main ()
17623 #if defined(IP_MTU_DISCOVER)
17624 int foo = 0;
17625 #else
17626 int foo = bar;
17627 #endif
17631 return 0;
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_compile") 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && {
17648 test -z "$ac_c_werror_flag" ||
17649 test ! -s conftest.err
17650 } && test -s conftest.$ac_objext; then
17651 { echo "$as_me:$LINENO: result: yes" >&5
17652 echo "${ECHO_T}yes" >&6; }
17653 PBX_IP_MTU_DISCOVER=1
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_IP_MTU_DISCOVER 1
17657 _ACEOF
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_IP_MTU_DISCOVER_VERSION
17662 _ACEOF
17665 else
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 { echo "$as_me:$LINENO: result: no" >&5
17670 echo "${ECHO_T}no" >&6; }
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 CPPFLAGS="${saved_cppflags}"
17680 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17681 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17682 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17683 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17687 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17688 else
17689 # Is the header compilable?
17690 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17691 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 $ac_includes_default
17699 #include <libkern/OSAtomic.h>
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest.$ac_objext; then
17718 ac_header_compiler=yes
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 ac_header_compiler=no
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17728 echo "${ECHO_T}$ac_header_compiler" >&6; }
17730 # Is the header present?
17731 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17732 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h. */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 #include <libkern/OSAtomic.h>
17740 _ACEOF
17741 if { (ac_try="$ac_cpp conftest.$ac_ext"
17742 case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17745 esac
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17748 ac_status=$?
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } >/dev/null && {
17754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17755 test ! -s conftest.err
17756 }; then
17757 ac_header_preproc=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_header_preproc=no
17765 rm -f conftest.err conftest.$ac_ext
17766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17767 echo "${ECHO_T}$ac_header_preproc" >&6; }
17769 # So? What about this header?
17770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17771 yes:no: )
17772 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17773 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17775 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17776 ac_header_preproc=yes
17778 no:yes:* )
17779 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17780 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17781 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17782 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17784 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17785 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17786 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17787 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17788 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17790 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17791 ( cat <<\_ASBOX
17792 ## ------------------------------- ##
17793 ## Report this to www.asterisk.org ##
17794 ## ------------------------------- ##
17795 _ASBOX
17796 ) | sed "s/^/$as_me: WARNING: /" >&2
17798 esac
17799 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17800 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17801 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17806 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17807 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17810 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_OSX_ATOMICS 1
17814 _ACEOF
17820 { echo "$as_me:$LINENO: checking for int" >&5
17821 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17822 if test "${ac_cv_type_int+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 else
17825 cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h. */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 $ac_includes_default
17832 typedef int ac__type_new_;
17834 main ()
17836 if ((ac__type_new_ *) 0)
17837 return 0;
17838 if (sizeof (ac__type_new_))
17839 return 0;
17841 return 0;
17843 _ACEOF
17844 rm -f conftest.$ac_objext
17845 if { (ac_try="$ac_compile"
17846 case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_compile") 2>conftest.er1
17852 ac_status=$?
17853 grep -v '^ *+' conftest.er1 >conftest.err
17854 rm -f conftest.er1
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } && {
17858 test -z "$ac_c_werror_flag" ||
17859 test ! -s conftest.err
17860 } && test -s conftest.$ac_objext; then
17861 ac_cv_type_int=yes
17862 else
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 ac_cv_type_int=no
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17872 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17874 # The cast to long int works around a bug in the HP C Compiler
17875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17877 # This bug is HP SR number 8606223364.
17878 { echo "$as_me:$LINENO: checking size of int" >&5
17879 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17880 if test "${ac_cv_sizeof_int+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883 if test "$cross_compiling" = yes; then
17884 # Depending upon the size, compute the lo and hi bounds.
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 $ac_includes_default
17892 typedef int ac__type_sizeof_;
17894 main ()
17896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17897 test_array [0] = 0
17900 return 0;
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (ac_try="$ac_compile"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_compile") 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && {
17917 test -z "$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 } && test -s conftest.$ac_objext; then
17920 ac_lo=0 ac_mid=0
17921 while :; do
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 $ac_includes_default
17929 typedef int ac__type_sizeof_;
17931 main ()
17933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17934 test_array [0] = 0
17937 return 0;
17939 _ACEOF
17940 rm -f conftest.$ac_objext
17941 if { (ac_try="$ac_compile"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_compile") 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest.$ac_objext; then
17957 ac_hi=$ac_mid; break
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_lo=`expr $ac_mid + 1`
17963 if test $ac_lo -le $ac_mid; then
17964 ac_lo= ac_hi=
17965 break
17967 ac_mid=`expr 2 '*' $ac_mid + 1`
17970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971 done
17972 else
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17983 typedef int ac__type_sizeof_;
17985 main ()
17987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17988 test_array [0] = 0
17991 return 0;
17993 _ACEOF
17994 rm -f conftest.$ac_objext
17995 if { (ac_try="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_hi=-1 ac_mid=-1
18012 while :; do
18013 cat >conftest.$ac_ext <<_ACEOF
18014 /* confdefs.h. */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019 $ac_includes_default
18020 typedef int ac__type_sizeof_;
18022 main ()
18024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18025 test_array [0] = 0
18028 return 0;
18030 _ACEOF
18031 rm -f conftest.$ac_objext
18032 if { (ac_try="$ac_compile"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_compile") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && {
18045 test -z "$ac_c_werror_flag" ||
18046 test ! -s conftest.err
18047 } && test -s conftest.$ac_objext; then
18048 ac_lo=$ac_mid; break
18049 else
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ac_hi=`expr '(' $ac_mid ')' - 1`
18054 if test $ac_mid -le $ac_hi; then
18055 ac_lo= ac_hi=
18056 break
18058 ac_mid=`expr 2 '*' $ac_mid`
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062 done
18063 else
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_lo= ac_hi=
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 # Binary search between lo and hi bounds.
18075 while test "x$ac_lo" != "x$ac_hi"; do
18076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 $ac_includes_default
18084 typedef int ac__type_sizeof_;
18086 main ()
18088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18089 test_array [0] = 0
18092 return 0;
18094 _ACEOF
18095 rm -f conftest.$ac_objext
18096 if { (ac_try="$ac_compile"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_compile") 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } && {
18109 test -z "$ac_c_werror_flag" ||
18110 test ! -s conftest.err
18111 } && test -s conftest.$ac_objext; then
18112 ac_hi=$ac_mid
18113 else
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_lo=`expr '(' $ac_mid ')' + 1`
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 done
18122 case $ac_lo in
18123 ?*) ac_cv_sizeof_int=$ac_lo;;
18124 '') if test "$ac_cv_type_int" = yes; then
18125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18126 See \`config.log' for more details." >&5
18127 echo "$as_me: error: cannot compute sizeof (int)
18128 See \`config.log' for more details." >&2;}
18129 { (exit 77); exit 77; }; }
18130 else
18131 ac_cv_sizeof_int=0
18132 fi ;;
18133 esac
18134 else
18135 cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h. */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 $ac_includes_default
18142 typedef int ac__type_sizeof_;
18143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18145 #include <stdio.h>
18146 #include <stdlib.h>
18148 main ()
18151 FILE *f = fopen ("conftest.val", "w");
18152 if (! f)
18153 return 1;
18154 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18156 long int i = longval ();
18157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18158 return 1;
18159 fprintf (f, "%ld\n", i);
18161 else
18163 unsigned long int i = ulongval ();
18164 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18165 return 1;
18166 fprintf (f, "%lu\n", i);
18168 return ferror (f) || fclose (f) != 0;
18171 return 0;
18173 _ACEOF
18174 rm -f conftest$ac_exeext
18175 if { (ac_try="$ac_link"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_link") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_cv_sizeof_int=`cat conftest.val`
18195 else
18196 echo "$as_me: program exited with status $ac_status" >&5
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ( exit $ac_status )
18201 if test "$ac_cv_type_int" = yes; then
18202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18203 See \`config.log' for more details." >&5
18204 echo "$as_me: error: cannot compute sizeof (int)
18205 See \`config.log' for more details." >&2;}
18206 { (exit 77); exit 77; }; }
18207 else
18208 ac_cv_sizeof_int=0
18211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18213 rm -f conftest.val
18215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18216 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18220 cat >>confdefs.h <<_ACEOF
18221 #define SIZEOF_INT $ac_cv_sizeof_int
18222 _ACEOF
18226 # do the package library checks now
18229 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18230 pbxlibdir=""
18231 # if --with-ALSA=DIR has been specified, use it.
18232 if test "x${ALSA_DIR}" != "x"; then
18233 if test -d ${ALSA_DIR}/lib; then
18234 pbxlibdir="-L${ALSA_DIR}/lib"
18235 else
18236 pbxlibdir="-L${ALSA_DIR}"
18239 pbxfuncname="snd_spcm_init"
18240 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18241 AST_ALSA_FOUND=yes
18242 else
18243 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18244 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18245 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18246 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 else
18249 ac_check_lib_save_LIBS=$LIBS
18250 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 /* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 char ${pbxfuncname} ();
18266 main ()
18268 return ${pbxfuncname} ();
18270 return 0;
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest$ac_exeext &&
18290 $as_test_x conftest$ac_exeext; then
18291 eval "$as_ac_Lib=yes"
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 eval "$as_ac_Lib=no"
18299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 ac_res=`eval echo '${'$as_ac_Lib'}'`
18304 { echo "$as_me:$LINENO: result: $ac_res" >&5
18305 echo "${ECHO_T}$ac_res" >&6; }
18306 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18307 AST_ALSA_FOUND=yes
18308 else
18309 AST_ALSA_FOUND=no
18314 # now check for the header.
18315 if test "${AST_ALSA_FOUND}" = "yes"; then
18316 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18317 # if --with-ALSA=DIR has been specified, use it.
18318 if test "x${ALSA_DIR}" != "x"; then
18319 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18321 ALSA_INCLUDE="${ALSA_INCLUDE} "
18322 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18323 ALSA_HEADER_FOUND="1"
18324 else # check for the header
18325 saved_cppflags="${CPPFLAGS}"
18326 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
18327 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18328 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18329 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18330 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18334 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18335 else
18336 # Is the header compilable?
18337 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18338 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18339 cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h. */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 $ac_includes_default
18346 #include <alsa/asoundlib.h>
18347 _ACEOF
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_compile") 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } && {
18362 test -z "$ac_c_werror_flag" ||
18363 test ! -s conftest.err
18364 } && test -s conftest.$ac_objext; then
18365 ac_header_compiler=yes
18366 else
18367 echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18370 ac_header_compiler=no
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18375 echo "${ECHO_T}$ac_header_compiler" >&6; }
18377 # Is the header present?
18378 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18379 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 #include <alsa/asoundlib.h>
18387 _ACEOF
18388 if { (ac_try="$ac_cpp conftest.$ac_ext"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } >/dev/null && {
18401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 }; then
18404 ac_header_preproc=yes
18405 else
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_header_preproc=no
18412 rm -f conftest.err conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18414 echo "${ECHO_T}$ac_header_preproc" >&6; }
18416 # So? What about this header?
18417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18418 yes:no: )
18419 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18420 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18422 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18423 ac_header_preproc=yes
18425 no:yes:* )
18426 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18427 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18429 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18431 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18433 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18435 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18437 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18438 ( cat <<\_ASBOX
18439 ## ------------------------------- ##
18440 ## Report this to www.asterisk.org ##
18441 ## ------------------------------- ##
18442 _ASBOX
18443 ) | sed "s/^/$as_me: WARNING: /" >&2
18445 esac
18446 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18447 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18448 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18453 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18454 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18457 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18458 ALSA_HEADER_FOUND=1
18459 else
18460 ALSA_HEADER_FOUND=0
18464 CPPFLAGS="${saved_cppflags}"
18466 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18467 ALSA_LIB=""
18468 ALSA_INCLUDE=""
18469 else
18470 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18471 ALSA_LIB=""
18473 PBX_ALSA=1
18474 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18476 cat >>confdefs.h <<_ACEOF
18477 #define HAVE_ALSA 1
18478 _ACEOF
18481 cat >>confdefs.h <<_ACEOF
18482 #define HAVE_ALSA_VERSION
18483 _ACEOF
18491 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18492 pbxlibdir=""
18493 # if --with-CURSES=DIR has been specified, use it.
18494 if test "x${CURSES_DIR}" != "x"; then
18495 if test -d ${CURSES_DIR}/lib; then
18496 pbxlibdir="-L${CURSES_DIR}/lib"
18497 else
18498 pbxlibdir="-L${CURSES_DIR}"
18501 pbxfuncname="initscr"
18502 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18503 AST_CURSES_FOUND=yes
18504 else
18505 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18506 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18507 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18508 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511 ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lcurses ${pbxlibdir} $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 char ${pbxfuncname} ();
18528 main ()
18530 return ${pbxfuncname} ();
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 eval "$as_ac_Lib=yes"
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_Lib=no"
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18565 ac_res=`eval echo '${'$as_ac_Lib'}'`
18566 { echo "$as_me:$LINENO: result: $ac_res" >&5
18567 echo "${ECHO_T}$ac_res" >&6; }
18568 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18569 AST_CURSES_FOUND=yes
18570 else
18571 AST_CURSES_FOUND=no
18576 # now check for the header.
18577 if test "${AST_CURSES_FOUND}" = "yes"; then
18578 CURSES_LIB="${pbxlibdir} -lcurses "
18579 # if --with-CURSES=DIR has been specified, use it.
18580 if test "x${CURSES_DIR}" != "x"; then
18581 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18583 CURSES_INCLUDE="${CURSES_INCLUDE} "
18584 if test "xcurses.h" = "x" ; then # no header, assume found
18585 CURSES_HEADER_FOUND="1"
18586 else # check for the header
18587 saved_cppflags="${CPPFLAGS}"
18588 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18589 if test "${ac_cv_header_curses_h+set}" = set; then
18590 { echo "$as_me:$LINENO: checking for curses.h" >&5
18591 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18592 if test "${ac_cv_header_curses_h+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18596 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18597 else
18598 # Is the header compilable?
18599 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18600 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 $ac_includes_default
18608 #include <curses.h>
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_compile") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest.$ac_objext; then
18627 ac_header_compiler=yes
18628 else
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_header_compiler=no
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18637 echo "${ECHO_T}$ac_header_compiler" >&6; }
18639 # Is the header present?
18640 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18641 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18642 cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h. */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18648 #include <curses.h>
18649 _ACEOF
18650 if { (ac_try="$ac_cpp conftest.$ac_ext"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } >/dev/null && {
18663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 }; then
18666 ac_header_preproc=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_header_preproc=no
18674 rm -f conftest.err conftest.$ac_ext
18675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18676 echo "${ECHO_T}$ac_header_preproc" >&6; }
18678 # So? What about this header?
18679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18680 yes:no: )
18681 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18682 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18683 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18684 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18685 ac_header_preproc=yes
18687 no:yes:* )
18688 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18689 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18691 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18693 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18695 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18697 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18699 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18700 ( cat <<\_ASBOX
18701 ## ------------------------------- ##
18702 ## Report this to www.asterisk.org ##
18703 ## ------------------------------- ##
18704 _ASBOX
18705 ) | sed "s/^/$as_me: WARNING: /" >&2
18707 esac
18708 { echo "$as_me:$LINENO: checking for curses.h" >&5
18709 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18710 if test "${ac_cv_header_curses_h+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713 ac_cv_header_curses_h=$ac_header_preproc
18715 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18716 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18719 if test $ac_cv_header_curses_h = yes; then
18720 CURSES_HEADER_FOUND=1
18721 else
18722 CURSES_HEADER_FOUND=0
18726 CPPFLAGS="${saved_cppflags}"
18728 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18729 CURSES_LIB=""
18730 CURSES_INCLUDE=""
18731 else
18732 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18733 CURSES_LIB=""
18735 PBX_CURSES=1
18736 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18738 cat >>confdefs.h <<_ACEOF
18739 #define HAVE_CURSES 1
18740 _ACEOF
18743 cat >>confdefs.h <<_ACEOF
18744 #define HAVE_CURSES_VERSION
18745 _ACEOF
18752 if test "x${host_os}" = "xlinux-gnu" ; then
18754 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18755 pbxlibdir=""
18756 # if --with-CAP=DIR has been specified, use it.
18757 if test "x${CAP_DIR}" != "x"; then
18758 if test -d ${CAP_DIR}/lib; then
18759 pbxlibdir="-L${CAP_DIR}/lib"
18760 else
18761 pbxlibdir="-L${CAP_DIR}"
18764 pbxfuncname="cap_from_text"
18765 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18766 AST_CAP_FOUND=yes
18767 else
18768 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18769 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18770 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18771 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 ac_check_lib_save_LIBS=$LIBS
18775 LIBS="-lcap ${pbxlibdir} $LIBS"
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786 #ifdef __cplusplus
18787 extern "C"
18788 #endif
18789 char ${pbxfuncname} ();
18791 main ()
18793 return ${pbxfuncname} ();
18795 return 0;
18797 _ACEOF
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18806 ac_status=$?
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext &&
18815 $as_test_x conftest$ac_exeext; then
18816 eval "$as_ac_Lib=yes"
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 eval "$as_ac_Lib=no"
18824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18825 conftest$ac_exeext conftest.$ac_ext
18826 LIBS=$ac_check_lib_save_LIBS
18828 ac_res=`eval echo '${'$as_ac_Lib'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18831 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18832 AST_CAP_FOUND=yes
18833 else
18834 AST_CAP_FOUND=no
18839 # now check for the header.
18840 if test "${AST_CAP_FOUND}" = "yes"; then
18841 CAP_LIB="${pbxlibdir} -lcap "
18842 # if --with-CAP=DIR has been specified, use it.
18843 if test "x${CAP_DIR}" != "x"; then
18844 CAP_INCLUDE="-I${CAP_DIR}/include"
18846 CAP_INCLUDE="${CAP_INCLUDE} "
18847 if test "xsys/capability.h" = "x" ; then # no header, assume found
18848 CAP_HEADER_FOUND="1"
18849 else # check for the header
18850 saved_cppflags="${CPPFLAGS}"
18851 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18852 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18853 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18854 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18855 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18859 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18860 else
18861 # Is the header compilable?
18862 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18863 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 $ac_includes_default
18871 #include <sys/capability.h>
18872 _ACEOF
18873 rm -f conftest.$ac_objext
18874 if { (ac_try="$ac_compile"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_compile") 2>conftest.er1
18881 ac_status=$?
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest.$ac_objext; then
18890 ac_header_compiler=yes
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ac_header_compiler=no
18898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18900 echo "${ECHO_T}$ac_header_compiler" >&6; }
18902 # Is the header present?
18903 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18904 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #include <sys/capability.h>
18912 _ACEOF
18913 if { (ac_try="$ac_cpp conftest.$ac_ext"
18914 case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18920 ac_status=$?
18921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } >/dev/null && {
18926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18927 test ! -s conftest.err
18928 }; then
18929 ac_header_preproc=yes
18930 else
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_header_preproc=no
18937 rm -f conftest.err conftest.$ac_ext
18938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939 echo "${ECHO_T}$ac_header_preproc" >&6; }
18941 # So? What about this header?
18942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18943 yes:no: )
18944 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18945 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18947 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18948 ac_header_preproc=yes
18950 no:yes:* )
18951 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18952 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18953 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18954 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18955 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18956 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18958 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18960 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18962 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18963 ( cat <<\_ASBOX
18964 ## ------------------------------- ##
18965 ## Report this to www.asterisk.org ##
18966 ## ------------------------------- ##
18967 _ASBOX
18968 ) | sed "s/^/$as_me: WARNING: /" >&2
18970 esac
18971 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18972 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18973 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976 ac_cv_header_sys_capability_h=$ac_header_preproc
18978 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18979 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18982 if test $ac_cv_header_sys_capability_h = yes; then
18983 CAP_HEADER_FOUND=1
18984 else
18985 CAP_HEADER_FOUND=0
18989 CPPFLAGS="${saved_cppflags}"
18991 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
18992 CAP_LIB=""
18993 CAP_INCLUDE=""
18994 else
18995 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18996 CAP_LIB=""
18998 PBX_CAP=1
18999 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19001 cat >>confdefs.h <<_ACEOF
19002 #define HAVE_CAP 1
19003 _ACEOF
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_CAP_VERSION
19008 _ACEOF
19016 # BSD might not have exp2, and/or log2
19018 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
19019 pbxlibdir=""
19020 # if --with-EXP2L=DIR has been specified, use it.
19021 if test "x${EXP2L_DIR}" != "x"; then
19022 if test -d ${EXP2L_DIR}/lib; then
19023 pbxlibdir="-L${EXP2L_DIR}/lib"
19024 else
19025 pbxlibdir="-L${EXP2L_DIR}"
19028 pbxfuncname="exp2l"
19029 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19030 AST_EXP2L_FOUND=yes
19031 else
19032 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19033 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19034 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19035 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038 ac_check_lib_save_LIBS=$LIBS
19039 LIBS="-lm ${pbxlibdir} $LIBS"
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19047 /* Override any GCC internal prototype to avoid an error.
19048 Use char because int might match the return type of a GCC
19049 builtin and then its argument prototype would still apply. */
19050 #ifdef __cplusplus
19051 extern "C"
19052 #endif
19053 char ${pbxfuncname} ();
19055 main ()
19057 return ${pbxfuncname} ();
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>conftest.er1
19070 ac_status=$?
19071 grep -v '^ *+' conftest.er1 >conftest.err
19072 rm -f conftest.er1
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest$ac_exeext &&
19079 $as_test_x conftest$ac_exeext; then
19080 eval "$as_ac_Lib=yes"
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 eval "$as_ac_Lib=no"
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19092 ac_res=`eval echo '${'$as_ac_Lib'}'`
19093 { echo "$as_me:$LINENO: result: $ac_res" >&5
19094 echo "${ECHO_T}$ac_res" >&6; }
19095 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19096 AST_EXP2L_FOUND=yes
19097 else
19098 AST_EXP2L_FOUND=no
19103 # now check for the header.
19104 if test "${AST_EXP2L_FOUND}" = "yes"; then
19105 EXP2L_LIB="${pbxlibdir} -lm "
19106 # if --with-EXP2L=DIR has been specified, use it.
19107 if test "x${EXP2L_DIR}" != "x"; then
19108 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19110 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19111 if test "x" = "x" ; then # no header, assume found
19112 EXP2L_HEADER_FOUND="1"
19113 else # check for the header
19114 saved_cppflags="${CPPFLAGS}"
19115 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
19116 if test "${ac_cv_header_+set}" = set; then
19117 { echo "$as_me:$LINENO: checking for " >&5
19118 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19119 if test "${ac_cv_header_+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19123 echo "${ECHO_T}$ac_cv_header_" >&6; }
19124 else
19125 # Is the header compilable?
19126 { echo "$as_me:$LINENO: checking usability" >&5
19127 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19128 cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h. */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 $ac_includes_default
19135 #include <>
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (ac_try="$ac_compile"
19139 case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19142 esac
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_compile") 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest.$ac_objext; then
19154 ac_header_compiler=yes
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_header_compiler=no
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19164 echo "${ECHO_T}$ac_header_compiler" >&6; }
19166 # Is the header present?
19167 { echo "$as_me:$LINENO: checking presence" >&5
19168 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 #include <>
19176 _ACEOF
19177 if { (ac_try="$ac_cpp conftest.$ac_ext"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } >/dev/null && {
19190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 }; then
19193 ac_header_preproc=yes
19194 else
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_header_preproc=no
19201 rm -f conftest.err conftest.$ac_ext
19202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19203 echo "${ECHO_T}$ac_header_preproc" >&6; }
19205 # So? What about this header?
19206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19207 yes:no: )
19208 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19209 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19210 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19211 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19212 ac_header_preproc=yes
19214 no:yes:* )
19215 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19216 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19218 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19219 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19220 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19221 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19222 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19223 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19224 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19225 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19226 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19227 ( cat <<\_ASBOX
19228 ## ------------------------------- ##
19229 ## Report this to www.asterisk.org ##
19230 ## ------------------------------- ##
19231 _ASBOX
19232 ) | sed "s/^/$as_me: WARNING: /" >&2
19234 esac
19235 { echo "$as_me:$LINENO: checking for " >&5
19236 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19237 if test "${ac_cv_header_+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 else
19240 ac_cv_header_=$ac_header_preproc
19242 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19243 echo "${ECHO_T}$ac_cv_header_" >&6; }
19246 if test $ac_cv_header_ = yes; then
19247 EXP2L_HEADER_FOUND=1
19248 else
19249 EXP2L_HEADER_FOUND=0
19253 CPPFLAGS="${saved_cppflags}"
19255 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19256 EXP2L_LIB=""
19257 EXP2L_INCLUDE=""
19258 else
19259 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19260 EXP2L_LIB=""
19262 PBX_EXP2L=1
19263 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19265 cat >>confdefs.h <<_ACEOF
19266 #define HAVE_EXP2L 1
19267 _ACEOF
19270 cat >>confdefs.h <<_ACEOF
19271 #define HAVE_EXP2L_VERSION
19272 _ACEOF
19279 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19280 pbxlibdir=""
19281 # if --with-LOG2L=DIR has been specified, use it.
19282 if test "x${LOG2L_DIR}" != "x"; then
19283 if test -d ${LOG2L_DIR}/lib; then
19284 pbxlibdir="-L${LOG2L_DIR}/lib"
19285 else
19286 pbxlibdir="-L${LOG2L_DIR}"
19289 pbxfuncname="log2l"
19290 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19291 AST_LOG2L_FOUND=yes
19292 else
19293 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19294 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19295 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19296 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-lm ${pbxlibdir} $LIBS"
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19308 /* Override any GCC internal prototype to avoid an error.
19309 Use char because int might match the return type of a GCC
19310 builtin and then its argument prototype would still apply. */
19311 #ifdef __cplusplus
19312 extern "C"
19313 #endif
19314 char ${pbxfuncname} ();
19316 main ()
19318 return ${pbxfuncname} ();
19320 return 0;
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (ac_try="$ac_link"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_link") 2>conftest.er1
19331 ac_status=$?
19332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && {
19337 test -z "$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 } && test -s conftest$ac_exeext &&
19340 $as_test_x conftest$ac_exeext; then
19341 eval "$as_ac_Lib=yes"
19342 else
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 eval "$as_ac_Lib=no"
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350 conftest$ac_exeext conftest.$ac_ext
19351 LIBS=$ac_check_lib_save_LIBS
19353 ac_res=`eval echo '${'$as_ac_Lib'}'`
19354 { echo "$as_me:$LINENO: result: $ac_res" >&5
19355 echo "${ECHO_T}$ac_res" >&6; }
19356 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19357 AST_LOG2L_FOUND=yes
19358 else
19359 AST_LOG2L_FOUND=no
19364 # now check for the header.
19365 if test "${AST_LOG2L_FOUND}" = "yes"; then
19366 LOG2L_LIB="${pbxlibdir} -lm "
19367 # if --with-LOG2L=DIR has been specified, use it.
19368 if test "x${LOG2L_DIR}" != "x"; then
19369 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19371 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19372 if test "x" = "x" ; then # no header, assume found
19373 LOG2L_HEADER_FOUND="1"
19374 else # check for the header
19375 saved_cppflags="${CPPFLAGS}"
19376 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19377 if test "${ac_cv_header_+set}" = set; then
19378 { echo "$as_me:$LINENO: checking for " >&5
19379 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19380 if test "${ac_cv_header_+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19384 echo "${ECHO_T}$ac_cv_header_" >&6; }
19385 else
19386 # Is the header compilable?
19387 { echo "$as_me:$LINENO: checking usability" >&5
19388 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 $ac_includes_default
19396 #include <>
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest.$ac_objext; then
19415 ac_header_compiler=yes
19416 else
19417 echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19420 ac_header_compiler=no
19423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19425 echo "${ECHO_T}$ac_header_compiler" >&6; }
19427 # Is the header present?
19428 { echo "$as_me:$LINENO: checking presence" >&5
19429 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 #include <>
19437 _ACEOF
19438 if { (ac_try="$ac_cpp conftest.$ac_ext"
19439 case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } >/dev/null && {
19451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19452 test ! -s conftest.err
19453 }; then
19454 ac_header_preproc=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ac_header_preproc=no
19462 rm -f conftest.err conftest.$ac_ext
19463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19464 echo "${ECHO_T}$ac_header_preproc" >&6; }
19466 # So? What about this header?
19467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19468 yes:no: )
19469 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19470 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19472 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19473 ac_header_preproc=yes
19475 no:yes:* )
19476 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19477 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19478 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19479 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19481 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19483 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19484 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19485 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19487 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19488 ( cat <<\_ASBOX
19489 ## ------------------------------- ##
19490 ## Report this to www.asterisk.org ##
19491 ## ------------------------------- ##
19492 _ASBOX
19493 ) | sed "s/^/$as_me: WARNING: /" >&2
19495 esac
19496 { echo "$as_me:$LINENO: checking for " >&5
19497 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19498 if test "${ac_cv_header_+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 ac_cv_header_=$ac_header_preproc
19503 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19504 echo "${ECHO_T}$ac_cv_header_" >&6; }
19507 if test $ac_cv_header_ = yes; then
19508 LOG2L_HEADER_FOUND=1
19509 else
19510 LOG2L_HEADER_FOUND=0
19514 CPPFLAGS="${saved_cppflags}"
19516 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19517 LOG2L_LIB=""
19518 LOG2L_INCLUDE=""
19519 else
19520 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19521 LOG2L_LIB=""
19523 PBX_LOG2L=1
19524 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_LOG2L 1
19528 _ACEOF
19531 cat >>confdefs.h <<_ACEOF
19532 #define HAVE_LOG2L_VERSION
19533 _ACEOF
19540 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19541 pbxlibdir=""
19542 # if --with-EXP10L=DIR has been specified, use it.
19543 if test "x${EXP10L_DIR}" != "x"; then
19544 if test -d ${EXP10L_DIR}/lib; then
19545 pbxlibdir="-L${EXP10L_DIR}/lib"
19546 else
19547 pbxlibdir="-L${EXP10L_DIR}"
19550 pbxfuncname="exp10l"
19551 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19552 AST_EXP10L_FOUND=yes
19553 else
19554 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19555 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19556 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19557 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560 ac_check_lib_save_LIBS=$LIBS
19561 LIBS="-lm ${pbxlibdir} $LIBS"
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19572 #ifdef __cplusplus
19573 extern "C"
19574 #endif
19575 char ${pbxfuncname} ();
19577 main ()
19579 return ${pbxfuncname} ();
19581 return 0;
19583 _ACEOF
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (ac_try="$ac_link"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_link") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } && {
19598 test -z "$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19600 } && test -s conftest$ac_exeext &&
19601 $as_test_x conftest$ac_exeext; then
19602 eval "$as_ac_Lib=yes"
19603 else
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 eval "$as_ac_Lib=no"
19610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19611 conftest$ac_exeext conftest.$ac_ext
19612 LIBS=$ac_check_lib_save_LIBS
19614 ac_res=`eval echo '${'$as_ac_Lib'}'`
19615 { echo "$as_me:$LINENO: result: $ac_res" >&5
19616 echo "${ECHO_T}$ac_res" >&6; }
19617 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19618 AST_EXP10L_FOUND=yes
19619 else
19620 AST_EXP10L_FOUND=no
19625 # now check for the header.
19626 if test "${AST_EXP10L_FOUND}" = "yes"; then
19627 EXP10L_LIB="${pbxlibdir} -lm "
19628 # if --with-EXP10L=DIR has been specified, use it.
19629 if test "x${EXP10L_DIR}" != "x"; then
19630 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19632 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19633 if test "x" = "x" ; then # no header, assume found
19634 EXP10L_HEADER_FOUND="1"
19635 else # check for the header
19636 saved_cppflags="${CPPFLAGS}"
19637 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19638 if test "${ac_cv_header_+set}" = set; then
19639 { echo "$as_me:$LINENO: checking for " >&5
19640 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19641 if test "${ac_cv_header_+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19645 echo "${ECHO_T}$ac_cv_header_" >&6; }
19646 else
19647 # Is the header compilable?
19648 { echo "$as_me:$LINENO: checking usability" >&5
19649 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 $ac_includes_default
19657 #include <>
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } && {
19673 test -z "$ac_c_werror_flag" ||
19674 test ! -s conftest.err
19675 } && test -s conftest.$ac_objext; then
19676 ac_header_compiler=yes
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_header_compiler=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19686 echo "${ECHO_T}$ac_header_compiler" >&6; }
19688 # Is the header present?
19689 { echo "$as_me:$LINENO: checking presence" >&5
19690 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <>
19698 _ACEOF
19699 if { (ac_try="$ac_cpp conftest.$ac_ext"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } >/dev/null && {
19712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 }; then
19715 ac_header_preproc=yes
19716 else
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 ac_header_preproc=no
19723 rm -f conftest.err conftest.$ac_ext
19724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19725 echo "${ECHO_T}$ac_header_preproc" >&6; }
19727 # So? What about this header?
19728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19729 yes:no: )
19730 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19731 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19733 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19734 ac_header_preproc=yes
19736 no:yes:* )
19737 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19738 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19740 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19742 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19744 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19746 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19748 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19749 ( cat <<\_ASBOX
19750 ## ------------------------------- ##
19751 ## Report this to www.asterisk.org ##
19752 ## ------------------------------- ##
19753 _ASBOX
19754 ) | sed "s/^/$as_me: WARNING: /" >&2
19756 esac
19757 { echo "$as_me:$LINENO: checking for " >&5
19758 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19759 if test "${ac_cv_header_+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762 ac_cv_header_=$ac_header_preproc
19764 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19765 echo "${ECHO_T}$ac_cv_header_" >&6; }
19768 if test $ac_cv_header_ = yes; then
19769 EXP10L_HEADER_FOUND=1
19770 else
19771 EXP10L_HEADER_FOUND=0
19775 CPPFLAGS="${saved_cppflags}"
19777 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19778 EXP10L_LIB=""
19779 EXP10L_INCLUDE=""
19780 else
19781 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19782 EXP10L_LIB=""
19784 PBX_EXP10L=1
19785 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_EXP10L 1
19789 _ACEOF
19792 cat >>confdefs.h <<_ACEOF
19793 #define HAVE_EXP10L_VERSION
19794 _ACEOF
19801 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19802 pbxlibdir=""
19803 # if --with-LOG10L=DIR has been specified, use it.
19804 if test "x${LOG10L_DIR}" != "x"; then
19805 if test -d ${LOG10L_DIR}/lib; then
19806 pbxlibdir="-L${LOG10L_DIR}/lib"
19807 else
19808 pbxlibdir="-L${LOG10L_DIR}"
19811 pbxfuncname="log10l"
19812 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19813 AST_LOG10L_FOUND=yes
19814 else
19815 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19816 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19817 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19818 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 ac_check_lib_save_LIBS=$LIBS
19822 LIBS="-lm ${pbxlibdir} $LIBS"
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19830 /* Override any GCC internal prototype to avoid an error.
19831 Use char because int might match the return type of a GCC
19832 builtin and then its argument prototype would still apply. */
19833 #ifdef __cplusplus
19834 extern "C"
19835 #endif
19836 char ${pbxfuncname} ();
19838 main ()
19840 return ${pbxfuncname} ();
19842 return 0;
19844 _ACEOF
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (ac_try="$ac_link"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_link") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest$ac_exeext &&
19862 $as_test_x conftest$ac_exeext; then
19863 eval "$as_ac_Lib=yes"
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 eval "$as_ac_Lib=no"
19871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19872 conftest$ac_exeext conftest.$ac_ext
19873 LIBS=$ac_check_lib_save_LIBS
19875 ac_res=`eval echo '${'$as_ac_Lib'}'`
19876 { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19878 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19879 AST_LOG10L_FOUND=yes
19880 else
19881 AST_LOG10L_FOUND=no
19886 # now check for the header.
19887 if test "${AST_LOG10L_FOUND}" = "yes"; then
19888 LOG10L_LIB="${pbxlibdir} -lm "
19889 # if --with-LOG10L=DIR has been specified, use it.
19890 if test "x${LOG10L_DIR}" != "x"; then
19891 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19893 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19894 if test "x" = "x" ; then # no header, assume found
19895 LOG10L_HEADER_FOUND="1"
19896 else # check for the header
19897 saved_cppflags="${CPPFLAGS}"
19898 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
19899 if test "${ac_cv_header_+set}" = set; then
19900 { echo "$as_me:$LINENO: checking for " >&5
19901 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19902 if test "${ac_cv_header_+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19906 echo "${ECHO_T}$ac_cv_header_" >&6; }
19907 else
19908 # Is the header compilable?
19909 { echo "$as_me:$LINENO: checking usability" >&5
19910 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 $ac_includes_default
19918 #include <>
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest.$ac_objext; then
19937 ac_header_compiler=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_header_compiler=no
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19947 echo "${ECHO_T}$ac_header_compiler" >&6; }
19949 # Is the header present?
19950 { echo "$as_me:$LINENO: checking presence" >&5
19951 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #include <>
19959 _ACEOF
19960 if { (ac_try="$ac_cpp conftest.$ac_ext"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } >/dev/null && {
19973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 }; then
19976 ac_header_preproc=yes
19977 else
19978 echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 ac_header_preproc=no
19984 rm -f conftest.err conftest.$ac_ext
19985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19986 echo "${ECHO_T}$ac_header_preproc" >&6; }
19988 # So? What about this header?
19989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19990 yes:no: )
19991 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19992 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19994 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19995 ac_header_preproc=yes
19997 no:yes:* )
19998 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19999 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20001 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20003 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20004 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20005 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20007 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20009 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20010 ( cat <<\_ASBOX
20011 ## ------------------------------- ##
20012 ## Report this to www.asterisk.org ##
20013 ## ------------------------------- ##
20014 _ASBOX
20015 ) | sed "s/^/$as_me: WARNING: /" >&2
20017 esac
20018 { echo "$as_me:$LINENO: checking for " >&5
20019 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20020 if test "${ac_cv_header_+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 ac_cv_header_=$ac_header_preproc
20025 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20026 echo "${ECHO_T}$ac_cv_header_" >&6; }
20029 if test $ac_cv_header_ = yes; then
20030 LOG10L_HEADER_FOUND=1
20031 else
20032 LOG10L_HEADER_FOUND=0
20036 CPPFLAGS="${saved_cppflags}"
20038 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20039 LOG10L_LIB=""
20040 LOG10L_INCLUDE=""
20041 else
20042 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20043 LOG10L_LIB=""
20045 PBX_LOG10L=1
20046 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_LOG10L 1
20050 _ACEOF
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_LOG10L_VERSION
20055 _ACEOF
20062 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20063 pbxlibdir=""
20064 # if --with-SINL=DIR has been specified, use it.
20065 if test "x${SINL_DIR}" != "x"; then
20066 if test -d ${SINL_DIR}/lib; then
20067 pbxlibdir="-L${SINL_DIR}/lib"
20068 else
20069 pbxlibdir="-L${SINL_DIR}"
20072 pbxfuncname="sinl"
20073 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20074 AST_SINL_FOUND=yes
20075 else
20076 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20077 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20078 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 ac_check_lib_save_LIBS=$LIBS
20083 LIBS="-lm ${pbxlibdir} $LIBS"
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20091 /* Override any GCC internal prototype to avoid an error.
20092 Use char because int might match the return type of a GCC
20093 builtin and then its argument prototype would still apply. */
20094 #ifdef __cplusplus
20095 extern "C"
20096 #endif
20097 char ${pbxfuncname} ();
20099 main ()
20101 return ${pbxfuncname} ();
20103 return 0;
20105 _ACEOF
20106 rm -f conftest.$ac_objext conftest$ac_exeext
20107 if { (ac_try="$ac_link"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_link") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest$ac_exeext &&
20123 $as_test_x conftest$ac_exeext; then
20124 eval "$as_ac_Lib=yes"
20125 else
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 eval "$as_ac_Lib=no"
20132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20133 conftest$ac_exeext conftest.$ac_ext
20134 LIBS=$ac_check_lib_save_LIBS
20136 ac_res=`eval echo '${'$as_ac_Lib'}'`
20137 { echo "$as_me:$LINENO: result: $ac_res" >&5
20138 echo "${ECHO_T}$ac_res" >&6; }
20139 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20140 AST_SINL_FOUND=yes
20141 else
20142 AST_SINL_FOUND=no
20147 # now check for the header.
20148 if test "${AST_SINL_FOUND}" = "yes"; then
20149 SINL_LIB="${pbxlibdir} -lm "
20150 # if --with-SINL=DIR has been specified, use it.
20151 if test "x${SINL_DIR}" != "x"; then
20152 SINL_INCLUDE="-I${SINL_DIR}/include"
20154 SINL_INCLUDE="${SINL_INCLUDE} "
20155 if test "x" = "x" ; then # no header, assume found
20156 SINL_HEADER_FOUND="1"
20157 else # check for the header
20158 saved_cppflags="${CPPFLAGS}"
20159 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
20160 if test "${ac_cv_header_+set}" = set; then
20161 { echo "$as_me:$LINENO: checking for " >&5
20162 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20163 if test "${ac_cv_header_+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20167 echo "${ECHO_T}$ac_cv_header_" >&6; }
20168 else
20169 # Is the header compilable?
20170 { echo "$as_me:$LINENO: checking usability" >&5
20171 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h. */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 $ac_includes_default
20179 #include <>
20180 _ACEOF
20181 rm -f conftest.$ac_objext
20182 if { (ac_try="$ac_compile"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_compile") 2>conftest.er1
20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest.$ac_objext; then
20198 ac_header_compiler=yes
20199 else
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_header_compiler=no
20206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20208 echo "${ECHO_T}$ac_header_compiler" >&6; }
20210 # Is the header present?
20211 { echo "$as_me:$LINENO: checking presence" >&5
20212 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <>
20220 _ACEOF
20221 if { (ac_try="$ac_cpp conftest.$ac_ext"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } >/dev/null && {
20234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 }; then
20237 ac_header_preproc=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_header_preproc=no
20245 rm -f conftest.err conftest.$ac_ext
20246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20247 echo "${ECHO_T}$ac_header_preproc" >&6; }
20249 # So? What about this header?
20250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20251 yes:no: )
20252 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20253 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20255 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20256 ac_header_preproc=yes
20258 no:yes:* )
20259 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20260 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20262 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20264 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20266 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20268 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20270 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20271 ( cat <<\_ASBOX
20272 ## ------------------------------- ##
20273 ## Report this to www.asterisk.org ##
20274 ## ------------------------------- ##
20275 _ASBOX
20276 ) | sed "s/^/$as_me: WARNING: /" >&2
20278 esac
20279 { echo "$as_me:$LINENO: checking for " >&5
20280 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20281 if test "${ac_cv_header_+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 ac_cv_header_=$ac_header_preproc
20286 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20287 echo "${ECHO_T}$ac_cv_header_" >&6; }
20290 if test $ac_cv_header_ = yes; then
20291 SINL_HEADER_FOUND=1
20292 else
20293 SINL_HEADER_FOUND=0
20297 CPPFLAGS="${saved_cppflags}"
20299 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20300 SINL_LIB=""
20301 SINL_INCLUDE=""
20302 else
20303 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20304 SINL_LIB=""
20306 PBX_SINL=1
20307 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_SINL 1
20311 _ACEOF
20314 cat >>confdefs.h <<_ACEOF
20315 #define HAVE_SINL_VERSION
20316 _ACEOF
20323 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20324 pbxlibdir=""
20325 # if --with-COSL=DIR has been specified, use it.
20326 if test "x${COSL_DIR}" != "x"; then
20327 if test -d ${COSL_DIR}/lib; then
20328 pbxlibdir="-L${COSL_DIR}/lib"
20329 else
20330 pbxlibdir="-L${COSL_DIR}"
20333 pbxfuncname="cosl"
20334 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20335 AST_COSL_FOUND=yes
20336 else
20337 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20338 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20339 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20340 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343 ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-lm ${pbxlibdir} $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char ${pbxfuncname} ();
20360 main ()
20362 return ${pbxfuncname} ();
20364 return 0;
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_link") 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && {
20381 test -z "$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 } && test -s conftest$ac_exeext &&
20384 $as_test_x conftest$ac_exeext; then
20385 eval "$as_ac_Lib=yes"
20386 else
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 eval "$as_ac_Lib=no"
20393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20394 conftest$ac_exeext conftest.$ac_ext
20395 LIBS=$ac_check_lib_save_LIBS
20397 ac_res=`eval echo '${'$as_ac_Lib'}'`
20398 { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20400 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20401 AST_COSL_FOUND=yes
20402 else
20403 AST_COSL_FOUND=no
20408 # now check for the header.
20409 if test "${AST_COSL_FOUND}" = "yes"; then
20410 COSL_LIB="${pbxlibdir} -lm "
20411 # if --with-COSL=DIR has been specified, use it.
20412 if test "x${COSL_DIR}" != "x"; then
20413 COSL_INCLUDE="-I${COSL_DIR}/include"
20415 COSL_INCLUDE="${COSL_INCLUDE} "
20416 if test "x" = "x" ; then # no header, assume found
20417 COSL_HEADER_FOUND="1"
20418 else # check for the header
20419 saved_cppflags="${CPPFLAGS}"
20420 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20421 if test "${ac_cv_header_+set}" = set; then
20422 { echo "$as_me:$LINENO: checking for " >&5
20423 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20424 if test "${ac_cv_header_+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20428 echo "${ECHO_T}$ac_cv_header_" >&6; }
20429 else
20430 # Is the header compilable?
20431 { echo "$as_me:$LINENO: checking usability" >&5
20432 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 $ac_includes_default
20440 #include <>
20441 _ACEOF
20442 rm -f conftest.$ac_objext
20443 if { (ac_try="$ac_compile"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_compile") 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest.$ac_objext; then
20459 ac_header_compiler=yes
20460 else
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20464 ac_header_compiler=no
20467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20469 echo "${ECHO_T}$ac_header_compiler" >&6; }
20471 # Is the header present?
20472 { echo "$as_me:$LINENO: checking presence" >&5
20473 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20474 cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h. */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <>
20481 _ACEOF
20482 if { (ac_try="$ac_cpp conftest.$ac_ext"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } >/dev/null && {
20495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 }; then
20498 ac_header_preproc=yes
20499 else
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_header_preproc=no
20506 rm -f conftest.err conftest.$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20508 echo "${ECHO_T}$ac_header_preproc" >&6; }
20510 # So? What about this header?
20511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20512 yes:no: )
20513 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20514 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20516 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20517 ac_header_preproc=yes
20519 no:yes:* )
20520 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20521 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20523 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20525 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20527 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20529 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20530 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20531 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20532 ( cat <<\_ASBOX
20533 ## ------------------------------- ##
20534 ## Report this to www.asterisk.org ##
20535 ## ------------------------------- ##
20536 _ASBOX
20537 ) | sed "s/^/$as_me: WARNING: /" >&2
20539 esac
20540 { echo "$as_me:$LINENO: checking for " >&5
20541 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20542 if test "${ac_cv_header_+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545 ac_cv_header_=$ac_header_preproc
20547 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20548 echo "${ECHO_T}$ac_cv_header_" >&6; }
20551 if test $ac_cv_header_ = yes; then
20552 COSL_HEADER_FOUND=1
20553 else
20554 COSL_HEADER_FOUND=0
20558 CPPFLAGS="${saved_cppflags}"
20560 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20561 COSL_LIB=""
20562 COSL_INCLUDE=""
20563 else
20564 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20565 COSL_LIB=""
20567 PBX_COSL=1
20568 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20570 cat >>confdefs.h <<_ACEOF
20571 #define HAVE_COSL 1
20572 _ACEOF
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_COSL_VERSION
20577 _ACEOF
20584 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20585 pbxlibdir=""
20586 # if --with-TANL=DIR has been specified, use it.
20587 if test "x${TANL_DIR}" != "x"; then
20588 if test -d ${TANL_DIR}/lib; then
20589 pbxlibdir="-L${TANL_DIR}/lib"
20590 else
20591 pbxlibdir="-L${TANL_DIR}"
20594 pbxfuncname="tanl"
20595 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20596 AST_TANL_FOUND=yes
20597 else
20598 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20599 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20600 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20601 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604 ac_check_lib_save_LIBS=$LIBS
20605 LIBS="-lm ${pbxlibdir} $LIBS"
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h. */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20613 /* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply. */
20616 #ifdef __cplusplus
20617 extern "C"
20618 #endif
20619 char ${pbxfuncname} ();
20621 main ()
20623 return ${pbxfuncname} ();
20625 return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext conftest$ac_exeext
20629 if { (ac_try="$ac_link"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_link") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest$ac_exeext &&
20645 $as_test_x conftest$ac_exeext; then
20646 eval "$as_ac_Lib=yes"
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 eval "$as_ac_Lib=no"
20654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20655 conftest$ac_exeext conftest.$ac_ext
20656 LIBS=$ac_check_lib_save_LIBS
20658 ac_res=`eval echo '${'$as_ac_Lib'}'`
20659 { echo "$as_me:$LINENO: result: $ac_res" >&5
20660 echo "${ECHO_T}$ac_res" >&6; }
20661 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20662 AST_TANL_FOUND=yes
20663 else
20664 AST_TANL_FOUND=no
20669 # now check for the header.
20670 if test "${AST_TANL_FOUND}" = "yes"; then
20671 TANL_LIB="${pbxlibdir} -lm "
20672 # if --with-TANL=DIR has been specified, use it.
20673 if test "x${TANL_DIR}" != "x"; then
20674 TANL_INCLUDE="-I${TANL_DIR}/include"
20676 TANL_INCLUDE="${TANL_INCLUDE} "
20677 if test "x" = "x" ; then # no header, assume found
20678 TANL_HEADER_FOUND="1"
20679 else # check for the header
20680 saved_cppflags="${CPPFLAGS}"
20681 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20682 if test "${ac_cv_header_+set}" = set; then
20683 { echo "$as_me:$LINENO: checking for " >&5
20684 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20685 if test "${ac_cv_header_+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20689 echo "${ECHO_T}$ac_cv_header_" >&6; }
20690 else
20691 # Is the header compilable?
20692 { echo "$as_me:$LINENO: checking usability" >&5
20693 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20701 #include <>
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_compile") 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && {
20717 test -z "$ac_c_werror_flag" ||
20718 test ! -s conftest.err
20719 } && test -s conftest.$ac_objext; then
20720 ac_header_compiler=yes
20721 else
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_header_compiler=no
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20730 echo "${ECHO_T}$ac_header_compiler" >&6; }
20732 # Is the header present?
20733 { echo "$as_me:$LINENO: checking presence" >&5
20734 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 #include <>
20742 _ACEOF
20743 if { (ac_try="$ac_cpp conftest.$ac_ext"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20750 ac_status=$?
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } >/dev/null && {
20756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20757 test ! -s conftest.err
20758 }; then
20759 ac_header_preproc=yes
20760 else
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 ac_header_preproc=no
20767 rm -f conftest.err conftest.$ac_ext
20768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20769 echo "${ECHO_T}$ac_header_preproc" >&6; }
20771 # So? What about this header?
20772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20773 yes:no: )
20774 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20775 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20777 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20778 ac_header_preproc=yes
20780 no:yes:* )
20781 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20782 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20784 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20786 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20788 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20790 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20792 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20793 ( cat <<\_ASBOX
20794 ## ------------------------------- ##
20795 ## Report this to www.asterisk.org ##
20796 ## ------------------------------- ##
20797 _ASBOX
20798 ) | sed "s/^/$as_me: WARNING: /" >&2
20800 esac
20801 { echo "$as_me:$LINENO: checking for " >&5
20802 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20803 if test "${ac_cv_header_+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806 ac_cv_header_=$ac_header_preproc
20808 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20809 echo "${ECHO_T}$ac_cv_header_" >&6; }
20812 if test $ac_cv_header_ = yes; then
20813 TANL_HEADER_FOUND=1
20814 else
20815 TANL_HEADER_FOUND=0
20819 CPPFLAGS="${saved_cppflags}"
20821 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20822 TANL_LIB=""
20823 TANL_INCLUDE=""
20824 else
20825 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20826 TANL_LIB=""
20828 PBX_TANL=1
20829 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20831 cat >>confdefs.h <<_ACEOF
20832 #define HAVE_TANL 1
20833 _ACEOF
20836 cat >>confdefs.h <<_ACEOF
20837 #define HAVE_TANL_VERSION
20838 _ACEOF
20845 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20846 pbxlibdir=""
20847 # if --with-ASINL=DIR has been specified, use it.
20848 if test "x${ASINL_DIR}" != "x"; then
20849 if test -d ${ASINL_DIR}/lib; then
20850 pbxlibdir="-L${ASINL_DIR}/lib"
20851 else
20852 pbxlibdir="-L${ASINL_DIR}"
20855 pbxfuncname="asinl"
20856 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20857 AST_ASINL_FOUND=yes
20858 else
20859 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20860 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20861 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20862 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 ac_check_lib_save_LIBS=$LIBS
20866 LIBS="-lm ${pbxlibdir} $LIBS"
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20874 /* Override any GCC internal prototype to avoid an error.
20875 Use char because int might match the return type of a GCC
20876 builtin and then its argument prototype would still apply. */
20877 #ifdef __cplusplus
20878 extern "C"
20879 #endif
20880 char ${pbxfuncname} ();
20882 main ()
20884 return ${pbxfuncname} ();
20886 return 0;
20888 _ACEOF
20889 rm -f conftest.$ac_objext conftest$ac_exeext
20890 if { (ac_try="$ac_link"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_link") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest$ac_exeext &&
20906 $as_test_x conftest$ac_exeext; then
20907 eval "$as_ac_Lib=yes"
20908 else
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 eval "$as_ac_Lib=no"
20915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20916 conftest$ac_exeext conftest.$ac_ext
20917 LIBS=$ac_check_lib_save_LIBS
20919 ac_res=`eval echo '${'$as_ac_Lib'}'`
20920 { echo "$as_me:$LINENO: result: $ac_res" >&5
20921 echo "${ECHO_T}$ac_res" >&6; }
20922 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20923 AST_ASINL_FOUND=yes
20924 else
20925 AST_ASINL_FOUND=no
20930 # now check for the header.
20931 if test "${AST_ASINL_FOUND}" = "yes"; then
20932 ASINL_LIB="${pbxlibdir} -lm "
20933 # if --with-ASINL=DIR has been specified, use it.
20934 if test "x${ASINL_DIR}" != "x"; then
20935 ASINL_INCLUDE="-I${ASINL_DIR}/include"
20937 ASINL_INCLUDE="${ASINL_INCLUDE} "
20938 if test "x" = "x" ; then # no header, assume found
20939 ASINL_HEADER_FOUND="1"
20940 else # check for the header
20941 saved_cppflags="${CPPFLAGS}"
20942 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
20943 if test "${ac_cv_header_+set}" = set; then
20944 { echo "$as_me:$LINENO: checking for " >&5
20945 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20946 if test "${ac_cv_header_+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20950 echo "${ECHO_T}$ac_cv_header_" >&6; }
20951 else
20952 # Is the header compilable?
20953 { echo "$as_me:$LINENO: checking usability" >&5
20954 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 #include <>
20963 _ACEOF
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest.$ac_objext; then
20981 ac_header_compiler=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_header_compiler=no
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20991 echo "${ECHO_T}$ac_header_compiler" >&6; }
20993 # Is the header present?
20994 { echo "$as_me:$LINENO: checking presence" >&5
20995 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <>
21003 _ACEOF
21004 if { (ac_try="$ac_cpp conftest.$ac_ext"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } >/dev/null && {
21017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 }; then
21020 ac_header_preproc=yes
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_preproc=no
21028 rm -f conftest.err conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6; }
21032 # So? What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21034 yes:no: )
21035 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21036 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21038 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21039 ac_header_preproc=yes
21041 no:yes:* )
21042 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21043 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21044 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21045 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21046 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21047 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21049 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21051 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21053 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21054 ( cat <<\_ASBOX
21055 ## ------------------------------- ##
21056 ## Report this to www.asterisk.org ##
21057 ## ------------------------------- ##
21058 _ASBOX
21059 ) | sed "s/^/$as_me: WARNING: /" >&2
21061 esac
21062 { echo "$as_me:$LINENO: checking for " >&5
21063 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21064 if test "${ac_cv_header_+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 ac_cv_header_=$ac_header_preproc
21069 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21070 echo "${ECHO_T}$ac_cv_header_" >&6; }
21073 if test $ac_cv_header_ = yes; then
21074 ASINL_HEADER_FOUND=1
21075 else
21076 ASINL_HEADER_FOUND=0
21080 CPPFLAGS="${saved_cppflags}"
21082 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21083 ASINL_LIB=""
21084 ASINL_INCLUDE=""
21085 else
21086 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21087 ASINL_LIB=""
21089 PBX_ASINL=1
21090 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_ASINL 1
21094 _ACEOF
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_ASINL_VERSION
21099 _ACEOF
21106 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21107 pbxlibdir=""
21108 # if --with-ACOSL=DIR has been specified, use it.
21109 if test "x${ACOSL_DIR}" != "x"; then
21110 if test -d ${ACOSL_DIR}/lib; then
21111 pbxlibdir="-L${ACOSL_DIR}/lib"
21112 else
21113 pbxlibdir="-L${ACOSL_DIR}"
21116 pbxfuncname="acosl"
21117 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21118 AST_ACOSL_FOUND=yes
21119 else
21120 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21121 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21122 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21123 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126 ac_check_lib_save_LIBS=$LIBS
21127 LIBS="-lm ${pbxlibdir} $LIBS"
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21135 /* Override any GCC internal prototype to avoid an error.
21136 Use char because int might match the return type of a GCC
21137 builtin and then its argument prototype would still apply. */
21138 #ifdef __cplusplus
21139 extern "C"
21140 #endif
21141 char ${pbxfuncname} ();
21143 main ()
21145 return ${pbxfuncname} ();
21147 return 0;
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (ac_try="$ac_link"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_link") 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest$ac_exeext &&
21167 $as_test_x conftest$ac_exeext; then
21168 eval "$as_ac_Lib=yes"
21169 else
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 eval "$as_ac_Lib=no"
21176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21177 conftest$ac_exeext conftest.$ac_ext
21178 LIBS=$ac_check_lib_save_LIBS
21180 ac_res=`eval echo '${'$as_ac_Lib'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21183 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21184 AST_ACOSL_FOUND=yes
21185 else
21186 AST_ACOSL_FOUND=no
21191 # now check for the header.
21192 if test "${AST_ACOSL_FOUND}" = "yes"; then
21193 ACOSL_LIB="${pbxlibdir} -lm "
21194 # if --with-ACOSL=DIR has been specified, use it.
21195 if test "x${ACOSL_DIR}" != "x"; then
21196 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21198 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21199 if test "x" = "x" ; then # no header, assume found
21200 ACOSL_HEADER_FOUND="1"
21201 else # check for the header
21202 saved_cppflags="${CPPFLAGS}"
21203 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
21204 if test "${ac_cv_header_+set}" = set; then
21205 { echo "$as_me:$LINENO: checking for " >&5
21206 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21207 if test "${ac_cv_header_+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21211 echo "${ECHO_T}$ac_cv_header_" >&6; }
21212 else
21213 # Is the header compilable?
21214 { echo "$as_me:$LINENO: checking usability" >&5
21215 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21216 cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h. */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21223 #include <>
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest.$ac_objext; then
21242 ac_header_compiler=yes
21243 else
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_header_compiler=no
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21252 echo "${ECHO_T}$ac_header_compiler" >&6; }
21254 # Is the header present?
21255 { echo "$as_me:$LINENO: checking presence" >&5
21256 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h. */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 #include <>
21264 _ACEOF
21265 if { (ac_try="$ac_cpp conftest.$ac_ext"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21272 ac_status=$?
21273 grep -v '^ *+' conftest.er1 >conftest.err
21274 rm -f conftest.er1
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } >/dev/null && {
21278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21280 }; then
21281 ac_header_preproc=yes
21282 else
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_header_preproc=no
21289 rm -f conftest.err conftest.$ac_ext
21290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21291 echo "${ECHO_T}$ac_header_preproc" >&6; }
21293 # So? What about this header?
21294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21295 yes:no: )
21296 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21297 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21299 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21300 ac_header_preproc=yes
21302 no:yes:* )
21303 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21304 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21305 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21306 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21308 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21309 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21310 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21312 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21314 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21315 ( cat <<\_ASBOX
21316 ## ------------------------------- ##
21317 ## Report this to www.asterisk.org ##
21318 ## ------------------------------- ##
21319 _ASBOX
21320 ) | sed "s/^/$as_me: WARNING: /" >&2
21322 esac
21323 { echo "$as_me:$LINENO: checking for " >&5
21324 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21325 if test "${ac_cv_header_+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328 ac_cv_header_=$ac_header_preproc
21330 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21331 echo "${ECHO_T}$ac_cv_header_" >&6; }
21334 if test $ac_cv_header_ = yes; then
21335 ACOSL_HEADER_FOUND=1
21336 else
21337 ACOSL_HEADER_FOUND=0
21341 CPPFLAGS="${saved_cppflags}"
21343 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21344 ACOSL_LIB=""
21345 ACOSL_INCLUDE=""
21346 else
21347 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21348 ACOSL_LIB=""
21350 PBX_ACOSL=1
21351 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21353 cat >>confdefs.h <<_ACEOF
21354 #define HAVE_ACOSL 1
21355 _ACEOF
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_ACOSL_VERSION
21360 _ACEOF
21367 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21368 pbxlibdir=""
21369 # if --with-ATANL=DIR has been specified, use it.
21370 if test "x${ATANL_DIR}" != "x"; then
21371 if test -d ${ATANL_DIR}/lib; then
21372 pbxlibdir="-L${ATANL_DIR}/lib"
21373 else
21374 pbxlibdir="-L${ATANL_DIR}"
21377 pbxfuncname="atanl"
21378 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21379 AST_ATANL_FOUND=yes
21380 else
21381 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21382 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21383 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21384 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387 ac_check_lib_save_LIBS=$LIBS
21388 LIBS="-lm ${pbxlibdir} $LIBS"
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21399 #ifdef __cplusplus
21400 extern "C"
21401 #endif
21402 char ${pbxfuncname} ();
21404 main ()
21406 return ${pbxfuncname} ();
21408 return 0;
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (ac_try="$ac_link"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_link") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest$ac_exeext &&
21428 $as_test_x conftest$ac_exeext; then
21429 eval "$as_ac_Lib=yes"
21430 else
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 eval "$as_ac_Lib=no"
21437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21438 conftest$ac_exeext conftest.$ac_ext
21439 LIBS=$ac_check_lib_save_LIBS
21441 ac_res=`eval echo '${'$as_ac_Lib'}'`
21442 { echo "$as_me:$LINENO: result: $ac_res" >&5
21443 echo "${ECHO_T}$ac_res" >&6; }
21444 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21445 AST_ATANL_FOUND=yes
21446 else
21447 AST_ATANL_FOUND=no
21452 # now check for the header.
21453 if test "${AST_ATANL_FOUND}" = "yes"; then
21454 ATANL_LIB="${pbxlibdir} -lm "
21455 # if --with-ATANL=DIR has been specified, use it.
21456 if test "x${ATANL_DIR}" != "x"; then
21457 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21459 ATANL_INCLUDE="${ATANL_INCLUDE} "
21460 if test "x" = "x" ; then # no header, assume found
21461 ATANL_HEADER_FOUND="1"
21462 else # check for the header
21463 saved_cppflags="${CPPFLAGS}"
21464 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21465 if test "${ac_cv_header_+set}" = set; then
21466 { echo "$as_me:$LINENO: checking for " >&5
21467 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21468 if test "${ac_cv_header_+set}" = set; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21472 echo "${ECHO_T}$ac_cv_header_" >&6; }
21473 else
21474 # Is the header compilable?
21475 { echo "$as_me:$LINENO: checking usability" >&5
21476 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 $ac_includes_default
21484 #include <>
21485 _ACEOF
21486 rm -f conftest.$ac_objext
21487 if { (ac_try="$ac_compile"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_compile") 2>conftest.er1
21494 ac_status=$?
21495 grep -v '^ *+' conftest.er1 >conftest.err
21496 rm -f conftest.er1
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest.$ac_objext; then
21503 ac_header_compiler=yes
21504 else
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_header_compiler=no
21511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21513 echo "${ECHO_T}$ac_header_compiler" >&6; }
21515 # Is the header present?
21516 { echo "$as_me:$LINENO: checking presence" >&5
21517 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 #include <>
21525 _ACEOF
21526 if { (ac_try="$ac_cpp conftest.$ac_ext"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } >/dev/null && {
21539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 }; then
21542 ac_header_preproc=yes
21543 else
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_header_preproc=no
21550 rm -f conftest.err conftest.$ac_ext
21551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21552 echo "${ECHO_T}$ac_header_preproc" >&6; }
21554 # So? What about this header?
21555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21556 yes:no: )
21557 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21558 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21560 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21561 ac_header_preproc=yes
21563 no:yes:* )
21564 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21565 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21567 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21569 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21571 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21573 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21575 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21576 ( cat <<\_ASBOX
21577 ## ------------------------------- ##
21578 ## Report this to www.asterisk.org ##
21579 ## ------------------------------- ##
21580 _ASBOX
21581 ) | sed "s/^/$as_me: WARNING: /" >&2
21583 esac
21584 { echo "$as_me:$LINENO: checking for " >&5
21585 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21586 if test "${ac_cv_header_+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589 ac_cv_header_=$ac_header_preproc
21591 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21592 echo "${ECHO_T}$ac_cv_header_" >&6; }
21595 if test $ac_cv_header_ = yes; then
21596 ATANL_HEADER_FOUND=1
21597 else
21598 ATANL_HEADER_FOUND=0
21602 CPPFLAGS="${saved_cppflags}"
21604 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21605 ATANL_LIB=""
21606 ATANL_INCLUDE=""
21607 else
21608 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21609 ATANL_LIB=""
21611 PBX_ATANL=1
21612 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21614 cat >>confdefs.h <<_ACEOF
21615 #define HAVE_ATANL 1
21616 _ACEOF
21619 cat >>confdefs.h <<_ACEOF
21620 #define HAVE_ATANL_VERSION
21621 _ACEOF
21628 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21629 pbxlibdir=""
21630 # if --with-ATAN2L=DIR has been specified, use it.
21631 if test "x${ATAN2L_DIR}" != "x"; then
21632 if test -d ${ATAN2L_DIR}/lib; then
21633 pbxlibdir="-L${ATAN2L_DIR}/lib"
21634 else
21635 pbxlibdir="-L${ATAN2L_DIR}"
21638 pbxfuncname="atan2l"
21639 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21640 AST_ATAN2L_FOUND=yes
21641 else
21642 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21643 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21644 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21645 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648 ac_check_lib_save_LIBS=$LIBS
21649 LIBS="-lm ${pbxlibdir} $LIBS"
21650 cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h. */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21657 /* Override any GCC internal prototype to avoid an error.
21658 Use char because int might match the return type of a GCC
21659 builtin and then its argument prototype would still apply. */
21660 #ifdef __cplusplus
21661 extern "C"
21662 #endif
21663 char ${pbxfuncname} ();
21665 main ()
21667 return ${pbxfuncname} ();
21669 return 0;
21671 _ACEOF
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (ac_try="$ac_link"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_link") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest$ac_exeext &&
21689 $as_test_x conftest$ac_exeext; then
21690 eval "$as_ac_Lib=yes"
21691 else
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 eval "$as_ac_Lib=no"
21698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21699 conftest$ac_exeext conftest.$ac_ext
21700 LIBS=$ac_check_lib_save_LIBS
21702 ac_res=`eval echo '${'$as_ac_Lib'}'`
21703 { echo "$as_me:$LINENO: result: $ac_res" >&5
21704 echo "${ECHO_T}$ac_res" >&6; }
21705 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21706 AST_ATAN2L_FOUND=yes
21707 else
21708 AST_ATAN2L_FOUND=no
21713 # now check for the header.
21714 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21715 ATAN2L_LIB="${pbxlibdir} -lm "
21716 # if --with-ATAN2L=DIR has been specified, use it.
21717 if test "x${ATAN2L_DIR}" != "x"; then
21718 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21720 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21721 if test "x" = "x" ; then # no header, assume found
21722 ATAN2L_HEADER_FOUND="1"
21723 else # check for the header
21724 saved_cppflags="${CPPFLAGS}"
21725 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21726 if test "${ac_cv_header_+set}" = set; then
21727 { echo "$as_me:$LINENO: checking for " >&5
21728 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21729 if test "${ac_cv_header_+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21732 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21733 echo "${ECHO_T}$ac_cv_header_" >&6; }
21734 else
21735 # Is the header compilable?
21736 { echo "$as_me:$LINENO: checking usability" >&5
21737 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 $ac_includes_default
21745 #include <>
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_compile") 2>conftest.er1
21755 ac_status=$?
21756 grep -v '^ *+' conftest.er1 >conftest.err
21757 rm -f conftest.er1
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && {
21761 test -z "$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21763 } && test -s conftest.$ac_objext; then
21764 ac_header_compiler=yes
21765 else
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_compiler=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6; }
21776 # Is the header present?
21777 { echo "$as_me:$LINENO: checking presence" >&5
21778 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <>
21786 _ACEOF
21787 if { (ac_try="$ac_cpp conftest.$ac_ext"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } >/dev/null && {
21800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 }; then
21803 ac_header_preproc=yes
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_header_preproc=no
21811 rm -f conftest.err conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21813 echo "${ECHO_T}$ac_header_preproc" >&6; }
21815 # So? What about this header?
21816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21817 yes:no: )
21818 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21819 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21821 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21822 ac_header_preproc=yes
21824 no:yes:* )
21825 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21826 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21828 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21830 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21832 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21834 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21836 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21837 ( cat <<\_ASBOX
21838 ## ------------------------------- ##
21839 ## Report this to www.asterisk.org ##
21840 ## ------------------------------- ##
21841 _ASBOX
21842 ) | sed "s/^/$as_me: WARNING: /" >&2
21844 esac
21845 { echo "$as_me:$LINENO: checking for " >&5
21846 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21847 if test "${ac_cv_header_+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850 ac_cv_header_=$ac_header_preproc
21852 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21853 echo "${ECHO_T}$ac_cv_header_" >&6; }
21856 if test $ac_cv_header_ = yes; then
21857 ATAN2L_HEADER_FOUND=1
21858 else
21859 ATAN2L_HEADER_FOUND=0
21863 CPPFLAGS="${saved_cppflags}"
21865 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21866 ATAN2L_LIB=""
21867 ATAN2L_INCLUDE=""
21868 else
21869 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21870 ATAN2L_LIB=""
21872 PBX_ATAN2L=1
21873 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21875 cat >>confdefs.h <<_ACEOF
21876 #define HAVE_ATAN2L 1
21877 _ACEOF
21880 cat >>confdefs.h <<_ACEOF
21881 #define HAVE_ATAN2L_VERSION
21882 _ACEOF
21889 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21890 pbxlibdir=""
21891 # if --with-POWL=DIR has been specified, use it.
21892 if test "x${POWL_DIR}" != "x"; then
21893 if test -d ${POWL_DIR}/lib; then
21894 pbxlibdir="-L${POWL_DIR}/lib"
21895 else
21896 pbxlibdir="-L${POWL_DIR}"
21899 pbxfuncname="powl"
21900 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21901 AST_POWL_FOUND=yes
21902 else
21903 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21904 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21905 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21906 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909 ac_check_lib_save_LIBS=$LIBS
21910 LIBS="-lm ${pbxlibdir} $LIBS"
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21918 /* Override any GCC internal prototype to avoid an error.
21919 Use char because int might match the return type of a GCC
21920 builtin and then its argument prototype would still apply. */
21921 #ifdef __cplusplus
21922 extern "C"
21923 #endif
21924 char ${pbxfuncname} ();
21926 main ()
21928 return ${pbxfuncname} ();
21930 return 0;
21932 _ACEOF
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938 esac
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940 (eval "$ac_link") 2>conftest.er1
21941 ac_status=$?
21942 grep -v '^ *+' conftest.er1 >conftest.err
21943 rm -f conftest.er1
21944 cat conftest.err >&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && {
21947 test -z "$ac_c_werror_flag" ||
21948 test ! -s conftest.err
21949 } && test -s conftest$ac_exeext &&
21950 $as_test_x conftest$ac_exeext; then
21951 eval "$as_ac_Lib=yes"
21952 else
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 eval "$as_ac_Lib=no"
21959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21960 conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21963 ac_res=`eval echo '${'$as_ac_Lib'}'`
21964 { echo "$as_me:$LINENO: result: $ac_res" >&5
21965 echo "${ECHO_T}$ac_res" >&6; }
21966 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21967 AST_POWL_FOUND=yes
21968 else
21969 AST_POWL_FOUND=no
21974 # now check for the header.
21975 if test "${AST_POWL_FOUND}" = "yes"; then
21976 POWL_LIB="${pbxlibdir} -lm "
21977 # if --with-POWL=DIR has been specified, use it.
21978 if test "x${POWL_DIR}" != "x"; then
21979 POWL_INCLUDE="-I${POWL_DIR}/include"
21981 POWL_INCLUDE="${POWL_INCLUDE} "
21982 if test "x" = "x" ; then # no header, assume found
21983 POWL_HEADER_FOUND="1"
21984 else # check for the header
21985 saved_cppflags="${CPPFLAGS}"
21986 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
21987 if test "${ac_cv_header_+set}" = set; then
21988 { echo "$as_me:$LINENO: checking for " >&5
21989 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21990 if test "${ac_cv_header_+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21994 echo "${ECHO_T}$ac_cv_header_" >&6; }
21995 else
21996 # Is the header compilable?
21997 { echo "$as_me:$LINENO: checking usability" >&5
21998 echo $ECHO_N "checking 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 <>
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 presence" >&5
22039 echo $ECHO_N "checking 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 <>
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: : accepted by the compiler, rejected by the preprocessor!" >&5
22080 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22082 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22083 ac_header_preproc=yes
22085 no:yes:* )
22086 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22087 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22089 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22091 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22093 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22095 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22097 echo "$as_me: WARNING: : 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 " >&5
22107 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111 ac_cv_header_=$ac_header_preproc
22113 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22114 echo "${ECHO_T}$ac_cv_header_" >&6; }
22117 if test $ac_cv_header_ = yes; then
22118 POWL_HEADER_FOUND=1
22119 else
22120 POWL_HEADER_FOUND=0
22124 CPPFLAGS="${saved_cppflags}"
22126 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22127 POWL_LIB=""
22128 POWL_INCLUDE=""
22129 else
22130 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22131 POWL_LIB=""
22133 PBX_POWL=1
22134 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22136 cat >>confdefs.h <<_ACEOF
22137 #define HAVE_POWL 1
22138 _ACEOF
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_POWL_VERSION
22143 _ACEOF
22150 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22151 pbxlibdir=""
22152 # if --with-SQRTL=DIR has been specified, use it.
22153 if test "x${SQRTL_DIR}" != "x"; then
22154 if test -d ${SQRTL_DIR}/lib; then
22155 pbxlibdir="-L${SQRTL_DIR}/lib"
22156 else
22157 pbxlibdir="-L${SQRTL_DIR}"
22160 pbxfuncname="sqrtl"
22161 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22162 AST_SQRTL_FOUND=yes
22163 else
22164 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22165 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22166 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22167 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170 ac_check_lib_save_LIBS=$LIBS
22171 LIBS="-lm ${pbxlibdir} $LIBS"
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h. */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22179 /* Override any GCC internal prototype to avoid an error.
22180 Use char because int might match the return type of a GCC
22181 builtin and then its argument prototype would still apply. */
22182 #ifdef __cplusplus
22183 extern "C"
22184 #endif
22185 char ${pbxfuncname} ();
22187 main ()
22189 return ${pbxfuncname} ();
22191 return 0;
22193 _ACEOF
22194 rm -f conftest.$ac_objext conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_link") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest$ac_exeext &&
22211 $as_test_x conftest$ac_exeext; then
22212 eval "$as_ac_Lib=yes"
22213 else
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 eval "$as_ac_Lib=no"
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221 conftest$ac_exeext conftest.$ac_ext
22222 LIBS=$ac_check_lib_save_LIBS
22224 ac_res=`eval echo '${'$as_ac_Lib'}'`
22225 { echo "$as_me:$LINENO: result: $ac_res" >&5
22226 echo "${ECHO_T}$ac_res" >&6; }
22227 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22228 AST_SQRTL_FOUND=yes
22229 else
22230 AST_SQRTL_FOUND=no
22235 # now check for the header.
22236 if test "${AST_SQRTL_FOUND}" = "yes"; then
22237 SQRTL_LIB="${pbxlibdir} -lm "
22238 # if --with-SQRTL=DIR has been specified, use it.
22239 if test "x${SQRTL_DIR}" != "x"; then
22240 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22242 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22243 if test "x" = "x" ; then # no header, assume found
22244 SQRTL_HEADER_FOUND="1"
22245 else # check for the header
22246 saved_cppflags="${CPPFLAGS}"
22247 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
22248 if test "${ac_cv_header_+set}" = set; then
22249 { echo "$as_me:$LINENO: checking for " >&5
22250 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22251 if test "${ac_cv_header_+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22255 echo "${ECHO_T}$ac_cv_header_" >&6; }
22256 else
22257 # Is the header compilable?
22258 { echo "$as_me:$LINENO: checking usability" >&5
22259 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h. */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 $ac_includes_default
22267 #include <>
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22277 ac_status=$?
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 ac_header_compiler=yes
22287 else
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_header_compiler=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22296 echo "${ECHO_T}$ac_header_compiler" >&6; }
22298 # Is the header present?
22299 { echo "$as_me:$LINENO: checking presence" >&5
22300 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h. */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 #include <>
22308 _ACEOF
22309 if { (ac_try="$ac_cpp conftest.$ac_ext"
22310 case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } >/dev/null && {
22322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22323 test ! -s conftest.err
22324 }; then
22325 ac_header_preproc=yes
22326 else
22327 echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22330 ac_header_preproc=no
22333 rm -f conftest.err conftest.$ac_ext
22334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22335 echo "${ECHO_T}$ac_header_preproc" >&6; }
22337 # So? What about this header?
22338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22339 yes:no: )
22340 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22341 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22343 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22344 ac_header_preproc=yes
22346 no:yes:* )
22347 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22348 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22350 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22352 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22354 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22356 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22358 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22359 ( cat <<\_ASBOX
22360 ## ------------------------------- ##
22361 ## Report this to www.asterisk.org ##
22362 ## ------------------------------- ##
22363 _ASBOX
22364 ) | sed "s/^/$as_me: WARNING: /" >&2
22366 esac
22367 { echo "$as_me:$LINENO: checking for " >&5
22368 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22369 if test "${ac_cv_header_+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372 ac_cv_header_=$ac_header_preproc
22374 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22375 echo "${ECHO_T}$ac_cv_header_" >&6; }
22378 if test $ac_cv_header_ = yes; then
22379 SQRTL_HEADER_FOUND=1
22380 else
22381 SQRTL_HEADER_FOUND=0
22385 CPPFLAGS="${saved_cppflags}"
22387 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22388 SQRTL_LIB=""
22389 SQRTL_INCLUDE=""
22390 else
22391 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22392 SQRTL_LIB=""
22394 PBX_SQRTL=1
22395 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22397 cat >>confdefs.h <<_ACEOF
22398 #define HAVE_SQRTL 1
22399 _ACEOF
22402 cat >>confdefs.h <<_ACEOF
22403 #define HAVE_SQRTL_VERSION
22404 _ACEOF
22411 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22412 pbxlibdir=""
22413 # if --with-RINTL=DIR has been specified, use it.
22414 if test "x${RINTL_DIR}" != "x"; then
22415 if test -d ${RINTL_DIR}/lib; then
22416 pbxlibdir="-L${RINTL_DIR}/lib"
22417 else
22418 pbxlibdir="-L${RINTL_DIR}"
22421 pbxfuncname="rintl"
22422 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22423 AST_RINTL_FOUND=yes
22424 else
22425 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22426 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22427 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22428 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431 ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lm ${pbxlibdir} $LIBS"
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22440 /* Override any GCC internal prototype to avoid an error.
22441 Use char because int might match the return type of a GCC
22442 builtin and then its argument prototype would still apply. */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char ${pbxfuncname} ();
22448 main ()
22450 return ${pbxfuncname} ();
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_link") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest$ac_exeext &&
22472 $as_test_x conftest$ac_exeext; then
22473 eval "$as_ac_Lib=yes"
22474 else
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 eval "$as_ac_Lib=no"
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22485 ac_res=`eval echo '${'$as_ac_Lib'}'`
22486 { echo "$as_me:$LINENO: result: $ac_res" >&5
22487 echo "${ECHO_T}$ac_res" >&6; }
22488 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22489 AST_RINTL_FOUND=yes
22490 else
22491 AST_RINTL_FOUND=no
22496 # now check for the header.
22497 if test "${AST_RINTL_FOUND}" = "yes"; then
22498 RINTL_LIB="${pbxlibdir} -lm "
22499 # if --with-RINTL=DIR has been specified, use it.
22500 if test "x${RINTL_DIR}" != "x"; then
22501 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22503 RINTL_INCLUDE="${RINTL_INCLUDE} "
22504 if test "x" = "x" ; then # no header, assume found
22505 RINTL_HEADER_FOUND="1"
22506 else # check for the header
22507 saved_cppflags="${CPPFLAGS}"
22508 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22509 if test "${ac_cv_header_+set}" = set; then
22510 { echo "$as_me:$LINENO: checking for " >&5
22511 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22512 if test "${ac_cv_header_+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22516 echo "${ECHO_T}$ac_cv_header_" >&6; }
22517 else
22518 # Is the header compilable?
22519 { echo "$as_me:$LINENO: checking usability" >&5
22520 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22521 cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h. */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22527 $ac_includes_default
22528 #include <>
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_compile") 2>conftest.er1
22538 ac_status=$?
22539 grep -v '^ *+' conftest.er1 >conftest.err
22540 rm -f conftest.er1
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest.$ac_objext; then
22547 ac_header_compiler=yes
22548 else
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ac_header_compiler=no
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22557 echo "${ECHO_T}$ac_header_compiler" >&6; }
22559 # Is the header present?
22560 { echo "$as_me:$LINENO: checking presence" >&5
22561 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22562 cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h. */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 #include <>
22569 _ACEOF
22570 if { (ac_try="$ac_cpp conftest.$ac_ext"
22571 case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22574 esac
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22577 ac_status=$?
22578 grep -v '^ *+' conftest.er1 >conftest.err
22579 rm -f conftest.er1
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } >/dev/null && {
22583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22584 test ! -s conftest.err
22585 }; then
22586 ac_header_preproc=yes
22587 else
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ac_header_preproc=no
22594 rm -f conftest.err conftest.$ac_ext
22595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22596 echo "${ECHO_T}$ac_header_preproc" >&6; }
22598 # So? What about this header?
22599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22600 yes:no: )
22601 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22602 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22604 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22605 ac_header_preproc=yes
22607 no:yes:* )
22608 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22609 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22611 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22613 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22615 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22617 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22619 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22620 ( cat <<\_ASBOX
22621 ## ------------------------------- ##
22622 ## Report this to www.asterisk.org ##
22623 ## ------------------------------- ##
22624 _ASBOX
22625 ) | sed "s/^/$as_me: WARNING: /" >&2
22627 esac
22628 { echo "$as_me:$LINENO: checking for " >&5
22629 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22630 if test "${ac_cv_header_+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 ac_cv_header_=$ac_header_preproc
22635 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22636 echo "${ECHO_T}$ac_cv_header_" >&6; }
22639 if test $ac_cv_header_ = yes; then
22640 RINTL_HEADER_FOUND=1
22641 else
22642 RINTL_HEADER_FOUND=0
22646 CPPFLAGS="${saved_cppflags}"
22648 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22649 RINTL_LIB=""
22650 RINTL_INCLUDE=""
22651 else
22652 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22653 RINTL_LIB=""
22655 PBX_RINTL=1
22656 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22658 cat >>confdefs.h <<_ACEOF
22659 #define HAVE_RINTL 1
22660 _ACEOF
22663 cat >>confdefs.h <<_ACEOF
22664 #define HAVE_RINTL_VERSION
22665 _ACEOF
22672 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22673 pbxlibdir=""
22674 # if --with-EXPL=DIR has been specified, use it.
22675 if test "x${EXPL_DIR}" != "x"; then
22676 if test -d ${EXPL_DIR}/lib; then
22677 pbxlibdir="-L${EXPL_DIR}/lib"
22678 else
22679 pbxlibdir="-L${EXPL_DIR}"
22682 pbxfuncname="expl"
22683 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22684 AST_EXPL_FOUND=yes
22685 else
22686 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22687 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22688 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22689 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692 ac_check_lib_save_LIBS=$LIBS
22693 LIBS="-lm ${pbxlibdir} $LIBS"
22694 cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h. */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22701 /* Override any GCC internal prototype to avoid an error.
22702 Use char because int might match the return type of a GCC
22703 builtin and then its argument prototype would still apply. */
22704 #ifdef __cplusplus
22705 extern "C"
22706 #endif
22707 char ${pbxfuncname} ();
22709 main ()
22711 return ${pbxfuncname} ();
22713 return 0;
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 eval "$as_ac_Lib=yes"
22735 else
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 eval "$as_ac_Lib=no"
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22744 LIBS=$ac_check_lib_save_LIBS
22746 ac_res=`eval echo '${'$as_ac_Lib'}'`
22747 { echo "$as_me:$LINENO: result: $ac_res" >&5
22748 echo "${ECHO_T}$ac_res" >&6; }
22749 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22750 AST_EXPL_FOUND=yes
22751 else
22752 AST_EXPL_FOUND=no
22757 # now check for the header.
22758 if test "${AST_EXPL_FOUND}" = "yes"; then
22759 EXPL_LIB="${pbxlibdir} -lm "
22760 # if --with-EXPL=DIR has been specified, use it.
22761 if test "x${EXPL_DIR}" != "x"; then
22762 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22764 EXPL_INCLUDE="${EXPL_INCLUDE} "
22765 if test "x" = "x" ; then # no header, assume found
22766 EXPL_HEADER_FOUND="1"
22767 else # check for the header
22768 saved_cppflags="${CPPFLAGS}"
22769 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22770 if test "${ac_cv_header_+set}" = set; then
22771 { echo "$as_me:$LINENO: checking for " >&5
22772 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22773 if test "${ac_cv_header_+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22777 echo "${ECHO_T}$ac_cv_header_" >&6; }
22778 else
22779 # Is the header compilable?
22780 { echo "$as_me:$LINENO: checking usability" >&5
22781 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22782 cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h. */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 $ac_includes_default
22789 #include <>
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (ac_try="$ac_compile"
22793 case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798 (eval "$ac_compile") 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest.$ac_objext; then
22808 ac_header_compiler=yes
22809 else
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_header_compiler=no
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22818 echo "${ECHO_T}$ac_header_compiler" >&6; }
22820 # Is the header present?
22821 { echo "$as_me:$LINENO: checking presence" >&5
22822 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h. */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 #include <>
22830 _ACEOF
22831 if { (ac_try="$ac_cpp conftest.$ac_ext"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } >/dev/null && {
22844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 }; then
22847 ac_header_preproc=yes
22848 else
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_header_preproc=no
22855 rm -f conftest.err conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22857 echo "${ECHO_T}$ac_header_preproc" >&6; }
22859 # So? What about this header?
22860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22861 yes:no: )
22862 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22863 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22864 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22865 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22866 ac_header_preproc=yes
22868 no:yes:* )
22869 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22870 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22871 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22872 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22874 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22876 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22877 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22878 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22879 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22880 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22881 ( cat <<\_ASBOX
22882 ## ------------------------------- ##
22883 ## Report this to www.asterisk.org ##
22884 ## ------------------------------- ##
22885 _ASBOX
22886 ) | sed "s/^/$as_me: WARNING: /" >&2
22888 esac
22889 { echo "$as_me:$LINENO: checking for " >&5
22890 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22891 if test "${ac_cv_header_+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894 ac_cv_header_=$ac_header_preproc
22896 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22897 echo "${ECHO_T}$ac_cv_header_" >&6; }
22900 if test $ac_cv_header_ = yes; then
22901 EXPL_HEADER_FOUND=1
22902 else
22903 EXPL_HEADER_FOUND=0
22907 CPPFLAGS="${saved_cppflags}"
22909 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
22910 EXPL_LIB=""
22911 EXPL_INCLUDE=""
22912 else
22913 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22914 EXPL_LIB=""
22916 PBX_EXPL=1
22917 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22919 cat >>confdefs.h <<_ACEOF
22920 #define HAVE_EXPL 1
22921 _ACEOF
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_EXPL_VERSION
22926 _ACEOF
22933 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
22934 pbxlibdir=""
22935 # if --with-LOGL=DIR has been specified, use it.
22936 if test "x${LOGL_DIR}" != "x"; then
22937 if test -d ${LOGL_DIR}/lib; then
22938 pbxlibdir="-L${LOGL_DIR}/lib"
22939 else
22940 pbxlibdir="-L${LOGL_DIR}"
22943 pbxfuncname="logl"
22944 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22945 AST_LOGL_FOUND=yes
22946 else
22947 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22948 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22949 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22950 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953 ac_check_lib_save_LIBS=$LIBS
22954 LIBS="-lm ${pbxlibdir} $LIBS"
22955 cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h. */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h. */
22962 /* Override any GCC internal prototype to avoid an error.
22963 Use char because int might match the return type of a GCC
22964 builtin and then its argument prototype would still apply. */
22965 #ifdef __cplusplus
22966 extern "C"
22967 #endif
22968 char ${pbxfuncname} ();
22970 main ()
22972 return ${pbxfuncname} ();
22974 return 0;
22976 _ACEOF
22977 rm -f conftest.$ac_objext conftest$ac_exeext
22978 if { (ac_try="$ac_link"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_link") 2>conftest.er1
22985 ac_status=$?
22986 grep -v '^ *+' conftest.er1 >conftest.err
22987 rm -f conftest.er1
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } && {
22991 test -z "$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 } && test -s conftest$ac_exeext &&
22994 $as_test_x conftest$ac_exeext; then
22995 eval "$as_ac_Lib=yes"
22996 else
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 eval "$as_ac_Lib=no"
23003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23004 conftest$ac_exeext conftest.$ac_ext
23005 LIBS=$ac_check_lib_save_LIBS
23007 ac_res=`eval echo '${'$as_ac_Lib'}'`
23008 { echo "$as_me:$LINENO: result: $ac_res" >&5
23009 echo "${ECHO_T}$ac_res" >&6; }
23010 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23011 AST_LOGL_FOUND=yes
23012 else
23013 AST_LOGL_FOUND=no
23018 # now check for the header.
23019 if test "${AST_LOGL_FOUND}" = "yes"; then
23020 LOGL_LIB="${pbxlibdir} -lm "
23021 # if --with-LOGL=DIR has been specified, use it.
23022 if test "x${LOGL_DIR}" != "x"; then
23023 LOGL_INCLUDE="-I${LOGL_DIR}/include"
23025 LOGL_INCLUDE="${LOGL_INCLUDE} "
23026 if test "x" = "x" ; then # no header, assume found
23027 LOGL_HEADER_FOUND="1"
23028 else # check for the header
23029 saved_cppflags="${CPPFLAGS}"
23030 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
23031 if test "${ac_cv_header_+set}" = set; then
23032 { echo "$as_me:$LINENO: checking for " >&5
23033 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23034 if test "${ac_cv_header_+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23038 echo "${ECHO_T}$ac_cv_header_" >&6; }
23039 else
23040 # Is the header compilable?
23041 { echo "$as_me:$LINENO: checking usability" >&5
23042 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h. */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23050 #include <>
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_header_compiler=yes
23070 else
23071 echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_header_compiler=no
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23079 echo "${ECHO_T}$ac_header_compiler" >&6; }
23081 # Is the header present?
23082 { echo "$as_me:$LINENO: checking presence" >&5
23083 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 #include <>
23091 _ACEOF
23092 if { (ac_try="$ac_cpp conftest.$ac_ext"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } >/dev/null && {
23105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 }; then
23108 ac_header_preproc=yes
23109 else
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_header_preproc=no
23116 rm -f conftest.err conftest.$ac_ext
23117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23118 echo "${ECHO_T}$ac_header_preproc" >&6; }
23120 # So? What about this header?
23121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23122 yes:no: )
23123 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23124 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23125 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23126 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23127 ac_header_preproc=yes
23129 no:yes:* )
23130 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23131 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23133 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23135 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23137 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23139 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23141 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23142 ( cat <<\_ASBOX
23143 ## ------------------------------- ##
23144 ## Report this to www.asterisk.org ##
23145 ## ------------------------------- ##
23146 _ASBOX
23147 ) | sed "s/^/$as_me: WARNING: /" >&2
23149 esac
23150 { echo "$as_me:$LINENO: checking for " >&5
23151 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23152 if test "${ac_cv_header_+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155 ac_cv_header_=$ac_header_preproc
23157 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23158 echo "${ECHO_T}$ac_cv_header_" >&6; }
23161 if test $ac_cv_header_ = yes; then
23162 LOGL_HEADER_FOUND=1
23163 else
23164 LOGL_HEADER_FOUND=0
23168 CPPFLAGS="${saved_cppflags}"
23170 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23171 LOGL_LIB=""
23172 LOGL_INCLUDE=""
23173 else
23174 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23175 LOGL_LIB=""
23177 PBX_LOGL=1
23178 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_LOGL 1
23182 _ACEOF
23185 cat >>confdefs.h <<_ACEOF
23186 #define HAVE_LOGL_VERSION
23187 _ACEOF
23194 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23195 pbxlibdir=""
23196 # if --with-REMAINDERL=DIR has been specified, use it.
23197 if test "x${REMAINDERL_DIR}" != "x"; then
23198 if test -d ${REMAINDERL_DIR}/lib; then
23199 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23200 else
23201 pbxlibdir="-L${REMAINDERL_DIR}"
23204 pbxfuncname="remainderl"
23205 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23206 AST_REMAINDERL_FOUND=yes
23207 else
23208 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23209 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23210 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23211 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214 ac_check_lib_save_LIBS=$LIBS
23215 LIBS="-lm ${pbxlibdir} $LIBS"
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23223 /* Override any GCC internal prototype to avoid an error.
23224 Use char because int might match the return type of a GCC
23225 builtin and then its argument prototype would still apply. */
23226 #ifdef __cplusplus
23227 extern "C"
23228 #endif
23229 char ${pbxfuncname} ();
23231 main ()
23233 return ${pbxfuncname} ();
23235 return 0;
23237 _ACEOF
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (ac_try="$ac_link"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_link") 2>conftest.er1
23246 ac_status=$?
23247 grep -v '^ *+' conftest.er1 >conftest.err
23248 rm -f conftest.er1
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } && {
23252 test -z "$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23254 } && test -s conftest$ac_exeext &&
23255 $as_test_x conftest$ac_exeext; then
23256 eval "$as_ac_Lib=yes"
23257 else
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 eval "$as_ac_Lib=no"
23264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23265 conftest$ac_exeext conftest.$ac_ext
23266 LIBS=$ac_check_lib_save_LIBS
23268 ac_res=`eval echo '${'$as_ac_Lib'}'`
23269 { echo "$as_me:$LINENO: result: $ac_res" >&5
23270 echo "${ECHO_T}$ac_res" >&6; }
23271 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23272 AST_REMAINDERL_FOUND=yes
23273 else
23274 AST_REMAINDERL_FOUND=no
23279 # now check for the header.
23280 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23281 REMAINDERL_LIB="${pbxlibdir} -lm "
23282 # if --with-REMAINDERL=DIR has been specified, use it.
23283 if test "x${REMAINDERL_DIR}" != "x"; then
23284 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23286 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23287 if test "x" = "x" ; then # no header, assume found
23288 REMAINDERL_HEADER_FOUND="1"
23289 else # check for the header
23290 saved_cppflags="${CPPFLAGS}"
23291 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
23292 if test "${ac_cv_header_+set}" = set; then
23293 { echo "$as_me:$LINENO: checking for " >&5
23294 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23295 if test "${ac_cv_header_+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23299 echo "${ECHO_T}$ac_cv_header_" >&6; }
23300 else
23301 # Is the header compilable?
23302 { echo "$as_me:$LINENO: checking usability" >&5
23303 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h. */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 $ac_includes_default
23311 #include <>
23312 _ACEOF
23313 rm -f conftest.$ac_objext
23314 if { (ac_try="$ac_compile"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest.$ac_objext; then
23330 ac_header_compiler=yes
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_header_compiler=no
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23340 echo "${ECHO_T}$ac_header_compiler" >&6; }
23342 # Is the header present?
23343 { echo "$as_me:$LINENO: checking presence" >&5
23344 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23345 cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h. */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23351 #include <>
23352 _ACEOF
23353 if { (ac_try="$ac_cpp conftest.$ac_ext"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23357 esac
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23360 ac_status=$?
23361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } >/dev/null && {
23366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 }; then
23369 ac_header_preproc=yes
23370 else
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_header_preproc=no
23377 rm -f conftest.err conftest.$ac_ext
23378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23379 echo "${ECHO_T}$ac_header_preproc" >&6; }
23381 # So? What about this header?
23382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23383 yes:no: )
23384 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23385 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23386 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23387 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23388 ac_header_preproc=yes
23390 no:yes:* )
23391 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23392 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23393 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23394 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23396 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23398 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23400 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23402 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23403 ( cat <<\_ASBOX
23404 ## ------------------------------- ##
23405 ## Report this to www.asterisk.org ##
23406 ## ------------------------------- ##
23407 _ASBOX
23408 ) | sed "s/^/$as_me: WARNING: /" >&2
23410 esac
23411 { echo "$as_me:$LINENO: checking for " >&5
23412 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23413 if test "${ac_cv_header_+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416 ac_cv_header_=$ac_header_preproc
23418 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23419 echo "${ECHO_T}$ac_cv_header_" >&6; }
23422 if test $ac_cv_header_ = yes; then
23423 REMAINDERL_HEADER_FOUND=1
23424 else
23425 REMAINDERL_HEADER_FOUND=0
23429 CPPFLAGS="${saved_cppflags}"
23431 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23432 REMAINDERL_LIB=""
23433 REMAINDERL_INCLUDE=""
23434 else
23435 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23436 REMAINDERL_LIB=""
23438 PBX_REMAINDERL=1
23439 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23441 cat >>confdefs.h <<_ACEOF
23442 #define HAVE_REMAINDERL 1
23443 _ACEOF
23446 cat >>confdefs.h <<_ACEOF
23447 #define HAVE_REMAINDERL_VERSION
23448 _ACEOF
23455 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23456 pbxlibdir=""
23457 # if --with-FMODL=DIR has been specified, use it.
23458 if test "x${FMODL_DIR}" != "x"; then
23459 if test -d ${FMODL_DIR}/lib; then
23460 pbxlibdir="-L${FMODL_DIR}/lib"
23461 else
23462 pbxlibdir="-L${FMODL_DIR}"
23465 pbxfuncname="fmodl"
23466 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23467 AST_FMODL_FOUND=yes
23468 else
23469 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23470 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23471 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23472 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475 ac_check_lib_save_LIBS=$LIBS
23476 LIBS="-lm ${pbxlibdir} $LIBS"
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h. */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23484 /* Override any GCC internal prototype to avoid an error.
23485 Use char because int might match the return type of a GCC
23486 builtin and then its argument prototype would still apply. */
23487 #ifdef __cplusplus
23488 extern "C"
23489 #endif
23490 char ${pbxfuncname} ();
23492 main ()
23494 return ${pbxfuncname} ();
23496 return 0;
23498 _ACEOF
23499 rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (ac_try="$ac_link"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_link") 2>conftest.er1
23507 ac_status=$?
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && {
23513 test -z "$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 } && test -s conftest$ac_exeext &&
23516 $as_test_x conftest$ac_exeext; then
23517 eval "$as_ac_Lib=yes"
23518 else
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 eval "$as_ac_Lib=no"
23525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23526 conftest$ac_exeext conftest.$ac_ext
23527 LIBS=$ac_check_lib_save_LIBS
23529 ac_res=`eval echo '${'$as_ac_Lib'}'`
23530 { echo "$as_me:$LINENO: result: $ac_res" >&5
23531 echo "${ECHO_T}$ac_res" >&6; }
23532 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23533 AST_FMODL_FOUND=yes
23534 else
23535 AST_FMODL_FOUND=no
23540 # now check for the header.
23541 if test "${AST_FMODL_FOUND}" = "yes"; then
23542 FMODL_LIB="${pbxlibdir} -lm "
23543 # if --with-FMODL=DIR has been specified, use it.
23544 if test "x${FMODL_DIR}" != "x"; then
23545 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23547 FMODL_INCLUDE="${FMODL_INCLUDE} "
23548 if test "x" = "x" ; then # no header, assume found
23549 FMODL_HEADER_FOUND="1"
23550 else # check for the header
23551 saved_cppflags="${CPPFLAGS}"
23552 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23553 if test "${ac_cv_header_+set}" = set; then
23554 { echo "$as_me:$LINENO: checking for " >&5
23555 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23556 if test "${ac_cv_header_+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23560 echo "${ECHO_T}$ac_cv_header_" >&6; }
23561 else
23562 # Is the header compilable?
23563 { echo "$as_me:$LINENO: checking usability" >&5
23564 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23565 cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h. */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 $ac_includes_default
23572 #include <>
23573 _ACEOF
23574 rm -f conftest.$ac_objext
23575 if { (ac_try="$ac_compile"
23576 case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579 esac
23580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_compile") 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && {
23588 test -z "$ac_c_werror_flag" ||
23589 test ! -s conftest.err
23590 } && test -s conftest.$ac_objext; then
23591 ac_header_compiler=yes
23592 else
23593 echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.$ac_ext >&5
23596 ac_header_compiler=no
23599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23601 echo "${ECHO_T}$ac_header_compiler" >&6; }
23603 # Is the header present?
23604 { echo "$as_me:$LINENO: checking presence" >&5
23605 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23606 cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h. */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 #include <>
23613 _ACEOF
23614 if { (ac_try="$ac_cpp conftest.$ac_ext"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23621 ac_status=$?
23622 grep -v '^ *+' conftest.er1 >conftest.err
23623 rm -f conftest.er1
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } >/dev/null && {
23627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 }; then
23630 ac_header_preproc=yes
23631 else
23632 echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ac_header_preproc=no
23638 rm -f conftest.err conftest.$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23640 echo "${ECHO_T}$ac_header_preproc" >&6; }
23642 # So? What about this header?
23643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23644 yes:no: )
23645 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23646 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23648 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23649 ac_header_preproc=yes
23651 no:yes:* )
23652 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23653 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23654 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23655 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23656 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23657 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23658 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23659 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23660 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23661 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23662 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23663 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23664 ( cat <<\_ASBOX
23665 ## ------------------------------- ##
23666 ## Report this to www.asterisk.org ##
23667 ## ------------------------------- ##
23668 _ASBOX
23669 ) | sed "s/^/$as_me: WARNING: /" >&2
23671 esac
23672 { echo "$as_me:$LINENO: checking for " >&5
23673 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23674 if test "${ac_cv_header_+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677 ac_cv_header_=$ac_header_preproc
23679 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23680 echo "${ECHO_T}$ac_cv_header_" >&6; }
23683 if test $ac_cv_header_ = yes; then
23684 FMODL_HEADER_FOUND=1
23685 else
23686 FMODL_HEADER_FOUND=0
23690 CPPFLAGS="${saved_cppflags}"
23692 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23693 FMODL_LIB=""
23694 FMODL_INCLUDE=""
23695 else
23696 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23697 FMODL_LIB=""
23699 PBX_FMODL=1
23700 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23702 cat >>confdefs.h <<_ACEOF
23703 #define HAVE_FMODL 1
23704 _ACEOF
23707 cat >>confdefs.h <<_ACEOF
23708 #define HAVE_FMODL_VERSION
23709 _ACEOF
23716 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23717 pbxlibdir=""
23718 # if --with-ROUNDL=DIR has been specified, use it.
23719 if test "x${ROUNDL_DIR}" != "x"; then
23720 if test -d ${ROUNDL_DIR}/lib; then
23721 pbxlibdir="-L${ROUNDL_DIR}/lib"
23722 else
23723 pbxlibdir="-L${ROUNDL_DIR}"
23726 pbxfuncname="roundl"
23727 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23728 AST_ROUNDL_FOUND=yes
23729 else
23730 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23731 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23732 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23733 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736 ac_check_lib_save_LIBS=$LIBS
23737 LIBS="-lm ${pbxlibdir} $LIBS"
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h. */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23745 /* Override any GCC internal prototype to avoid an error.
23746 Use char because int might match the return type of a GCC
23747 builtin and then its argument prototype would still apply. */
23748 #ifdef __cplusplus
23749 extern "C"
23750 #endif
23751 char ${pbxfuncname} ();
23753 main ()
23755 return ${pbxfuncname} ();
23757 return 0;
23759 _ACEOF
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (ac_try="$ac_link"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_link") 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest$ac_exeext &&
23777 $as_test_x conftest$ac_exeext; then
23778 eval "$as_ac_Lib=yes"
23779 else
23780 echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23783 eval "$as_ac_Lib=no"
23786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23787 conftest$ac_exeext conftest.$ac_ext
23788 LIBS=$ac_check_lib_save_LIBS
23790 ac_res=`eval echo '${'$as_ac_Lib'}'`
23791 { echo "$as_me:$LINENO: result: $ac_res" >&5
23792 echo "${ECHO_T}$ac_res" >&6; }
23793 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23794 AST_ROUNDL_FOUND=yes
23795 else
23796 AST_ROUNDL_FOUND=no
23801 # now check for the header.
23802 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23803 ROUNDL_LIB="${pbxlibdir} -lm "
23804 # if --with-ROUNDL=DIR has been specified, use it.
23805 if test "x${ROUNDL_DIR}" != "x"; then
23806 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23808 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23809 if test "x" = "x" ; then # no header, assume found
23810 ROUNDL_HEADER_FOUND="1"
23811 else # check for the header
23812 saved_cppflags="${CPPFLAGS}"
23813 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23814 if test "${ac_cv_header_+set}" = set; then
23815 { echo "$as_me:$LINENO: checking for " >&5
23816 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23817 if test "${ac_cv_header_+set}" = set; then
23818 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23821 echo "${ECHO_T}$ac_cv_header_" >&6; }
23822 else
23823 # Is the header compilable?
23824 { echo "$as_me:$LINENO: checking usability" >&5
23825 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23833 #include <>
23834 _ACEOF
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_header_compiler=yes
23853 else
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_header_compiler=no
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23862 echo "${ECHO_T}$ac_header_compiler" >&6; }
23864 # Is the header present?
23865 { echo "$as_me:$LINENO: checking presence" >&5
23866 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23867 cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h. */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 #include <>
23874 _ACEOF
23875 if { (ac_try="$ac_cpp conftest.$ac_ext"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23879 esac
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23882 ac_status=$?
23883 grep -v '^ *+' conftest.er1 >conftest.err
23884 rm -f conftest.er1
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } >/dev/null && {
23888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 }; then
23891 ac_header_preproc=yes
23892 else
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_header_preproc=no
23899 rm -f conftest.err conftest.$ac_ext
23900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23901 echo "${ECHO_T}$ac_header_preproc" >&6; }
23903 # So? What about this header?
23904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23905 yes:no: )
23906 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23907 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23909 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23910 ac_header_preproc=yes
23912 no:yes:* )
23913 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23914 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23915 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23916 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23917 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23918 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23919 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23920 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23921 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23922 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23923 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23924 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23925 ( cat <<\_ASBOX
23926 ## ------------------------------- ##
23927 ## Report this to www.asterisk.org ##
23928 ## ------------------------------- ##
23929 _ASBOX
23930 ) | sed "s/^/$as_me: WARNING: /" >&2
23932 esac
23933 { echo "$as_me:$LINENO: checking for " >&5
23934 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23935 if test "${ac_cv_header_+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938 ac_cv_header_=$ac_header_preproc
23940 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23941 echo "${ECHO_T}$ac_cv_header_" >&6; }
23944 if test $ac_cv_header_ = yes; then
23945 ROUNDL_HEADER_FOUND=1
23946 else
23947 ROUNDL_HEADER_FOUND=0
23951 CPPFLAGS="${saved_cppflags}"
23953 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
23954 ROUNDL_LIB=""
23955 ROUNDL_INCLUDE=""
23956 else
23957 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23958 ROUNDL_LIB=""
23960 PBX_ROUNDL=1
23961 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23963 cat >>confdefs.h <<_ACEOF
23964 #define HAVE_ROUNDL 1
23965 _ACEOF
23968 cat >>confdefs.h <<_ACEOF
23969 #define HAVE_ROUNDL_VERSION
23970 _ACEOF
23977 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
23978 pbxlibdir=""
23979 # if --with-TRUNCL=DIR has been specified, use it.
23980 if test "x${TRUNCL_DIR}" != "x"; then
23981 if test -d ${TRUNCL_DIR}/lib; then
23982 pbxlibdir="-L${TRUNCL_DIR}/lib"
23983 else
23984 pbxlibdir="-L${TRUNCL_DIR}"
23987 pbxfuncname="truncl"
23988 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23989 AST_TRUNCL_FOUND=yes
23990 else
23991 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23992 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23993 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23994 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997 ac_check_lib_save_LIBS=$LIBS
23998 LIBS="-lm ${pbxlibdir} $LIBS"
23999 cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h. */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24006 /* Override any GCC internal prototype to avoid an error.
24007 Use char because int might match the return type of a GCC
24008 builtin and then its argument prototype would still apply. */
24009 #ifdef __cplusplus
24010 extern "C"
24011 #endif
24012 char ${pbxfuncname} ();
24014 main ()
24016 return ${pbxfuncname} ();
24018 return 0;
24020 _ACEOF
24021 rm -f conftest.$ac_objext conftest$ac_exeext
24022 if { (ac_try="$ac_link"
24023 case "(($ac_try" in
24024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24025 *) ac_try_echo=$ac_try;;
24026 esac
24027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24028 (eval "$ac_link") 2>conftest.er1
24029 ac_status=$?
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } && {
24035 test -z "$ac_c_werror_flag" ||
24036 test ! -s conftest.err
24037 } && test -s conftest$ac_exeext &&
24038 $as_test_x conftest$ac_exeext; then
24039 eval "$as_ac_Lib=yes"
24040 else
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 eval "$as_ac_Lib=no"
24047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24048 conftest$ac_exeext conftest.$ac_ext
24049 LIBS=$ac_check_lib_save_LIBS
24051 ac_res=`eval echo '${'$as_ac_Lib'}'`
24052 { echo "$as_me:$LINENO: result: $ac_res" >&5
24053 echo "${ECHO_T}$ac_res" >&6; }
24054 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24055 AST_TRUNCL_FOUND=yes
24056 else
24057 AST_TRUNCL_FOUND=no
24062 # now check for the header.
24063 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24064 TRUNCL_LIB="${pbxlibdir} -lm "
24065 # if --with-TRUNCL=DIR has been specified, use it.
24066 if test "x${TRUNCL_DIR}" != "x"; then
24067 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24069 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24070 if test "x" = "x" ; then # no header, assume found
24071 TRUNCL_HEADER_FOUND="1"
24072 else # check for the header
24073 saved_cppflags="${CPPFLAGS}"
24074 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
24075 if test "${ac_cv_header_+set}" = set; then
24076 { echo "$as_me:$LINENO: checking for " >&5
24077 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24078 if test "${ac_cv_header_+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24082 echo "${ECHO_T}$ac_cv_header_" >&6; }
24083 else
24084 # Is the header compilable?
24085 { echo "$as_me:$LINENO: checking usability" >&5
24086 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h. */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093 $ac_includes_default
24094 #include <>
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 ac_header_compiler=yes
24114 else
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_header_compiler=no
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24123 echo "${ECHO_T}$ac_header_compiler" >&6; }
24125 # Is the header present?
24126 { echo "$as_me:$LINENO: checking presence" >&5
24127 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h. */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 #include <>
24135 _ACEOF
24136 if { (ac_try="$ac_cpp conftest.$ac_ext"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24140 esac
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24143 ac_status=$?
24144 grep -v '^ *+' conftest.er1 >conftest.err
24145 rm -f conftest.er1
24146 cat conftest.err >&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } >/dev/null && {
24149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24150 test ! -s conftest.err
24151 }; then
24152 ac_header_preproc=yes
24153 else
24154 echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24157 ac_header_preproc=no
24160 rm -f conftest.err conftest.$ac_ext
24161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24162 echo "${ECHO_T}$ac_header_preproc" >&6; }
24164 # So? What about this header?
24165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24166 yes:no: )
24167 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24168 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24169 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24170 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24171 ac_header_preproc=yes
24173 no:yes:* )
24174 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24175 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24176 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24177 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24178 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24179 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24180 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24181 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24182 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24183 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24184 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24185 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24186 ( cat <<\_ASBOX
24187 ## ------------------------------- ##
24188 ## Report this to www.asterisk.org ##
24189 ## ------------------------------- ##
24190 _ASBOX
24191 ) | sed "s/^/$as_me: WARNING: /" >&2
24193 esac
24194 { echo "$as_me:$LINENO: checking for " >&5
24195 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24196 if test "${ac_cv_header_+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199 ac_cv_header_=$ac_header_preproc
24201 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24202 echo "${ECHO_T}$ac_cv_header_" >&6; }
24205 if test $ac_cv_header_ = yes; then
24206 TRUNCL_HEADER_FOUND=1
24207 else
24208 TRUNCL_HEADER_FOUND=0
24212 CPPFLAGS="${saved_cppflags}"
24214 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24215 TRUNCL_LIB=""
24216 TRUNCL_INCLUDE=""
24217 else
24218 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24219 TRUNCL_LIB=""
24221 PBX_TRUNCL=1
24222 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24224 cat >>confdefs.h <<_ACEOF
24225 #define HAVE_TRUNCL 1
24226 _ACEOF
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE_TRUNCL_VERSION
24231 _ACEOF
24238 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24239 pbxlibdir=""
24240 # if --with-STRTOLD=DIR has been specified, use it.
24241 if test "x${STRTOLD_DIR}" != "x"; then
24242 if test -d ${STRTOLD_DIR}/lib; then
24243 pbxlibdir="-L${STRTOLD_DIR}/lib"
24244 else
24245 pbxlibdir="-L${STRTOLD_DIR}"
24248 pbxfuncname="strtold"
24249 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24250 AST_STRTOLD_FOUND=yes
24251 else
24252 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24253 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24254 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24255 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258 ac_check_lib_save_LIBS=$LIBS
24259 LIBS="-lc ${pbxlibdir} $LIBS"
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24267 /* Override any GCC internal prototype to avoid an error.
24268 Use char because int might match the return type of a GCC
24269 builtin and then its argument prototype would still apply. */
24270 #ifdef __cplusplus
24271 extern "C"
24272 #endif
24273 char ${pbxfuncname} ();
24275 main ()
24277 return ${pbxfuncname} ();
24279 return 0;
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_link") 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest$ac_exeext &&
24299 $as_test_x conftest$ac_exeext; then
24300 eval "$as_ac_Lib=yes"
24301 else
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 eval "$as_ac_Lib=no"
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309 conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24312 ac_res=`eval echo '${'$as_ac_Lib'}'`
24313 { echo "$as_me:$LINENO: result: $ac_res" >&5
24314 echo "${ECHO_T}$ac_res" >&6; }
24315 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24316 AST_STRTOLD_FOUND=yes
24317 else
24318 AST_STRTOLD_FOUND=no
24323 # now check for the header.
24324 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24325 STRTOLD_LIB="${pbxlibdir} -lc "
24326 # if --with-STRTOLD=DIR has been specified, use it.
24327 if test "x${STRTOLD_DIR}" != "x"; then
24328 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24330 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24331 if test "xstdlib.h" = "x" ; then # no header, assume found
24332 STRTOLD_HEADER_FOUND="1"
24333 else # check for the header
24334 saved_cppflags="${CPPFLAGS}"
24335 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
24336 if test "${ac_cv_header_stdlib_h+set}" = set; then
24337 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24338 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24339 if test "${ac_cv_header_stdlib_h+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24343 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24344 else
24345 # Is the header compilable?
24346 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24347 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h. */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 $ac_includes_default
24355 #include <stdlib.h>
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_compile") 2>conftest.er1
24365 ac_status=$?
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } && {
24371 test -z "$ac_c_werror_flag" ||
24372 test ! -s conftest.err
24373 } && test -s conftest.$ac_objext; then
24374 ac_header_compiler=yes
24375 else
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24379 ac_header_compiler=no
24382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384 echo "${ECHO_T}$ac_header_compiler" >&6; }
24386 # Is the header present?
24387 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24388 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24389 cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h. */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 #include <stdlib.h>
24396 _ACEOF
24397 if { (ac_try="$ac_cpp conftest.$ac_ext"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24404 ac_status=$?
24405 grep -v '^ *+' conftest.er1 >conftest.err
24406 rm -f conftest.er1
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } >/dev/null && {
24410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24412 }; then
24413 ac_header_preproc=yes
24414 else
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_header_preproc=no
24421 rm -f conftest.err conftest.$ac_ext
24422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24423 echo "${ECHO_T}$ac_header_preproc" >&6; }
24425 # So? What about this header?
24426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24427 yes:no: )
24428 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24429 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24431 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24432 ac_header_preproc=yes
24434 no:yes:* )
24435 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24436 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24438 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24439 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24440 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24442 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24443 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24444 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24446 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24447 ( cat <<\_ASBOX
24448 ## ------------------------------- ##
24449 ## Report this to www.asterisk.org ##
24450 ## ------------------------------- ##
24451 _ASBOX
24452 ) | sed "s/^/$as_me: WARNING: /" >&2
24454 esac
24455 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24456 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24457 if test "${ac_cv_header_stdlib_h+set}" = set; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460 ac_cv_header_stdlib_h=$ac_header_preproc
24462 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24463 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24466 if test $ac_cv_header_stdlib_h = yes; then
24467 STRTOLD_HEADER_FOUND=1
24468 else
24469 STRTOLD_HEADER_FOUND=0
24473 CPPFLAGS="${saved_cppflags}"
24475 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24476 STRTOLD_LIB=""
24477 STRTOLD_INCLUDE=""
24478 else
24479 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24480 STRTOLD_LIB=""
24482 PBX_STRTOLD=1
24483 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24485 cat >>confdefs.h <<_ACEOF
24486 #define HAVE_STRTOLD 1
24487 _ACEOF
24490 cat >>confdefs.h <<_ACEOF
24491 #define HAVE_STRTOLD_VERSION
24492 _ACEOF
24499 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24500 pbxlibdir=""
24501 # if --with-FLOORL=DIR has been specified, use it.
24502 if test "x${FLOORL_DIR}" != "x"; then
24503 if test -d ${FLOORL_DIR}/lib; then
24504 pbxlibdir="-L${FLOORL_DIR}/lib"
24505 else
24506 pbxlibdir="-L${FLOORL_DIR}"
24509 pbxfuncname="floorl"
24510 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24511 AST_FLOORL_FOUND=yes
24512 else
24513 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24514 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24515 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24516 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24517 echo $ECHO_N "(cached) $ECHO_C" >&6
24518 else
24519 ac_check_lib_save_LIBS=$LIBS
24520 LIBS="-lm ${pbxlibdir} $LIBS"
24521 cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h. */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h. */
24528 /* Override any GCC internal prototype to avoid an error.
24529 Use char because int might match the return type of a GCC
24530 builtin and then its argument prototype would still apply. */
24531 #ifdef __cplusplus
24532 extern "C"
24533 #endif
24534 char ${pbxfuncname} ();
24536 main ()
24538 return ${pbxfuncname} ();
24540 return 0;
24542 _ACEOF
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_link") 2>conftest.er1
24551 ac_status=$?
24552 grep -v '^ *+' conftest.er1 >conftest.err
24553 rm -f conftest.er1
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } && {
24557 test -z "$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 } && test -s conftest$ac_exeext &&
24560 $as_test_x conftest$ac_exeext; then
24561 eval "$as_ac_Lib=yes"
24562 else
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 eval "$as_ac_Lib=no"
24569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24570 conftest$ac_exeext conftest.$ac_ext
24571 LIBS=$ac_check_lib_save_LIBS
24573 ac_res=`eval echo '${'$as_ac_Lib'}'`
24574 { echo "$as_me:$LINENO: result: $ac_res" >&5
24575 echo "${ECHO_T}$ac_res" >&6; }
24576 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24577 AST_FLOORL_FOUND=yes
24578 else
24579 AST_FLOORL_FOUND=no
24584 # now check for the header.
24585 if test "${AST_FLOORL_FOUND}" = "yes"; then
24586 FLOORL_LIB="${pbxlibdir} -lm "
24587 # if --with-FLOORL=DIR has been specified, use it.
24588 if test "x${FLOORL_DIR}" != "x"; then
24589 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24591 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24592 if test "x" = "x" ; then # no header, assume found
24593 FLOORL_HEADER_FOUND="1"
24594 else # check for the header
24595 saved_cppflags="${CPPFLAGS}"
24596 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24597 if test "${ac_cv_header_+set}" = set; then
24598 { echo "$as_me:$LINENO: checking for " >&5
24599 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24600 if test "${ac_cv_header_+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24604 echo "${ECHO_T}$ac_cv_header_" >&6; }
24605 else
24606 # Is the header compilable?
24607 { echo "$as_me:$LINENO: checking usability" >&5
24608 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24609 cat >conftest.$ac_ext <<_ACEOF
24610 /* confdefs.h. */
24611 _ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 $ac_includes_default
24616 #include <>
24617 _ACEOF
24618 rm -f conftest.$ac_objext
24619 if { (ac_try="$ac_compile"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24623 esac
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24626 ac_status=$?
24627 grep -v '^ *+' conftest.er1 >conftest.err
24628 rm -f conftest.er1
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.$ac_objext; then
24635 ac_header_compiler=yes
24636 else
24637 echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24640 ac_header_compiler=no
24643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24645 echo "${ECHO_T}$ac_header_compiler" >&6; }
24647 # Is the header present?
24648 { echo "$as_me:$LINENO: checking presence" >&5
24649 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24650 cat >conftest.$ac_ext <<_ACEOF
24651 /* confdefs.h. */
24652 _ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h. */
24656 #include <>
24657 _ACEOF
24658 if { (ac_try="$ac_cpp conftest.$ac_ext"
24659 case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24665 ac_status=$?
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } >/dev/null && {
24671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24672 test ! -s conftest.err
24673 }; then
24674 ac_header_preproc=yes
24675 else
24676 echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 ac_header_preproc=no
24682 rm -f conftest.err conftest.$ac_ext
24683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24684 echo "${ECHO_T}$ac_header_preproc" >&6; }
24686 # So? What about this header?
24687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24688 yes:no: )
24689 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24690 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24691 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24692 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24693 ac_header_preproc=yes
24695 no:yes:* )
24696 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24697 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24698 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24699 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24700 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24701 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24702 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24703 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24705 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24706 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24707 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24708 ( cat <<\_ASBOX
24709 ## ------------------------------- ##
24710 ## Report this to www.asterisk.org ##
24711 ## ------------------------------- ##
24712 _ASBOX
24713 ) | sed "s/^/$as_me: WARNING: /" >&2
24715 esac
24716 { echo "$as_me:$LINENO: checking for " >&5
24717 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24718 if test "${ac_cv_header_+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 else
24721 ac_cv_header_=$ac_header_preproc
24723 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24724 echo "${ECHO_T}$ac_cv_header_" >&6; }
24727 if test $ac_cv_header_ = yes; then
24728 FLOORL_HEADER_FOUND=1
24729 else
24730 FLOORL_HEADER_FOUND=0
24734 CPPFLAGS="${saved_cppflags}"
24736 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24737 FLOORL_LIB=""
24738 FLOORL_INCLUDE=""
24739 else
24740 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24741 FLOORL_LIB=""
24743 PBX_FLOORL=1
24744 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24746 cat >>confdefs.h <<_ACEOF
24747 #define HAVE_FLOORL 1
24748 _ACEOF
24751 cat >>confdefs.h <<_ACEOF
24752 #define HAVE_FLOORL_VERSION
24753 _ACEOF
24760 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24761 pbxlibdir=""
24762 # if --with-CEILL=DIR has been specified, use it.
24763 if test "x${CEILL_DIR}" != "x"; then
24764 if test -d ${CEILL_DIR}/lib; then
24765 pbxlibdir="-L${CEILL_DIR}/lib"
24766 else
24767 pbxlibdir="-L${CEILL_DIR}"
24770 pbxfuncname="ceill"
24771 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24772 AST_CEILL_FOUND=yes
24773 else
24774 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24775 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24776 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24777 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24778 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 else
24780 ac_check_lib_save_LIBS=$LIBS
24781 LIBS="-lm ${pbxlibdir} $LIBS"
24782 cat >conftest.$ac_ext <<_ACEOF
24783 /* confdefs.h. */
24784 _ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24789 /* Override any GCC internal prototype to avoid an error.
24790 Use char because int might match the return type of a GCC
24791 builtin and then its argument prototype would still apply. */
24792 #ifdef __cplusplus
24793 extern "C"
24794 #endif
24795 char ${pbxfuncname} ();
24797 main ()
24799 return ${pbxfuncname} ();
24801 return 0;
24803 _ACEOF
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (ac_try="$ac_link"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_link") 2>conftest.er1
24812 ac_status=$?
24813 grep -v '^ *+' conftest.er1 >conftest.err
24814 rm -f conftest.er1
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } && {
24818 test -z "$ac_c_werror_flag" ||
24819 test ! -s conftest.err
24820 } && test -s conftest$ac_exeext &&
24821 $as_test_x conftest$ac_exeext; then
24822 eval "$as_ac_Lib=yes"
24823 else
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 eval "$as_ac_Lib=no"
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831 conftest$ac_exeext conftest.$ac_ext
24832 LIBS=$ac_check_lib_save_LIBS
24834 ac_res=`eval echo '${'$as_ac_Lib'}'`
24835 { echo "$as_me:$LINENO: result: $ac_res" >&5
24836 echo "${ECHO_T}$ac_res" >&6; }
24837 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24838 AST_CEILL_FOUND=yes
24839 else
24840 AST_CEILL_FOUND=no
24845 # now check for the header.
24846 if test "${AST_CEILL_FOUND}" = "yes"; then
24847 CEILL_LIB="${pbxlibdir} -lm "
24848 # if --with-CEILL=DIR has been specified, use it.
24849 if test "x${CEILL_DIR}" != "x"; then
24850 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24852 CEILL_INCLUDE="${CEILL_INCLUDE} "
24853 if test "x" = "x" ; then # no header, assume found
24854 CEILL_HEADER_FOUND="1"
24855 else # check for the header
24856 saved_cppflags="${CPPFLAGS}"
24857 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24858 if test "${ac_cv_header_+set}" = set; then
24859 { echo "$as_me:$LINENO: checking for " >&5
24860 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24861 if test "${ac_cv_header_+set}" = set; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24865 echo "${ECHO_T}$ac_cv_header_" >&6; }
24866 else
24867 # Is the header compilable?
24868 { echo "$as_me:$LINENO: checking usability" >&5
24869 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24870 cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h. */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 $ac_includes_default
24877 #include <>
24878 _ACEOF
24879 rm -f conftest.$ac_objext
24880 if { (ac_try="$ac_compile"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_compile") 2>conftest.er1
24887 ac_status=$?
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && {
24893 test -z "$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 } && test -s conftest.$ac_objext; then
24896 ac_header_compiler=yes
24897 else
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 ac_header_compiler=no
24904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24906 echo "${ECHO_T}$ac_header_compiler" >&6; }
24908 # Is the header present?
24909 { echo "$as_me:$LINENO: checking presence" >&5
24910 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24911 cat >conftest.$ac_ext <<_ACEOF
24912 /* confdefs.h. */
24913 _ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24917 #include <>
24918 _ACEOF
24919 if { (ac_try="$ac_cpp conftest.$ac_ext"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24926 ac_status=$?
24927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } >/dev/null && {
24932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24933 test ! -s conftest.err
24934 }; then
24935 ac_header_preproc=yes
24936 else
24937 echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24940 ac_header_preproc=no
24943 rm -f conftest.err conftest.$ac_ext
24944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24945 echo "${ECHO_T}$ac_header_preproc" >&6; }
24947 # So? What about this header?
24948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24949 yes:no: )
24950 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24951 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24952 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24953 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24954 ac_header_preproc=yes
24956 no:yes:* )
24957 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24958 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24959 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24960 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24961 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24962 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24964 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24965 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24966 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24967 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24968 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24969 ( cat <<\_ASBOX
24970 ## ------------------------------- ##
24971 ## Report this to www.asterisk.org ##
24972 ## ------------------------------- ##
24973 _ASBOX
24974 ) | sed "s/^/$as_me: WARNING: /" >&2
24976 esac
24977 { echo "$as_me:$LINENO: checking for " >&5
24978 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24979 if test "${ac_cv_header_+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 else
24982 ac_cv_header_=$ac_header_preproc
24984 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24985 echo "${ECHO_T}$ac_cv_header_" >&6; }
24988 if test $ac_cv_header_ = yes; then
24989 CEILL_HEADER_FOUND=1
24990 else
24991 CEILL_HEADER_FOUND=0
24995 CPPFLAGS="${saved_cppflags}"
24997 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
24998 CEILL_LIB=""
24999 CEILL_INCLUDE=""
25000 else
25001 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25002 CEILL_LIB=""
25004 PBX_CEILL=1
25005 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25007 cat >>confdefs.h <<_ACEOF
25008 #define HAVE_CEILL 1
25009 _ACEOF
25012 cat >>confdefs.h <<_ACEOF
25013 #define HAVE_CEILL_VERSION
25014 _ACEOF
25021 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
25022 pbxlibdir=""
25023 # if --with-EXP2=DIR has been specified, use it.
25024 if test "x${EXP2_DIR}" != "x"; then
25025 if test -d ${EXP2_DIR}/lib; then
25026 pbxlibdir="-L${EXP2_DIR}/lib"
25027 else
25028 pbxlibdir="-L${EXP2_DIR}"
25031 pbxfuncname="exp2"
25032 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25033 AST_EXP2_FOUND=yes
25034 else
25035 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25036 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25037 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25038 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25040 else
25041 ac_check_lib_save_LIBS=$LIBS
25042 LIBS="-lm ${pbxlibdir} $LIBS"
25043 cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h. */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h. */
25050 /* Override any GCC internal prototype to avoid an error.
25051 Use char because int might match the return type of a GCC
25052 builtin and then its argument prototype would still apply. */
25053 #ifdef __cplusplus
25054 extern "C"
25055 #endif
25056 char ${pbxfuncname} ();
25058 main ()
25060 return ${pbxfuncname} ();
25062 return 0;
25064 _ACEOF
25065 rm -f conftest.$ac_objext conftest$ac_exeext
25066 if { (ac_try="$ac_link"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_link") 2>conftest.er1
25073 ac_status=$?
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && {
25079 test -z "$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 } && test -s conftest$ac_exeext &&
25082 $as_test_x conftest$ac_exeext; then
25083 eval "$as_ac_Lib=yes"
25084 else
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25088 eval "$as_ac_Lib=no"
25091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25092 conftest$ac_exeext conftest.$ac_ext
25093 LIBS=$ac_check_lib_save_LIBS
25095 ac_res=`eval echo '${'$as_ac_Lib'}'`
25096 { echo "$as_me:$LINENO: result: $ac_res" >&5
25097 echo "${ECHO_T}$ac_res" >&6; }
25098 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25099 AST_EXP2_FOUND=yes
25100 else
25101 AST_EXP2_FOUND=no
25106 # now check for the header.
25107 if test "${AST_EXP2_FOUND}" = "yes"; then
25108 EXP2_LIB="${pbxlibdir} -lm "
25109 # if --with-EXP2=DIR has been specified, use it.
25110 if test "x${EXP2_DIR}" != "x"; then
25111 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25113 EXP2_INCLUDE="${EXP2_INCLUDE} "
25114 if test "x" = "x" ; then # no header, assume found
25115 EXP2_HEADER_FOUND="1"
25116 else # check for the header
25117 saved_cppflags="${CPPFLAGS}"
25118 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
25119 if test "${ac_cv_header_+set}" = set; then
25120 { echo "$as_me:$LINENO: checking for " >&5
25121 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25122 if test "${ac_cv_header_+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25126 echo "${ECHO_T}$ac_cv_header_" >&6; }
25127 else
25128 # Is the header compilable?
25129 { echo "$as_me:$LINENO: checking usability" >&5
25130 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25131 cat >conftest.$ac_ext <<_ACEOF
25132 /* confdefs.h. */
25133 _ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h. */
25137 $ac_includes_default
25138 #include <>
25139 _ACEOF
25140 rm -f conftest.$ac_objext
25141 if { (ac_try="$ac_compile"
25142 case "(($ac_try" in
25143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144 *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147 (eval "$ac_compile") 2>conftest.er1
25148 ac_status=$?
25149 grep -v '^ *+' conftest.er1 >conftest.err
25150 rm -f conftest.er1
25151 cat conftest.err >&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && {
25154 test -z "$ac_c_werror_flag" ||
25155 test ! -s conftest.err
25156 } && test -s conftest.$ac_objext; then
25157 ac_header_compiler=yes
25158 else
25159 echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25162 ac_header_compiler=no
25165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25167 echo "${ECHO_T}$ac_header_compiler" >&6; }
25169 # Is the header present?
25170 { echo "$as_me:$LINENO: checking presence" >&5
25171 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25172 cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h. */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 #include <>
25179 _ACEOF
25180 if { (ac_try="$ac_cpp conftest.$ac_ext"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25184 esac
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25187 ac_status=$?
25188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } >/dev/null && {
25193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25194 test ! -s conftest.err
25195 }; then
25196 ac_header_preproc=yes
25197 else
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25201 ac_header_preproc=no
25204 rm -f conftest.err conftest.$ac_ext
25205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25206 echo "${ECHO_T}$ac_header_preproc" >&6; }
25208 # So? What about this header?
25209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25210 yes:no: )
25211 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25212 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25213 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25214 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25215 ac_header_preproc=yes
25217 no:yes:* )
25218 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25219 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25220 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25221 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25222 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25223 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25224 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25225 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25226 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25227 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25228 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25229 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25230 ( cat <<\_ASBOX
25231 ## ------------------------------- ##
25232 ## Report this to www.asterisk.org ##
25233 ## ------------------------------- ##
25234 _ASBOX
25235 ) | sed "s/^/$as_me: WARNING: /" >&2
25237 esac
25238 { echo "$as_me:$LINENO: checking for " >&5
25239 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25240 if test "${ac_cv_header_+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 else
25243 ac_cv_header_=$ac_header_preproc
25245 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25246 echo "${ECHO_T}$ac_cv_header_" >&6; }
25249 if test $ac_cv_header_ = yes; then
25250 EXP2_HEADER_FOUND=1
25251 else
25252 EXP2_HEADER_FOUND=0
25256 CPPFLAGS="${saved_cppflags}"
25258 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25259 EXP2_LIB=""
25260 EXP2_INCLUDE=""
25261 else
25262 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25263 EXP2_LIB=""
25265 PBX_EXP2=1
25266 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_EXP2 1
25270 _ACEOF
25273 cat >>confdefs.h <<_ACEOF
25274 #define HAVE_EXP2_VERSION
25275 _ACEOF
25282 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25283 pbxlibdir=""
25284 # if --with-LOG2=DIR has been specified, use it.
25285 if test "x${LOG2_DIR}" != "x"; then
25286 if test -d ${LOG2_DIR}/lib; then
25287 pbxlibdir="-L${LOG2_DIR}/lib"
25288 else
25289 pbxlibdir="-L${LOG2_DIR}"
25292 pbxfuncname="log2"
25293 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25294 AST_LOG2_FOUND=yes
25295 else
25296 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25297 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25298 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25299 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302 ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-lm ${pbxlibdir} $LIBS"
25304 cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h. */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25314 #ifdef __cplusplus
25315 extern "C"
25316 #endif
25317 char ${pbxfuncname} ();
25319 main ()
25321 return ${pbxfuncname} ();
25323 return 0;
25325 _ACEOF
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_link") 2>conftest.er1
25334 ac_status=$?
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest$ac_exeext &&
25343 $as_test_x conftest$ac_exeext; then
25344 eval "$as_ac_Lib=yes"
25345 else
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 eval "$as_ac_Lib=no"
25352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25353 conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25356 ac_res=`eval echo '${'$as_ac_Lib'}'`
25357 { echo "$as_me:$LINENO: result: $ac_res" >&5
25358 echo "${ECHO_T}$ac_res" >&6; }
25359 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25360 AST_LOG2_FOUND=yes
25361 else
25362 AST_LOG2_FOUND=no
25367 # now check for the header.
25368 if test "${AST_LOG2_FOUND}" = "yes"; then
25369 LOG2_LIB="${pbxlibdir} -lm "
25370 # if --with-LOG2=DIR has been specified, use it.
25371 if test "x${LOG2_DIR}" != "x"; then
25372 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25374 LOG2_INCLUDE="${LOG2_INCLUDE} "
25375 if test "x" = "x" ; then # no header, assume found
25376 LOG2_HEADER_FOUND="1"
25377 else # check for the header
25378 saved_cppflags="${CPPFLAGS}"
25379 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25380 if test "${ac_cv_header_+set}" = set; then
25381 { echo "$as_me:$LINENO: checking for " >&5
25382 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25383 if test "${ac_cv_header_+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25387 echo "${ECHO_T}$ac_cv_header_" >&6; }
25388 else
25389 # Is the header compilable?
25390 { echo "$as_me:$LINENO: checking usability" >&5
25391 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25392 cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h. */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398 $ac_includes_default
25399 #include <>
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (ac_try="$ac_compile"
25403 case "(($ac_try" in
25404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405 *) ac_try_echo=$ac_try;;
25406 esac
25407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25408 (eval "$ac_compile") 2>conftest.er1
25409 ac_status=$?
25410 grep -v '^ *+' conftest.er1 >conftest.err
25411 rm -f conftest.er1
25412 cat conftest.err >&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } && {
25415 test -z "$ac_c_werror_flag" ||
25416 test ! -s conftest.err
25417 } && test -s conftest.$ac_objext; then
25418 ac_header_compiler=yes
25419 else
25420 echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25423 ac_header_compiler=no
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25428 echo "${ECHO_T}$ac_header_compiler" >&6; }
25430 # Is the header present?
25431 { echo "$as_me:$LINENO: checking presence" >&5
25432 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <>
25440 _ACEOF
25441 if { (ac_try="$ac_cpp conftest.$ac_ext"
25442 case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25445 esac
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25448 ac_status=$?
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } >/dev/null && {
25454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25455 test ! -s conftest.err
25456 }; then
25457 ac_header_preproc=yes
25458 else
25459 echo "$as_me: failed program was:" >&5
25460 sed 's/^/| /' conftest.$ac_ext >&5
25462 ac_header_preproc=no
25465 rm -f conftest.err conftest.$ac_ext
25466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25467 echo "${ECHO_T}$ac_header_preproc" >&6; }
25469 # So? What about this header?
25470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25471 yes:no: )
25472 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25473 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25474 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25475 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25476 ac_header_preproc=yes
25478 no:yes:* )
25479 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25480 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25482 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25483 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25484 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25485 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25486 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25487 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25488 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25489 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25490 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25491 ( cat <<\_ASBOX
25492 ## ------------------------------- ##
25493 ## Report this to www.asterisk.org ##
25494 ## ------------------------------- ##
25495 _ASBOX
25496 ) | sed "s/^/$as_me: WARNING: /" >&2
25498 esac
25499 { echo "$as_me:$LINENO: checking for " >&5
25500 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25501 if test "${ac_cv_header_+set}" = set; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504 ac_cv_header_=$ac_header_preproc
25506 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25507 echo "${ECHO_T}$ac_cv_header_" >&6; }
25510 if test $ac_cv_header_ = yes; then
25511 LOG2_HEADER_FOUND=1
25512 else
25513 LOG2_HEADER_FOUND=0
25517 CPPFLAGS="${saved_cppflags}"
25519 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25520 LOG2_LIB=""
25521 LOG2_INCLUDE=""
25522 else
25523 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25524 LOG2_LIB=""
25526 PBX_LOG2=1
25527 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25529 cat >>confdefs.h <<_ACEOF
25530 #define HAVE_LOG2 1
25531 _ACEOF
25534 cat >>confdefs.h <<_ACEOF
25535 #define HAVE_LOG2_VERSION
25536 _ACEOF
25543 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25544 pbxlibdir=""
25545 # if --with-EXP10=DIR has been specified, use it.
25546 if test "x${EXP10_DIR}" != "x"; then
25547 if test -d ${EXP10_DIR}/lib; then
25548 pbxlibdir="-L${EXP10_DIR}/lib"
25549 else
25550 pbxlibdir="-L${EXP10_DIR}"
25553 pbxfuncname="exp10"
25554 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25555 AST_EXP10_FOUND=yes
25556 else
25557 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25558 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25559 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25560 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563 ac_check_lib_save_LIBS=$LIBS
25564 LIBS="-lm ${pbxlibdir} $LIBS"
25565 cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h. */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25572 /* Override any GCC internal prototype to avoid an error.
25573 Use char because int might match the return type of a GCC
25574 builtin and then its argument prototype would still apply. */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 char ${pbxfuncname} ();
25580 main ()
25582 return ${pbxfuncname} ();
25584 return 0;
25586 _ACEOF
25587 rm -f conftest.$ac_objext conftest$ac_exeext
25588 if { (ac_try="$ac_link"
25589 case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592 esac
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_link") 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && {
25601 test -z "$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 } && test -s conftest$ac_exeext &&
25604 $as_test_x conftest$ac_exeext; then
25605 eval "$as_ac_Lib=yes"
25606 else
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 eval "$as_ac_Lib=no"
25613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25614 conftest$ac_exeext conftest.$ac_ext
25615 LIBS=$ac_check_lib_save_LIBS
25617 ac_res=`eval echo '${'$as_ac_Lib'}'`
25618 { echo "$as_me:$LINENO: result: $ac_res" >&5
25619 echo "${ECHO_T}$ac_res" >&6; }
25620 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25621 AST_EXP10_FOUND=yes
25622 else
25623 AST_EXP10_FOUND=no
25628 # now check for the header.
25629 if test "${AST_EXP10_FOUND}" = "yes"; then
25630 EXP10_LIB="${pbxlibdir} -lm "
25631 # if --with-EXP10=DIR has been specified, use it.
25632 if test "x${EXP10_DIR}" != "x"; then
25633 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25635 EXP10_INCLUDE="${EXP10_INCLUDE} "
25636 if test "x" = "x" ; then # no header, assume found
25637 EXP10_HEADER_FOUND="1"
25638 else # check for the header
25639 saved_cppflags="${CPPFLAGS}"
25640 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25641 if test "${ac_cv_header_+set}" = set; then
25642 { echo "$as_me:$LINENO: checking for " >&5
25643 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25644 if test "${ac_cv_header_+set}" = set; then
25645 echo $ECHO_N "(cached) $ECHO_C" >&6
25647 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25648 echo "${ECHO_T}$ac_cv_header_" >&6; }
25649 else
25650 # Is the header compilable?
25651 { echo "$as_me:$LINENO: checking usability" >&5
25652 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h. */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 $ac_includes_default
25660 #include <>
25661 _ACEOF
25662 rm -f conftest.$ac_objext
25663 if { (ac_try="$ac_compile"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25667 esac
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_compile") 2>conftest.er1
25670 ac_status=$?
25671 grep -v '^ *+' conftest.er1 >conftest.err
25672 rm -f conftest.er1
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && {
25676 test -z "$ac_c_werror_flag" ||
25677 test ! -s conftest.err
25678 } && test -s conftest.$ac_objext; then
25679 ac_header_compiler=yes
25680 else
25681 echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25684 ac_header_compiler=no
25687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25689 echo "${ECHO_T}$ac_header_compiler" >&6; }
25691 # Is the header present?
25692 { echo "$as_me:$LINENO: checking presence" >&5
25693 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25694 cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h. */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 #include <>
25701 _ACEOF
25702 if { (ac_try="$ac_cpp conftest.$ac_ext"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25709 ac_status=$?
25710 grep -v '^ *+' conftest.er1 >conftest.err
25711 rm -f conftest.er1
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } >/dev/null && {
25715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 }; then
25718 ac_header_preproc=yes
25719 else
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 ac_header_preproc=no
25726 rm -f conftest.err conftest.$ac_ext
25727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25728 echo "${ECHO_T}$ac_header_preproc" >&6; }
25730 # So? What about this header?
25731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25732 yes:no: )
25733 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25734 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25735 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25736 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25737 ac_header_preproc=yes
25739 no:yes:* )
25740 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25741 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25742 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25743 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25744 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25745 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25746 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25747 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25748 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25749 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25750 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25751 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25752 ( cat <<\_ASBOX
25753 ## ------------------------------- ##
25754 ## Report this to www.asterisk.org ##
25755 ## ------------------------------- ##
25756 _ASBOX
25757 ) | sed "s/^/$as_me: WARNING: /" >&2
25759 esac
25760 { echo "$as_me:$LINENO: checking for " >&5
25761 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25762 if test "${ac_cv_header_+set}" = set; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 else
25765 ac_cv_header_=$ac_header_preproc
25767 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25768 echo "${ECHO_T}$ac_cv_header_" >&6; }
25771 if test $ac_cv_header_ = yes; then
25772 EXP10_HEADER_FOUND=1
25773 else
25774 EXP10_HEADER_FOUND=0
25778 CPPFLAGS="${saved_cppflags}"
25780 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25781 EXP10_LIB=""
25782 EXP10_INCLUDE=""
25783 else
25784 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25785 EXP10_LIB=""
25787 PBX_EXP10=1
25788 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25790 cat >>confdefs.h <<_ACEOF
25791 #define HAVE_EXP10 1
25792 _ACEOF
25795 cat >>confdefs.h <<_ACEOF
25796 #define HAVE_EXP10_VERSION
25797 _ACEOF
25804 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25805 pbxlibdir=""
25806 # if --with-LOG10=DIR has been specified, use it.
25807 if test "x${LOG10_DIR}" != "x"; then
25808 if test -d ${LOG10_DIR}/lib; then
25809 pbxlibdir="-L${LOG10_DIR}/lib"
25810 else
25811 pbxlibdir="-L${LOG10_DIR}"
25814 pbxfuncname="log10"
25815 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25816 AST_LOG10_FOUND=yes
25817 else
25818 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25819 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25820 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25821 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824 ac_check_lib_save_LIBS=$LIBS
25825 LIBS="-lm ${pbxlibdir} $LIBS"
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h. */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25833 /* Override any GCC internal prototype to avoid an error.
25834 Use char because int might match the return type of a GCC
25835 builtin and then its argument prototype would still apply. */
25836 #ifdef __cplusplus
25837 extern "C"
25838 #endif
25839 char ${pbxfuncname} ();
25841 main ()
25843 return ${pbxfuncname} ();
25845 return 0;
25847 _ACEOF
25848 rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (ac_try="$ac_link"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_link") 2>conftest.er1
25856 ac_status=$?
25857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest$ac_exeext &&
25865 $as_test_x conftest$ac_exeext; then
25866 eval "$as_ac_Lib=yes"
25867 else
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 eval "$as_ac_Lib=no"
25874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25875 conftest$ac_exeext conftest.$ac_ext
25876 LIBS=$ac_check_lib_save_LIBS
25878 ac_res=`eval echo '${'$as_ac_Lib'}'`
25879 { echo "$as_me:$LINENO: result: $ac_res" >&5
25880 echo "${ECHO_T}$ac_res" >&6; }
25881 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25882 AST_LOG10_FOUND=yes
25883 else
25884 AST_LOG10_FOUND=no
25889 # now check for the header.
25890 if test "${AST_LOG10_FOUND}" = "yes"; then
25891 LOG10_LIB="${pbxlibdir} -lm "
25892 # if --with-LOG10=DIR has been specified, use it.
25893 if test "x${LOG10_DIR}" != "x"; then
25894 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25896 LOG10_INCLUDE="${LOG10_INCLUDE} "
25897 if test "x" = "x" ; then # no header, assume found
25898 LOG10_HEADER_FOUND="1"
25899 else # check for the header
25900 saved_cppflags="${CPPFLAGS}"
25901 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
25902 if test "${ac_cv_header_+set}" = set; then
25903 { echo "$as_me:$LINENO: checking for " >&5
25904 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25905 if test "${ac_cv_header_+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25908 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25909 echo "${ECHO_T}$ac_cv_header_" >&6; }
25910 else
25911 # Is the header compilable?
25912 { echo "$as_me:$LINENO: checking usability" >&5
25913 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25914 cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h. */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 $ac_includes_default
25921 #include <>
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (ac_try="$ac_compile"
25925 case "(($ac_try" in
25926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 *) ac_try_echo=$ac_try;;
25928 esac
25929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930 (eval "$ac_compile") 2>conftest.er1
25931 ac_status=$?
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } && {
25937 test -z "$ac_c_werror_flag" ||
25938 test ! -s conftest.err
25939 } && test -s conftest.$ac_objext; then
25940 ac_header_compiler=yes
25941 else
25942 echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25945 ac_header_compiler=no
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25950 echo "${ECHO_T}$ac_header_compiler" >&6; }
25952 # Is the header present?
25953 { echo "$as_me:$LINENO: checking presence" >&5
25954 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25955 cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h. */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 #include <>
25962 _ACEOF
25963 if { (ac_try="$ac_cpp conftest.$ac_ext"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25967 esac
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25970 ac_status=$?
25971 grep -v '^ *+' conftest.er1 >conftest.err
25972 rm -f conftest.er1
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } >/dev/null && {
25976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25978 }; then
25979 ac_header_preproc=yes
25980 else
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_header_preproc=no
25987 rm -f conftest.err conftest.$ac_ext
25988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25989 echo "${ECHO_T}$ac_header_preproc" >&6; }
25991 # So? What about this header?
25992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25993 yes:no: )
25994 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25995 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25997 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25998 ac_header_preproc=yes
26000 no:yes:* )
26001 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26002 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26003 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26004 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26005 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26006 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26007 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26008 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26010 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26012 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26013 ( cat <<\_ASBOX
26014 ## ------------------------------- ##
26015 ## Report this to www.asterisk.org ##
26016 ## ------------------------------- ##
26017 _ASBOX
26018 ) | sed "s/^/$as_me: WARNING: /" >&2
26020 esac
26021 { echo "$as_me:$LINENO: checking for " >&5
26022 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26023 if test "${ac_cv_header_+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026 ac_cv_header_=$ac_header_preproc
26028 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26029 echo "${ECHO_T}$ac_cv_header_" >&6; }
26032 if test $ac_cv_header_ = yes; then
26033 LOG10_HEADER_FOUND=1
26034 else
26035 LOG10_HEADER_FOUND=0
26039 CPPFLAGS="${saved_cppflags}"
26041 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26042 LOG10_LIB=""
26043 LOG10_INCLUDE=""
26044 else
26045 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26046 LOG10_LIB=""
26048 PBX_LOG10=1
26049 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26051 cat >>confdefs.h <<_ACEOF
26052 #define HAVE_LOG10 1
26053 _ACEOF
26056 cat >>confdefs.h <<_ACEOF
26057 #define HAVE_LOG10_VERSION
26058 _ACEOF
26065 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26066 pbxlibdir=""
26067 # if --with-SIN=DIR has been specified, use it.
26068 if test "x${SIN_DIR}" != "x"; then
26069 if test -d ${SIN_DIR}/lib; then
26070 pbxlibdir="-L${SIN_DIR}/lib"
26071 else
26072 pbxlibdir="-L${SIN_DIR}"
26075 pbxfuncname="sin"
26076 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26077 AST_SIN_FOUND=yes
26078 else
26079 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26080 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26081 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26082 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085 ac_check_lib_save_LIBS=$LIBS
26086 LIBS="-lm ${pbxlibdir} $LIBS"
26087 cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h. */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26094 /* Override any GCC internal prototype to avoid an error.
26095 Use char because int might match the return type of a GCC
26096 builtin and then its argument prototype would still apply. */
26097 #ifdef __cplusplus
26098 extern "C"
26099 #endif
26100 char ${pbxfuncname} ();
26102 main ()
26104 return ${pbxfuncname} ();
26106 return 0;
26108 _ACEOF
26109 rm -f conftest.$ac_objext conftest$ac_exeext
26110 if { (ac_try="$ac_link"
26111 case "(($ac_try" in
26112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26113 *) ac_try_echo=$ac_try;;
26114 esac
26115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26116 (eval "$ac_link") 2>conftest.er1
26117 ac_status=$?
26118 grep -v '^ *+' conftest.er1 >conftest.err
26119 rm -f conftest.er1
26120 cat conftest.err >&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } && {
26123 test -z "$ac_c_werror_flag" ||
26124 test ! -s conftest.err
26125 } && test -s conftest$ac_exeext &&
26126 $as_test_x conftest$ac_exeext; then
26127 eval "$as_ac_Lib=yes"
26128 else
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26132 eval "$as_ac_Lib=no"
26135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26136 conftest$ac_exeext conftest.$ac_ext
26137 LIBS=$ac_check_lib_save_LIBS
26139 ac_res=`eval echo '${'$as_ac_Lib'}'`
26140 { echo "$as_me:$LINENO: result: $ac_res" >&5
26141 echo "${ECHO_T}$ac_res" >&6; }
26142 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26143 AST_SIN_FOUND=yes
26144 else
26145 AST_SIN_FOUND=no
26150 # now check for the header.
26151 if test "${AST_SIN_FOUND}" = "yes"; then
26152 SIN_LIB="${pbxlibdir} -lm "
26153 # if --with-SIN=DIR has been specified, use it.
26154 if test "x${SIN_DIR}" != "x"; then
26155 SIN_INCLUDE="-I${SIN_DIR}/include"
26157 SIN_INCLUDE="${SIN_INCLUDE} "
26158 if test "x" = "x" ; then # no header, assume found
26159 SIN_HEADER_FOUND="1"
26160 else # check for the header
26161 saved_cppflags="${CPPFLAGS}"
26162 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
26163 if test "${ac_cv_header_+set}" = set; then
26164 { echo "$as_me:$LINENO: checking for " >&5
26165 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26166 if test "${ac_cv_header_+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26170 echo "${ECHO_T}$ac_cv_header_" >&6; }
26171 else
26172 # Is the header compilable?
26173 { echo "$as_me:$LINENO: checking usability" >&5
26174 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26175 cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h. */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 $ac_includes_default
26182 #include <>
26183 _ACEOF
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26189 esac
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191 (eval "$ac_compile") 2>conftest.er1
26192 ac_status=$?
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_c_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest.$ac_objext; then
26201 ac_header_compiler=yes
26202 else
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_header_compiler=no
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26211 echo "${ECHO_T}$ac_header_compiler" >&6; }
26213 # Is the header present?
26214 { echo "$as_me:$LINENO: checking presence" >&5
26215 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26216 cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h. */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222 #include <>
26223 _ACEOF
26224 if { (ac_try="$ac_cpp conftest.$ac_ext"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26228 esac
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26231 ac_status=$?
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } >/dev/null && {
26237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26238 test ! -s conftest.err
26239 }; then
26240 ac_header_preproc=yes
26241 else
26242 echo "$as_me: failed program was:" >&5
26243 sed 's/^/| /' conftest.$ac_ext >&5
26245 ac_header_preproc=no
26248 rm -f conftest.err conftest.$ac_ext
26249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26250 echo "${ECHO_T}$ac_header_preproc" >&6; }
26252 # So? What about this header?
26253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26254 yes:no: )
26255 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26256 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26257 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26258 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26259 ac_header_preproc=yes
26261 no:yes:* )
26262 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26263 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26265 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26266 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26267 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26269 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26271 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26272 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26273 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26274 ( cat <<\_ASBOX
26275 ## ------------------------------- ##
26276 ## Report this to www.asterisk.org ##
26277 ## ------------------------------- ##
26278 _ASBOX
26279 ) | sed "s/^/$as_me: WARNING: /" >&2
26281 esac
26282 { echo "$as_me:$LINENO: checking for " >&5
26283 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26284 if test "${ac_cv_header_+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287 ac_cv_header_=$ac_header_preproc
26289 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26290 echo "${ECHO_T}$ac_cv_header_" >&6; }
26293 if test $ac_cv_header_ = yes; then
26294 SIN_HEADER_FOUND=1
26295 else
26296 SIN_HEADER_FOUND=0
26300 CPPFLAGS="${saved_cppflags}"
26302 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26303 SIN_LIB=""
26304 SIN_INCLUDE=""
26305 else
26306 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26307 SIN_LIB=""
26309 PBX_SIN=1
26310 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26312 cat >>confdefs.h <<_ACEOF
26313 #define HAVE_SIN 1
26314 _ACEOF
26317 cat >>confdefs.h <<_ACEOF
26318 #define HAVE_SIN_VERSION
26319 _ACEOF
26326 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26327 pbxlibdir=""
26328 # if --with-COS=DIR has been specified, use it.
26329 if test "x${COS_DIR}" != "x"; then
26330 if test -d ${COS_DIR}/lib; then
26331 pbxlibdir="-L${COS_DIR}/lib"
26332 else
26333 pbxlibdir="-L${COS_DIR}"
26336 pbxfuncname="cos"
26337 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26338 AST_COS_FOUND=yes
26339 else
26340 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26341 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26342 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26343 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26344 echo $ECHO_N "(cached) $ECHO_C" >&6
26345 else
26346 ac_check_lib_save_LIBS=$LIBS
26347 LIBS="-lm ${pbxlibdir} $LIBS"
26348 cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h. */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26355 /* Override any GCC internal prototype to avoid an error.
26356 Use char because int might match the return type of a GCC
26357 builtin and then its argument prototype would still apply. */
26358 #ifdef __cplusplus
26359 extern "C"
26360 #endif
26361 char ${pbxfuncname} ();
26363 main ()
26365 return ${pbxfuncname} ();
26367 return 0;
26369 _ACEOF
26370 rm -f conftest.$ac_objext conftest$ac_exeext
26371 if { (ac_try="$ac_link"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_link") 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } && {
26384 test -z "$ac_c_werror_flag" ||
26385 test ! -s conftest.err
26386 } && test -s conftest$ac_exeext &&
26387 $as_test_x conftest$ac_exeext; then
26388 eval "$as_ac_Lib=yes"
26389 else
26390 echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26393 eval "$as_ac_Lib=no"
26396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26397 conftest$ac_exeext conftest.$ac_ext
26398 LIBS=$ac_check_lib_save_LIBS
26400 ac_res=`eval echo '${'$as_ac_Lib'}'`
26401 { echo "$as_me:$LINENO: result: $ac_res" >&5
26402 echo "${ECHO_T}$ac_res" >&6; }
26403 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26404 AST_COS_FOUND=yes
26405 else
26406 AST_COS_FOUND=no
26411 # now check for the header.
26412 if test "${AST_COS_FOUND}" = "yes"; then
26413 COS_LIB="${pbxlibdir} -lm "
26414 # if --with-COS=DIR has been specified, use it.
26415 if test "x${COS_DIR}" != "x"; then
26416 COS_INCLUDE="-I${COS_DIR}/include"
26418 COS_INCLUDE="${COS_INCLUDE} "
26419 if test "x" = "x" ; then # no header, assume found
26420 COS_HEADER_FOUND="1"
26421 else # check for the header
26422 saved_cppflags="${CPPFLAGS}"
26423 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26424 if test "${ac_cv_header_+set}" = set; then
26425 { echo "$as_me:$LINENO: checking for " >&5
26426 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26427 if test "${ac_cv_header_+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26431 echo "${ECHO_T}$ac_cv_header_" >&6; }
26432 else
26433 # Is the header compilable?
26434 { echo "$as_me:$LINENO: checking usability" >&5
26435 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26436 cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h. */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 $ac_includes_default
26443 #include <>
26444 _ACEOF
26445 rm -f conftest.$ac_objext
26446 if { (ac_try="$ac_compile"
26447 case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452 (eval "$ac_compile") 2>conftest.er1
26453 ac_status=$?
26454 grep -v '^ *+' conftest.er1 >conftest.err
26455 rm -f conftest.er1
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && {
26459 test -z "$ac_c_werror_flag" ||
26460 test ! -s conftest.err
26461 } && test -s conftest.$ac_objext; then
26462 ac_header_compiler=yes
26463 else
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26467 ac_header_compiler=no
26470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26472 echo "${ECHO_T}$ac_header_compiler" >&6; }
26474 # Is the header present?
26475 { echo "$as_me:$LINENO: checking presence" >&5
26476 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26477 cat >conftest.$ac_ext <<_ACEOF
26478 /* confdefs.h. */
26479 _ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 #include <>
26484 _ACEOF
26485 if { (ac_try="$ac_cpp conftest.$ac_ext"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26492 ac_status=$?
26493 grep -v '^ *+' conftest.er1 >conftest.err
26494 rm -f conftest.er1
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } >/dev/null && {
26498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 }; then
26501 ac_header_preproc=yes
26502 else
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_header_preproc=no
26509 rm -f conftest.err conftest.$ac_ext
26510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26511 echo "${ECHO_T}$ac_header_preproc" >&6; }
26513 # So? What about this header?
26514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26515 yes:no: )
26516 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26517 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26519 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26520 ac_header_preproc=yes
26522 no:yes:* )
26523 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26524 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26526 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26528 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26530 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26532 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26534 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26535 ( cat <<\_ASBOX
26536 ## ------------------------------- ##
26537 ## Report this to www.asterisk.org ##
26538 ## ------------------------------- ##
26539 _ASBOX
26540 ) | sed "s/^/$as_me: WARNING: /" >&2
26542 esac
26543 { echo "$as_me:$LINENO: checking for " >&5
26544 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26545 if test "${ac_cv_header_+set}" = set; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26547 else
26548 ac_cv_header_=$ac_header_preproc
26550 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26551 echo "${ECHO_T}$ac_cv_header_" >&6; }
26554 if test $ac_cv_header_ = yes; then
26555 COS_HEADER_FOUND=1
26556 else
26557 COS_HEADER_FOUND=0
26561 CPPFLAGS="${saved_cppflags}"
26563 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26564 COS_LIB=""
26565 COS_INCLUDE=""
26566 else
26567 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26568 COS_LIB=""
26570 PBX_COS=1
26571 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26573 cat >>confdefs.h <<_ACEOF
26574 #define HAVE_COS 1
26575 _ACEOF
26578 cat >>confdefs.h <<_ACEOF
26579 #define HAVE_COS_VERSION
26580 _ACEOF
26587 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26588 pbxlibdir=""
26589 # if --with-TAN=DIR has been specified, use it.
26590 if test "x${TAN_DIR}" != "x"; then
26591 if test -d ${TAN_DIR}/lib; then
26592 pbxlibdir="-L${TAN_DIR}/lib"
26593 else
26594 pbxlibdir="-L${TAN_DIR}"
26597 pbxfuncname="tan"
26598 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26599 AST_TAN_FOUND=yes
26600 else
26601 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26602 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26603 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26604 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607 ac_check_lib_save_LIBS=$LIBS
26608 LIBS="-lm ${pbxlibdir} $LIBS"
26609 cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h. */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26616 /* Override any GCC internal prototype to avoid an error.
26617 Use char because int might match the return type of a GCC
26618 builtin and then its argument prototype would still apply. */
26619 #ifdef __cplusplus
26620 extern "C"
26621 #endif
26622 char ${pbxfuncname} ();
26624 main ()
26626 return ${pbxfuncname} ();
26628 return 0;
26630 _ACEOF
26631 rm -f conftest.$ac_objext conftest$ac_exeext
26632 if { (ac_try="$ac_link"
26633 case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26636 esac
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638 (eval "$ac_link") 2>conftest.er1
26639 ac_status=$?
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } && {
26645 test -z "$ac_c_werror_flag" ||
26646 test ! -s conftest.err
26647 } && test -s conftest$ac_exeext &&
26648 $as_test_x conftest$ac_exeext; then
26649 eval "$as_ac_Lib=yes"
26650 else
26651 echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26654 eval "$as_ac_Lib=no"
26657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26658 conftest$ac_exeext conftest.$ac_ext
26659 LIBS=$ac_check_lib_save_LIBS
26661 ac_res=`eval echo '${'$as_ac_Lib'}'`
26662 { echo "$as_me:$LINENO: result: $ac_res" >&5
26663 echo "${ECHO_T}$ac_res" >&6; }
26664 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26665 AST_TAN_FOUND=yes
26666 else
26667 AST_TAN_FOUND=no
26672 # now check for the header.
26673 if test "${AST_TAN_FOUND}" = "yes"; then
26674 TAN_LIB="${pbxlibdir} -lm "
26675 # if --with-TAN=DIR has been specified, use it.
26676 if test "x${TAN_DIR}" != "x"; then
26677 TAN_INCLUDE="-I${TAN_DIR}/include"
26679 TAN_INCLUDE="${TAN_INCLUDE} "
26680 if test "x" = "x" ; then # no header, assume found
26681 TAN_HEADER_FOUND="1"
26682 else # check for the header
26683 saved_cppflags="${CPPFLAGS}"
26684 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26685 if test "${ac_cv_header_+set}" = set; then
26686 { echo "$as_me:$LINENO: checking for " >&5
26687 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26688 if test "${ac_cv_header_+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26691 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26692 echo "${ECHO_T}$ac_cv_header_" >&6; }
26693 else
26694 # Is the header compilable?
26695 { echo "$as_me:$LINENO: checking usability" >&5
26696 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26697 cat >conftest.$ac_ext <<_ACEOF
26698 /* confdefs.h. */
26699 _ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h. */
26703 $ac_includes_default
26704 #include <>
26705 _ACEOF
26706 rm -f conftest.$ac_objext
26707 if { (ac_try="$ac_compile"
26708 case "(($ac_try" in
26709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26710 *) ac_try_echo=$ac_try;;
26711 esac
26712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26713 (eval "$ac_compile") 2>conftest.er1
26714 ac_status=$?
26715 grep -v '^ *+' conftest.er1 >conftest.err
26716 rm -f conftest.er1
26717 cat conftest.err >&5
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); } && {
26720 test -z "$ac_c_werror_flag" ||
26721 test ! -s conftest.err
26722 } && test -s conftest.$ac_objext; then
26723 ac_header_compiler=yes
26724 else
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26728 ac_header_compiler=no
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26733 echo "${ECHO_T}$ac_header_compiler" >&6; }
26735 # Is the header present?
26736 { echo "$as_me:$LINENO: checking presence" >&5
26737 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26738 cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h. */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 #include <>
26745 _ACEOF
26746 if { (ac_try="$ac_cpp conftest.$ac_ext"
26747 case "(($ac_try" in
26748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26749 *) ac_try_echo=$ac_try;;
26750 esac
26751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26753 ac_status=$?
26754 grep -v '^ *+' conftest.er1 >conftest.err
26755 rm -f conftest.er1
26756 cat conftest.err >&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); } >/dev/null && {
26759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26760 test ! -s conftest.err
26761 }; then
26762 ac_header_preproc=yes
26763 else
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26767 ac_header_preproc=no
26770 rm -f conftest.err conftest.$ac_ext
26771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26772 echo "${ECHO_T}$ac_header_preproc" >&6; }
26774 # So? What about this header?
26775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26776 yes:no: )
26777 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26778 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26779 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26780 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26781 ac_header_preproc=yes
26783 no:yes:* )
26784 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26785 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26786 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26787 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26788 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26789 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26790 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26791 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26792 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26793 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26794 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26795 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26796 ( cat <<\_ASBOX
26797 ## ------------------------------- ##
26798 ## Report this to www.asterisk.org ##
26799 ## ------------------------------- ##
26800 _ASBOX
26801 ) | sed "s/^/$as_me: WARNING: /" >&2
26803 esac
26804 { echo "$as_me:$LINENO: checking for " >&5
26805 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26806 if test "${ac_cv_header_+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809 ac_cv_header_=$ac_header_preproc
26811 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26812 echo "${ECHO_T}$ac_cv_header_" >&6; }
26815 if test $ac_cv_header_ = yes; then
26816 TAN_HEADER_FOUND=1
26817 else
26818 TAN_HEADER_FOUND=0
26822 CPPFLAGS="${saved_cppflags}"
26824 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26825 TAN_LIB=""
26826 TAN_INCLUDE=""
26827 else
26828 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26829 TAN_LIB=""
26831 PBX_TAN=1
26832 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26834 cat >>confdefs.h <<_ACEOF
26835 #define HAVE_TAN 1
26836 _ACEOF
26839 cat >>confdefs.h <<_ACEOF
26840 #define HAVE_TAN_VERSION
26841 _ACEOF
26848 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26849 pbxlibdir=""
26850 # if --with-ASIN=DIR has been specified, use it.
26851 if test "x${ASIN_DIR}" != "x"; then
26852 if test -d ${ASIN_DIR}/lib; then
26853 pbxlibdir="-L${ASIN_DIR}/lib"
26854 else
26855 pbxlibdir="-L${ASIN_DIR}"
26858 pbxfuncname="asin"
26859 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26860 AST_ASIN_FOUND=yes
26861 else
26862 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26863 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26864 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26865 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868 ac_check_lib_save_LIBS=$LIBS
26869 LIBS="-lm ${pbxlibdir} $LIBS"
26870 cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h. */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26877 /* Override any GCC internal prototype to avoid an error.
26878 Use char because int might match the return type of a GCC
26879 builtin and then its argument prototype would still apply. */
26880 #ifdef __cplusplus
26881 extern "C"
26882 #endif
26883 char ${pbxfuncname} ();
26885 main ()
26887 return ${pbxfuncname} ();
26889 return 0;
26891 _ACEOF
26892 rm -f conftest.$ac_objext conftest$ac_exeext
26893 if { (ac_try="$ac_link"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897 esac
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_link") 2>conftest.er1
26900 ac_status=$?
26901 grep -v '^ *+' conftest.er1 >conftest.err
26902 rm -f conftest.er1
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } && {
26906 test -z "$ac_c_werror_flag" ||
26907 test ! -s conftest.err
26908 } && test -s conftest$ac_exeext &&
26909 $as_test_x conftest$ac_exeext; then
26910 eval "$as_ac_Lib=yes"
26911 else
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26915 eval "$as_ac_Lib=no"
26918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26919 conftest$ac_exeext conftest.$ac_ext
26920 LIBS=$ac_check_lib_save_LIBS
26922 ac_res=`eval echo '${'$as_ac_Lib'}'`
26923 { echo "$as_me:$LINENO: result: $ac_res" >&5
26924 echo "${ECHO_T}$ac_res" >&6; }
26925 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26926 AST_ASIN_FOUND=yes
26927 else
26928 AST_ASIN_FOUND=no
26933 # now check for the header.
26934 if test "${AST_ASIN_FOUND}" = "yes"; then
26935 ASIN_LIB="${pbxlibdir} -lm "
26936 # if --with-ASIN=DIR has been specified, use it.
26937 if test "x${ASIN_DIR}" != "x"; then
26938 ASIN_INCLUDE="-I${ASIN_DIR}/include"
26940 ASIN_INCLUDE="${ASIN_INCLUDE} "
26941 if test "x" = "x" ; then # no header, assume found
26942 ASIN_HEADER_FOUND="1"
26943 else # check for the header
26944 saved_cppflags="${CPPFLAGS}"
26945 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
26946 if test "${ac_cv_header_+set}" = set; then
26947 { echo "$as_me:$LINENO: checking for " >&5
26948 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26949 if test "${ac_cv_header_+set}" = set; then
26950 echo $ECHO_N "(cached) $ECHO_C" >&6
26952 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26953 echo "${ECHO_T}$ac_cv_header_" >&6; }
26954 else
26955 # Is the header compilable?
26956 { echo "$as_me:$LINENO: checking usability" >&5
26957 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26958 cat >conftest.$ac_ext <<_ACEOF
26959 /* confdefs.h. */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 $ac_includes_default
26965 #include <>
26966 _ACEOF
26967 rm -f conftest.$ac_objext
26968 if { (ac_try="$ac_compile"
26969 case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_compile") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } && {
26981 test -z "$ac_c_werror_flag" ||
26982 test ! -s conftest.err
26983 } && test -s conftest.$ac_objext; then
26984 ac_header_compiler=yes
26985 else
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 ac_header_compiler=no
26992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26994 echo "${ECHO_T}$ac_header_compiler" >&6; }
26996 # Is the header present?
26997 { echo "$as_me:$LINENO: checking presence" >&5
26998 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26999 cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h. */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27005 #include <>
27006 _ACEOF
27007 if { (ac_try="$ac_cpp conftest.$ac_ext"
27008 case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } >/dev/null && {
27020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27021 test ! -s conftest.err
27022 }; then
27023 ac_header_preproc=yes
27024 else
27025 echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27028 ac_header_preproc=no
27031 rm -f conftest.err conftest.$ac_ext
27032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27033 echo "${ECHO_T}$ac_header_preproc" >&6; }
27035 # So? What about this header?
27036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27037 yes:no: )
27038 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27039 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27040 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27041 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27042 ac_header_preproc=yes
27044 no:yes:* )
27045 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27046 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27047 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27048 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27049 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27050 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27051 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27052 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27053 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27054 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27055 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27056 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27057 ( cat <<\_ASBOX
27058 ## ------------------------------- ##
27059 ## Report this to www.asterisk.org ##
27060 ## ------------------------------- ##
27061 _ASBOX
27062 ) | sed "s/^/$as_me: WARNING: /" >&2
27064 esac
27065 { echo "$as_me:$LINENO: checking for " >&5
27066 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27067 if test "${ac_cv_header_+set}" = set; then
27068 echo $ECHO_N "(cached) $ECHO_C" >&6
27069 else
27070 ac_cv_header_=$ac_header_preproc
27072 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27073 echo "${ECHO_T}$ac_cv_header_" >&6; }
27076 if test $ac_cv_header_ = yes; then
27077 ASIN_HEADER_FOUND=1
27078 else
27079 ASIN_HEADER_FOUND=0
27083 CPPFLAGS="${saved_cppflags}"
27085 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27086 ASIN_LIB=""
27087 ASIN_INCLUDE=""
27088 else
27089 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27090 ASIN_LIB=""
27092 PBX_ASIN=1
27093 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27095 cat >>confdefs.h <<_ACEOF
27096 #define HAVE_ASIN 1
27097 _ACEOF
27100 cat >>confdefs.h <<_ACEOF
27101 #define HAVE_ASIN_VERSION
27102 _ACEOF
27109 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27110 pbxlibdir=""
27111 # if --with-ACOS=DIR has been specified, use it.
27112 if test "x${ACOS_DIR}" != "x"; then
27113 if test -d ${ACOS_DIR}/lib; then
27114 pbxlibdir="-L${ACOS_DIR}/lib"
27115 else
27116 pbxlibdir="-L${ACOS_DIR}"
27119 pbxfuncname="acos"
27120 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27121 AST_ACOS_FOUND=yes
27122 else
27123 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27124 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27125 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27126 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27127 echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129 ac_check_lib_save_LIBS=$LIBS
27130 LIBS="-lm ${pbxlibdir} $LIBS"
27131 cat >conftest.$ac_ext <<_ACEOF
27132 /* confdefs.h. */
27133 _ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h. */
27138 /* Override any GCC internal prototype to avoid an error.
27139 Use char because int might match the return type of a GCC
27140 builtin and then its argument prototype would still apply. */
27141 #ifdef __cplusplus
27142 extern "C"
27143 #endif
27144 char ${pbxfuncname} ();
27146 main ()
27148 return ${pbxfuncname} ();
27150 return 0;
27152 _ACEOF
27153 rm -f conftest.$ac_objext conftest$ac_exeext
27154 if { (ac_try="$ac_link"
27155 case "(($ac_try" in
27156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157 *) ac_try_echo=$ac_try;;
27158 esac
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_link") 2>conftest.er1
27161 ac_status=$?
27162 grep -v '^ *+' conftest.er1 >conftest.err
27163 rm -f conftest.er1
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } && {
27167 test -z "$ac_c_werror_flag" ||
27168 test ! -s conftest.err
27169 } && test -s conftest$ac_exeext &&
27170 $as_test_x conftest$ac_exeext; then
27171 eval "$as_ac_Lib=yes"
27172 else
27173 echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27176 eval "$as_ac_Lib=no"
27179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27180 conftest$ac_exeext conftest.$ac_ext
27181 LIBS=$ac_check_lib_save_LIBS
27183 ac_res=`eval echo '${'$as_ac_Lib'}'`
27184 { echo "$as_me:$LINENO: result: $ac_res" >&5
27185 echo "${ECHO_T}$ac_res" >&6; }
27186 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27187 AST_ACOS_FOUND=yes
27188 else
27189 AST_ACOS_FOUND=no
27194 # now check for the header.
27195 if test "${AST_ACOS_FOUND}" = "yes"; then
27196 ACOS_LIB="${pbxlibdir} -lm "
27197 # if --with-ACOS=DIR has been specified, use it.
27198 if test "x${ACOS_DIR}" != "x"; then
27199 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27201 ACOS_INCLUDE="${ACOS_INCLUDE} "
27202 if test "x" = "x" ; then # no header, assume found
27203 ACOS_HEADER_FOUND="1"
27204 else # check for the header
27205 saved_cppflags="${CPPFLAGS}"
27206 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
27207 if test "${ac_cv_header_+set}" = set; then
27208 { echo "$as_me:$LINENO: checking for " >&5
27209 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27210 if test "${ac_cv_header_+set}" = set; then
27211 echo $ECHO_N "(cached) $ECHO_C" >&6
27213 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27214 echo "${ECHO_T}$ac_cv_header_" >&6; }
27215 else
27216 # Is the header compilable?
27217 { echo "$as_me:$LINENO: checking usability" >&5
27218 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27219 cat >conftest.$ac_ext <<_ACEOF
27220 /* confdefs.h. */
27221 _ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h. */
27225 $ac_includes_default
27226 #include <>
27227 _ACEOF
27228 rm -f conftest.$ac_objext
27229 if { (ac_try="$ac_compile"
27230 case "(($ac_try" in
27231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232 *) ac_try_echo=$ac_try;;
27233 esac
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235 (eval "$ac_compile") 2>conftest.er1
27236 ac_status=$?
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && {
27242 test -z "$ac_c_werror_flag" ||
27243 test ! -s conftest.err
27244 } && test -s conftest.$ac_objext; then
27245 ac_header_compiler=yes
27246 else
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 ac_header_compiler=no
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27255 echo "${ECHO_T}$ac_header_compiler" >&6; }
27257 # Is the header present?
27258 { echo "$as_me:$LINENO: checking presence" >&5
27259 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h. */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 #include <>
27267 _ACEOF
27268 if { (ac_try="$ac_cpp conftest.$ac_ext"
27269 case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27272 esac
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27275 ac_status=$?
27276 grep -v '^ *+' conftest.er1 >conftest.err
27277 rm -f conftest.er1
27278 cat conftest.err >&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); } >/dev/null && {
27281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27282 test ! -s conftest.err
27283 }; then
27284 ac_header_preproc=yes
27285 else
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27289 ac_header_preproc=no
27292 rm -f conftest.err conftest.$ac_ext
27293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27294 echo "${ECHO_T}$ac_header_preproc" >&6; }
27296 # So? What about this header?
27297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27298 yes:no: )
27299 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27300 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27301 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27302 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27303 ac_header_preproc=yes
27305 no:yes:* )
27306 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27307 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27309 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27311 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27313 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27314 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27315 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27316 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27317 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27318 ( cat <<\_ASBOX
27319 ## ------------------------------- ##
27320 ## Report this to www.asterisk.org ##
27321 ## ------------------------------- ##
27322 _ASBOX
27323 ) | sed "s/^/$as_me: WARNING: /" >&2
27325 esac
27326 { echo "$as_me:$LINENO: checking for " >&5
27327 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27328 if test "${ac_cv_header_+set}" = set; then
27329 echo $ECHO_N "(cached) $ECHO_C" >&6
27330 else
27331 ac_cv_header_=$ac_header_preproc
27333 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27334 echo "${ECHO_T}$ac_cv_header_" >&6; }
27337 if test $ac_cv_header_ = yes; then
27338 ACOS_HEADER_FOUND=1
27339 else
27340 ACOS_HEADER_FOUND=0
27344 CPPFLAGS="${saved_cppflags}"
27346 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27347 ACOS_LIB=""
27348 ACOS_INCLUDE=""
27349 else
27350 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27351 ACOS_LIB=""
27353 PBX_ACOS=1
27354 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27356 cat >>confdefs.h <<_ACEOF
27357 #define HAVE_ACOS 1
27358 _ACEOF
27361 cat >>confdefs.h <<_ACEOF
27362 #define HAVE_ACOS_VERSION
27363 _ACEOF
27370 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27371 pbxlibdir=""
27372 # if --with-ATAN=DIR has been specified, use it.
27373 if test "x${ATAN_DIR}" != "x"; then
27374 if test -d ${ATAN_DIR}/lib; then
27375 pbxlibdir="-L${ATAN_DIR}/lib"
27376 else
27377 pbxlibdir="-L${ATAN_DIR}"
27380 pbxfuncname="atan"
27381 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27382 AST_ATAN_FOUND=yes
27383 else
27384 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27385 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27386 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27387 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390 ac_check_lib_save_LIBS=$LIBS
27391 LIBS="-lm ${pbxlibdir} $LIBS"
27392 cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h. */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27399 /* Override any GCC internal prototype to avoid an error.
27400 Use char because int might match the return type of a GCC
27401 builtin and then its argument prototype would still apply. */
27402 #ifdef __cplusplus
27403 extern "C"
27404 #endif
27405 char ${pbxfuncname} ();
27407 main ()
27409 return ${pbxfuncname} ();
27411 return 0;
27413 _ACEOF
27414 rm -f conftest.$ac_objext conftest$ac_exeext
27415 if { (ac_try="$ac_link"
27416 case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_link") 2>conftest.er1
27422 ac_status=$?
27423 grep -v '^ *+' conftest.er1 >conftest.err
27424 rm -f conftest.er1
27425 cat conftest.err >&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } && {
27428 test -z "$ac_c_werror_flag" ||
27429 test ! -s conftest.err
27430 } && test -s conftest$ac_exeext &&
27431 $as_test_x conftest$ac_exeext; then
27432 eval "$as_ac_Lib=yes"
27433 else
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27437 eval "$as_ac_Lib=no"
27440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27441 conftest$ac_exeext conftest.$ac_ext
27442 LIBS=$ac_check_lib_save_LIBS
27444 ac_res=`eval echo '${'$as_ac_Lib'}'`
27445 { echo "$as_me:$LINENO: result: $ac_res" >&5
27446 echo "${ECHO_T}$ac_res" >&6; }
27447 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27448 AST_ATAN_FOUND=yes
27449 else
27450 AST_ATAN_FOUND=no
27455 # now check for the header.
27456 if test "${AST_ATAN_FOUND}" = "yes"; then
27457 ATAN_LIB="${pbxlibdir} -lm "
27458 # if --with-ATAN=DIR has been specified, use it.
27459 if test "x${ATAN_DIR}" != "x"; then
27460 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27462 ATAN_INCLUDE="${ATAN_INCLUDE} "
27463 if test "x" = "x" ; then # no header, assume found
27464 ATAN_HEADER_FOUND="1"
27465 else # check for the header
27466 saved_cppflags="${CPPFLAGS}"
27467 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27468 if test "${ac_cv_header_+set}" = set; then
27469 { echo "$as_me:$LINENO: checking for " >&5
27470 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27471 if test "${ac_cv_header_+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27475 echo "${ECHO_T}$ac_cv_header_" >&6; }
27476 else
27477 # Is the header compilable?
27478 { echo "$as_me:$LINENO: checking usability" >&5
27479 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h. */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 $ac_includes_default
27487 #include <>
27488 _ACEOF
27489 rm -f conftest.$ac_objext
27490 if { (ac_try="$ac_compile"
27491 case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_compile") 2>conftest.er1
27497 ac_status=$?
27498 grep -v '^ *+' conftest.er1 >conftest.err
27499 rm -f conftest.er1
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } && {
27503 test -z "$ac_c_werror_flag" ||
27504 test ! -s conftest.err
27505 } && test -s conftest.$ac_objext; then
27506 ac_header_compiler=yes
27507 else
27508 echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27511 ac_header_compiler=no
27514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27516 echo "${ECHO_T}$ac_header_compiler" >&6; }
27518 # Is the header present?
27519 { echo "$as_me:$LINENO: checking presence" >&5
27520 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27521 cat >conftest.$ac_ext <<_ACEOF
27522 /* confdefs.h. */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27527 #include <>
27528 _ACEOF
27529 if { (ac_try="$ac_cpp conftest.$ac_ext"
27530 case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533 esac
27534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } >/dev/null && {
27542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 }; then
27545 ac_header_preproc=yes
27546 else
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 ac_header_preproc=no
27553 rm -f conftest.err conftest.$ac_ext
27554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27555 echo "${ECHO_T}$ac_header_preproc" >&6; }
27557 # So? What about this header?
27558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27559 yes:no: )
27560 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27561 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27562 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27563 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27564 ac_header_preproc=yes
27566 no:yes:* )
27567 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27568 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27570 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27572 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27574 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27576 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27577 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27578 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27579 ( cat <<\_ASBOX
27580 ## ------------------------------- ##
27581 ## Report this to www.asterisk.org ##
27582 ## ------------------------------- ##
27583 _ASBOX
27584 ) | sed "s/^/$as_me: WARNING: /" >&2
27586 esac
27587 { echo "$as_me:$LINENO: checking for " >&5
27588 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27589 if test "${ac_cv_header_+set}" = set; then
27590 echo $ECHO_N "(cached) $ECHO_C" >&6
27591 else
27592 ac_cv_header_=$ac_header_preproc
27594 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27595 echo "${ECHO_T}$ac_cv_header_" >&6; }
27598 if test $ac_cv_header_ = yes; then
27599 ATAN_HEADER_FOUND=1
27600 else
27601 ATAN_HEADER_FOUND=0
27605 CPPFLAGS="${saved_cppflags}"
27607 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27608 ATAN_LIB=""
27609 ATAN_INCLUDE=""
27610 else
27611 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27612 ATAN_LIB=""
27614 PBX_ATAN=1
27615 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27617 cat >>confdefs.h <<_ACEOF
27618 #define HAVE_ATAN 1
27619 _ACEOF
27622 cat >>confdefs.h <<_ACEOF
27623 #define HAVE_ATAN_VERSION
27624 _ACEOF
27631 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27632 pbxlibdir=""
27633 # if --with-ATAN2=DIR has been specified, use it.
27634 if test "x${ATAN2_DIR}" != "x"; then
27635 if test -d ${ATAN2_DIR}/lib; then
27636 pbxlibdir="-L${ATAN2_DIR}/lib"
27637 else
27638 pbxlibdir="-L${ATAN2_DIR}"
27641 pbxfuncname="atan2"
27642 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27643 AST_ATAN2_FOUND=yes
27644 else
27645 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27646 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27647 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27648 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651 ac_check_lib_save_LIBS=$LIBS
27652 LIBS="-lm ${pbxlibdir} $LIBS"
27653 cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h. */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27660 /* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
27663 #ifdef __cplusplus
27664 extern "C"
27665 #endif
27666 char ${pbxfuncname} ();
27668 main ()
27670 return ${pbxfuncname} ();
27672 return 0;
27674 _ACEOF
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_link") 2>conftest.er1
27683 ac_status=$?
27684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } && {
27689 test -z "$ac_c_werror_flag" ||
27690 test ! -s conftest.err
27691 } && test -s conftest$ac_exeext &&
27692 $as_test_x conftest$ac_exeext; then
27693 eval "$as_ac_Lib=yes"
27694 else
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27698 eval "$as_ac_Lib=no"
27701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27702 conftest$ac_exeext conftest.$ac_ext
27703 LIBS=$ac_check_lib_save_LIBS
27705 ac_res=`eval echo '${'$as_ac_Lib'}'`
27706 { echo "$as_me:$LINENO: result: $ac_res" >&5
27707 echo "${ECHO_T}$ac_res" >&6; }
27708 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27709 AST_ATAN2_FOUND=yes
27710 else
27711 AST_ATAN2_FOUND=no
27716 # now check for the header.
27717 if test "${AST_ATAN2_FOUND}" = "yes"; then
27718 ATAN2_LIB="${pbxlibdir} -lm "
27719 # if --with-ATAN2=DIR has been specified, use it.
27720 if test "x${ATAN2_DIR}" != "x"; then
27721 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27723 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27724 if test "x" = "x" ; then # no header, assume found
27725 ATAN2_HEADER_FOUND="1"
27726 else # check for the header
27727 saved_cppflags="${CPPFLAGS}"
27728 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27729 if test "${ac_cv_header_+set}" = set; then
27730 { echo "$as_me:$LINENO: checking for " >&5
27731 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27732 if test "${ac_cv_header_+set}" = set; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27735 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27736 echo "${ECHO_T}$ac_cv_header_" >&6; }
27737 else
27738 # Is the header compilable?
27739 { echo "$as_me:$LINENO: checking usability" >&5
27740 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27741 cat >conftest.$ac_ext <<_ACEOF
27742 /* confdefs.h. */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 $ac_includes_default
27748 #include <>
27749 _ACEOF
27750 rm -f conftest.$ac_objext
27751 if { (ac_try="$ac_compile"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_compile") 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } && {
27764 test -z "$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 } && test -s conftest.$ac_objext; then
27767 ac_header_compiler=yes
27768 else
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27772 ac_header_compiler=no
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27777 echo "${ECHO_T}$ac_header_compiler" >&6; }
27779 # Is the header present?
27780 { echo "$as_me:$LINENO: checking presence" >&5
27781 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27782 cat >conftest.$ac_ext <<_ACEOF
27783 /* confdefs.h. */
27784 _ACEOF
27785 cat confdefs.h >>conftest.$ac_ext
27786 cat >>conftest.$ac_ext <<_ACEOF
27787 /* end confdefs.h. */
27788 #include <>
27789 _ACEOF
27790 if { (ac_try="$ac_cpp conftest.$ac_ext"
27791 case "(($ac_try" in
27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793 *) ac_try_echo=$ac_try;;
27794 esac
27795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27797 ac_status=$?
27798 grep -v '^ *+' conftest.er1 >conftest.err
27799 rm -f conftest.er1
27800 cat conftest.err >&5
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } >/dev/null && {
27803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27804 test ! -s conftest.err
27805 }; then
27806 ac_header_preproc=yes
27807 else
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 ac_header_preproc=no
27814 rm -f conftest.err conftest.$ac_ext
27815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27816 echo "${ECHO_T}$ac_header_preproc" >&6; }
27818 # So? What about this header?
27819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27820 yes:no: )
27821 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27822 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27823 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27824 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27825 ac_header_preproc=yes
27827 no:yes:* )
27828 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27829 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27830 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27831 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27832 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27833 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27834 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27835 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27836 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27837 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27838 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27839 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27840 ( cat <<\_ASBOX
27841 ## ------------------------------- ##
27842 ## Report this to www.asterisk.org ##
27843 ## ------------------------------- ##
27844 _ASBOX
27845 ) | sed "s/^/$as_me: WARNING: /" >&2
27847 esac
27848 { echo "$as_me:$LINENO: checking for " >&5
27849 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27850 if test "${ac_cv_header_+set}" = set; then
27851 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 else
27853 ac_cv_header_=$ac_header_preproc
27855 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27856 echo "${ECHO_T}$ac_cv_header_" >&6; }
27859 if test $ac_cv_header_ = yes; then
27860 ATAN2_HEADER_FOUND=1
27861 else
27862 ATAN2_HEADER_FOUND=0
27866 CPPFLAGS="${saved_cppflags}"
27868 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27869 ATAN2_LIB=""
27870 ATAN2_INCLUDE=""
27871 else
27872 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27873 ATAN2_LIB=""
27875 PBX_ATAN2=1
27876 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_ATAN2 1
27880 _ACEOF
27883 cat >>confdefs.h <<_ACEOF
27884 #define HAVE_ATAN2_VERSION
27885 _ACEOF
27892 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27893 pbxlibdir=""
27894 # if --with-POW=DIR has been specified, use it.
27895 if test "x${POW_DIR}" != "x"; then
27896 if test -d ${POW_DIR}/lib; then
27897 pbxlibdir="-L${POW_DIR}/lib"
27898 else
27899 pbxlibdir="-L${POW_DIR}"
27902 pbxfuncname="pow"
27903 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27904 AST_POW_FOUND=yes
27905 else
27906 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27907 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27908 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27909 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912 ac_check_lib_save_LIBS=$LIBS
27913 LIBS="-lm ${pbxlibdir} $LIBS"
27914 cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h. */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h. */
27921 /* Override any GCC internal prototype to avoid an error.
27922 Use char because int might match the return type of a GCC
27923 builtin and then its argument prototype would still apply. */
27924 #ifdef __cplusplus
27925 extern "C"
27926 #endif
27927 char ${pbxfuncname} ();
27929 main ()
27931 return ${pbxfuncname} ();
27933 return 0;
27935 _ACEOF
27936 rm -f conftest.$ac_objext conftest$ac_exeext
27937 if { (ac_try="$ac_link"
27938 case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_link") 2>conftest.er1
27944 ac_status=$?
27945 grep -v '^ *+' conftest.er1 >conftest.err
27946 rm -f conftest.er1
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } && {
27950 test -z "$ac_c_werror_flag" ||
27951 test ! -s conftest.err
27952 } && test -s conftest$ac_exeext &&
27953 $as_test_x conftest$ac_exeext; then
27954 eval "$as_ac_Lib=yes"
27955 else
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 eval "$as_ac_Lib=no"
27962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27963 conftest$ac_exeext conftest.$ac_ext
27964 LIBS=$ac_check_lib_save_LIBS
27966 ac_res=`eval echo '${'$as_ac_Lib'}'`
27967 { echo "$as_me:$LINENO: result: $ac_res" >&5
27968 echo "${ECHO_T}$ac_res" >&6; }
27969 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27970 AST_POW_FOUND=yes
27971 else
27972 AST_POW_FOUND=no
27977 # now check for the header.
27978 if test "${AST_POW_FOUND}" = "yes"; then
27979 POW_LIB="${pbxlibdir} -lm "
27980 # if --with-POW=DIR has been specified, use it.
27981 if test "x${POW_DIR}" != "x"; then
27982 POW_INCLUDE="-I${POW_DIR}/include"
27984 POW_INCLUDE="${POW_INCLUDE} "
27985 if test "x" = "x" ; then # no header, assume found
27986 POW_HEADER_FOUND="1"
27987 else # check for the header
27988 saved_cppflags="${CPPFLAGS}"
27989 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
27990 if test "${ac_cv_header_+set}" = set; then
27991 { echo "$as_me:$LINENO: checking for " >&5
27992 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27993 if test "${ac_cv_header_+set}" = set; then
27994 echo $ECHO_N "(cached) $ECHO_C" >&6
27996 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27997 echo "${ECHO_T}$ac_cv_header_" >&6; }
27998 else
27999 # Is the header compilable?
28000 { echo "$as_me:$LINENO: checking usability" >&5
28001 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28002 cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h. */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 $ac_includes_default
28009 #include <>
28010 _ACEOF
28011 rm -f conftest.$ac_objext
28012 if { (ac_try="$ac_compile"
28013 case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_compile") 2>conftest.er1
28019 ac_status=$?
28020 grep -v '^ *+' conftest.er1 >conftest.err
28021 rm -f conftest.er1
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } && {
28025 test -z "$ac_c_werror_flag" ||
28026 test ! -s conftest.err
28027 } && test -s conftest.$ac_objext; then
28028 ac_header_compiler=yes
28029 else
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ac_header_compiler=no
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28038 echo "${ECHO_T}$ac_header_compiler" >&6; }
28040 # Is the header present?
28041 { echo "$as_me:$LINENO: checking presence" >&5
28042 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h. */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049 #include <>
28050 _ACEOF
28051 if { (ac_try="$ac_cpp conftest.$ac_ext"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28058 ac_status=$?
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } >/dev/null && {
28064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28065 test ! -s conftest.err
28066 }; then
28067 ac_header_preproc=yes
28068 else
28069 echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28072 ac_header_preproc=no
28075 rm -f conftest.err conftest.$ac_ext
28076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28077 echo "${ECHO_T}$ac_header_preproc" >&6; }
28079 # So? What about this header?
28080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28081 yes:no: )
28082 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28083 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28084 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28085 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28086 ac_header_preproc=yes
28088 no:yes:* )
28089 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28090 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28091 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28092 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28093 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28094 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28095 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28096 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28097 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28098 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28099 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28100 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28101 ( cat <<\_ASBOX
28102 ## ------------------------------- ##
28103 ## Report this to www.asterisk.org ##
28104 ## ------------------------------- ##
28105 _ASBOX
28106 ) | sed "s/^/$as_me: WARNING: /" >&2
28108 esac
28109 { echo "$as_me:$LINENO: checking for " >&5
28110 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28111 if test "${ac_cv_header_+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28113 else
28114 ac_cv_header_=$ac_header_preproc
28116 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28117 echo "${ECHO_T}$ac_cv_header_" >&6; }
28120 if test $ac_cv_header_ = yes; then
28121 POW_HEADER_FOUND=1
28122 else
28123 POW_HEADER_FOUND=0
28127 CPPFLAGS="${saved_cppflags}"
28129 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28130 POW_LIB=""
28131 POW_INCLUDE=""
28132 else
28133 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28134 POW_LIB=""
28136 PBX_POW=1
28137 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28139 cat >>confdefs.h <<_ACEOF
28140 #define HAVE_POW 1
28141 _ACEOF
28144 cat >>confdefs.h <<_ACEOF
28145 #define HAVE_POW_VERSION
28146 _ACEOF
28153 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28154 pbxlibdir=""
28155 # if --with-SQRT=DIR has been specified, use it.
28156 if test "x${SQRT_DIR}" != "x"; then
28157 if test -d ${SQRT_DIR}/lib; then
28158 pbxlibdir="-L${SQRT_DIR}/lib"
28159 else
28160 pbxlibdir="-L${SQRT_DIR}"
28163 pbxfuncname="sqrt"
28164 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28165 AST_SQRT_FOUND=yes
28166 else
28167 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28168 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28169 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28170 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28172 else
28173 ac_check_lib_save_LIBS=$LIBS
28174 LIBS="-lm ${pbxlibdir} $LIBS"
28175 cat >conftest.$ac_ext <<_ACEOF
28176 /* confdefs.h. */
28177 _ACEOF
28178 cat confdefs.h >>conftest.$ac_ext
28179 cat >>conftest.$ac_ext <<_ACEOF
28180 /* end confdefs.h. */
28182 /* Override any GCC internal prototype to avoid an error.
28183 Use char because int might match the return type of a GCC
28184 builtin and then its argument prototype would still apply. */
28185 #ifdef __cplusplus
28186 extern "C"
28187 #endif
28188 char ${pbxfuncname} ();
28190 main ()
28192 return ${pbxfuncname} ();
28194 return 0;
28196 _ACEOF
28197 rm -f conftest.$ac_objext conftest$ac_exeext
28198 if { (ac_try="$ac_link"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_link") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } && {
28211 test -z "$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28213 } && test -s conftest$ac_exeext &&
28214 $as_test_x conftest$ac_exeext; then
28215 eval "$as_ac_Lib=yes"
28216 else
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 eval "$as_ac_Lib=no"
28223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28224 conftest$ac_exeext conftest.$ac_ext
28225 LIBS=$ac_check_lib_save_LIBS
28227 ac_res=`eval echo '${'$as_ac_Lib'}'`
28228 { echo "$as_me:$LINENO: result: $ac_res" >&5
28229 echo "${ECHO_T}$ac_res" >&6; }
28230 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28231 AST_SQRT_FOUND=yes
28232 else
28233 AST_SQRT_FOUND=no
28238 # now check for the header.
28239 if test "${AST_SQRT_FOUND}" = "yes"; then
28240 SQRT_LIB="${pbxlibdir} -lm "
28241 # if --with-SQRT=DIR has been specified, use it.
28242 if test "x${SQRT_DIR}" != "x"; then
28243 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28245 SQRT_INCLUDE="${SQRT_INCLUDE} "
28246 if test "x" = "x" ; then # no header, assume found
28247 SQRT_HEADER_FOUND="1"
28248 else # check for the header
28249 saved_cppflags="${CPPFLAGS}"
28250 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
28251 if test "${ac_cv_header_+set}" = set; then
28252 { echo "$as_me:$LINENO: checking for " >&5
28253 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28254 if test "${ac_cv_header_+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28257 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28258 echo "${ECHO_T}$ac_cv_header_" >&6; }
28259 else
28260 # Is the header compilable?
28261 { echo "$as_me:$LINENO: checking usability" >&5
28262 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28263 cat >conftest.$ac_ext <<_ACEOF
28264 /* confdefs.h. */
28265 _ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h. */
28269 $ac_includes_default
28270 #include <>
28271 _ACEOF
28272 rm -f conftest.$ac_objext
28273 if { (ac_try="$ac_compile"
28274 case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_compile") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } && {
28286 test -z "$ac_c_werror_flag" ||
28287 test ! -s conftest.err
28288 } && test -s conftest.$ac_objext; then
28289 ac_header_compiler=yes
28290 else
28291 echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28294 ac_header_compiler=no
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28299 echo "${ECHO_T}$ac_header_compiler" >&6; }
28301 # Is the header present?
28302 { echo "$as_me:$LINENO: checking presence" >&5
28303 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28304 cat >conftest.$ac_ext <<_ACEOF
28305 /* confdefs.h. */
28306 _ACEOF
28307 cat confdefs.h >>conftest.$ac_ext
28308 cat >>conftest.$ac_ext <<_ACEOF
28309 /* end confdefs.h. */
28310 #include <>
28311 _ACEOF
28312 if { (ac_try="$ac_cpp conftest.$ac_ext"
28313 case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28319 ac_status=$?
28320 grep -v '^ *+' conftest.er1 >conftest.err
28321 rm -f conftest.er1
28322 cat conftest.err >&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); } >/dev/null && {
28325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28326 test ! -s conftest.err
28327 }; then
28328 ac_header_preproc=yes
28329 else
28330 echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28333 ac_header_preproc=no
28336 rm -f conftest.err conftest.$ac_ext
28337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28338 echo "${ECHO_T}$ac_header_preproc" >&6; }
28340 # So? What about this header?
28341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28342 yes:no: )
28343 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28344 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28345 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28346 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28347 ac_header_preproc=yes
28349 no:yes:* )
28350 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28351 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28352 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28353 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28354 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28355 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28357 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28358 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28359 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28360 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28361 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28362 ( cat <<\_ASBOX
28363 ## ------------------------------- ##
28364 ## Report this to www.asterisk.org ##
28365 ## ------------------------------- ##
28366 _ASBOX
28367 ) | sed "s/^/$as_me: WARNING: /" >&2
28369 esac
28370 { echo "$as_me:$LINENO: checking for " >&5
28371 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28372 if test "${ac_cv_header_+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
28374 else
28375 ac_cv_header_=$ac_header_preproc
28377 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28378 echo "${ECHO_T}$ac_cv_header_" >&6; }
28381 if test $ac_cv_header_ = yes; then
28382 SQRT_HEADER_FOUND=1
28383 else
28384 SQRT_HEADER_FOUND=0
28388 CPPFLAGS="${saved_cppflags}"
28390 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28391 SQRT_LIB=""
28392 SQRT_INCLUDE=""
28393 else
28394 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28395 SQRT_LIB=""
28397 PBX_SQRT=1
28398 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28400 cat >>confdefs.h <<_ACEOF
28401 #define HAVE_SQRT 1
28402 _ACEOF
28405 cat >>confdefs.h <<_ACEOF
28406 #define HAVE_SQRT_VERSION
28407 _ACEOF
28414 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28415 pbxlibdir=""
28416 # if --with-RINT=DIR has been specified, use it.
28417 if test "x${RINT_DIR}" != "x"; then
28418 if test -d ${RINT_DIR}/lib; then
28419 pbxlibdir="-L${RINT_DIR}/lib"
28420 else
28421 pbxlibdir="-L${RINT_DIR}"
28424 pbxfuncname="rint"
28425 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28426 AST_RINT_FOUND=yes
28427 else
28428 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28429 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28430 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28431 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434 ac_check_lib_save_LIBS=$LIBS
28435 LIBS="-lm ${pbxlibdir} $LIBS"
28436 cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h. */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28443 /* Override any GCC internal prototype to avoid an error.
28444 Use char because int might match the return type of a GCC
28445 builtin and then its argument prototype would still apply. */
28446 #ifdef __cplusplus
28447 extern "C"
28448 #endif
28449 char ${pbxfuncname} ();
28451 main ()
28453 return ${pbxfuncname} ();
28455 return 0;
28457 _ACEOF
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (ac_try="$ac_link"
28460 case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28463 esac
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_link") 2>conftest.er1
28466 ac_status=$?
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } && {
28472 test -z "$ac_c_werror_flag" ||
28473 test ! -s conftest.err
28474 } && test -s conftest$ac_exeext &&
28475 $as_test_x conftest$ac_exeext; then
28476 eval "$as_ac_Lib=yes"
28477 else
28478 echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28481 eval "$as_ac_Lib=no"
28484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28485 conftest$ac_exeext conftest.$ac_ext
28486 LIBS=$ac_check_lib_save_LIBS
28488 ac_res=`eval echo '${'$as_ac_Lib'}'`
28489 { echo "$as_me:$LINENO: result: $ac_res" >&5
28490 echo "${ECHO_T}$ac_res" >&6; }
28491 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28492 AST_RINT_FOUND=yes
28493 else
28494 AST_RINT_FOUND=no
28499 # now check for the header.
28500 if test "${AST_RINT_FOUND}" = "yes"; then
28501 RINT_LIB="${pbxlibdir} -lm "
28502 # if --with-RINT=DIR has been specified, use it.
28503 if test "x${RINT_DIR}" != "x"; then
28504 RINT_INCLUDE="-I${RINT_DIR}/include"
28506 RINT_INCLUDE="${RINT_INCLUDE} "
28507 if test "x" = "x" ; then # no header, assume found
28508 RINT_HEADER_FOUND="1"
28509 else # check for the header
28510 saved_cppflags="${CPPFLAGS}"
28511 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28512 if test "${ac_cv_header_+set}" = set; then
28513 { echo "$as_me:$LINENO: checking for " >&5
28514 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28515 if test "${ac_cv_header_+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28519 echo "${ECHO_T}$ac_cv_header_" >&6; }
28520 else
28521 # Is the header compilable?
28522 { echo "$as_me:$LINENO: checking usability" >&5
28523 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28524 cat >conftest.$ac_ext <<_ACEOF
28525 /* confdefs.h. */
28526 _ACEOF
28527 cat confdefs.h >>conftest.$ac_ext
28528 cat >>conftest.$ac_ext <<_ACEOF
28529 /* end confdefs.h. */
28530 $ac_includes_default
28531 #include <>
28532 _ACEOF
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_compile") 2>conftest.er1
28541 ac_status=$?
28542 grep -v '^ *+' conftest.er1 >conftest.err
28543 rm -f conftest.er1
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } && {
28547 test -z "$ac_c_werror_flag" ||
28548 test ! -s conftest.err
28549 } && test -s conftest.$ac_objext; then
28550 ac_header_compiler=yes
28551 else
28552 echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28555 ac_header_compiler=no
28558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28560 echo "${ECHO_T}$ac_header_compiler" >&6; }
28562 # Is the header present?
28563 { echo "$as_me:$LINENO: checking presence" >&5
28564 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28565 cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h. */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h. */
28571 #include <>
28572 _ACEOF
28573 if { (ac_try="$ac_cpp conftest.$ac_ext"
28574 case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577 esac
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28580 ac_status=$?
28581 grep -v '^ *+' conftest.er1 >conftest.err
28582 rm -f conftest.er1
28583 cat conftest.err >&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); } >/dev/null && {
28586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28587 test ! -s conftest.err
28588 }; then
28589 ac_header_preproc=yes
28590 else
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 ac_header_preproc=no
28597 rm -f conftest.err conftest.$ac_ext
28598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28599 echo "${ECHO_T}$ac_header_preproc" >&6; }
28601 # So? What about this header?
28602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28603 yes:no: )
28604 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28605 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28606 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28607 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28608 ac_header_preproc=yes
28610 no:yes:* )
28611 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28612 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28613 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28614 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28615 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28616 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28617 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28618 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28619 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28620 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28621 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28622 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28623 ( cat <<\_ASBOX
28624 ## ------------------------------- ##
28625 ## Report this to www.asterisk.org ##
28626 ## ------------------------------- ##
28627 _ASBOX
28628 ) | sed "s/^/$as_me: WARNING: /" >&2
28630 esac
28631 { echo "$as_me:$LINENO: checking for " >&5
28632 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28633 if test "${ac_cv_header_+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636 ac_cv_header_=$ac_header_preproc
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28639 echo "${ECHO_T}$ac_cv_header_" >&6; }
28642 if test $ac_cv_header_ = yes; then
28643 RINT_HEADER_FOUND=1
28644 else
28645 RINT_HEADER_FOUND=0
28649 CPPFLAGS="${saved_cppflags}"
28651 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28652 RINT_LIB=""
28653 RINT_INCLUDE=""
28654 else
28655 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28656 RINT_LIB=""
28658 PBX_RINT=1
28659 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28661 cat >>confdefs.h <<_ACEOF
28662 #define HAVE_RINT 1
28663 _ACEOF
28666 cat >>confdefs.h <<_ACEOF
28667 #define HAVE_RINT_VERSION
28668 _ACEOF
28675 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28676 pbxlibdir=""
28677 # if --with-EXP=DIR has been specified, use it.
28678 if test "x${EXP_DIR}" != "x"; then
28679 if test -d ${EXP_DIR}/lib; then
28680 pbxlibdir="-L${EXP_DIR}/lib"
28681 else
28682 pbxlibdir="-L${EXP_DIR}"
28685 pbxfuncname="exp"
28686 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28687 AST_EXP_FOUND=yes
28688 else
28689 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28690 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28691 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28692 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28693 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 else
28695 ac_check_lib_save_LIBS=$LIBS
28696 LIBS="-lm ${pbxlibdir} $LIBS"
28697 cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h. */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28704 /* Override any GCC internal prototype to avoid an error.
28705 Use char because int might match the return type of a GCC
28706 builtin and then its argument prototype would still apply. */
28707 #ifdef __cplusplus
28708 extern "C"
28709 #endif
28710 char ${pbxfuncname} ();
28712 main ()
28714 return ${pbxfuncname} ();
28716 return 0;
28718 _ACEOF
28719 rm -f conftest.$ac_objext conftest$ac_exeext
28720 if { (ac_try="$ac_link"
28721 case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28724 esac
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726 (eval "$ac_link") 2>conftest.er1
28727 ac_status=$?
28728 grep -v '^ *+' conftest.er1 >conftest.err
28729 rm -f conftest.er1
28730 cat conftest.err >&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); } && {
28733 test -z "$ac_c_werror_flag" ||
28734 test ! -s conftest.err
28735 } && test -s conftest$ac_exeext &&
28736 $as_test_x conftest$ac_exeext; then
28737 eval "$as_ac_Lib=yes"
28738 else
28739 echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28742 eval "$as_ac_Lib=no"
28745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28746 conftest$ac_exeext conftest.$ac_ext
28747 LIBS=$ac_check_lib_save_LIBS
28749 ac_res=`eval echo '${'$as_ac_Lib'}'`
28750 { echo "$as_me:$LINENO: result: $ac_res" >&5
28751 echo "${ECHO_T}$ac_res" >&6; }
28752 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28753 AST_EXP_FOUND=yes
28754 else
28755 AST_EXP_FOUND=no
28760 # now check for the header.
28761 if test "${AST_EXP_FOUND}" = "yes"; then
28762 EXP_LIB="${pbxlibdir} -lm "
28763 # if --with-EXP=DIR has been specified, use it.
28764 if test "x${EXP_DIR}" != "x"; then
28765 EXP_INCLUDE="-I${EXP_DIR}/include"
28767 EXP_INCLUDE="${EXP_INCLUDE} "
28768 if test "x" = "x" ; then # no header, assume found
28769 EXP_HEADER_FOUND="1"
28770 else # check for the header
28771 saved_cppflags="${CPPFLAGS}"
28772 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28773 if test "${ac_cv_header_+set}" = set; then
28774 { echo "$as_me:$LINENO: checking for " >&5
28775 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28776 if test "${ac_cv_header_+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28780 echo "${ECHO_T}$ac_cv_header_" >&6; }
28781 else
28782 # Is the header compilable?
28783 { echo "$as_me:$LINENO: checking usability" >&5
28784 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28785 cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h. */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28791 $ac_includes_default
28792 #include <>
28793 _ACEOF
28794 rm -f conftest.$ac_objext
28795 if { (ac_try="$ac_compile"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_compile") 2>conftest.er1
28802 ac_status=$?
28803 grep -v '^ *+' conftest.er1 >conftest.err
28804 rm -f conftest.er1
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } && {
28808 test -z "$ac_c_werror_flag" ||
28809 test ! -s conftest.err
28810 } && test -s conftest.$ac_objext; then
28811 ac_header_compiler=yes
28812 else
28813 echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28816 ac_header_compiler=no
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28821 echo "${ECHO_T}$ac_header_compiler" >&6; }
28823 # Is the header present?
28824 { echo "$as_me:$LINENO: checking presence" >&5
28825 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28826 cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h. */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28832 #include <>
28833 _ACEOF
28834 if { (ac_try="$ac_cpp conftest.$ac_ext"
28835 case "(($ac_try" in
28836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837 *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28841 ac_status=$?
28842 grep -v '^ *+' conftest.er1 >conftest.err
28843 rm -f conftest.er1
28844 cat conftest.err >&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); } >/dev/null && {
28847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28848 test ! -s conftest.err
28849 }; then
28850 ac_header_preproc=yes
28851 else
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28855 ac_header_preproc=no
28858 rm -f conftest.err conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860 echo "${ECHO_T}$ac_header_preproc" >&6; }
28862 # So? What about this header?
28863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864 yes:no: )
28865 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28866 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28868 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28869 ac_header_preproc=yes
28871 no:yes:* )
28872 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28873 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28875 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28877 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28879 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28881 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28883 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28884 ( cat <<\_ASBOX
28885 ## ------------------------------- ##
28886 ## Report this to www.asterisk.org ##
28887 ## ------------------------------- ##
28888 _ASBOX
28889 ) | sed "s/^/$as_me: WARNING: /" >&2
28891 esac
28892 { echo "$as_me:$LINENO: checking for " >&5
28893 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28894 if test "${ac_cv_header_+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28896 else
28897 ac_cv_header_=$ac_header_preproc
28899 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28900 echo "${ECHO_T}$ac_cv_header_" >&6; }
28903 if test $ac_cv_header_ = yes; then
28904 EXP_HEADER_FOUND=1
28905 else
28906 EXP_HEADER_FOUND=0
28910 CPPFLAGS="${saved_cppflags}"
28912 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
28913 EXP_LIB=""
28914 EXP_INCLUDE=""
28915 else
28916 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28917 EXP_LIB=""
28919 PBX_EXP=1
28920 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28922 cat >>confdefs.h <<_ACEOF
28923 #define HAVE_EXP 1
28924 _ACEOF
28927 cat >>confdefs.h <<_ACEOF
28928 #define HAVE_EXP_VERSION
28929 _ACEOF
28936 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
28937 pbxlibdir=""
28938 # if --with-LOG=DIR has been specified, use it.
28939 if test "x${LOG_DIR}" != "x"; then
28940 if test -d ${LOG_DIR}/lib; then
28941 pbxlibdir="-L${LOG_DIR}/lib"
28942 else
28943 pbxlibdir="-L${LOG_DIR}"
28946 pbxfuncname="log"
28947 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28948 AST_LOG_FOUND=yes
28949 else
28950 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28951 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28952 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28953 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956 ac_check_lib_save_LIBS=$LIBS
28957 LIBS="-lm ${pbxlibdir} $LIBS"
28958 cat >conftest.$ac_ext <<_ACEOF
28959 /* confdefs.h. */
28960 _ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28965 /* Override any GCC internal prototype to avoid an error.
28966 Use char because int might match the return type of a GCC
28967 builtin and then its argument prototype would still apply. */
28968 #ifdef __cplusplus
28969 extern "C"
28970 #endif
28971 char ${pbxfuncname} ();
28973 main ()
28975 return ${pbxfuncname} ();
28977 return 0;
28979 _ACEOF
28980 rm -f conftest.$ac_objext conftest$ac_exeext
28981 if { (ac_try="$ac_link"
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_link") 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_exeext &&
28997 $as_test_x conftest$ac_exeext; then
28998 eval "$as_ac_Lib=yes"
28999 else
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 eval "$as_ac_Lib=no"
29006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29007 conftest$ac_exeext conftest.$ac_ext
29008 LIBS=$ac_check_lib_save_LIBS
29010 ac_res=`eval echo '${'$as_ac_Lib'}'`
29011 { echo "$as_me:$LINENO: result: $ac_res" >&5
29012 echo "${ECHO_T}$ac_res" >&6; }
29013 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29014 AST_LOG_FOUND=yes
29015 else
29016 AST_LOG_FOUND=no
29021 # now check for the header.
29022 if test "${AST_LOG_FOUND}" = "yes"; then
29023 LOG_LIB="${pbxlibdir} -lm "
29024 # if --with-LOG=DIR has been specified, use it.
29025 if test "x${LOG_DIR}" != "x"; then
29026 LOG_INCLUDE="-I${LOG_DIR}/include"
29028 LOG_INCLUDE="${LOG_INCLUDE} "
29029 if test "x" = "x" ; then # no header, assume found
29030 LOG_HEADER_FOUND="1"
29031 else # check for the header
29032 saved_cppflags="${CPPFLAGS}"
29033 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
29034 if test "${ac_cv_header_+set}" = set; then
29035 { echo "$as_me:$LINENO: checking for " >&5
29036 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29037 if test "${ac_cv_header_+set}" = set; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29040 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29041 echo "${ECHO_T}$ac_cv_header_" >&6; }
29042 else
29043 # Is the header compilable?
29044 { echo "$as_me:$LINENO: checking usability" >&5
29045 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29046 cat >conftest.$ac_ext <<_ACEOF
29047 /* confdefs.h. */
29048 _ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h. */
29052 $ac_includes_default
29053 #include <>
29054 _ACEOF
29055 rm -f conftest.$ac_objext
29056 if { (ac_try="$ac_compile"
29057 case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29060 esac
29061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_compile") 2>conftest.er1
29063 ac_status=$?
29064 grep -v '^ *+' conftest.er1 >conftest.err
29065 rm -f conftest.er1
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); } && {
29069 test -z "$ac_c_werror_flag" ||
29070 test ! -s conftest.err
29071 } && test -s conftest.$ac_objext; then
29072 ac_header_compiler=yes
29073 else
29074 echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29077 ac_header_compiler=no
29080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29082 echo "${ECHO_T}$ac_header_compiler" >&6; }
29084 # Is the header present?
29085 { echo "$as_me:$LINENO: checking presence" >&5
29086 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29087 cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h. */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29093 #include <>
29094 _ACEOF
29095 if { (ac_try="$ac_cpp conftest.$ac_ext"
29096 case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29102 ac_status=$?
29103 grep -v '^ *+' conftest.er1 >conftest.err
29104 rm -f conftest.er1
29105 cat conftest.err >&5
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } >/dev/null && {
29108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29109 test ! -s conftest.err
29110 }; then
29111 ac_header_preproc=yes
29112 else
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 ac_header_preproc=no
29119 rm -f conftest.err conftest.$ac_ext
29120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29121 echo "${ECHO_T}$ac_header_preproc" >&6; }
29123 # So? What about this header?
29124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29125 yes:no: )
29126 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29127 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29128 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29129 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29130 ac_header_preproc=yes
29132 no:yes:* )
29133 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29134 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29135 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29136 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29138 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29140 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29142 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29144 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29145 ( cat <<\_ASBOX
29146 ## ------------------------------- ##
29147 ## Report this to www.asterisk.org ##
29148 ## ------------------------------- ##
29149 _ASBOX
29150 ) | sed "s/^/$as_me: WARNING: /" >&2
29152 esac
29153 { echo "$as_me:$LINENO: checking for " >&5
29154 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29155 if test "${ac_cv_header_+set}" = set; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 else
29158 ac_cv_header_=$ac_header_preproc
29160 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29161 echo "${ECHO_T}$ac_cv_header_" >&6; }
29164 if test $ac_cv_header_ = yes; then
29165 LOG_HEADER_FOUND=1
29166 else
29167 LOG_HEADER_FOUND=0
29171 CPPFLAGS="${saved_cppflags}"
29173 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29174 LOG_LIB=""
29175 LOG_INCLUDE=""
29176 else
29177 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29178 LOG_LIB=""
29180 PBX_LOG=1
29181 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29183 cat >>confdefs.h <<_ACEOF
29184 #define HAVE_LOG 1
29185 _ACEOF
29188 cat >>confdefs.h <<_ACEOF
29189 #define HAVE_LOG_VERSION
29190 _ACEOF
29197 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29198 pbxlibdir=""
29199 # if --with-REMAINDER=DIR has been specified, use it.
29200 if test "x${REMAINDER_DIR}" != "x"; then
29201 if test -d ${REMAINDER_DIR}/lib; then
29202 pbxlibdir="-L${REMAINDER_DIR}/lib"
29203 else
29204 pbxlibdir="-L${REMAINDER_DIR}"
29207 pbxfuncname="remainder"
29208 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29209 AST_REMAINDER_FOUND=yes
29210 else
29211 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29212 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29213 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29214 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29215 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217 ac_check_lib_save_LIBS=$LIBS
29218 LIBS="-lm ${pbxlibdir} $LIBS"
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h. */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29226 /* Override any GCC internal prototype to avoid an error.
29227 Use char because int might match the return type of a GCC
29228 builtin and then its argument prototype would still apply. */
29229 #ifdef __cplusplus
29230 extern "C"
29231 #endif
29232 char ${pbxfuncname} ();
29234 main ()
29236 return ${pbxfuncname} ();
29238 return 0;
29240 _ACEOF
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (ac_try="$ac_link"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_link") 2>conftest.er1
29249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } && {
29255 test -z "$ac_c_werror_flag" ||
29256 test ! -s conftest.err
29257 } && test -s conftest$ac_exeext &&
29258 $as_test_x conftest$ac_exeext; then
29259 eval "$as_ac_Lib=yes"
29260 else
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 eval "$as_ac_Lib=no"
29267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29268 conftest$ac_exeext conftest.$ac_ext
29269 LIBS=$ac_check_lib_save_LIBS
29271 ac_res=`eval echo '${'$as_ac_Lib'}'`
29272 { echo "$as_me:$LINENO: result: $ac_res" >&5
29273 echo "${ECHO_T}$ac_res" >&6; }
29274 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29275 AST_REMAINDER_FOUND=yes
29276 else
29277 AST_REMAINDER_FOUND=no
29282 # now check for the header.
29283 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29284 REMAINDER_LIB="${pbxlibdir} -lm "
29285 # if --with-REMAINDER=DIR has been specified, use it.
29286 if test "x${REMAINDER_DIR}" != "x"; then
29287 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29289 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29290 if test "x" = "x" ; then # no header, assume found
29291 REMAINDER_HEADER_FOUND="1"
29292 else # check for the header
29293 saved_cppflags="${CPPFLAGS}"
29294 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
29295 if test "${ac_cv_header_+set}" = set; then
29296 { echo "$as_me:$LINENO: checking for " >&5
29297 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29298 if test "${ac_cv_header_+set}" = set; then
29299 echo $ECHO_N "(cached) $ECHO_C" >&6
29301 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29302 echo "${ECHO_T}$ac_cv_header_" >&6; }
29303 else
29304 # Is the header compilable?
29305 { echo "$as_me:$LINENO: checking usability" >&5
29306 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29307 cat >conftest.$ac_ext <<_ACEOF
29308 /* confdefs.h. */
29309 _ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h. */
29313 $ac_includes_default
29314 #include <>
29315 _ACEOF
29316 rm -f conftest.$ac_objext
29317 if { (ac_try="$ac_compile"
29318 case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29321 esac
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_compile") 2>conftest.er1
29324 ac_status=$?
29325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } && {
29330 test -z "$ac_c_werror_flag" ||
29331 test ! -s conftest.err
29332 } && test -s conftest.$ac_objext; then
29333 ac_header_compiler=yes
29334 else
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_header_compiler=no
29341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29343 echo "${ECHO_T}$ac_header_compiler" >&6; }
29345 # Is the header present?
29346 { echo "$as_me:$LINENO: checking presence" >&5
29347 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29348 cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h. */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29354 #include <>
29355 _ACEOF
29356 if { (ac_try="$ac_cpp conftest.$ac_ext"
29357 case "(($ac_try" in
29358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359 *) ac_try_echo=$ac_try;;
29360 esac
29361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29363 ac_status=$?
29364 grep -v '^ *+' conftest.er1 >conftest.err
29365 rm -f conftest.er1
29366 cat conftest.err >&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); } >/dev/null && {
29369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29370 test ! -s conftest.err
29371 }; then
29372 ac_header_preproc=yes
29373 else
29374 echo "$as_me: failed program was:" >&5
29375 sed 's/^/| /' conftest.$ac_ext >&5
29377 ac_header_preproc=no
29380 rm -f conftest.err conftest.$ac_ext
29381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29382 echo "${ECHO_T}$ac_header_preproc" >&6; }
29384 # So? What about this header?
29385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29386 yes:no: )
29387 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29388 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29390 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29391 ac_header_preproc=yes
29393 no:yes:* )
29394 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29395 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29396 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29397 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29398 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29399 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29400 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29401 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29402 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29403 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29404 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29405 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29406 ( cat <<\_ASBOX
29407 ## ------------------------------- ##
29408 ## Report this to www.asterisk.org ##
29409 ## ------------------------------- ##
29410 _ASBOX
29411 ) | sed "s/^/$as_me: WARNING: /" >&2
29413 esac
29414 { echo "$as_me:$LINENO: checking for " >&5
29415 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29416 if test "${ac_cv_header_+set}" = set; then
29417 echo $ECHO_N "(cached) $ECHO_C" >&6
29418 else
29419 ac_cv_header_=$ac_header_preproc
29421 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29422 echo "${ECHO_T}$ac_cv_header_" >&6; }
29425 if test $ac_cv_header_ = yes; then
29426 REMAINDER_HEADER_FOUND=1
29427 else
29428 REMAINDER_HEADER_FOUND=0
29432 CPPFLAGS="${saved_cppflags}"
29434 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29435 REMAINDER_LIB=""
29436 REMAINDER_INCLUDE=""
29437 else
29438 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29439 REMAINDER_LIB=""
29441 PBX_REMAINDER=1
29442 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29444 cat >>confdefs.h <<_ACEOF
29445 #define HAVE_REMAINDER 1
29446 _ACEOF
29449 cat >>confdefs.h <<_ACEOF
29450 #define HAVE_REMAINDER_VERSION
29451 _ACEOF
29458 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29459 pbxlibdir=""
29460 # if --with-FMOD=DIR has been specified, use it.
29461 if test "x${FMOD_DIR}" != "x"; then
29462 if test -d ${FMOD_DIR}/lib; then
29463 pbxlibdir="-L${FMOD_DIR}/lib"
29464 else
29465 pbxlibdir="-L${FMOD_DIR}"
29468 pbxfuncname="fmod"
29469 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29470 AST_FMOD_FOUND=yes
29471 else
29472 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29473 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29474 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29475 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29476 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 else
29478 ac_check_lib_save_LIBS=$LIBS
29479 LIBS="-lm ${pbxlibdir} $LIBS"
29480 cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h. */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29487 /* Override any GCC internal prototype to avoid an error.
29488 Use char because int might match the return type of a GCC
29489 builtin and then its argument prototype would still apply. */
29490 #ifdef __cplusplus
29491 extern "C"
29492 #endif
29493 char ${pbxfuncname} ();
29495 main ()
29497 return ${pbxfuncname} ();
29499 return 0;
29501 _ACEOF
29502 rm -f conftest.$ac_objext conftest$ac_exeext
29503 if { (ac_try="$ac_link"
29504 case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_link") 2>conftest.er1
29510 ac_status=$?
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } && {
29516 test -z "$ac_c_werror_flag" ||
29517 test ! -s conftest.err
29518 } && test -s conftest$ac_exeext &&
29519 $as_test_x conftest$ac_exeext; then
29520 eval "$as_ac_Lib=yes"
29521 else
29522 echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29525 eval "$as_ac_Lib=no"
29528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29529 conftest$ac_exeext conftest.$ac_ext
29530 LIBS=$ac_check_lib_save_LIBS
29532 ac_res=`eval echo '${'$as_ac_Lib'}'`
29533 { echo "$as_me:$LINENO: result: $ac_res" >&5
29534 echo "${ECHO_T}$ac_res" >&6; }
29535 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29536 AST_FMOD_FOUND=yes
29537 else
29538 AST_FMOD_FOUND=no
29543 # now check for the header.
29544 if test "${AST_FMOD_FOUND}" = "yes"; then
29545 FMOD_LIB="${pbxlibdir} -lm "
29546 # if --with-FMOD=DIR has been specified, use it.
29547 if test "x${FMOD_DIR}" != "x"; then
29548 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29550 FMOD_INCLUDE="${FMOD_INCLUDE} "
29551 if test "x" = "x" ; then # no header, assume found
29552 FMOD_HEADER_FOUND="1"
29553 else # check for the header
29554 saved_cppflags="${CPPFLAGS}"
29555 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29556 if test "${ac_cv_header_+set}" = set; then
29557 { echo "$as_me:$LINENO: checking for " >&5
29558 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29559 if test "${ac_cv_header_+set}" = set; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29562 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29563 echo "${ECHO_T}$ac_cv_header_" >&6; }
29564 else
29565 # Is the header compilable?
29566 { echo "$as_me:$LINENO: checking usability" >&5
29567 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29568 cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h. */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29574 $ac_includes_default
29575 #include <>
29576 _ACEOF
29577 rm -f conftest.$ac_objext
29578 if { (ac_try="$ac_compile"
29579 case "(($ac_try" in
29580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29581 *) ac_try_echo=$ac_try;;
29582 esac
29583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29584 (eval "$ac_compile") 2>conftest.er1
29585 ac_status=$?
29586 grep -v '^ *+' conftest.er1 >conftest.err
29587 rm -f conftest.er1
29588 cat conftest.err >&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } && {
29591 test -z "$ac_c_werror_flag" ||
29592 test ! -s conftest.err
29593 } && test -s conftest.$ac_objext; then
29594 ac_header_compiler=yes
29595 else
29596 echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29599 ac_header_compiler=no
29602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29604 echo "${ECHO_T}$ac_header_compiler" >&6; }
29606 # Is the header present?
29607 { echo "$as_me:$LINENO: checking presence" >&5
29608 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29609 cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h. */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 #include <>
29616 _ACEOF
29617 if { (ac_try="$ac_cpp conftest.$ac_ext"
29618 case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29624 ac_status=$?
29625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } >/dev/null && {
29630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29631 test ! -s conftest.err
29632 }; then
29633 ac_header_preproc=yes
29634 else
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_header_preproc=no
29641 rm -f conftest.err conftest.$ac_ext
29642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29643 echo "${ECHO_T}$ac_header_preproc" >&6; }
29645 # So? What about this header?
29646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29647 yes:no: )
29648 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29649 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29650 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29651 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29652 ac_header_preproc=yes
29654 no:yes:* )
29655 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29656 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29657 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29658 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29659 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29660 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29661 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29662 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29663 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29664 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29665 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29666 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29667 ( cat <<\_ASBOX
29668 ## ------------------------------- ##
29669 ## Report this to www.asterisk.org ##
29670 ## ------------------------------- ##
29671 _ASBOX
29672 ) | sed "s/^/$as_me: WARNING: /" >&2
29674 esac
29675 { echo "$as_me:$LINENO: checking for " >&5
29676 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29677 if test "${ac_cv_header_+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29679 else
29680 ac_cv_header_=$ac_header_preproc
29682 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29683 echo "${ECHO_T}$ac_cv_header_" >&6; }
29686 if test $ac_cv_header_ = yes; then
29687 FMOD_HEADER_FOUND=1
29688 else
29689 FMOD_HEADER_FOUND=0
29693 CPPFLAGS="${saved_cppflags}"
29695 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29696 FMOD_LIB=""
29697 FMOD_INCLUDE=""
29698 else
29699 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29700 FMOD_LIB=""
29702 PBX_FMOD=1
29703 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29705 cat >>confdefs.h <<_ACEOF
29706 #define HAVE_FMOD 1
29707 _ACEOF
29710 cat >>confdefs.h <<_ACEOF
29711 #define HAVE_FMOD_VERSION
29712 _ACEOF
29719 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29720 pbxlibdir=""
29721 # if --with-ROUND=DIR has been specified, use it.
29722 if test "x${ROUND_DIR}" != "x"; then
29723 if test -d ${ROUND_DIR}/lib; then
29724 pbxlibdir="-L${ROUND_DIR}/lib"
29725 else
29726 pbxlibdir="-L${ROUND_DIR}"
29729 pbxfuncname="round"
29730 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29731 AST_ROUND_FOUND=yes
29732 else
29733 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29734 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29735 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29736 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738 else
29739 ac_check_lib_save_LIBS=$LIBS
29740 LIBS="-lm ${pbxlibdir} $LIBS"
29741 cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h. */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29748 /* Override any GCC internal prototype to avoid an error.
29749 Use char because int might match the return type of a GCC
29750 builtin and then its argument prototype would still apply. */
29751 #ifdef __cplusplus
29752 extern "C"
29753 #endif
29754 char ${pbxfuncname} ();
29756 main ()
29758 return ${pbxfuncname} ();
29760 return 0;
29762 _ACEOF
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (ac_try="$ac_link"
29765 case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29768 esac
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_link") 2>conftest.er1
29771 ac_status=$?
29772 grep -v '^ *+' conftest.er1 >conftest.err
29773 rm -f conftest.er1
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } && {
29777 test -z "$ac_c_werror_flag" ||
29778 test ! -s conftest.err
29779 } && test -s conftest$ac_exeext &&
29780 $as_test_x conftest$ac_exeext; then
29781 eval "$as_ac_Lib=yes"
29782 else
29783 echo "$as_me: failed program was:" >&5
29784 sed 's/^/| /' conftest.$ac_ext >&5
29786 eval "$as_ac_Lib=no"
29789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29790 conftest$ac_exeext conftest.$ac_ext
29791 LIBS=$ac_check_lib_save_LIBS
29793 ac_res=`eval echo '${'$as_ac_Lib'}'`
29794 { echo "$as_me:$LINENO: result: $ac_res" >&5
29795 echo "${ECHO_T}$ac_res" >&6; }
29796 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29797 AST_ROUND_FOUND=yes
29798 else
29799 AST_ROUND_FOUND=no
29804 # now check for the header.
29805 if test "${AST_ROUND_FOUND}" = "yes"; then
29806 ROUND_LIB="${pbxlibdir} -lm "
29807 # if --with-ROUND=DIR has been specified, use it.
29808 if test "x${ROUND_DIR}" != "x"; then
29809 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29811 ROUND_INCLUDE="${ROUND_INCLUDE} "
29812 if test "x" = "x" ; then # no header, assume found
29813 ROUND_HEADER_FOUND="1"
29814 else # check for the header
29815 saved_cppflags="${CPPFLAGS}"
29816 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29817 if test "${ac_cv_header_+set}" = set; then
29818 { echo "$as_me:$LINENO: checking for " >&5
29819 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29820 if test "${ac_cv_header_+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29823 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29824 echo "${ECHO_T}$ac_cv_header_" >&6; }
29825 else
29826 # Is the header compilable?
29827 { echo "$as_me:$LINENO: checking usability" >&5
29828 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29829 cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h. */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29835 $ac_includes_default
29836 #include <>
29837 _ACEOF
29838 rm -f conftest.$ac_objext
29839 if { (ac_try="$ac_compile"
29840 case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29843 esac
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845 (eval "$ac_compile") 2>conftest.er1
29846 ac_status=$?
29847 grep -v '^ *+' conftest.er1 >conftest.err
29848 rm -f conftest.er1
29849 cat conftest.err >&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } && {
29852 test -z "$ac_c_werror_flag" ||
29853 test ! -s conftest.err
29854 } && test -s conftest.$ac_objext; then
29855 ac_header_compiler=yes
29856 else
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29860 ac_header_compiler=no
29863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29865 echo "${ECHO_T}$ac_header_compiler" >&6; }
29867 # Is the header present?
29868 { echo "$as_me:$LINENO: checking presence" >&5
29869 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29870 cat >conftest.$ac_ext <<_ACEOF
29871 /* confdefs.h. */
29872 _ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h. */
29876 #include <>
29877 _ACEOF
29878 if { (ac_try="$ac_cpp conftest.$ac_ext"
29879 case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29882 esac
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29885 ac_status=$?
29886 grep -v '^ *+' conftest.er1 >conftest.err
29887 rm -f conftest.er1
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } >/dev/null && {
29891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29892 test ! -s conftest.err
29893 }; then
29894 ac_header_preproc=yes
29895 else
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ac_header_preproc=no
29902 rm -f conftest.err conftest.$ac_ext
29903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904 echo "${ECHO_T}$ac_header_preproc" >&6; }
29906 # So? What about this header?
29907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29908 yes:no: )
29909 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29910 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29912 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29913 ac_header_preproc=yes
29915 no:yes:* )
29916 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29917 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29919 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29921 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29923 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29925 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29927 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29928 ( cat <<\_ASBOX
29929 ## ------------------------------- ##
29930 ## Report this to www.asterisk.org ##
29931 ## ------------------------------- ##
29932 _ASBOX
29933 ) | sed "s/^/$as_me: WARNING: /" >&2
29935 esac
29936 { echo "$as_me:$LINENO: checking for " >&5
29937 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29938 if test "${ac_cv_header_+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941 ac_cv_header_=$ac_header_preproc
29943 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29944 echo "${ECHO_T}$ac_cv_header_" >&6; }
29947 if test $ac_cv_header_ = yes; then
29948 ROUND_HEADER_FOUND=1
29949 else
29950 ROUND_HEADER_FOUND=0
29954 CPPFLAGS="${saved_cppflags}"
29956 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
29957 ROUND_LIB=""
29958 ROUND_INCLUDE=""
29959 else
29960 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29961 ROUND_LIB=""
29963 PBX_ROUND=1
29964 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29966 cat >>confdefs.h <<_ACEOF
29967 #define HAVE_ROUND 1
29968 _ACEOF
29971 cat >>confdefs.h <<_ACEOF
29972 #define HAVE_ROUND_VERSION
29973 _ACEOF
29980 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
29981 pbxlibdir=""
29982 # if --with-TRUNC=DIR has been specified, use it.
29983 if test "x${TRUNC_DIR}" != "x"; then
29984 if test -d ${TRUNC_DIR}/lib; then
29985 pbxlibdir="-L${TRUNC_DIR}/lib"
29986 else
29987 pbxlibdir="-L${TRUNC_DIR}"
29990 pbxfuncname="trunc"
29991 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29992 AST_TRUNC_FOUND=yes
29993 else
29994 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29995 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29996 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29997 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000 ac_check_lib_save_LIBS=$LIBS
30001 LIBS="-lm ${pbxlibdir} $LIBS"
30002 cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h. */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30009 /* Override any GCC internal prototype to avoid an error.
30010 Use char because int might match the return type of a GCC
30011 builtin and then its argument prototype would still apply. */
30012 #ifdef __cplusplus
30013 extern "C"
30014 #endif
30015 char ${pbxfuncname} ();
30017 main ()
30019 return ${pbxfuncname} ();
30021 return 0;
30023 _ACEOF
30024 rm -f conftest.$ac_objext conftest$ac_exeext
30025 if { (ac_try="$ac_link"
30026 case "(($ac_try" in
30027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028 *) ac_try_echo=$ac_try;;
30029 esac
30030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30031 (eval "$ac_link") 2>conftest.er1
30032 ac_status=$?
30033 grep -v '^ *+' conftest.er1 >conftest.err
30034 rm -f conftest.er1
30035 cat conftest.err >&5
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); } && {
30038 test -z "$ac_c_werror_flag" ||
30039 test ! -s conftest.err
30040 } && test -s conftest$ac_exeext &&
30041 $as_test_x conftest$ac_exeext; then
30042 eval "$as_ac_Lib=yes"
30043 else
30044 echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30047 eval "$as_ac_Lib=no"
30050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30051 conftest$ac_exeext conftest.$ac_ext
30052 LIBS=$ac_check_lib_save_LIBS
30054 ac_res=`eval echo '${'$as_ac_Lib'}'`
30055 { echo "$as_me:$LINENO: result: $ac_res" >&5
30056 echo "${ECHO_T}$ac_res" >&6; }
30057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30058 AST_TRUNC_FOUND=yes
30059 else
30060 AST_TRUNC_FOUND=no
30065 # now check for the header.
30066 if test "${AST_TRUNC_FOUND}" = "yes"; then
30067 TRUNC_LIB="${pbxlibdir} -lm "
30068 # if --with-TRUNC=DIR has been specified, use it.
30069 if test "x${TRUNC_DIR}" != "x"; then
30070 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30072 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30073 if test "x" = "x" ; then # no header, assume found
30074 TRUNC_HEADER_FOUND="1"
30075 else # check for the header
30076 saved_cppflags="${CPPFLAGS}"
30077 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
30078 if test "${ac_cv_header_+set}" = set; then
30079 { echo "$as_me:$LINENO: checking for " >&5
30080 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30081 if test "${ac_cv_header_+set}" = set; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30084 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30085 echo "${ECHO_T}$ac_cv_header_" >&6; }
30086 else
30087 # Is the header compilable?
30088 { echo "$as_me:$LINENO: checking usability" >&5
30089 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30090 cat >conftest.$ac_ext <<_ACEOF
30091 /* confdefs.h. */
30092 _ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30096 $ac_includes_default
30097 #include <>
30098 _ACEOF
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
30107 ac_status=$?
30108 grep -v '^ *+' conftest.er1 >conftest.err
30109 rm -f conftest.er1
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } && {
30113 test -z "$ac_c_werror_flag" ||
30114 test ! -s conftest.err
30115 } && test -s conftest.$ac_objext; then
30116 ac_header_compiler=yes
30117 else
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30121 ac_header_compiler=no
30124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30126 echo "${ECHO_T}$ac_header_compiler" >&6; }
30128 # Is the header present?
30129 { echo "$as_me:$LINENO: checking presence" >&5
30130 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30131 cat >conftest.$ac_ext <<_ACEOF
30132 /* confdefs.h. */
30133 _ACEOF
30134 cat confdefs.h >>conftest.$ac_ext
30135 cat >>conftest.$ac_ext <<_ACEOF
30136 /* end confdefs.h. */
30137 #include <>
30138 _ACEOF
30139 if { (ac_try="$ac_cpp conftest.$ac_ext"
30140 case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30143 esac
30144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30146 ac_status=$?
30147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } >/dev/null && {
30152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30153 test ! -s conftest.err
30154 }; then
30155 ac_header_preproc=yes
30156 else
30157 echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 ac_header_preproc=no
30163 rm -f conftest.err conftest.$ac_ext
30164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30165 echo "${ECHO_T}$ac_header_preproc" >&6; }
30167 # So? What about this header?
30168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30169 yes:no: )
30170 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30171 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30172 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30173 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30174 ac_header_preproc=yes
30176 no:yes:* )
30177 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30178 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30179 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30180 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30181 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30182 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30183 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30184 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30186 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30187 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30188 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30189 ( cat <<\_ASBOX
30190 ## ------------------------------- ##
30191 ## Report this to www.asterisk.org ##
30192 ## ------------------------------- ##
30193 _ASBOX
30194 ) | sed "s/^/$as_me: WARNING: /" >&2
30196 esac
30197 { echo "$as_me:$LINENO: checking for " >&5
30198 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30199 if test "${ac_cv_header_+set}" = set; then
30200 echo $ECHO_N "(cached) $ECHO_C" >&6
30201 else
30202 ac_cv_header_=$ac_header_preproc
30204 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30205 echo "${ECHO_T}$ac_cv_header_" >&6; }
30208 if test $ac_cv_header_ = yes; then
30209 TRUNC_HEADER_FOUND=1
30210 else
30211 TRUNC_HEADER_FOUND=0
30215 CPPFLAGS="${saved_cppflags}"
30217 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30218 TRUNC_LIB=""
30219 TRUNC_INCLUDE=""
30220 else
30221 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30222 TRUNC_LIB=""
30224 PBX_TRUNC=1
30225 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30227 cat >>confdefs.h <<_ACEOF
30228 #define HAVE_TRUNC 1
30229 _ACEOF
30232 cat >>confdefs.h <<_ACEOF
30233 #define HAVE_TRUNC_VERSION
30234 _ACEOF
30241 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30242 pbxlibdir=""
30243 # if --with-STRTOD=DIR has been specified, use it.
30244 if test "x${STRTOD_DIR}" != "x"; then
30245 if test -d ${STRTOD_DIR}/lib; then
30246 pbxlibdir="-L${STRTOD_DIR}/lib"
30247 else
30248 pbxlibdir="-L${STRTOD_DIR}"
30251 pbxfuncname="strtod"
30252 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30253 AST_STRTOD_FOUND=yes
30254 else
30255 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30256 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30257 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30258 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30260 else
30261 ac_check_lib_save_LIBS=$LIBS
30262 LIBS="-lc ${pbxlibdir} $LIBS"
30263 cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h. */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30270 /* Override any GCC internal prototype to avoid an error.
30271 Use char because int might match the return type of a GCC
30272 builtin and then its argument prototype would still apply. */
30273 #ifdef __cplusplus
30274 extern "C"
30275 #endif
30276 char ${pbxfuncname} ();
30278 main ()
30280 return ${pbxfuncname} ();
30282 return 0;
30284 _ACEOF
30285 rm -f conftest.$ac_objext conftest$ac_exeext
30286 if { (ac_try="$ac_link"
30287 case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_link") 2>conftest.er1
30293 ac_status=$?
30294 grep -v '^ *+' conftest.er1 >conftest.err
30295 rm -f conftest.er1
30296 cat conftest.err >&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } && {
30299 test -z "$ac_c_werror_flag" ||
30300 test ! -s conftest.err
30301 } && test -s conftest$ac_exeext &&
30302 $as_test_x conftest$ac_exeext; then
30303 eval "$as_ac_Lib=yes"
30304 else
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 eval "$as_ac_Lib=no"
30311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30312 conftest$ac_exeext conftest.$ac_ext
30313 LIBS=$ac_check_lib_save_LIBS
30315 ac_res=`eval echo '${'$as_ac_Lib'}'`
30316 { echo "$as_me:$LINENO: result: $ac_res" >&5
30317 echo "${ECHO_T}$ac_res" >&6; }
30318 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30319 AST_STRTOD_FOUND=yes
30320 else
30321 AST_STRTOD_FOUND=no
30326 # now check for the header.
30327 if test "${AST_STRTOD_FOUND}" = "yes"; then
30328 STRTOD_LIB="${pbxlibdir} -lc "
30329 # if --with-STRTOD=DIR has been specified, use it.
30330 if test "x${STRTOD_DIR}" != "x"; then
30331 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30333 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30334 if test "xstdlib.h" = "x" ; then # no header, assume found
30335 STRTOD_HEADER_FOUND="1"
30336 else # check for the header
30337 saved_cppflags="${CPPFLAGS}"
30338 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
30339 if test "${ac_cv_header_stdlib_h+set}" = set; then
30340 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30341 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30342 if test "${ac_cv_header_stdlib_h+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30345 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30346 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30347 else
30348 # Is the header compilable?
30349 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30350 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30351 cat >conftest.$ac_ext <<_ACEOF
30352 /* confdefs.h. */
30353 _ACEOF
30354 cat confdefs.h >>conftest.$ac_ext
30355 cat >>conftest.$ac_ext <<_ACEOF
30356 /* end confdefs.h. */
30357 $ac_includes_default
30358 #include <stdlib.h>
30359 _ACEOF
30360 rm -f conftest.$ac_objext
30361 if { (ac_try="$ac_compile"
30362 case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_compile") 2>conftest.er1
30368 ac_status=$?
30369 grep -v '^ *+' conftest.er1 >conftest.err
30370 rm -f conftest.er1
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } && {
30374 test -z "$ac_c_werror_flag" ||
30375 test ! -s conftest.err
30376 } && test -s conftest.$ac_objext; then
30377 ac_header_compiler=yes
30378 else
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 ac_header_compiler=no
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30387 echo "${ECHO_T}$ac_header_compiler" >&6; }
30389 # Is the header present?
30390 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30391 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30392 cat >conftest.$ac_ext <<_ACEOF
30393 /* confdefs.h. */
30394 _ACEOF
30395 cat confdefs.h >>conftest.$ac_ext
30396 cat >>conftest.$ac_ext <<_ACEOF
30397 /* end confdefs.h. */
30398 #include <stdlib.h>
30399 _ACEOF
30400 if { (ac_try="$ac_cpp conftest.$ac_ext"
30401 case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30404 esac
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30407 ac_status=$?
30408 grep -v '^ *+' conftest.er1 >conftest.err
30409 rm -f conftest.er1
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } >/dev/null && {
30413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30414 test ! -s conftest.err
30415 }; then
30416 ac_header_preproc=yes
30417 else
30418 echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 ac_header_preproc=no
30424 rm -f conftest.err conftest.$ac_ext
30425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6; }
30428 # So? What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30430 yes:no: )
30431 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30435 ac_header_preproc=yes
30437 no:yes:* )
30438 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30440 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30450 ( cat <<\_ASBOX
30451 ## ------------------------------- ##
30452 ## Report this to www.asterisk.org ##
30453 ## ------------------------------- ##
30454 _ASBOX
30455 ) | sed "s/^/$as_me: WARNING: /" >&2
30457 esac
30458 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30459 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30460 if test "${ac_cv_header_stdlib_h+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463 ac_cv_header_stdlib_h=$ac_header_preproc
30465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30466 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30469 if test $ac_cv_header_stdlib_h = yes; then
30470 STRTOD_HEADER_FOUND=1
30471 else
30472 STRTOD_HEADER_FOUND=0
30476 CPPFLAGS="${saved_cppflags}"
30478 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30479 STRTOD_LIB=""
30480 STRTOD_INCLUDE=""
30481 else
30482 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30483 STRTOD_LIB=""
30485 PBX_STRTOD=1
30486 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30488 cat >>confdefs.h <<_ACEOF
30489 #define HAVE_STRTOD 1
30490 _ACEOF
30493 cat >>confdefs.h <<_ACEOF
30494 #define HAVE_STRTOD_VERSION
30495 _ACEOF
30502 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30503 pbxlibdir=""
30504 # if --with-FLOOR=DIR has been specified, use it.
30505 if test "x${FLOOR_DIR}" != "x"; then
30506 if test -d ${FLOOR_DIR}/lib; then
30507 pbxlibdir="-L${FLOOR_DIR}/lib"
30508 else
30509 pbxlibdir="-L${FLOOR_DIR}"
30512 pbxfuncname="floor"
30513 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30514 AST_FLOOR_FOUND=yes
30515 else
30516 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30517 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30518 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30519 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522 ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lm ${pbxlibdir} $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h. */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30531 /* Override any GCC internal prototype to avoid an error.
30532 Use char because int might match the return type of a GCC
30533 builtin and then its argument prototype would still apply. */
30534 #ifdef __cplusplus
30535 extern "C"
30536 #endif
30537 char ${pbxfuncname} ();
30539 main ()
30541 return ${pbxfuncname} ();
30543 return 0;
30545 _ACEOF
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (ac_try="$ac_link"
30548 case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_link") 2>conftest.er1
30554 ac_status=$?
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } && {
30560 test -z "$ac_c_werror_flag" ||
30561 test ! -s conftest.err
30562 } && test -s conftest$ac_exeext &&
30563 $as_test_x conftest$ac_exeext; then
30564 eval "$as_ac_Lib=yes"
30565 else
30566 echo "$as_me: failed program was:" >&5
30567 sed 's/^/| /' conftest.$ac_ext >&5
30569 eval "$as_ac_Lib=no"
30572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30573 conftest$ac_exeext conftest.$ac_ext
30574 LIBS=$ac_check_lib_save_LIBS
30576 ac_res=`eval echo '${'$as_ac_Lib'}'`
30577 { echo "$as_me:$LINENO: result: $ac_res" >&5
30578 echo "${ECHO_T}$ac_res" >&6; }
30579 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30580 AST_FLOOR_FOUND=yes
30581 else
30582 AST_FLOOR_FOUND=no
30587 # now check for the header.
30588 if test "${AST_FLOOR_FOUND}" = "yes"; then
30589 FLOOR_LIB="${pbxlibdir} -lm "
30590 # if --with-FLOOR=DIR has been specified, use it.
30591 if test "x${FLOOR_DIR}" != "x"; then
30592 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30594 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30595 if test "x" = "x" ; then # no header, assume found
30596 FLOOR_HEADER_FOUND="1"
30597 else # check for the header
30598 saved_cppflags="${CPPFLAGS}"
30599 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30600 if test "${ac_cv_header_+set}" = set; then
30601 { echo "$as_me:$LINENO: checking for " >&5
30602 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30603 if test "${ac_cv_header_+set}" = set; then
30604 echo $ECHO_N "(cached) $ECHO_C" >&6
30606 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30607 echo "${ECHO_T}$ac_cv_header_" >&6; }
30608 else
30609 # Is the header compilable?
30610 { echo "$as_me:$LINENO: checking usability" >&5
30611 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30612 cat >conftest.$ac_ext <<_ACEOF
30613 /* confdefs.h. */
30614 _ACEOF
30615 cat confdefs.h >>conftest.$ac_ext
30616 cat >>conftest.$ac_ext <<_ACEOF
30617 /* end confdefs.h. */
30618 $ac_includes_default
30619 #include <>
30620 _ACEOF
30621 rm -f conftest.$ac_objext
30622 if { (ac_try="$ac_compile"
30623 case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_compile") 2>conftest.er1
30629 ac_status=$?
30630 grep -v '^ *+' conftest.er1 >conftest.err
30631 rm -f conftest.er1
30632 cat conftest.err >&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); } && {
30635 test -z "$ac_c_werror_flag" ||
30636 test ! -s conftest.err
30637 } && test -s conftest.$ac_objext; then
30638 ac_header_compiler=yes
30639 else
30640 echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30643 ac_header_compiler=no
30646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30648 echo "${ECHO_T}$ac_header_compiler" >&6; }
30650 # Is the header present?
30651 { echo "$as_me:$LINENO: checking presence" >&5
30652 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30653 cat >conftest.$ac_ext <<_ACEOF
30654 /* confdefs.h. */
30655 _ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h. */
30659 #include <>
30660 _ACEOF
30661 if { (ac_try="$ac_cpp conftest.$ac_ext"
30662 case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30665 esac
30666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30668 ac_status=$?
30669 grep -v '^ *+' conftest.er1 >conftest.err
30670 rm -f conftest.er1
30671 cat conftest.err >&5
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } >/dev/null && {
30674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30675 test ! -s conftest.err
30676 }; then
30677 ac_header_preproc=yes
30678 else
30679 echo "$as_me: failed program was:" >&5
30680 sed 's/^/| /' conftest.$ac_ext >&5
30682 ac_header_preproc=no
30685 rm -f conftest.err conftest.$ac_ext
30686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30687 echo "${ECHO_T}$ac_header_preproc" >&6; }
30689 # So? What about this header?
30690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30691 yes:no: )
30692 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30693 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30695 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30696 ac_header_preproc=yes
30698 no:yes:* )
30699 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30700 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30702 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30704 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30706 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30707 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30708 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30709 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30710 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30711 ( cat <<\_ASBOX
30712 ## ------------------------------- ##
30713 ## Report this to www.asterisk.org ##
30714 ## ------------------------------- ##
30715 _ASBOX
30716 ) | sed "s/^/$as_me: WARNING: /" >&2
30718 esac
30719 { echo "$as_me:$LINENO: checking for " >&5
30720 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30721 if test "${ac_cv_header_+set}" = set; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724 ac_cv_header_=$ac_header_preproc
30726 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30727 echo "${ECHO_T}$ac_cv_header_" >&6; }
30730 if test $ac_cv_header_ = yes; then
30731 FLOOR_HEADER_FOUND=1
30732 else
30733 FLOOR_HEADER_FOUND=0
30737 CPPFLAGS="${saved_cppflags}"
30739 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30740 FLOOR_LIB=""
30741 FLOOR_INCLUDE=""
30742 else
30743 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30744 FLOOR_LIB=""
30746 PBX_FLOOR=1
30747 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30749 cat >>confdefs.h <<_ACEOF
30750 #define HAVE_FLOOR 1
30751 _ACEOF
30754 cat >>confdefs.h <<_ACEOF
30755 #define HAVE_FLOOR_VERSION
30756 _ACEOF
30763 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30764 pbxlibdir=""
30765 # if --with-CEIL=DIR has been specified, use it.
30766 if test "x${CEIL_DIR}" != "x"; then
30767 if test -d ${CEIL_DIR}/lib; then
30768 pbxlibdir="-L${CEIL_DIR}/lib"
30769 else
30770 pbxlibdir="-L${CEIL_DIR}"
30773 pbxfuncname="ceil"
30774 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30775 AST_CEIL_FOUND=yes
30776 else
30777 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30778 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30779 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30780 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 else
30783 ac_check_lib_save_LIBS=$LIBS
30784 LIBS="-lm ${pbxlibdir} $LIBS"
30785 cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h. */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30792 /* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply. */
30795 #ifdef __cplusplus
30796 extern "C"
30797 #endif
30798 char ${pbxfuncname} ();
30800 main ()
30802 return ${pbxfuncname} ();
30804 return 0;
30806 _ACEOF
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_link") 2>conftest.er1
30815 ac_status=$?
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } && {
30821 test -z "$ac_c_werror_flag" ||
30822 test ! -s conftest.err
30823 } && test -s conftest$ac_exeext &&
30824 $as_test_x conftest$ac_exeext; then
30825 eval "$as_ac_Lib=yes"
30826 else
30827 echo "$as_me: failed program was:" >&5
30828 sed 's/^/| /' conftest.$ac_ext >&5
30830 eval "$as_ac_Lib=no"
30833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30834 conftest$ac_exeext conftest.$ac_ext
30835 LIBS=$ac_check_lib_save_LIBS
30837 ac_res=`eval echo '${'$as_ac_Lib'}'`
30838 { echo "$as_me:$LINENO: result: $ac_res" >&5
30839 echo "${ECHO_T}$ac_res" >&6; }
30840 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30841 AST_CEIL_FOUND=yes
30842 else
30843 AST_CEIL_FOUND=no
30848 # now check for the header.
30849 if test "${AST_CEIL_FOUND}" = "yes"; then
30850 CEIL_LIB="${pbxlibdir} -lm "
30851 # if --with-CEIL=DIR has been specified, use it.
30852 if test "x${CEIL_DIR}" != "x"; then
30853 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30855 CEIL_INCLUDE="${CEIL_INCLUDE} "
30856 if test "x" = "x" ; then # no header, assume found
30857 CEIL_HEADER_FOUND="1"
30858 else # check for the header
30859 saved_cppflags="${CPPFLAGS}"
30860 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30861 if test "${ac_cv_header_+set}" = set; then
30862 { echo "$as_me:$LINENO: checking for " >&5
30863 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30864 if test "${ac_cv_header_+set}" = set; then
30865 echo $ECHO_N "(cached) $ECHO_C" >&6
30867 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30868 echo "${ECHO_T}$ac_cv_header_" >&6; }
30869 else
30870 # Is the header compilable?
30871 { echo "$as_me:$LINENO: checking usability" >&5
30872 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30873 cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h. */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h. */
30879 $ac_includes_default
30880 #include <>
30881 _ACEOF
30882 rm -f conftest.$ac_objext
30883 if { (ac_try="$ac_compile"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30887 esac
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_compile") 2>conftest.er1
30890 ac_status=$?
30891 grep -v '^ *+' conftest.er1 >conftest.err
30892 rm -f conftest.er1
30893 cat conftest.err >&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } && {
30896 test -z "$ac_c_werror_flag" ||
30897 test ! -s conftest.err
30898 } && test -s conftest.$ac_objext; then
30899 ac_header_compiler=yes
30900 else
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30904 ac_header_compiler=no
30907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30909 echo "${ECHO_T}$ac_header_compiler" >&6; }
30911 # Is the header present?
30912 { echo "$as_me:$LINENO: checking presence" >&5
30913 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30914 cat >conftest.$ac_ext <<_ACEOF
30915 /* confdefs.h. */
30916 _ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 #include <>
30921 _ACEOF
30922 if { (ac_try="$ac_cpp conftest.$ac_ext"
30923 case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30926 esac
30927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30929 ac_status=$?
30930 grep -v '^ *+' conftest.er1 >conftest.err
30931 rm -f conftest.er1
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } >/dev/null && {
30935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30936 test ! -s conftest.err
30937 }; then
30938 ac_header_preproc=yes
30939 else
30940 echo "$as_me: failed program was:" >&5
30941 sed 's/^/| /' conftest.$ac_ext >&5
30943 ac_header_preproc=no
30946 rm -f conftest.err conftest.$ac_ext
30947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30948 echo "${ECHO_T}$ac_header_preproc" >&6; }
30950 # So? What about this header?
30951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30952 yes:no: )
30953 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30954 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30955 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30956 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30957 ac_header_preproc=yes
30959 no:yes:* )
30960 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30961 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30962 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30963 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30965 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30967 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30969 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30971 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30972 ( cat <<\_ASBOX
30973 ## ------------------------------- ##
30974 ## Report this to www.asterisk.org ##
30975 ## ------------------------------- ##
30976 _ASBOX
30977 ) | sed "s/^/$as_me: WARNING: /" >&2
30979 esac
30980 { echo "$as_me:$LINENO: checking for " >&5
30981 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30982 if test "${ac_cv_header_+set}" = set; then
30983 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 else
30985 ac_cv_header_=$ac_header_preproc
30987 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30988 echo "${ECHO_T}$ac_cv_header_" >&6; }
30991 if test $ac_cv_header_ = yes; then
30992 CEIL_HEADER_FOUND=1
30993 else
30994 CEIL_HEADER_FOUND=0
30998 CPPFLAGS="${saved_cppflags}"
31000 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
31001 CEIL_LIB=""
31002 CEIL_INCLUDE=""
31003 else
31004 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31005 CEIL_LIB=""
31007 PBX_CEIL=1
31008 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31010 cat >>confdefs.h <<_ACEOF
31011 #define HAVE_CEIL 1
31012 _ACEOF
31015 cat >>confdefs.h <<_ACEOF
31016 #define HAVE_CEIL_VERSION
31017 _ACEOF
31025 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
31026 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
31027 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31028 saved_cppflags="${CPPFLAGS}"
31029 if test "x${GETIFADDRS_DIR}" != "x"; then
31030 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31032 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31034 cat >conftest.$ac_ext <<_ACEOF
31035 /* confdefs.h. */
31036 _ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h. */
31040 #include <ifaddrs.h>
31042 main ()
31044 struct ifaddrs *p; getifaddrs(&p);
31047 return 0;
31049 _ACEOF
31050 rm -f conftest.$ac_objext
31051 if { (ac_try="$ac_compile"
31052 case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31055 esac
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_compile") 2>conftest.er1
31058 ac_status=$?
31059 grep -v '^ *+' conftest.er1 >conftest.err
31060 rm -f conftest.er1
31061 cat conftest.err >&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } && {
31064 test -z "$ac_c_werror_flag" ||
31065 test ! -s conftest.err
31066 } && test -s conftest.$ac_objext; then
31067 { echo "$as_me:$LINENO: result: yes" >&5
31068 echo "${ECHO_T}yes" >&6; }
31069 PBX_GETIFADDRS=1
31071 cat >>confdefs.h <<\_ACEOF
31072 #define HAVE_GETIFADDRS 1
31073 _ACEOF
31076 cat >>confdefs.h <<\_ACEOF
31077 #define HAVE_GETIFADDRS_VERSION
31078 _ACEOF
31081 else
31082 echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31085 { echo "$as_me:$LINENO: result: no" >&5
31086 echo "${ECHO_T}no" >&6; }
31090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31091 CPPFLAGS="${saved_cppflags}"
31095 GSM_INTERNAL="yes"
31097 GSM_SYSTEM="yes"
31098 if test "${USE_GSM}" != "no"; then
31099 if test "${GSM_DIR}" = "internal"; then
31100 GSM_SYSTEM="no"
31101 elif test "${GSM_DIR}" != ""; then
31102 GSM_INTERNAL="no"
31104 if test "${GSM_SYSTEM}" = "yes"; then
31105 gsmlibdir=""
31106 if test "x${GSM_DIR}" != "x"; then
31107 if test -d ${GSM_DIR}/lib; then
31108 gsmlibdir="-L${GSM_DIR}/lib"
31109 else
31110 gsmlibdir="-L${GSM_DIR}"
31113 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31114 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31115 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31116 echo $ECHO_N "(cached) $ECHO_C" >&6
31117 else
31118 ac_check_lib_save_LIBS=$LIBS
31119 LIBS="-lgsm ${gsmlibdir} $LIBS"
31120 cat >conftest.$ac_ext <<_ACEOF
31121 /* confdefs.h. */
31122 _ACEOF
31123 cat confdefs.h >>conftest.$ac_ext
31124 cat >>conftest.$ac_ext <<_ACEOF
31125 /* end confdefs.h. */
31127 /* Override any GCC internal prototype to avoid an error.
31128 Use char because int might match the return type of a GCC
31129 builtin and then its argument prototype would still apply. */
31130 #ifdef __cplusplus
31131 extern "C"
31132 #endif
31133 char gsm_create ();
31135 main ()
31137 return gsm_create ();
31139 return 0;
31141 _ACEOF
31142 rm -f conftest.$ac_objext conftest$ac_exeext
31143 if { (ac_try="$ac_link"
31144 case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31147 esac
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_link") 2>conftest.er1
31150 ac_status=$?
31151 grep -v '^ *+' conftest.er1 >conftest.err
31152 rm -f conftest.er1
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); } && {
31156 test -z "$ac_c_werror_flag" ||
31157 test ! -s conftest.err
31158 } && test -s conftest$ac_exeext &&
31159 $as_test_x conftest$ac_exeext; then
31160 ac_cv_lib_gsm_gsm_create=yes
31161 else
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165 ac_cv_lib_gsm_gsm_create=no
31168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31169 conftest$ac_exeext conftest.$ac_ext
31170 LIBS=$ac_check_lib_save_LIBS
31172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31173 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31174 if test $ac_cv_lib_gsm_gsm_create = yes; then
31176 cat >>confdefs.h <<_ACEOF
31177 #define HAVE_GSM 1
31178 _ACEOF
31182 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31183 if test "x${GSM_DIR}" != "x" ; then
31184 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31186 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31187 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31191 ac_res=`eval echo '${'$as_ac_Header'}'`
31192 { echo "$as_me:$LINENO: result: $ac_res" >&5
31193 echo "${ECHO_T}$ac_res" >&6; }
31194 else
31195 # Is the header compilable?
31196 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31197 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31198 cat >conftest.$ac_ext <<_ACEOF
31199 /* confdefs.h. */
31200 _ACEOF
31201 cat confdefs.h >>conftest.$ac_ext
31202 cat >>conftest.$ac_ext <<_ACEOF
31203 /* end confdefs.h. */
31204 $ac_includes_default
31205 #include <${GSM_DIR}/include/gsm.h>
31206 _ACEOF
31207 rm -f conftest.$ac_objext
31208 if { (ac_try="$ac_compile"
31209 case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_compile") 2>conftest.er1
31215 ac_status=$?
31216 grep -v '^ *+' conftest.er1 >conftest.err
31217 rm -f conftest.er1
31218 cat conftest.err >&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } && {
31221 test -z "$ac_c_werror_flag" ||
31222 test ! -s conftest.err
31223 } && test -s conftest.$ac_objext; then
31224 ac_header_compiler=yes
31225 else
31226 echo "$as_me: failed program was:" >&5
31227 sed 's/^/| /' conftest.$ac_ext >&5
31229 ac_header_compiler=no
31232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31234 echo "${ECHO_T}$ac_header_compiler" >&6; }
31236 # Is the header present?
31237 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31238 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31239 cat >conftest.$ac_ext <<_ACEOF
31240 /* confdefs.h. */
31241 _ACEOF
31242 cat confdefs.h >>conftest.$ac_ext
31243 cat >>conftest.$ac_ext <<_ACEOF
31244 /* end confdefs.h. */
31245 #include <${GSM_DIR}/include/gsm.h>
31246 _ACEOF
31247 if { (ac_try="$ac_cpp conftest.$ac_ext"
31248 case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31254 ac_status=$?
31255 grep -v '^ *+' conftest.er1 >conftest.err
31256 rm -f conftest.er1
31257 cat conftest.err >&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } >/dev/null && {
31260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31261 test ! -s conftest.err
31262 }; then
31263 ac_header_preproc=yes
31264 else
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_header_preproc=no
31271 rm -f conftest.err conftest.$ac_ext
31272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31273 echo "${ECHO_T}$ac_header_preproc" >&6; }
31275 # So? What about this header?
31276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31277 yes:no: )
31278 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31279 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31280 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31281 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31282 ac_header_preproc=yes
31284 no:yes:* )
31285 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31286 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31287 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31288 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31289 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31290 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31291 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31292 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31293 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31294 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31295 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31296 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31297 ( cat <<\_ASBOX
31298 ## ------------------------------- ##
31299 ## Report this to www.asterisk.org ##
31300 ## ------------------------------- ##
31301 _ASBOX
31302 ) | sed "s/^/$as_me: WARNING: /" >&2
31304 esac
31305 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31306 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31309 else
31310 eval "$as_ac_Header=\$ac_header_preproc"
31312 ac_res=`eval echo '${'$as_ac_Header'}'`
31313 { echo "$as_me:$LINENO: result: $ac_res" >&5
31314 echo "${ECHO_T}$ac_res" >&6; }
31317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31318 GSM_HEADER_FOUND=1
31319 else
31320 GSM_HEADER_FOUND=0
31324 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31326 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31327 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31329 echo $ECHO_N "(cached) $ECHO_C" >&6
31331 ac_res=`eval echo '${'$as_ac_Header'}'`
31332 { echo "$as_me:$LINENO: result: $ac_res" >&5
31333 echo "${ECHO_T}$ac_res" >&6; }
31334 else
31335 # Is the header compilable?
31336 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31337 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31338 cat >conftest.$ac_ext <<_ACEOF
31339 /* confdefs.h. */
31340 _ACEOF
31341 cat confdefs.h >>conftest.$ac_ext
31342 cat >>conftest.$ac_ext <<_ACEOF
31343 /* end confdefs.h. */
31344 $ac_includes_default
31345 #include <${GSM_DIR}/include/gsm/gsm.h>
31346 _ACEOF
31347 rm -f conftest.$ac_objext
31348 if { (ac_try="$ac_compile"
31349 case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31352 esac
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_compile") 2>conftest.er1
31355 ac_status=$?
31356 grep -v '^ *+' conftest.er1 >conftest.err
31357 rm -f conftest.er1
31358 cat conftest.err >&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } && {
31361 test -z "$ac_c_werror_flag" ||
31362 test ! -s conftest.err
31363 } && test -s conftest.$ac_objext; then
31364 ac_header_compiler=yes
31365 else
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31369 ac_header_compiler=no
31372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31374 echo "${ECHO_T}$ac_header_compiler" >&6; }
31376 # Is the header present?
31377 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31378 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31379 cat >conftest.$ac_ext <<_ACEOF
31380 /* confdefs.h. */
31381 _ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h. */
31385 #include <${GSM_DIR}/include/gsm/gsm.h>
31386 _ACEOF
31387 if { (ac_try="$ac_cpp conftest.$ac_ext"
31388 case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31391 esac
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31394 ac_status=$?
31395 grep -v '^ *+' conftest.er1 >conftest.err
31396 rm -f conftest.er1
31397 cat conftest.err >&5
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); } >/dev/null && {
31400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31401 test ! -s conftest.err
31402 }; then
31403 ac_header_preproc=yes
31404 else
31405 echo "$as_me: failed program was:" >&5
31406 sed 's/^/| /' conftest.$ac_ext >&5
31408 ac_header_preproc=no
31411 rm -f conftest.err conftest.$ac_ext
31412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31413 echo "${ECHO_T}$ac_header_preproc" >&6; }
31415 # So? What about this header?
31416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31417 yes:no: )
31418 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31419 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31421 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31422 ac_header_preproc=yes
31424 no:yes:* )
31425 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31426 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31427 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31428 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31430 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31431 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31432 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31433 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31434 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31435 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31436 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31437 ( cat <<\_ASBOX
31438 ## ------------------------------- ##
31439 ## Report this to www.asterisk.org ##
31440 ## ------------------------------- ##
31441 _ASBOX
31442 ) | sed "s/^/$as_me: WARNING: /" >&2
31444 esac
31445 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31446 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31448 echo $ECHO_N "(cached) $ECHO_C" >&6
31449 else
31450 eval "$as_ac_Header=\$ac_header_preproc"
31452 ac_res=`eval echo '${'$as_ac_Header'}'`
31453 { echo "$as_me:$LINENO: result: $ac_res" >&5
31454 echo "${ECHO_T}$ac_res" >&6; }
31457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31458 GSM_GSM_HEADER_FOUND=1
31459 else
31460 GSM_GSM_HEADER_FOUND=0
31464 else
31465 if test "${ac_cv_header_gsm_h+set}" = set; then
31466 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31467 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31468 if test "${ac_cv_header_gsm_h+set}" = set; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31472 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31473 else
31474 # Is the header compilable?
31475 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31476 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31477 cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h. */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h. */
31483 $ac_includes_default
31484 #include <gsm.h>
31485 _ACEOF
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31494 ac_status=$?
31495 grep -v '^ *+' conftest.er1 >conftest.err
31496 rm -f conftest.er1
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } && {
31500 test -z "$ac_c_werror_flag" ||
31501 test ! -s conftest.err
31502 } && test -s conftest.$ac_objext; then
31503 ac_header_compiler=yes
31504 else
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31508 ac_header_compiler=no
31511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31513 echo "${ECHO_T}$ac_header_compiler" >&6; }
31515 # Is the header present?
31516 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31517 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31518 cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h. */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h. */
31524 #include <gsm.h>
31525 _ACEOF
31526 if { (ac_try="$ac_cpp conftest.$ac_ext"
31527 case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31530 esac
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31533 ac_status=$?
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } >/dev/null && {
31539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31540 test ! -s conftest.err
31541 }; then
31542 ac_header_preproc=yes
31543 else
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 ac_header_preproc=no
31550 rm -f conftest.err conftest.$ac_ext
31551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31552 echo "${ECHO_T}$ac_header_preproc" >&6; }
31554 # So? What about this header?
31555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31556 yes:no: )
31557 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31558 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31559 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31560 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31561 ac_header_preproc=yes
31563 no:yes:* )
31564 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31565 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31567 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31569 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31570 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31571 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31572 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31573 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31574 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31575 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31576 ( cat <<\_ASBOX
31577 ## ------------------------------- ##
31578 ## Report this to www.asterisk.org ##
31579 ## ------------------------------- ##
31580 _ASBOX
31581 ) | sed "s/^/$as_me: WARNING: /" >&2
31583 esac
31584 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31585 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31586 if test "${ac_cv_header_gsm_h+set}" = set; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31588 else
31589 ac_cv_header_gsm_h=$ac_header_preproc
31591 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31592 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31595 if test $ac_cv_header_gsm_h = yes; then
31596 GSM_HEADER_FOUND=1
31597 else
31598 GSM_HEADER_FOUND=0
31602 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31603 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31604 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31605 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31609 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31610 else
31611 # Is the header compilable?
31612 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31613 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31614 cat >conftest.$ac_ext <<_ACEOF
31615 /* confdefs.h. */
31616 _ACEOF
31617 cat confdefs.h >>conftest.$ac_ext
31618 cat >>conftest.$ac_ext <<_ACEOF
31619 /* end confdefs.h. */
31620 $ac_includes_default
31621 #include <gsm/gsm.h>
31622 _ACEOF
31623 rm -f conftest.$ac_objext
31624 if { (ac_try="$ac_compile"
31625 case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31628 esac
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630 (eval "$ac_compile") 2>conftest.er1
31631 ac_status=$?
31632 grep -v '^ *+' conftest.er1 >conftest.err
31633 rm -f conftest.er1
31634 cat conftest.err >&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); } && {
31637 test -z "$ac_c_werror_flag" ||
31638 test ! -s conftest.err
31639 } && test -s conftest.$ac_objext; then
31640 ac_header_compiler=yes
31641 else
31642 echo "$as_me: failed program was:" >&5
31643 sed 's/^/| /' conftest.$ac_ext >&5
31645 ac_header_compiler=no
31648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31650 echo "${ECHO_T}$ac_header_compiler" >&6; }
31652 # Is the header present?
31653 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31654 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31655 cat >conftest.$ac_ext <<_ACEOF
31656 /* confdefs.h. */
31657 _ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h. */
31661 #include <gsm/gsm.h>
31662 _ACEOF
31663 if { (ac_try="$ac_cpp conftest.$ac_ext"
31664 case "(($ac_try" in
31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666 *) ac_try_echo=$ac_try;;
31667 esac
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31670 ac_status=$?
31671 grep -v '^ *+' conftest.er1 >conftest.err
31672 rm -f conftest.er1
31673 cat conftest.err >&5
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } >/dev/null && {
31676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31677 test ! -s conftest.err
31678 }; then
31679 ac_header_preproc=yes
31680 else
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31684 ac_header_preproc=no
31687 rm -f conftest.err conftest.$ac_ext
31688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31689 echo "${ECHO_T}$ac_header_preproc" >&6; }
31691 # So? What about this header?
31692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31693 yes:no: )
31694 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31695 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31696 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31697 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31698 ac_header_preproc=yes
31700 no:yes:* )
31701 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31702 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31703 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31704 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31705 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31706 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31707 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31708 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31709 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31710 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31711 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31712 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31713 ( cat <<\_ASBOX
31714 ## ------------------------------- ##
31715 ## Report this to www.asterisk.org ##
31716 ## ------------------------------- ##
31717 _ASBOX
31718 ) | sed "s/^/$as_me: WARNING: /" >&2
31720 esac
31721 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31722 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31723 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 else
31726 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31728 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31729 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31732 if test $ac_cv_header_gsm_gsm_h = yes; then
31733 GSM_GSM_HEADER_FOUND=1
31734 else
31735 GSM_GSM_HEADER_FOUND=0
31740 if test "${GSM_HEADER_FOUND}" = "0" ; then
31741 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31742 if test "x${GSM_MANDATORY}" = "xyes" ; then
31743 { echo "$as_me:$LINENO: ***" >&5
31744 echo "$as_me: ***" >&6;}
31745 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31746 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31747 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31748 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31749 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31750 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31751 exit 1
31755 GSM_OK=0
31756 if test "${GSM_HEADER_FOUND}" = "1" ; then
31758 cat >>confdefs.h <<_ACEOF
31759 #define HAVE_GSM_HEADER 1
31760 _ACEOF
31762 GSM_OK=1
31763 else
31764 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31766 cat >>confdefs.h <<_ACEOF
31767 #define HAVE_GSM_GSM_HEADER 1
31768 _ACEOF
31770 GSM_OK=1
31773 if test "${GSM_OK}" = "1" ; then
31774 GSM_LIB="-lgsm"
31775 if test "x${GSM_DIR}" != "x"; then
31776 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31777 GSM_INCLUDE="-I${GSM_DIR}/include"
31779 PBX_GSM=1
31780 GSM_INTERNAL="no"
31784 if test "${GSM_INTERNAL}" = "yes"; then
31785 PBX_GSM=1
31787 cat >>confdefs.h <<_ACEOF
31788 #define HAVE_GSM_HEADER 1
31789 _ACEOF
31794 if test "${host_os}" != "linux-gnu" ; then
31796 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31797 pbxlibdir=""
31798 # if --with-ICONV=DIR has been specified, use it.
31799 if test "x${ICONV_DIR}" != "x"; then
31800 if test -d ${ICONV_DIR}/lib; then
31801 pbxlibdir="-L${ICONV_DIR}/lib"
31802 else
31803 pbxlibdir="-L${ICONV_DIR}"
31806 pbxfuncname="iconv_open"
31807 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31808 AST_ICONV_FOUND=yes
31809 else
31810 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31811 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31812 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31813 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816 ac_check_lib_save_LIBS=$LIBS
31817 LIBS="-liconv ${pbxlibdir} $LIBS"
31818 cat >conftest.$ac_ext <<_ACEOF
31819 /* confdefs.h. */
31820 _ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h. */
31825 /* Override any GCC internal prototype to avoid an error.
31826 Use char because int might match the return type of a GCC
31827 builtin and then its argument prototype would still apply. */
31828 #ifdef __cplusplus
31829 extern "C"
31830 #endif
31831 char ${pbxfuncname} ();
31833 main ()
31835 return ${pbxfuncname} ();
31837 return 0;
31839 _ACEOF
31840 rm -f conftest.$ac_objext conftest$ac_exeext
31841 if { (ac_try="$ac_link"
31842 case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_link") 2>conftest.er1
31848 ac_status=$?
31849 grep -v '^ *+' conftest.er1 >conftest.err
31850 rm -f conftest.er1
31851 cat conftest.err >&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } && {
31854 test -z "$ac_c_werror_flag" ||
31855 test ! -s conftest.err
31856 } && test -s conftest$ac_exeext &&
31857 $as_test_x conftest$ac_exeext; then
31858 eval "$as_ac_Lib=yes"
31859 else
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 eval "$as_ac_Lib=no"
31866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31867 conftest$ac_exeext conftest.$ac_ext
31868 LIBS=$ac_check_lib_save_LIBS
31870 ac_res=`eval echo '${'$as_ac_Lib'}'`
31871 { echo "$as_me:$LINENO: result: $ac_res" >&5
31872 echo "${ECHO_T}$ac_res" >&6; }
31873 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31874 AST_ICONV_FOUND=yes
31875 else
31876 AST_ICONV_FOUND=no
31881 # now check for the header.
31882 if test "${AST_ICONV_FOUND}" = "yes"; then
31883 ICONV_LIB="${pbxlibdir} -liconv "
31884 # if --with-ICONV=DIR has been specified, use it.
31885 if test "x${ICONV_DIR}" != "x"; then
31886 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31888 ICONV_INCLUDE="${ICONV_INCLUDE} "
31889 if test "xiconv.h" = "x" ; then # no header, assume found
31890 ICONV_HEADER_FOUND="1"
31891 else # check for the header
31892 saved_cppflags="${CPPFLAGS}"
31893 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
31894 if test "${ac_cv_header_iconv_h+set}" = set; then
31895 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31896 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31897 if test "${ac_cv_header_iconv_h+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31900 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31901 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31902 else
31903 # Is the header compilable?
31904 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
31905 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
31906 cat >conftest.$ac_ext <<_ACEOF
31907 /* confdefs.h. */
31908 _ACEOF
31909 cat confdefs.h >>conftest.$ac_ext
31910 cat >>conftest.$ac_ext <<_ACEOF
31911 /* end confdefs.h. */
31912 $ac_includes_default
31913 #include <iconv.h>
31914 _ACEOF
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31920 esac
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
31923 ac_status=$?
31924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } && {
31929 test -z "$ac_c_werror_flag" ||
31930 test ! -s conftest.err
31931 } && test -s conftest.$ac_objext; then
31932 ac_header_compiler=yes
31933 else
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_header_compiler=no
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31942 echo "${ECHO_T}$ac_header_compiler" >&6; }
31944 # Is the header present?
31945 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
31946 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
31947 cat >conftest.$ac_ext <<_ACEOF
31948 /* confdefs.h. */
31949 _ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h. */
31953 #include <iconv.h>
31954 _ACEOF
31955 if { (ac_try="$ac_cpp conftest.$ac_ext"
31956 case "(($ac_try" in
31957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958 *) ac_try_echo=$ac_try;;
31959 esac
31960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31962 ac_status=$?
31963 grep -v '^ *+' conftest.er1 >conftest.err
31964 rm -f conftest.er1
31965 cat conftest.err >&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); } >/dev/null && {
31968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31969 test ! -s conftest.err
31970 }; then
31971 ac_header_preproc=yes
31972 else
31973 echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31976 ac_header_preproc=no
31979 rm -f conftest.err conftest.$ac_ext
31980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31981 echo "${ECHO_T}$ac_header_preproc" >&6; }
31983 # So? What about this header?
31984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31985 yes:no: )
31986 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
31987 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31988 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
31989 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
31990 ac_header_preproc=yes
31992 no:yes:* )
31993 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
31994 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
31995 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
31996 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
31997 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
31998 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
31999 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
32000 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
32001 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32002 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32003 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
32004 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
32005 ( cat <<\_ASBOX
32006 ## ------------------------------- ##
32007 ## Report this to www.asterisk.org ##
32008 ## ------------------------------- ##
32009 _ASBOX
32010 ) | sed "s/^/$as_me: WARNING: /" >&2
32012 esac
32013 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32014 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32015 if test "${ac_cv_header_iconv_h+set}" = set; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32017 else
32018 ac_cv_header_iconv_h=$ac_header_preproc
32020 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32021 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32024 if test $ac_cv_header_iconv_h = yes; then
32025 ICONV_HEADER_FOUND=1
32026 else
32027 ICONV_HEADER_FOUND=0
32031 CPPFLAGS="${saved_cppflags}"
32033 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32034 ICONV_LIB=""
32035 ICONV_INCLUDE=""
32036 else
32037 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32038 ICONV_LIB=""
32040 PBX_ICONV=1
32041 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32043 cat >>confdefs.h <<_ACEOF
32044 #define HAVE_ICONV 1
32045 _ACEOF
32048 cat >>confdefs.h <<_ACEOF
32049 #define HAVE_ICONV_VERSION
32050 _ACEOF
32056 else
32057 PBX_ICONV=1
32061 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32062 pbxlibdir=""
32063 # if --with-IKSEMEL=DIR has been specified, use it.
32064 if test "x${IKSEMEL_DIR}" != "x"; then
32065 if test -d ${IKSEMEL_DIR}/lib; then
32066 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32067 else
32068 pbxlibdir="-L${IKSEMEL_DIR}"
32071 pbxfuncname="iks_start_sasl"
32072 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32073 AST_IKSEMEL_FOUND=yes
32074 else
32075 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32076 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32077 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32078 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32081 ac_check_lib_save_LIBS=$LIBS
32082 LIBS="-liksemel ${pbxlibdir} $LIBS"
32083 cat >conftest.$ac_ext <<_ACEOF
32084 /* confdefs.h. */
32085 _ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32090 /* Override any GCC internal prototype to avoid an error.
32091 Use char because int might match the return type of a GCC
32092 builtin and then its argument prototype would still apply. */
32093 #ifdef __cplusplus
32094 extern "C"
32095 #endif
32096 char ${pbxfuncname} ();
32098 main ()
32100 return ${pbxfuncname} ();
32102 return 0;
32104 _ACEOF
32105 rm -f conftest.$ac_objext conftest$ac_exeext
32106 if { (ac_try="$ac_link"
32107 case "(($ac_try" in
32108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109 *) ac_try_echo=$ac_try;;
32110 esac
32111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32112 (eval "$ac_link") 2>conftest.er1
32113 ac_status=$?
32114 grep -v '^ *+' conftest.er1 >conftest.err
32115 rm -f conftest.er1
32116 cat conftest.err >&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } && {
32119 test -z "$ac_c_werror_flag" ||
32120 test ! -s conftest.err
32121 } && test -s conftest$ac_exeext &&
32122 $as_test_x conftest$ac_exeext; then
32123 eval "$as_ac_Lib=yes"
32124 else
32125 echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32128 eval "$as_ac_Lib=no"
32131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32132 conftest$ac_exeext conftest.$ac_ext
32133 LIBS=$ac_check_lib_save_LIBS
32135 ac_res=`eval echo '${'$as_ac_Lib'}'`
32136 { echo "$as_me:$LINENO: result: $ac_res" >&5
32137 echo "${ECHO_T}$ac_res" >&6; }
32138 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32139 AST_IKSEMEL_FOUND=yes
32140 else
32141 AST_IKSEMEL_FOUND=no
32146 # now check for the header.
32147 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32148 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32149 # if --with-IKSEMEL=DIR has been specified, use it.
32150 if test "x${IKSEMEL_DIR}" != "x"; then
32151 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32153 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32154 if test "xiksemel.h" = "x" ; then # no header, assume found
32155 IKSEMEL_HEADER_FOUND="1"
32156 else # check for the header
32157 saved_cppflags="${CPPFLAGS}"
32158 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
32159 if test "${ac_cv_header_iksemel_h+set}" = set; then
32160 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32161 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32162 if test "${ac_cv_header_iksemel_h+set}" = set; then
32163 echo $ECHO_N "(cached) $ECHO_C" >&6
32165 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32166 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32167 else
32168 # Is the header compilable?
32169 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32170 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32171 cat >conftest.$ac_ext <<_ACEOF
32172 /* confdefs.h. */
32173 _ACEOF
32174 cat confdefs.h >>conftest.$ac_ext
32175 cat >>conftest.$ac_ext <<_ACEOF
32176 /* end confdefs.h. */
32177 $ac_includes_default
32178 #include <iksemel.h>
32179 _ACEOF
32180 rm -f conftest.$ac_objext
32181 if { (ac_try="$ac_compile"
32182 case "(($ac_try" in
32183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184 *) ac_try_echo=$ac_try;;
32185 esac
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_compile") 2>conftest.er1
32188 ac_status=$?
32189 grep -v '^ *+' conftest.er1 >conftest.err
32190 rm -f conftest.er1
32191 cat conftest.err >&5
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); } && {
32194 test -z "$ac_c_werror_flag" ||
32195 test ! -s conftest.err
32196 } && test -s conftest.$ac_objext; then
32197 ac_header_compiler=yes
32198 else
32199 echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32202 ac_header_compiler=no
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32207 echo "${ECHO_T}$ac_header_compiler" >&6; }
32209 # Is the header present?
32210 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32211 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32212 cat >conftest.$ac_ext <<_ACEOF
32213 /* confdefs.h. */
32214 _ACEOF
32215 cat confdefs.h >>conftest.$ac_ext
32216 cat >>conftest.$ac_ext <<_ACEOF
32217 /* end confdefs.h. */
32218 #include <iksemel.h>
32219 _ACEOF
32220 if { (ac_try="$ac_cpp conftest.$ac_ext"
32221 case "(($ac_try" in
32222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223 *) ac_try_echo=$ac_try;;
32224 esac
32225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32227 ac_status=$?
32228 grep -v '^ *+' conftest.er1 >conftest.err
32229 rm -f conftest.er1
32230 cat conftest.err >&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } >/dev/null && {
32233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32234 test ! -s conftest.err
32235 }; then
32236 ac_header_preproc=yes
32237 else
32238 echo "$as_me: failed program was:" >&5
32239 sed 's/^/| /' conftest.$ac_ext >&5
32241 ac_header_preproc=no
32244 rm -f conftest.err conftest.$ac_ext
32245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32246 echo "${ECHO_T}$ac_header_preproc" >&6; }
32248 # So? What about this header?
32249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32250 yes:no: )
32251 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32252 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32253 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32254 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32255 ac_header_preproc=yes
32257 no:yes:* )
32258 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32259 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32260 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32261 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32262 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32263 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32264 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32265 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32266 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32267 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32268 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32269 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32270 ( cat <<\_ASBOX
32271 ## ------------------------------- ##
32272 ## Report this to www.asterisk.org ##
32273 ## ------------------------------- ##
32274 _ASBOX
32275 ) | sed "s/^/$as_me: WARNING: /" >&2
32277 esac
32278 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32279 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32280 if test "${ac_cv_header_iksemel_h+set}" = set; then
32281 echo $ECHO_N "(cached) $ECHO_C" >&6
32282 else
32283 ac_cv_header_iksemel_h=$ac_header_preproc
32285 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32286 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32289 if test $ac_cv_header_iksemel_h = yes; then
32290 IKSEMEL_HEADER_FOUND=1
32291 else
32292 IKSEMEL_HEADER_FOUND=0
32296 CPPFLAGS="${saved_cppflags}"
32298 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32299 IKSEMEL_LIB=""
32300 IKSEMEL_INCLUDE=""
32301 else
32302 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32303 IKSEMEL_LIB=""
32305 PBX_IKSEMEL=1
32306 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32308 cat >>confdefs.h <<_ACEOF
32309 #define HAVE_IKSEMEL 1
32310 _ACEOF
32313 cat >>confdefs.h <<_ACEOF
32314 #define HAVE_IKSEMEL_VERSION
32315 _ACEOF
32322 if test "${USE_IMAP_TK}" != "no"; then
32323 saved_cppflags="${CPPFLAGS}"
32324 saved_libs="${LIBS}"
32325 switch_to_system_on_failure="no"
32326 if test "${IMAP_TK_DIR}" = ""; then
32327 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32328 switch_to_system_on_failure="yes"
32330 if test "${IMAP_TK_DIR}" != "system"; then
32331 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32332 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32333 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32334 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32336 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32337 imap_include="-I${IMAP_TK_DIR}/c-client"
32338 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32339 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32340 cat >conftest.$ac_ext <<_ACEOF
32341 /* confdefs.h. */
32342 _ACEOF
32343 cat confdefs.h >>conftest.$ac_ext
32344 cat >>conftest.$ac_ext <<_ACEOF
32345 /* end confdefs.h. */
32346 #include "c-client.h"
32347 void mm_searched (MAILSTREAM *stream,unsigned long number)
32350 void mm_exists (MAILSTREAM *stream,unsigned long number)
32353 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32356 void mm_flags (MAILSTREAM *stream,unsigned long number)
32359 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32362 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32365 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32368 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32371 void mm_log (char *string,long errflg)
32374 void mm_dlog (char *string)
32377 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32380 void mm_critical (MAILSTREAM *stream)
32383 void mm_nocritical (MAILSTREAM *stream)
32386 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32389 void mm_fatal (char *string)
32393 main ()
32396 MAILSTREAM *foo = mail_open(NULL, "", 0);
32400 return 0;
32402 _ACEOF
32403 rm -f conftest.$ac_objext conftest$ac_exeext
32404 if { (ac_try="$ac_link"
32405 case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32408 esac
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410 (eval "$ac_link") 2>conftest.er1
32411 ac_status=$?
32412 grep -v '^ *+' conftest.er1 >conftest.err
32413 rm -f conftest.er1
32414 cat conftest.err >&5
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } && {
32417 test -z "$ac_c_werror_flag" ||
32418 test ! -s conftest.err
32419 } && test -s conftest$ac_exeext &&
32420 $as_test_x conftest$ac_exeext; then
32421 ac_cv_imap_tk="yes"
32422 else
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32426 ac_cv_imap_tk="no"
32430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32431 conftest$ac_exeext conftest.$ac_ext
32432 if test "${ac_cv_imap_tk}" = "yes"; then
32433 cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h. */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32439 #include "c-client.h"
32440 void mm_searched (MAILSTREAM *stream,unsigned long number)
32443 void mm_exists (MAILSTREAM *stream,unsigned long number)
32446 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32449 void mm_flags (MAILSTREAM *stream,unsigned long number)
32452 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32455 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32458 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32461 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32464 void mm_log (char *string,long errflg)
32467 void mm_dlog (char *string)
32470 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32473 void mm_critical (MAILSTREAM *stream)
32476 void mm_nocritical (MAILSTREAM *stream)
32479 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32482 void mm_fatal (char *string)
32486 main ()
32489 long check = mail_expunge_full(NULL, "", 0);
32493 return 0;
32495 _ACEOF
32496 rm -f conftest.$ac_objext conftest$ac_exeext
32497 if { (ac_try="$ac_link"
32498 case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32501 esac
32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_link") 2>conftest.er1
32504 ac_status=$?
32505 grep -v '^ *+' conftest.er1 >conftest.err
32506 rm -f conftest.er1
32507 cat conftest.err >&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } && {
32510 test -z "$ac_c_werror_flag" ||
32511 test ! -s conftest.err
32512 } && test -s conftest$ac_exeext &&
32513 $as_test_x conftest$ac_exeext; then
32514 ac_cv_imap_tk2006="yes"
32515 else
32516 echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32519 ac_cv_imap_tk2006="no"
32523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32524 conftest$ac_exeext conftest.$ac_ext
32526 CPPFLAGS="${saved_cppflags}"
32527 LIBS="${saved_libs}"
32528 if test "${ac_cv_imap_tk}" = "no"; then
32529 { echo "$as_me:$LINENO: result: no" >&5
32530 echo "${ECHO_T}no" >&6; }
32531 if test "${switch_to_system_on_failure}" = "yes"; then
32532 IMAP_TK_DIR="system"
32533 else #This means they specified a directory. Search for a package installation there too
32534 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32535 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32536 CPPFLAGS="${saved_cppflags}"
32537 LIBS="${saved_libs}"
32538 imap_include="-I${IMAP_TK_DIR}/include"
32539 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32540 imap_libs="-lc-client"
32541 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32542 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32543 cat >conftest.$ac_ext <<_ACEOF
32544 /* confdefs.h. */
32545 _ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h. */
32549 #include "c-client.h"
32550 void mm_searched (MAILSTREAM *stream,unsigned long number)
32553 void mm_exists (MAILSTREAM *stream,unsigned long number)
32556 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32559 void mm_flags (MAILSTREAM *stream,unsigned long number)
32562 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32565 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32568 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32571 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32574 void mm_log (char *string,long errflg)
32577 void mm_dlog (char *string)
32580 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32583 void mm_critical (MAILSTREAM *stream)
32586 void mm_nocritical (MAILSTREAM *stream)
32589 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32592 void mm_fatal (char *string)
32596 main ()
32599 MAILSTREAM *foo = mail_open(NULL, "", 0);
32603 return 0;
32605 _ACEOF
32606 rm -f conftest.$ac_objext conftest$ac_exeext
32607 if { (ac_try="$ac_link"
32608 case "(($ac_try" in
32609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610 *) ac_try_echo=$ac_try;;
32611 esac
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 (eval "$ac_link") 2>conftest.er1
32614 ac_status=$?
32615 grep -v '^ *+' conftest.er1 >conftest.err
32616 rm -f conftest.er1
32617 cat conftest.err >&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } && {
32620 test -z "$ac_c_werror_flag" ||
32621 test ! -s conftest.err
32622 } && test -s conftest$ac_exeext &&
32623 $as_test_x conftest$ac_exeext; then
32624 ac_cv_imap_tk="yes"
32625 else
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 ac_cv_imap_tk="no"
32633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32634 conftest$ac_exeext conftest.$ac_ext
32635 if test "${ac_cv_imap_tk}" = "yes"; then
32636 cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h. */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32642 #include "c-client.h"
32643 void mm_searched (MAILSTREAM *stream,unsigned long number)
32646 void mm_exists (MAILSTREAM *stream,unsigned long number)
32649 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32652 void mm_flags (MAILSTREAM *stream,unsigned long number)
32655 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32658 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32661 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32664 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32667 void mm_log (char *string,long errflg)
32670 void mm_dlog (char *string)
32673 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32676 void mm_critical (MAILSTREAM *stream)
32679 void mm_nocritical (MAILSTREAM *stream)
32682 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32685 void mm_fatal (char *string)
32689 main ()
32692 long check = mail_expunge_full(NULL, "", 0);
32696 return 0;
32698 _ACEOF
32699 rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703 *) ac_try_echo=$ac_try;;
32704 esac
32705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706 (eval "$ac_link") 2>conftest.er1
32707 ac_status=$?
32708 grep -v '^ *+' conftest.er1 >conftest.err
32709 rm -f conftest.er1
32710 cat conftest.err >&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } && {
32713 test -z "$ac_c_werror_flag" ||
32714 test ! -s conftest.err
32715 } && test -s conftest$ac_exeext &&
32716 $as_test_x conftest$ac_exeext; then
32717 ac_cv_imap_tk2006="yes"
32718 else
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32722 ac_cv_imap_tk2006="no"
32726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32727 conftest$ac_exeext conftest.$ac_ext
32732 if test "${IMAP_TK_DIR}" = "system"; then
32733 #We will enter here if user specified "system" or if any of above checks failed
32734 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32735 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32736 CPPFLAGS="${saved_cppflags}"
32737 LIBS="${saved_libs}"
32738 imap_ldflags=""
32739 imap_libs="-lc-client"
32740 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32741 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32742 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32743 cat >conftest.$ac_ext <<_ACEOF
32744 /* confdefs.h. */
32745 _ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32749 #include <stdio.h>
32750 #include <imap/c-client.h>
32751 void mm_searched (MAILSTREAM *stream,unsigned long number)
32754 void mm_exists (MAILSTREAM *stream,unsigned long number)
32757 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32760 void mm_flags (MAILSTREAM *stream,unsigned long number)
32763 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32766 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32769 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32772 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32775 void mm_log (char *string,long errflg)
32778 void mm_dlog (char *string)
32781 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32784 void mm_critical (MAILSTREAM *stream)
32787 void mm_nocritical (MAILSTREAM *stream)
32790 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32793 void mm_fatal (char *string)
32797 main ()
32800 MAILSTREAM *foo = mail_open(NULL, "", 0);
32804 return 0;
32806 _ACEOF
32807 rm -f conftest.$ac_objext conftest$ac_exeext
32808 if { (ac_try="$ac_link"
32809 case "(($ac_try" in
32810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32811 *) ac_try_echo=$ac_try;;
32812 esac
32813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32814 (eval "$ac_link") 2>conftest.er1
32815 ac_status=$?
32816 grep -v '^ *+' conftest.er1 >conftest.err
32817 rm -f conftest.er1
32818 cat conftest.err >&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } && {
32821 test -z "$ac_c_werror_flag" ||
32822 test ! -s conftest.err
32823 } && test -s conftest$ac_exeext &&
32824 $as_test_x conftest$ac_exeext; then
32825 ac_cv_imap_tk="yes"
32826 else
32827 echo "$as_me: failed program was:" >&5
32828 sed 's/^/| /' conftest.$ac_ext >&5
32830 ac_cv_imap_tk="no"
32834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32835 conftest$ac_exeext conftest.$ac_ext
32836 if test "${ac_cv_imap_tk}" = "yes"; then
32837 cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h. */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h. */
32843 #include <stdio.h>
32844 #include <imap/c-client.h>
32845 void mm_searched (MAILSTREAM *stream,unsigned long number)
32848 void mm_exists (MAILSTREAM *stream,unsigned long number)
32851 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32854 void mm_flags (MAILSTREAM *stream,unsigned long number)
32857 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32860 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32863 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32866 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32869 void mm_log (char *string,long errflg)
32872 void mm_dlog (char *string)
32875 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32878 void mm_critical (MAILSTREAM *stream)
32881 void mm_nocritical (MAILSTREAM *stream)
32884 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32887 void mm_fatal (char *string)
32891 main ()
32894 long check = mail_expunge_full(NULL, "", 0);
32898 return 0;
32900 _ACEOF
32901 rm -f conftest.$ac_objext conftest$ac_exeext
32902 if { (ac_try="$ac_link"
32903 case "(($ac_try" in
32904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32905 *) ac_try_echo=$ac_try;;
32906 esac
32907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32908 (eval "$ac_link") 2>conftest.er1
32909 ac_status=$?
32910 grep -v '^ *+' conftest.er1 >conftest.err
32911 rm -f conftest.er1
32912 cat conftest.err >&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); } && {
32915 test -z "$ac_c_werror_flag" ||
32916 test ! -s conftest.err
32917 } && test -s conftest$ac_exeext &&
32918 $as_test_x conftest$ac_exeext; then
32919 ac_cv_imap_tk2006="yes"
32920 else
32921 echo "$as_me: failed program was:" >&5
32922 sed 's/^/| /' conftest.$ac_ext >&5
32924 ac_cv_imap_tk2006="no"
32928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32929 conftest$ac_exeext conftest.$ac_ext
32930 else #looking in imap directory didn't work, try c-client
32931 imap_ldflags=""
32932 imap_libs="-lc-client"
32933 imap_include="-DUSE_SYSTEM_CCLIENT"
32934 CPPFLAGS="${saved_cppflags}"
32935 LIBS="${saved_libs}"
32936 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32937 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32938 cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h. */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32944 #include <stdio.h>
32945 #include <c-client/c-client.h>
32946 void mm_searched (MAILSTREAM *stream,unsigned long number)
32949 void mm_exists (MAILSTREAM *stream,unsigned long number)
32952 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32955 void mm_flags (MAILSTREAM *stream,unsigned long number)
32958 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32961 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32964 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32967 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32970 void mm_log (char *string,long errflg)
32973 void mm_dlog (char *string)
32976 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32979 void mm_critical (MAILSTREAM *stream)
32982 void mm_nocritical (MAILSTREAM *stream)
32985 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32988 void mm_fatal (char *string)
32992 main ()
32995 MAILSTREAM *foo = mail_open(NULL, "", 0);
32999 return 0;
33001 _ACEOF
33002 rm -f conftest.$ac_objext conftest$ac_exeext
33003 if { (ac_try="$ac_link"
33004 case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33007 esac
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_link") 2>conftest.er1
33010 ac_status=$?
33011 grep -v '^ *+' conftest.er1 >conftest.err
33012 rm -f conftest.er1
33013 cat conftest.err >&5
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } && {
33016 test -z "$ac_c_werror_flag" ||
33017 test ! -s conftest.err
33018 } && test -s conftest$ac_exeext &&
33019 $as_test_x conftest$ac_exeext; then
33020 ac_cv_imap_tk="yes"
33021 else
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 ac_cv_imap_tk="no"
33029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33030 conftest$ac_exeext conftest.$ac_ext
33031 if test "${ac_cv_imap_tk}" = "yes"; then
33032 cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h. */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33038 #include <stdio.h>
33039 #include <c-client/c-client.h>
33040 void mm_searched (MAILSTREAM *stream,unsigned long number)
33043 void mm_exists (MAILSTREAM *stream,unsigned long number)
33046 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33049 void mm_flags (MAILSTREAM *stream,unsigned long number)
33052 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33055 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33058 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33061 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33064 void mm_log (char *string,long errflg)
33067 void mm_dlog (char *string)
33070 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33073 void mm_critical (MAILSTREAM *stream)
33076 void mm_nocritical (MAILSTREAM *stream)
33079 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33082 void mm_fatal (char *string)
33086 main ()
33089 long check = mail_expunge_full(NULL, "", 0);
33093 return 0;
33095 _ACEOF
33096 rm -f conftest.$ac_objext conftest$ac_exeext
33097 if { (ac_try="$ac_link"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_link") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest$ac_exeext &&
33113 $as_test_x conftest$ac_exeext; then
33114 ac_cv_imap_tk2006="yes"
33115 else
33116 echo "$as_me: failed program was:" >&5
33117 sed 's/^/| /' conftest.$ac_ext >&5
33119 ac_cv_imap_tk2006="no"
33123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33124 conftest$ac_exeext conftest.$ac_ext
33128 if test "${ac_cv_imap_tk}" = "yes"; then
33129 { echo "$as_me:$LINENO: result: yes" >&5
33130 echo "${ECHO_T}yes" >&6; }
33131 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33132 IMAP_TK_INCLUDE="${imap_include}"
33133 PBX_IMAP_TK=1
33135 cat >>confdefs.h <<\_ACEOF
33136 #define HAVE_IMAP_TK 1
33137 _ACEOF
33139 if test "${ac_cv_imap_tk2006}" = "yes"; then
33141 cat >>confdefs.h <<\_ACEOF
33142 #define HAVE_IMAP_TK2006 1
33143 _ACEOF
33146 else
33147 { echo "$as_me:$LINENO: result: no" >&5
33148 echo "${ECHO_T}no" >&6; }
33150 CPPFLAGS="${saved_cppflags}"
33151 LIBS="${saved_libs}"
33155 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33156 pbxlibdir=""
33157 # if --with-JACK=DIR has been specified, use it.
33158 if test "x${JACK_DIR}" != "x"; then
33159 if test -d ${JACK_DIR}/lib; then
33160 pbxlibdir="-L${JACK_DIR}/lib"
33161 else
33162 pbxlibdir="-L${JACK_DIR}"
33165 pbxfuncname="jack_activate"
33166 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33167 AST_JACK_FOUND=yes
33168 else
33169 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33170 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33171 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33172 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33175 ac_check_lib_save_LIBS=$LIBS
33176 LIBS="-ljack ${pbxlibdir} $LIBS"
33177 cat >conftest.$ac_ext <<_ACEOF
33178 /* confdefs.h. */
33179 _ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h. */
33184 /* Override any GCC internal prototype to avoid an error.
33185 Use char because int might match the return type of a GCC
33186 builtin and then its argument prototype would still apply. */
33187 #ifdef __cplusplus
33188 extern "C"
33189 #endif
33190 char ${pbxfuncname} ();
33192 main ()
33194 return ${pbxfuncname} ();
33196 return 0;
33198 _ACEOF
33199 rm -f conftest.$ac_objext conftest$ac_exeext
33200 if { (ac_try="$ac_link"
33201 case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33204 esac
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_link") 2>conftest.er1
33207 ac_status=$?
33208 grep -v '^ *+' conftest.er1 >conftest.err
33209 rm -f conftest.er1
33210 cat conftest.err >&5
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); } && {
33213 test -z "$ac_c_werror_flag" ||
33214 test ! -s conftest.err
33215 } && test -s conftest$ac_exeext &&
33216 $as_test_x conftest$ac_exeext; then
33217 eval "$as_ac_Lib=yes"
33218 else
33219 echo "$as_me: failed program was:" >&5
33220 sed 's/^/| /' conftest.$ac_ext >&5
33222 eval "$as_ac_Lib=no"
33225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33226 conftest$ac_exeext conftest.$ac_ext
33227 LIBS=$ac_check_lib_save_LIBS
33229 ac_res=`eval echo '${'$as_ac_Lib'}'`
33230 { echo "$as_me:$LINENO: result: $ac_res" >&5
33231 echo "${ECHO_T}$ac_res" >&6; }
33232 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33233 AST_JACK_FOUND=yes
33234 else
33235 AST_JACK_FOUND=no
33240 # now check for the header.
33241 if test "${AST_JACK_FOUND}" = "yes"; then
33242 JACK_LIB="${pbxlibdir} -ljack "
33243 # if --with-JACK=DIR has been specified, use it.
33244 if test "x${JACK_DIR}" != "x"; then
33245 JACK_INCLUDE="-I${JACK_DIR}/include"
33247 JACK_INCLUDE="${JACK_INCLUDE} "
33248 if test "xjack/jack.h" = "x" ; then # no header, assume found
33249 JACK_HEADER_FOUND="1"
33250 else # check for the header
33251 saved_cppflags="${CPPFLAGS}"
33252 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
33253 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33254 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33255 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33256 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33257 echo $ECHO_N "(cached) $ECHO_C" >&6
33259 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33260 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33261 else
33262 # Is the header compilable?
33263 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33264 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33265 cat >conftest.$ac_ext <<_ACEOF
33266 /* confdefs.h. */
33267 _ACEOF
33268 cat confdefs.h >>conftest.$ac_ext
33269 cat >>conftest.$ac_ext <<_ACEOF
33270 /* end confdefs.h. */
33271 $ac_includes_default
33272 #include <jack/jack.h>
33273 _ACEOF
33274 rm -f conftest.$ac_objext
33275 if { (ac_try="$ac_compile"
33276 case "(($ac_try" in
33277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33278 *) ac_try_echo=$ac_try;;
33279 esac
33280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33281 (eval "$ac_compile") 2>conftest.er1
33282 ac_status=$?
33283 grep -v '^ *+' conftest.er1 >conftest.err
33284 rm -f conftest.er1
33285 cat conftest.err >&5
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } && {
33288 test -z "$ac_c_werror_flag" ||
33289 test ! -s conftest.err
33290 } && test -s conftest.$ac_objext; then
33291 ac_header_compiler=yes
33292 else
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_header_compiler=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33301 echo "${ECHO_T}$ac_header_compiler" >&6; }
33303 # Is the header present?
33304 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33305 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33306 cat >conftest.$ac_ext <<_ACEOF
33307 /* confdefs.h. */
33308 _ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h. */
33312 #include <jack/jack.h>
33313 _ACEOF
33314 if { (ac_try="$ac_cpp conftest.$ac_ext"
33315 case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33321 ac_status=$?
33322 grep -v '^ *+' conftest.er1 >conftest.err
33323 rm -f conftest.er1
33324 cat conftest.err >&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); } >/dev/null && {
33327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33328 test ! -s conftest.err
33329 }; then
33330 ac_header_preproc=yes
33331 else
33332 echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33335 ac_header_preproc=no
33338 rm -f conftest.err conftest.$ac_ext
33339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33340 echo "${ECHO_T}$ac_header_preproc" >&6; }
33342 # So? What about this header?
33343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33344 yes:no: )
33345 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33346 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33347 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33348 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33349 ac_header_preproc=yes
33351 no:yes:* )
33352 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33353 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33354 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33355 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33356 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33357 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33358 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33359 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33360 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33361 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33362 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33363 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33364 ( cat <<\_ASBOX
33365 ## ------------------------------- ##
33366 ## Report this to www.asterisk.org ##
33367 ## ------------------------------- ##
33368 _ASBOX
33369 ) | sed "s/^/$as_me: WARNING: /" >&2
33371 esac
33372 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33373 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33374 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33375 echo $ECHO_N "(cached) $ECHO_C" >&6
33376 else
33377 ac_cv_header_jack_jack_h=$ac_header_preproc
33379 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33380 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33383 if test $ac_cv_header_jack_jack_h = yes; then
33384 JACK_HEADER_FOUND=1
33385 else
33386 JACK_HEADER_FOUND=0
33390 CPPFLAGS="${saved_cppflags}"
33392 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33393 JACK_LIB=""
33394 JACK_INCLUDE=""
33395 else
33396 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33397 JACK_LIB=""
33399 PBX_JACK=1
33400 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33402 cat >>confdefs.h <<_ACEOF
33403 #define HAVE_JACK 1
33404 _ACEOF
33407 cat >>confdefs.h <<_ACEOF
33408 #define HAVE_JACK_VERSION
33409 _ACEOF
33416 # Needed by unixodbc
33418 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33419 pbxlibdir=""
33420 # if --with-LTDL=DIR has been specified, use it.
33421 if test "x${LTDL_DIR}" != "x"; then
33422 if test -d ${LTDL_DIR}/lib; then
33423 pbxlibdir="-L${LTDL_DIR}/lib"
33424 else
33425 pbxlibdir="-L${LTDL_DIR}"
33428 pbxfuncname="lt_dlinit"
33429 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33430 AST_LTDL_FOUND=yes
33431 else
33432 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33433 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33434 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33435 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33436 echo $ECHO_N "(cached) $ECHO_C" >&6
33437 else
33438 ac_check_lib_save_LIBS=$LIBS
33439 LIBS="-lltdl ${pbxlibdir} $LIBS"
33440 cat >conftest.$ac_ext <<_ACEOF
33441 /* confdefs.h. */
33442 _ACEOF
33443 cat confdefs.h >>conftest.$ac_ext
33444 cat >>conftest.$ac_ext <<_ACEOF
33445 /* end confdefs.h. */
33447 /* Override any GCC internal prototype to avoid an error.
33448 Use char because int might match the return type of a GCC
33449 builtin and then its argument prototype would still apply. */
33450 #ifdef __cplusplus
33451 extern "C"
33452 #endif
33453 char ${pbxfuncname} ();
33455 main ()
33457 return ${pbxfuncname} ();
33459 return 0;
33461 _ACEOF
33462 rm -f conftest.$ac_objext conftest$ac_exeext
33463 if { (ac_try="$ac_link"
33464 case "(($ac_try" in
33465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33466 *) ac_try_echo=$ac_try;;
33467 esac
33468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33469 (eval "$ac_link") 2>conftest.er1
33470 ac_status=$?
33471 grep -v '^ *+' conftest.er1 >conftest.err
33472 rm -f conftest.er1
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } && {
33476 test -z "$ac_c_werror_flag" ||
33477 test ! -s conftest.err
33478 } && test -s conftest$ac_exeext &&
33479 $as_test_x conftest$ac_exeext; then
33480 eval "$as_ac_Lib=yes"
33481 else
33482 echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33485 eval "$as_ac_Lib=no"
33488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33489 conftest$ac_exeext conftest.$ac_ext
33490 LIBS=$ac_check_lib_save_LIBS
33492 ac_res=`eval echo '${'$as_ac_Lib'}'`
33493 { echo "$as_me:$LINENO: result: $ac_res" >&5
33494 echo "${ECHO_T}$ac_res" >&6; }
33495 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33496 AST_LTDL_FOUND=yes
33497 else
33498 AST_LTDL_FOUND=no
33503 # now check for the header.
33504 if test "${AST_LTDL_FOUND}" = "yes"; then
33505 LTDL_LIB="${pbxlibdir} -lltdl "
33506 # if --with-LTDL=DIR has been specified, use it.
33507 if test "x${LTDL_DIR}" != "x"; then
33508 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33510 LTDL_INCLUDE="${LTDL_INCLUDE} "
33511 if test "xltdl.h" = "x" ; then # no header, assume found
33512 LTDL_HEADER_FOUND="1"
33513 else # check for the header
33514 saved_cppflags="${CPPFLAGS}"
33515 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33516 if test "${ac_cv_header_ltdl_h+set}" = set; then
33517 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33518 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33519 if test "${ac_cv_header_ltdl_h+set}" = set; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33522 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33523 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33524 else
33525 # Is the header compilable?
33526 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33527 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33528 cat >conftest.$ac_ext <<_ACEOF
33529 /* confdefs.h. */
33530 _ACEOF
33531 cat confdefs.h >>conftest.$ac_ext
33532 cat >>conftest.$ac_ext <<_ACEOF
33533 /* end confdefs.h. */
33534 $ac_includes_default
33535 #include <ltdl.h>
33536 _ACEOF
33537 rm -f conftest.$ac_objext
33538 if { (ac_try="$ac_compile"
33539 case "(($ac_try" in
33540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33541 *) ac_try_echo=$ac_try;;
33542 esac
33543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33544 (eval "$ac_compile") 2>conftest.er1
33545 ac_status=$?
33546 grep -v '^ *+' conftest.er1 >conftest.err
33547 rm -f conftest.er1
33548 cat conftest.err >&5
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); } && {
33551 test -z "$ac_c_werror_flag" ||
33552 test ! -s conftest.err
33553 } && test -s conftest.$ac_objext; then
33554 ac_header_compiler=yes
33555 else
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 ac_header_compiler=no
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33564 echo "${ECHO_T}$ac_header_compiler" >&6; }
33566 # Is the header present?
33567 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33568 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33569 cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h. */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 #include <ltdl.h>
33576 _ACEOF
33577 if { (ac_try="$ac_cpp conftest.$ac_ext"
33578 case "(($ac_try" in
33579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33580 *) ac_try_echo=$ac_try;;
33581 esac
33582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33584 ac_status=$?
33585 grep -v '^ *+' conftest.er1 >conftest.err
33586 rm -f conftest.er1
33587 cat conftest.err >&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } >/dev/null && {
33590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33591 test ! -s conftest.err
33592 }; then
33593 ac_header_preproc=yes
33594 else
33595 echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33598 ac_header_preproc=no
33601 rm -f conftest.err conftest.$ac_ext
33602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33603 echo "${ECHO_T}$ac_header_preproc" >&6; }
33605 # So? What about this header?
33606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33607 yes:no: )
33608 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33609 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33610 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33611 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33612 ac_header_preproc=yes
33614 no:yes:* )
33615 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33616 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33617 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33618 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33619 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33620 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33621 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33622 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33623 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33624 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33625 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33626 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33627 ( cat <<\_ASBOX
33628 ## ------------------------------- ##
33629 ## Report this to www.asterisk.org ##
33630 ## ------------------------------- ##
33631 _ASBOX
33632 ) | sed "s/^/$as_me: WARNING: /" >&2
33634 esac
33635 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33636 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33637 if test "${ac_cv_header_ltdl_h+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639 else
33640 ac_cv_header_ltdl_h=$ac_header_preproc
33642 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33643 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33646 if test $ac_cv_header_ltdl_h = yes; then
33647 LTDL_HEADER_FOUND=1
33648 else
33649 LTDL_HEADER_FOUND=0
33653 CPPFLAGS="${saved_cppflags}"
33655 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33656 LTDL_LIB=""
33657 LTDL_INCLUDE=""
33658 else
33659 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33660 LTDL_LIB=""
33662 PBX_LTDL=1
33663 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33665 cat >>confdefs.h <<_ACEOF
33666 #define HAVE_LTDL 1
33667 _ACEOF
33670 cat >>confdefs.h <<_ACEOF
33671 #define HAVE_LTDL_VERSION
33672 _ACEOF
33680 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33681 pbxlibdir=""
33682 # if --with-LDAP=DIR has been specified, use it.
33683 if test "x${LDAP_DIR}" != "x"; then
33684 if test -d ${LDAP_DIR}/lib; then
33685 pbxlibdir="-L${LDAP_DIR}/lib"
33686 else
33687 pbxlibdir="-L${LDAP_DIR}"
33690 pbxfuncname="ldap_initialize"
33691 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33692 AST_LDAP_FOUND=yes
33693 else
33694 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33695 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33696 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33697 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33699 else
33700 ac_check_lib_save_LIBS=$LIBS
33701 LIBS="-lldap ${pbxlibdir} $LIBS"
33702 cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h. */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h. */
33709 /* Override any GCC internal prototype to avoid an error.
33710 Use char because int might match the return type of a GCC
33711 builtin and then its argument prototype would still apply. */
33712 #ifdef __cplusplus
33713 extern "C"
33714 #endif
33715 char ${pbxfuncname} ();
33717 main ()
33719 return ${pbxfuncname} ();
33721 return 0;
33723 _ACEOF
33724 rm -f conftest.$ac_objext conftest$ac_exeext
33725 if { (ac_try="$ac_link"
33726 case "(($ac_try" in
33727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33728 *) ac_try_echo=$ac_try;;
33729 esac
33730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33731 (eval "$ac_link") 2>conftest.er1
33732 ac_status=$?
33733 grep -v '^ *+' conftest.er1 >conftest.err
33734 rm -f conftest.er1
33735 cat conftest.err >&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } && {
33738 test -z "$ac_c_werror_flag" ||
33739 test ! -s conftest.err
33740 } && test -s conftest$ac_exeext &&
33741 $as_test_x conftest$ac_exeext; then
33742 eval "$as_ac_Lib=yes"
33743 else
33744 echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33747 eval "$as_ac_Lib=no"
33750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33751 conftest$ac_exeext conftest.$ac_ext
33752 LIBS=$ac_check_lib_save_LIBS
33754 ac_res=`eval echo '${'$as_ac_Lib'}'`
33755 { echo "$as_me:$LINENO: result: $ac_res" >&5
33756 echo "${ECHO_T}$ac_res" >&6; }
33757 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33758 AST_LDAP_FOUND=yes
33759 else
33760 AST_LDAP_FOUND=no
33765 # now check for the header.
33766 if test "${AST_LDAP_FOUND}" = "yes"; then
33767 LDAP_LIB="${pbxlibdir} -lldap "
33768 # if --with-LDAP=DIR has been specified, use it.
33769 if test "x${LDAP_DIR}" != "x"; then
33770 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33772 LDAP_INCLUDE="${LDAP_INCLUDE} "
33773 if test "xldap.h" = "x" ; then # no header, assume found
33774 LDAP_HEADER_FOUND="1"
33775 else # check for the header
33776 saved_cppflags="${CPPFLAGS}"
33777 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33778 if test "${ac_cv_header_ldap_h+set}" = set; then
33779 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33780 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33781 if test "${ac_cv_header_ldap_h+set}" = set; then
33782 echo $ECHO_N "(cached) $ECHO_C" >&6
33784 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33785 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33786 else
33787 # Is the header compilable?
33788 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33789 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33790 cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h. */
33792 _ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h. */
33796 $ac_includes_default
33797 #include <ldap.h>
33798 _ACEOF
33799 rm -f conftest.$ac_objext
33800 if { (ac_try="$ac_compile"
33801 case "(($ac_try" in
33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33804 esac
33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33806 (eval "$ac_compile") 2>conftest.er1
33807 ac_status=$?
33808 grep -v '^ *+' conftest.er1 >conftest.err
33809 rm -f conftest.er1
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } && {
33813 test -z "$ac_c_werror_flag" ||
33814 test ! -s conftest.err
33815 } && test -s conftest.$ac_objext; then
33816 ac_header_compiler=yes
33817 else
33818 echo "$as_me: failed program was:" >&5
33819 sed 's/^/| /' conftest.$ac_ext >&5
33821 ac_header_compiler=no
33824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33826 echo "${ECHO_T}$ac_header_compiler" >&6; }
33828 # Is the header present?
33829 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33830 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33831 cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h. */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h. */
33837 #include <ldap.h>
33838 _ACEOF
33839 if { (ac_try="$ac_cpp conftest.$ac_ext"
33840 case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33843 esac
33844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33846 ac_status=$?
33847 grep -v '^ *+' conftest.er1 >conftest.err
33848 rm -f conftest.er1
33849 cat conftest.err >&5
33850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 (exit $ac_status); } >/dev/null && {
33852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33853 test ! -s conftest.err
33854 }; then
33855 ac_header_preproc=yes
33856 else
33857 echo "$as_me: failed program was:" >&5
33858 sed 's/^/| /' conftest.$ac_ext >&5
33860 ac_header_preproc=no
33863 rm -f conftest.err conftest.$ac_ext
33864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33865 echo "${ECHO_T}$ac_header_preproc" >&6; }
33867 # So? What about this header?
33868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33869 yes:no: )
33870 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33871 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33872 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33873 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33874 ac_header_preproc=yes
33876 no:yes:* )
33877 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33878 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33879 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33880 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33881 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33882 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33883 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33884 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33885 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33886 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33887 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33888 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33889 ( cat <<\_ASBOX
33890 ## ------------------------------- ##
33891 ## Report this to www.asterisk.org ##
33892 ## ------------------------------- ##
33893 _ASBOX
33894 ) | sed "s/^/$as_me: WARNING: /" >&2
33896 esac
33897 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33898 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33899 if test "${ac_cv_header_ldap_h+set}" = set; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
33901 else
33902 ac_cv_header_ldap_h=$ac_header_preproc
33904 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33905 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33908 if test $ac_cv_header_ldap_h = yes; then
33909 LDAP_HEADER_FOUND=1
33910 else
33911 LDAP_HEADER_FOUND=0
33915 CPPFLAGS="${saved_cppflags}"
33917 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
33918 LDAP_LIB=""
33919 LDAP_INCLUDE=""
33920 else
33921 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33922 LDAP_LIB=""
33924 PBX_LDAP=1
33925 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33927 cat >>confdefs.h <<_ACEOF
33928 #define HAVE_LDAP 1
33929 _ACEOF
33932 cat >>confdefs.h <<_ACEOF
33933 #define HAVE_LDAP_VERSION
33934 _ACEOF
33942 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
33943 pbxlibdir=""
33944 # if --with-MISDN=DIR has been specified, use it.
33945 if test "x${MISDN_DIR}" != "x"; then
33946 if test -d ${MISDN_DIR}/lib; then
33947 pbxlibdir="-L${MISDN_DIR}/lib"
33948 else
33949 pbxlibdir="-L${MISDN_DIR}"
33952 pbxfuncname="mISDN_open"
33953 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33954 AST_MISDN_FOUND=yes
33955 else
33956 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
33957 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
33958 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
33959 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33961 else
33962 ac_check_lib_save_LIBS=$LIBS
33963 LIBS="-lmISDN ${pbxlibdir} $LIBS"
33964 cat >conftest.$ac_ext <<_ACEOF
33965 /* confdefs.h. */
33966 _ACEOF
33967 cat confdefs.h >>conftest.$ac_ext
33968 cat >>conftest.$ac_ext <<_ACEOF
33969 /* end confdefs.h. */
33971 /* Override any GCC internal prototype to avoid an error.
33972 Use char because int might match the return type of a GCC
33973 builtin and then its argument prototype would still apply. */
33974 #ifdef __cplusplus
33975 extern "C"
33976 #endif
33977 char ${pbxfuncname} ();
33979 main ()
33981 return ${pbxfuncname} ();
33983 return 0;
33985 _ACEOF
33986 rm -f conftest.$ac_objext conftest$ac_exeext
33987 if { (ac_try="$ac_link"
33988 case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991 esac
33992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_link") 2>conftest.er1
33994 ac_status=$?
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } && {
34000 test -z "$ac_c_werror_flag" ||
34001 test ! -s conftest.err
34002 } && test -s conftest$ac_exeext &&
34003 $as_test_x conftest$ac_exeext; then
34004 eval "$as_ac_Lib=yes"
34005 else
34006 echo "$as_me: failed program was:" >&5
34007 sed 's/^/| /' conftest.$ac_ext >&5
34009 eval "$as_ac_Lib=no"
34012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34013 conftest$ac_exeext conftest.$ac_ext
34014 LIBS=$ac_check_lib_save_LIBS
34016 ac_res=`eval echo '${'$as_ac_Lib'}'`
34017 { echo "$as_me:$LINENO: result: $ac_res" >&5
34018 echo "${ECHO_T}$ac_res" >&6; }
34019 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34020 AST_MISDN_FOUND=yes
34021 else
34022 AST_MISDN_FOUND=no
34027 # now check for the header.
34028 if test "${AST_MISDN_FOUND}" = "yes"; then
34029 MISDN_LIB="${pbxlibdir} -lmISDN "
34030 # if --with-MISDN=DIR has been specified, use it.
34031 if test "x${MISDN_DIR}" != "x"; then
34032 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34034 MISDN_INCLUDE="${MISDN_INCLUDE} "
34035 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34036 MISDN_HEADER_FOUND="1"
34037 else # check for the header
34038 saved_cppflags="${CPPFLAGS}"
34039 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
34040 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34041 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34042 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34043 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34044 echo $ECHO_N "(cached) $ECHO_C" >&6
34046 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34047 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34048 else
34049 # Is the header compilable?
34050 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34051 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34052 cat >conftest.$ac_ext <<_ACEOF
34053 /* confdefs.h. */
34054 _ACEOF
34055 cat confdefs.h >>conftest.$ac_ext
34056 cat >>conftest.$ac_ext <<_ACEOF
34057 /* end confdefs.h. */
34058 $ac_includes_default
34059 #include <mISDNuser/mISDNlib.h>
34060 _ACEOF
34061 rm -f conftest.$ac_objext
34062 if { (ac_try="$ac_compile"
34063 case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34066 esac
34067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_compile") 2>conftest.er1
34069 ac_status=$?
34070 grep -v '^ *+' conftest.er1 >conftest.err
34071 rm -f conftest.er1
34072 cat conftest.err >&5
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); } && {
34075 test -z "$ac_c_werror_flag" ||
34076 test ! -s conftest.err
34077 } && test -s conftest.$ac_objext; then
34078 ac_header_compiler=yes
34079 else
34080 echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34083 ac_header_compiler=no
34086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34088 echo "${ECHO_T}$ac_header_compiler" >&6; }
34090 # Is the header present?
34091 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34092 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34093 cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h. */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h. */
34099 #include <mISDNuser/mISDNlib.h>
34100 _ACEOF
34101 if { (ac_try="$ac_cpp conftest.$ac_ext"
34102 case "(($ac_try" in
34103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104 *) ac_try_echo=$ac_try;;
34105 esac
34106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34108 ac_status=$?
34109 grep -v '^ *+' conftest.er1 >conftest.err
34110 rm -f conftest.er1
34111 cat conftest.err >&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); } >/dev/null && {
34114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34115 test ! -s conftest.err
34116 }; then
34117 ac_header_preproc=yes
34118 else
34119 echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.$ac_ext >&5
34122 ac_header_preproc=no
34125 rm -f conftest.err conftest.$ac_ext
34126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34127 echo "${ECHO_T}$ac_header_preproc" >&6; }
34129 # So? What about this header?
34130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34131 yes:no: )
34132 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34133 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34134 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34135 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34136 ac_header_preproc=yes
34138 no:yes:* )
34139 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34140 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34141 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34142 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34143 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34144 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34145 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34146 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34147 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34148 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34149 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34150 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34151 ( cat <<\_ASBOX
34152 ## ------------------------------- ##
34153 ## Report this to www.asterisk.org ##
34154 ## ------------------------------- ##
34155 _ASBOX
34156 ) | sed "s/^/$as_me: WARNING: /" >&2
34158 esac
34159 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34160 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34161 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34162 echo $ECHO_N "(cached) $ECHO_C" >&6
34163 else
34164 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34166 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34167 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34170 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34171 MISDN_HEADER_FOUND=1
34172 else
34173 MISDN_HEADER_FOUND=0
34177 CPPFLAGS="${saved_cppflags}"
34179 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34180 MISDN_LIB=""
34181 MISDN_INCLUDE=""
34182 else
34183 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34184 MISDN_LIB=""
34186 PBX_MISDN=1
34187 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34189 cat >>confdefs.h <<_ACEOF
34190 #define HAVE_MISDN 1
34191 _ACEOF
34194 cat >>confdefs.h <<_ACEOF
34195 #define HAVE_MISDN_VERSION
34196 _ACEOF
34203 if test "${PBX_MISDN}" = 1; then
34205 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34206 pbxlibdir=""
34207 # if --with-ISDNNET=DIR has been specified, use it.
34208 if test "x${ISDNNET_DIR}" != "x"; then
34209 if test -d ${ISDNNET_DIR}/lib; then
34210 pbxlibdir="-L${ISDNNET_DIR}/lib"
34211 else
34212 pbxlibdir="-L${ISDNNET_DIR}"
34215 pbxfuncname="init_manager"
34216 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34217 AST_ISDNNET_FOUND=yes
34218 else
34219 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34220 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34221 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34222 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34224 else
34225 ac_check_lib_save_LIBS=$LIBS
34226 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34227 cat >conftest.$ac_ext <<_ACEOF
34228 /* confdefs.h. */
34229 _ACEOF
34230 cat confdefs.h >>conftest.$ac_ext
34231 cat >>conftest.$ac_ext <<_ACEOF
34232 /* end confdefs.h. */
34234 /* Override any GCC internal prototype to avoid an error.
34235 Use char because int might match the return type of a GCC
34236 builtin and then its argument prototype would still apply. */
34237 #ifdef __cplusplus
34238 extern "C"
34239 #endif
34240 char ${pbxfuncname} ();
34242 main ()
34244 return ${pbxfuncname} ();
34246 return 0;
34248 _ACEOF
34249 rm -f conftest.$ac_objext conftest$ac_exeext
34250 if { (ac_try="$ac_link"
34251 case "(($ac_try" in
34252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253 *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256 (eval "$ac_link") 2>conftest.er1
34257 ac_status=$?
34258 grep -v '^ *+' conftest.er1 >conftest.err
34259 rm -f conftest.er1
34260 cat conftest.err >&5
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); } && {
34263 test -z "$ac_c_werror_flag" ||
34264 test ! -s conftest.err
34265 } && test -s conftest$ac_exeext &&
34266 $as_test_x conftest$ac_exeext; then
34267 eval "$as_ac_Lib=yes"
34268 else
34269 echo "$as_me: failed program was:" >&5
34270 sed 's/^/| /' conftest.$ac_ext >&5
34272 eval "$as_ac_Lib=no"
34275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34276 conftest$ac_exeext conftest.$ac_ext
34277 LIBS=$ac_check_lib_save_LIBS
34279 ac_res=`eval echo '${'$as_ac_Lib'}'`
34280 { echo "$as_me:$LINENO: result: $ac_res" >&5
34281 echo "${ECHO_T}$ac_res" >&6; }
34282 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34283 AST_ISDNNET_FOUND=yes
34284 else
34285 AST_ISDNNET_FOUND=no
34290 # now check for the header.
34291 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34292 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34293 # if --with-ISDNNET=DIR has been specified, use it.
34294 if test "x${ISDNNET_DIR}" != "x"; then
34295 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34297 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34298 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34299 ISDNNET_HEADER_FOUND="1"
34300 else # check for the header
34301 saved_cppflags="${CPPFLAGS}"
34302 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
34303 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34304 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34305 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34306 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34307 echo $ECHO_N "(cached) $ECHO_C" >&6
34309 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34310 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34311 else
34312 # Is the header compilable?
34313 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34314 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34315 cat >conftest.$ac_ext <<_ACEOF
34316 /* confdefs.h. */
34317 _ACEOF
34318 cat confdefs.h >>conftest.$ac_ext
34319 cat >>conftest.$ac_ext <<_ACEOF
34320 /* end confdefs.h. */
34321 $ac_includes_default
34322 #include <mISDNuser/isdn_net.h>
34323 _ACEOF
34324 rm -f conftest.$ac_objext
34325 if { (ac_try="$ac_compile"
34326 case "(($ac_try" in
34327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328 *) ac_try_echo=$ac_try;;
34329 esac
34330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331 (eval "$ac_compile") 2>conftest.er1
34332 ac_status=$?
34333 grep -v '^ *+' conftest.er1 >conftest.err
34334 rm -f conftest.er1
34335 cat conftest.err >&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); } && {
34338 test -z "$ac_c_werror_flag" ||
34339 test ! -s conftest.err
34340 } && test -s conftest.$ac_objext; then
34341 ac_header_compiler=yes
34342 else
34343 echo "$as_me: failed program was:" >&5
34344 sed 's/^/| /' conftest.$ac_ext >&5
34346 ac_header_compiler=no
34349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34351 echo "${ECHO_T}$ac_header_compiler" >&6; }
34353 # Is the header present?
34354 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34355 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34356 cat >conftest.$ac_ext <<_ACEOF
34357 /* confdefs.h. */
34358 _ACEOF
34359 cat confdefs.h >>conftest.$ac_ext
34360 cat >>conftest.$ac_ext <<_ACEOF
34361 /* end confdefs.h. */
34362 #include <mISDNuser/isdn_net.h>
34363 _ACEOF
34364 if { (ac_try="$ac_cpp conftest.$ac_ext"
34365 case "(($ac_try" in
34366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367 *) ac_try_echo=$ac_try;;
34368 esac
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34371 ac_status=$?
34372 grep -v '^ *+' conftest.er1 >conftest.err
34373 rm -f conftest.er1
34374 cat conftest.err >&5
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); } >/dev/null && {
34377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34378 test ! -s conftest.err
34379 }; then
34380 ac_header_preproc=yes
34381 else
34382 echo "$as_me: failed program was:" >&5
34383 sed 's/^/| /' conftest.$ac_ext >&5
34385 ac_header_preproc=no
34388 rm -f conftest.err conftest.$ac_ext
34389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34390 echo "${ECHO_T}$ac_header_preproc" >&6; }
34392 # So? What about this header?
34393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34394 yes:no: )
34395 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34396 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34397 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34398 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34399 ac_header_preproc=yes
34401 no:yes:* )
34402 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34403 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34404 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34405 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34406 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34407 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34408 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34409 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34410 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34411 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34412 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34413 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34414 ( cat <<\_ASBOX
34415 ## ------------------------------- ##
34416 ## Report this to www.asterisk.org ##
34417 ## ------------------------------- ##
34418 _ASBOX
34419 ) | sed "s/^/$as_me: WARNING: /" >&2
34421 esac
34422 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34423 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34424 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34425 echo $ECHO_N "(cached) $ECHO_C" >&6
34426 else
34427 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34429 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34430 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34433 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34434 ISDNNET_HEADER_FOUND=1
34435 else
34436 ISDNNET_HEADER_FOUND=0
34440 CPPFLAGS="${saved_cppflags}"
34442 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34443 ISDNNET_LIB=""
34444 ISDNNET_INCLUDE=""
34445 else
34446 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34447 ISDNNET_LIB=""
34449 PBX_ISDNNET=1
34450 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34452 cat >>confdefs.h <<_ACEOF
34453 #define HAVE_ISDNNET 1
34454 _ACEOF
34457 cat >>confdefs.h <<_ACEOF
34458 #define HAVE_ISDNNET_VERSION
34459 _ACEOF
34466 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34467 pbxlibdir=""
34468 # if --with-SUPPSERV=DIR has been specified, use it.
34469 if test "x${SUPPSERV_DIR}" != "x"; then
34470 if test -d ${SUPPSERV_DIR}/lib; then
34471 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34472 else
34473 pbxlibdir="-L${SUPPSERV_DIR}"
34476 pbxfuncname="encodeFac"
34477 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34478 AST_SUPPSERV_FOUND=yes
34479 else
34480 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34481 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34482 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34483 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34484 echo $ECHO_N "(cached) $ECHO_C" >&6
34485 else
34486 ac_check_lib_save_LIBS=$LIBS
34487 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34488 cat >conftest.$ac_ext <<_ACEOF
34489 /* confdefs.h. */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h. */
34495 /* Override any GCC internal prototype to avoid an error.
34496 Use char because int might match the return type of a GCC
34497 builtin and then its argument prototype would still apply. */
34498 #ifdef __cplusplus
34499 extern "C"
34500 #endif
34501 char ${pbxfuncname} ();
34503 main ()
34505 return ${pbxfuncname} ();
34507 return 0;
34509 _ACEOF
34510 rm -f conftest.$ac_objext conftest$ac_exeext
34511 if { (ac_try="$ac_link"
34512 case "(($ac_try" in
34513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514 *) ac_try_echo=$ac_try;;
34515 esac
34516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517 (eval "$ac_link") 2>conftest.er1
34518 ac_status=$?
34519 grep -v '^ *+' conftest.er1 >conftest.err
34520 rm -f conftest.er1
34521 cat conftest.err >&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } && {
34524 test -z "$ac_c_werror_flag" ||
34525 test ! -s conftest.err
34526 } && test -s conftest$ac_exeext &&
34527 $as_test_x conftest$ac_exeext; then
34528 eval "$as_ac_Lib=yes"
34529 else
34530 echo "$as_me: failed program was:" >&5
34531 sed 's/^/| /' conftest.$ac_ext >&5
34533 eval "$as_ac_Lib=no"
34536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34537 conftest$ac_exeext conftest.$ac_ext
34538 LIBS=$ac_check_lib_save_LIBS
34540 ac_res=`eval echo '${'$as_ac_Lib'}'`
34541 { echo "$as_me:$LINENO: result: $ac_res" >&5
34542 echo "${ECHO_T}$ac_res" >&6; }
34543 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34544 AST_SUPPSERV_FOUND=yes
34545 else
34546 AST_SUPPSERV_FOUND=no
34551 # now check for the header.
34552 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34553 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34554 # if --with-SUPPSERV=DIR has been specified, use it.
34555 if test "x${SUPPSERV_DIR}" != "x"; then
34556 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34558 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34559 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34560 SUPPSERV_HEADER_FOUND="1"
34561 else # check for the header
34562 saved_cppflags="${CPPFLAGS}"
34563 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34564 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34565 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34566 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34567 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34570 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34571 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34572 else
34573 # Is the header compilable?
34574 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34575 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34576 cat >conftest.$ac_ext <<_ACEOF
34577 /* confdefs.h. */
34578 _ACEOF
34579 cat confdefs.h >>conftest.$ac_ext
34580 cat >>conftest.$ac_ext <<_ACEOF
34581 /* end confdefs.h. */
34582 $ac_includes_default
34583 #include <mISDNuser/suppserv.h>
34584 _ACEOF
34585 rm -f conftest.$ac_objext
34586 if { (ac_try="$ac_compile"
34587 case "(($ac_try" in
34588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34589 *) ac_try_echo=$ac_try;;
34590 esac
34591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34592 (eval "$ac_compile") 2>conftest.er1
34593 ac_status=$?
34594 grep -v '^ *+' conftest.er1 >conftest.err
34595 rm -f conftest.er1
34596 cat conftest.err >&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } && {
34599 test -z "$ac_c_werror_flag" ||
34600 test ! -s conftest.err
34601 } && test -s conftest.$ac_objext; then
34602 ac_header_compiler=yes
34603 else
34604 echo "$as_me: failed program was:" >&5
34605 sed 's/^/| /' conftest.$ac_ext >&5
34607 ac_header_compiler=no
34610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34612 echo "${ECHO_T}$ac_header_compiler" >&6; }
34614 # Is the header present?
34615 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34616 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34617 cat >conftest.$ac_ext <<_ACEOF
34618 /* confdefs.h. */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h. */
34623 #include <mISDNuser/suppserv.h>
34624 _ACEOF
34625 if { (ac_try="$ac_cpp conftest.$ac_ext"
34626 case "(($ac_try" in
34627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34628 *) ac_try_echo=$ac_try;;
34629 esac
34630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34632 ac_status=$?
34633 grep -v '^ *+' conftest.er1 >conftest.err
34634 rm -f conftest.er1
34635 cat conftest.err >&5
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); } >/dev/null && {
34638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34639 test ! -s conftest.err
34640 }; then
34641 ac_header_preproc=yes
34642 else
34643 echo "$as_me: failed program was:" >&5
34644 sed 's/^/| /' conftest.$ac_ext >&5
34646 ac_header_preproc=no
34649 rm -f conftest.err conftest.$ac_ext
34650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34651 echo "${ECHO_T}$ac_header_preproc" >&6; }
34653 # So? What about this header?
34654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34655 yes:no: )
34656 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34657 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34658 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34659 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34660 ac_header_preproc=yes
34662 no:yes:* )
34663 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34664 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34665 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34666 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34667 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34668 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34669 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34670 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34671 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34672 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34673 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34674 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34675 ( cat <<\_ASBOX
34676 ## ------------------------------- ##
34677 ## Report this to www.asterisk.org ##
34678 ## ------------------------------- ##
34679 _ASBOX
34680 ) | sed "s/^/$as_me: WARNING: /" >&2
34682 esac
34683 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34684 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34685 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34686 echo $ECHO_N "(cached) $ECHO_C" >&6
34687 else
34688 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34690 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34691 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34694 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34695 SUPPSERV_HEADER_FOUND=1
34696 else
34697 SUPPSERV_HEADER_FOUND=0
34701 CPPFLAGS="${saved_cppflags}"
34703 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34704 SUPPSERV_LIB=""
34705 SUPPSERV_INCLUDE=""
34706 else
34707 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34708 SUPPSERV_LIB=""
34710 PBX_SUPPSERV=1
34711 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34713 cat >>confdefs.h <<_ACEOF
34714 #define HAVE_SUPPSERV 1
34715 _ACEOF
34718 cat >>confdefs.h <<_ACEOF
34719 #define HAVE_SUPPSERV_VERSION
34720 _ACEOF
34727 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34728 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34729 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34730 saved_cppflags="${CPPFLAGS}"
34731 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34732 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34734 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34736 cat >conftest.$ac_ext <<_ACEOF
34737 /* confdefs.h. */
34738 _ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h. */
34742 #include <mISDNuser/suppserv.h>
34744 main ()
34746 #if defined(Fac_RESULT)
34747 int foo = 0;
34748 #else
34749 int foo = bar;
34750 #endif
34754 return 0;
34756 _ACEOF
34757 rm -f conftest.$ac_objext
34758 if { (ac_try="$ac_compile"
34759 case "(($ac_try" in
34760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761 *) ac_try_echo=$ac_try;;
34762 esac
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764 (eval "$ac_compile") 2>conftest.er1
34765 ac_status=$?
34766 grep -v '^ *+' conftest.er1 >conftest.err
34767 rm -f conftest.er1
34768 cat conftest.err >&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } && {
34771 test -z "$ac_c_werror_flag" ||
34772 test ! -s conftest.err
34773 } && test -s conftest.$ac_objext; then
34774 { echo "$as_me:$LINENO: result: yes" >&5
34775 echo "${ECHO_T}yes" >&6; }
34776 PBX_MISDN_FAC_RESULT=1
34778 cat >>confdefs.h <<\_ACEOF
34779 #define HAVE_MISDN_FAC_RESULT 1
34780 _ACEOF
34783 cat >>confdefs.h <<\_ACEOF
34784 #define HAVE_MISDN_FAC_RESULT_VERSION
34785 _ACEOF
34788 else
34789 echo "$as_me: failed program was:" >&5
34790 sed 's/^/| /' conftest.$ac_ext >&5
34792 { echo "$as_me:$LINENO: result: no" >&5
34793 echo "${ECHO_T}no" >&6; }
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798 CPPFLAGS="${saved_cppflags}"
34803 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34804 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34805 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34806 saved_cppflags="${CPPFLAGS}"
34807 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34808 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34810 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34812 cat >conftest.$ac_ext <<_ACEOF
34813 /* confdefs.h. */
34814 _ACEOF
34815 cat confdefs.h >>conftest.$ac_ext
34816 cat >>conftest.$ac_ext <<_ACEOF
34817 /* end confdefs.h. */
34818 #include <mISDNuser/suppserv.h>
34820 main ()
34822 #if defined(Fac_ERROR)
34823 int foo = 0;
34824 #else
34825 int foo = bar;
34826 #endif
34830 return 0;
34832 _ACEOF
34833 rm -f conftest.$ac_objext
34834 if { (ac_try="$ac_compile"
34835 case "(($ac_try" in
34836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34837 *) ac_try_echo=$ac_try;;
34838 esac
34839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34840 (eval "$ac_compile") 2>conftest.er1
34841 ac_status=$?
34842 grep -v '^ *+' conftest.er1 >conftest.err
34843 rm -f conftest.er1
34844 cat conftest.err >&5
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); } && {
34847 test -z "$ac_c_werror_flag" ||
34848 test ! -s conftest.err
34849 } && test -s conftest.$ac_objext; then
34850 { echo "$as_me:$LINENO: result: yes" >&5
34851 echo "${ECHO_T}yes" >&6; }
34852 PBX_MISDN_FAC_ERROR=1
34854 cat >>confdefs.h <<\_ACEOF
34855 #define HAVE_MISDN_FAC_ERROR 1
34856 _ACEOF
34859 cat >>confdefs.h <<\_ACEOF
34860 #define HAVE_MISDN_FAC_ERROR_VERSION
34861 _ACEOF
34864 else
34865 echo "$as_me: failed program was:" >&5
34866 sed 's/^/| /' conftest.$ac_ext >&5
34868 { echo "$as_me:$LINENO: result: no" >&5
34869 echo "${ECHO_T}no" >&6; }
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 CPPFLAGS="${saved_cppflags}"
34878 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34879 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34880 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34881 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34882 echo $ECHO_N "(cached) $ECHO_C" >&6
34884 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34885 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34886 else
34887 # Is the header compilable?
34888 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34889 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34890 cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h. */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h. */
34896 $ac_includes_default
34897 #include <linux/mISDNdsp.h>
34898 _ACEOF
34899 rm -f conftest.$ac_objext
34900 if { (ac_try="$ac_compile"
34901 case "(($ac_try" in
34902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903 *) ac_try_echo=$ac_try;;
34904 esac
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906 (eval "$ac_compile") 2>conftest.er1
34907 ac_status=$?
34908 grep -v '^ *+' conftest.er1 >conftest.err
34909 rm -f conftest.er1
34910 cat conftest.err >&5
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); } && {
34913 test -z "$ac_c_werror_flag" ||
34914 test ! -s conftest.err
34915 } && test -s conftest.$ac_objext; then
34916 ac_header_compiler=yes
34917 else
34918 echo "$as_me: failed program was:" >&5
34919 sed 's/^/| /' conftest.$ac_ext >&5
34921 ac_header_compiler=no
34924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34926 echo "${ECHO_T}$ac_header_compiler" >&6; }
34928 # Is the header present?
34929 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
34930 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
34931 cat >conftest.$ac_ext <<_ACEOF
34932 /* confdefs.h. */
34933 _ACEOF
34934 cat confdefs.h >>conftest.$ac_ext
34935 cat >>conftest.$ac_ext <<_ACEOF
34936 /* end confdefs.h. */
34937 #include <linux/mISDNdsp.h>
34938 _ACEOF
34939 if { (ac_try="$ac_cpp conftest.$ac_ext"
34940 case "(($ac_try" in
34941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34942 *) ac_try_echo=$ac_try;;
34943 esac
34944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34946 ac_status=$?
34947 grep -v '^ *+' conftest.er1 >conftest.err
34948 rm -f conftest.er1
34949 cat conftest.err >&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } >/dev/null && {
34952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34953 test ! -s conftest.err
34954 }; then
34955 ac_header_preproc=yes
34956 else
34957 echo "$as_me: failed program was:" >&5
34958 sed 's/^/| /' conftest.$ac_ext >&5
34960 ac_header_preproc=no
34963 rm -f conftest.err conftest.$ac_ext
34964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34965 echo "${ECHO_T}$ac_header_preproc" >&6; }
34967 # So? What about this header?
34968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34969 yes:no: )
34970 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
34971 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34972 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
34973 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
34974 ac_header_preproc=yes
34976 no:yes:* )
34977 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
34978 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
34979 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
34980 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
34981 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
34982 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
34983 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
34984 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
34985 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
34986 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
34987 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
34988 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
34989 ( cat <<\_ASBOX
34990 ## ------------------------------- ##
34991 ## Report this to www.asterisk.org ##
34992 ## ------------------------------- ##
34993 _ASBOX
34994 ) | sed "s/^/$as_me: WARNING: /" >&2
34996 esac
34997 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34998 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34999 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35000 echo $ECHO_N "(cached) $ECHO_C" >&6
35001 else
35002 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
35004 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35005 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35008 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
35010 cat >>confdefs.h <<_ACEOF
35011 #define MISDN_1_2 1
35012 _ACEOF
35020 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
35021 pbxlibdir=""
35022 # if --with-NBS=DIR has been specified, use it.
35023 if test "x${NBS_DIR}" != "x"; then
35024 if test -d ${NBS_DIR}/lib; then
35025 pbxlibdir="-L${NBS_DIR}/lib"
35026 else
35027 pbxlibdir="-L${NBS_DIR}"
35030 pbxfuncname="nbs_connect"
35031 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35032 AST_NBS_FOUND=yes
35033 else
35034 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35035 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35036 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35037 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35038 echo $ECHO_N "(cached) $ECHO_C" >&6
35039 else
35040 ac_check_lib_save_LIBS=$LIBS
35041 LIBS="-lnbs ${pbxlibdir} $LIBS"
35042 cat >conftest.$ac_ext <<_ACEOF
35043 /* confdefs.h. */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35049 /* Override any GCC internal prototype to avoid an error.
35050 Use char because int might match the return type of a GCC
35051 builtin and then its argument prototype would still apply. */
35052 #ifdef __cplusplus
35053 extern "C"
35054 #endif
35055 char ${pbxfuncname} ();
35057 main ()
35059 return ${pbxfuncname} ();
35061 return 0;
35063 _ACEOF
35064 rm -f conftest.$ac_objext conftest$ac_exeext
35065 if { (ac_try="$ac_link"
35066 case "(($ac_try" in
35067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35068 *) ac_try_echo=$ac_try;;
35069 esac
35070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35071 (eval "$ac_link") 2>conftest.er1
35072 ac_status=$?
35073 grep -v '^ *+' conftest.er1 >conftest.err
35074 rm -f conftest.er1
35075 cat conftest.err >&5
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); } && {
35078 test -z "$ac_c_werror_flag" ||
35079 test ! -s conftest.err
35080 } && test -s conftest$ac_exeext &&
35081 $as_test_x conftest$ac_exeext; then
35082 eval "$as_ac_Lib=yes"
35083 else
35084 echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35087 eval "$as_ac_Lib=no"
35090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35091 conftest$ac_exeext conftest.$ac_ext
35092 LIBS=$ac_check_lib_save_LIBS
35094 ac_res=`eval echo '${'$as_ac_Lib'}'`
35095 { echo "$as_me:$LINENO: result: $ac_res" >&5
35096 echo "${ECHO_T}$ac_res" >&6; }
35097 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35098 AST_NBS_FOUND=yes
35099 else
35100 AST_NBS_FOUND=no
35105 # now check for the header.
35106 if test "${AST_NBS_FOUND}" = "yes"; then
35107 NBS_LIB="${pbxlibdir} -lnbs "
35108 # if --with-NBS=DIR has been specified, use it.
35109 if test "x${NBS_DIR}" != "x"; then
35110 NBS_INCLUDE="-I${NBS_DIR}/include"
35112 NBS_INCLUDE="${NBS_INCLUDE} "
35113 if test "xnbs.h" = "x" ; then # no header, assume found
35114 NBS_HEADER_FOUND="1"
35115 else # check for the header
35116 saved_cppflags="${CPPFLAGS}"
35117 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
35118 if test "${ac_cv_header_nbs_h+set}" = set; then
35119 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35120 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35121 if test "${ac_cv_header_nbs_h+set}" = set; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35124 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35125 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35126 else
35127 # Is the header compilable?
35128 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35129 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35130 cat >conftest.$ac_ext <<_ACEOF
35131 /* confdefs.h. */
35132 _ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h. */
35136 $ac_includes_default
35137 #include <nbs.h>
35138 _ACEOF
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143 *) ac_try_echo=$ac_try;;
35144 esac
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146 (eval "$ac_compile") 2>conftest.er1
35147 ac_status=$?
35148 grep -v '^ *+' conftest.er1 >conftest.err
35149 rm -f conftest.er1
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } && {
35153 test -z "$ac_c_werror_flag" ||
35154 test ! -s conftest.err
35155 } && test -s conftest.$ac_objext; then
35156 ac_header_compiler=yes
35157 else
35158 echo "$as_me: failed program was:" >&5
35159 sed 's/^/| /' conftest.$ac_ext >&5
35161 ac_header_compiler=no
35164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35166 echo "${ECHO_T}$ac_header_compiler" >&6; }
35168 # Is the header present?
35169 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35170 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35171 cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h. */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h. */
35177 #include <nbs.h>
35178 _ACEOF
35179 if { (ac_try="$ac_cpp conftest.$ac_ext"
35180 case "(($ac_try" in
35181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35182 *) ac_try_echo=$ac_try;;
35183 esac
35184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35186 ac_status=$?
35187 grep -v '^ *+' conftest.er1 >conftest.err
35188 rm -f conftest.er1
35189 cat conftest.err >&5
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); } >/dev/null && {
35192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35193 test ! -s conftest.err
35194 }; then
35195 ac_header_preproc=yes
35196 else
35197 echo "$as_me: failed program was:" >&5
35198 sed 's/^/| /' conftest.$ac_ext >&5
35200 ac_header_preproc=no
35203 rm -f conftest.err conftest.$ac_ext
35204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35205 echo "${ECHO_T}$ac_header_preproc" >&6; }
35207 # So? What about this header?
35208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35209 yes:no: )
35210 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35211 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35212 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35213 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35214 ac_header_preproc=yes
35216 no:yes:* )
35217 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35218 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35219 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35220 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35221 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35222 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35223 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35224 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35225 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35226 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35227 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35228 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35229 ( cat <<\_ASBOX
35230 ## ------------------------------- ##
35231 ## Report this to www.asterisk.org ##
35232 ## ------------------------------- ##
35233 _ASBOX
35234 ) | sed "s/^/$as_me: WARNING: /" >&2
35236 esac
35237 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35238 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35239 if test "${ac_cv_header_nbs_h+set}" = set; then
35240 echo $ECHO_N "(cached) $ECHO_C" >&6
35241 else
35242 ac_cv_header_nbs_h=$ac_header_preproc
35244 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35245 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35248 if test $ac_cv_header_nbs_h = yes; then
35249 NBS_HEADER_FOUND=1
35250 else
35251 NBS_HEADER_FOUND=0
35255 CPPFLAGS="${saved_cppflags}"
35257 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35258 NBS_LIB=""
35259 NBS_INCLUDE=""
35260 else
35261 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35262 NBS_LIB=""
35264 PBX_NBS=1
35265 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35267 cat >>confdefs.h <<_ACEOF
35268 #define HAVE_NBS 1
35269 _ACEOF
35272 cat >>confdefs.h <<_ACEOF
35273 #define HAVE_NBS_VERSION
35274 _ACEOF
35282 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35283 pbxlibdir=""
35284 # if --with-NCURSES=DIR has been specified, use it.
35285 if test "x${NCURSES_DIR}" != "x"; then
35286 if test -d ${NCURSES_DIR}/lib; then
35287 pbxlibdir="-L${NCURSES_DIR}/lib"
35288 else
35289 pbxlibdir="-L${NCURSES_DIR}"
35292 pbxfuncname="initscr"
35293 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35294 AST_NCURSES_FOUND=yes
35295 else
35296 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35297 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35298 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35299 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35300 echo $ECHO_N "(cached) $ECHO_C" >&6
35301 else
35302 ac_check_lib_save_LIBS=$LIBS
35303 LIBS="-lncurses ${pbxlibdir} $LIBS"
35304 cat >conftest.$ac_ext <<_ACEOF
35305 /* confdefs.h. */
35306 _ACEOF
35307 cat confdefs.h >>conftest.$ac_ext
35308 cat >>conftest.$ac_ext <<_ACEOF
35309 /* end confdefs.h. */
35311 /* Override any GCC internal prototype to avoid an error.
35312 Use char because int might match the return type of a GCC
35313 builtin and then its argument prototype would still apply. */
35314 #ifdef __cplusplus
35315 extern "C"
35316 #endif
35317 char ${pbxfuncname} ();
35319 main ()
35321 return ${pbxfuncname} ();
35323 return 0;
35325 _ACEOF
35326 rm -f conftest.$ac_objext conftest$ac_exeext
35327 if { (ac_try="$ac_link"
35328 case "(($ac_try" in
35329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35330 *) ac_try_echo=$ac_try;;
35331 esac
35332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35333 (eval "$ac_link") 2>conftest.er1
35334 ac_status=$?
35335 grep -v '^ *+' conftest.er1 >conftest.err
35336 rm -f conftest.er1
35337 cat conftest.err >&5
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); } && {
35340 test -z "$ac_c_werror_flag" ||
35341 test ! -s conftest.err
35342 } && test -s conftest$ac_exeext &&
35343 $as_test_x conftest$ac_exeext; then
35344 eval "$as_ac_Lib=yes"
35345 else
35346 echo "$as_me: failed program was:" >&5
35347 sed 's/^/| /' conftest.$ac_ext >&5
35349 eval "$as_ac_Lib=no"
35352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35353 conftest$ac_exeext conftest.$ac_ext
35354 LIBS=$ac_check_lib_save_LIBS
35356 ac_res=`eval echo '${'$as_ac_Lib'}'`
35357 { echo "$as_me:$LINENO: result: $ac_res" >&5
35358 echo "${ECHO_T}$ac_res" >&6; }
35359 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35360 AST_NCURSES_FOUND=yes
35361 else
35362 AST_NCURSES_FOUND=no
35367 # now check for the header.
35368 if test "${AST_NCURSES_FOUND}" = "yes"; then
35369 NCURSES_LIB="${pbxlibdir} -lncurses "
35370 # if --with-NCURSES=DIR has been specified, use it.
35371 if test "x${NCURSES_DIR}" != "x"; then
35372 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35374 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35375 if test "xcurses.h" = "x" ; then # no header, assume found
35376 NCURSES_HEADER_FOUND="1"
35377 else # check for the header
35378 saved_cppflags="${CPPFLAGS}"
35379 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35380 if test "${ac_cv_header_curses_h+set}" = set; then
35381 { echo "$as_me:$LINENO: checking for curses.h" >&5
35382 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35383 if test "${ac_cv_header_curses_h+set}" = set; then
35384 echo $ECHO_N "(cached) $ECHO_C" >&6
35386 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35387 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35388 else
35389 # Is the header compilable?
35390 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35391 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35392 cat >conftest.$ac_ext <<_ACEOF
35393 /* confdefs.h. */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h. */
35398 $ac_includes_default
35399 #include <curses.h>
35400 _ACEOF
35401 rm -f conftest.$ac_objext
35402 if { (ac_try="$ac_compile"
35403 case "(($ac_try" in
35404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35405 *) ac_try_echo=$ac_try;;
35406 esac
35407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35408 (eval "$ac_compile") 2>conftest.er1
35409 ac_status=$?
35410 grep -v '^ *+' conftest.er1 >conftest.err
35411 rm -f conftest.er1
35412 cat conftest.err >&5
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); } && {
35415 test -z "$ac_c_werror_flag" ||
35416 test ! -s conftest.err
35417 } && test -s conftest.$ac_objext; then
35418 ac_header_compiler=yes
35419 else
35420 echo "$as_me: failed program was:" >&5
35421 sed 's/^/| /' conftest.$ac_ext >&5
35423 ac_header_compiler=no
35426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35428 echo "${ECHO_T}$ac_header_compiler" >&6; }
35430 # Is the header present?
35431 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35432 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35433 cat >conftest.$ac_ext <<_ACEOF
35434 /* confdefs.h. */
35435 _ACEOF
35436 cat confdefs.h >>conftest.$ac_ext
35437 cat >>conftest.$ac_ext <<_ACEOF
35438 /* end confdefs.h. */
35439 #include <curses.h>
35440 _ACEOF
35441 if { (ac_try="$ac_cpp conftest.$ac_ext"
35442 case "(($ac_try" in
35443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35444 *) ac_try_echo=$ac_try;;
35445 esac
35446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35448 ac_status=$?
35449 grep -v '^ *+' conftest.er1 >conftest.err
35450 rm -f conftest.er1
35451 cat conftest.err >&5
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); } >/dev/null && {
35454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35455 test ! -s conftest.err
35456 }; then
35457 ac_header_preproc=yes
35458 else
35459 echo "$as_me: failed program was:" >&5
35460 sed 's/^/| /' conftest.$ac_ext >&5
35462 ac_header_preproc=no
35465 rm -f conftest.err conftest.$ac_ext
35466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35467 echo "${ECHO_T}$ac_header_preproc" >&6; }
35469 # So? What about this header?
35470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35471 yes:no: )
35472 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35473 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35474 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35475 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35476 ac_header_preproc=yes
35478 no:yes:* )
35479 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35480 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35481 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35482 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35483 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35484 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35485 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35486 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35487 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35488 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35489 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35490 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35491 ( cat <<\_ASBOX
35492 ## ------------------------------- ##
35493 ## Report this to www.asterisk.org ##
35494 ## ------------------------------- ##
35495 _ASBOX
35496 ) | sed "s/^/$as_me: WARNING: /" >&2
35498 esac
35499 { echo "$as_me:$LINENO: checking for curses.h" >&5
35500 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35501 if test "${ac_cv_header_curses_h+set}" = set; then
35502 echo $ECHO_N "(cached) $ECHO_C" >&6
35503 else
35504 ac_cv_header_curses_h=$ac_header_preproc
35506 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35507 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35510 if test $ac_cv_header_curses_h = yes; then
35511 NCURSES_HEADER_FOUND=1
35512 else
35513 NCURSES_HEADER_FOUND=0
35517 CPPFLAGS="${saved_cppflags}"
35519 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35520 NCURSES_LIB=""
35521 NCURSES_INCLUDE=""
35522 else
35523 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35524 NCURSES_LIB=""
35526 PBX_NCURSES=1
35527 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35529 cat >>confdefs.h <<_ACEOF
35530 #define HAVE_NCURSES 1
35531 _ACEOF
35534 cat >>confdefs.h <<_ACEOF
35535 #define HAVE_NCURSES_VERSION
35536 _ACEOF
35544 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35545 PBX_NETSNMP=0
35546 if test -n "$ac_tool_prefix"; then
35547 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35548 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35551 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35553 else
35554 if test -n "$CONFIG_NETSNMP"; then
35555 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35556 else
35557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35558 for as_dir in $PATH
35560 IFS=$as_save_IFS
35561 test -z "$as_dir" && as_dir=.
35562 for ac_exec_ext in '' $ac_executable_extensions; do
35563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35564 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35566 break 2
35568 done
35569 done
35570 IFS=$as_save_IFS
35574 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35575 if test -n "$CONFIG_NETSNMP"; then
35576 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35577 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35578 else
35579 { echo "$as_me:$LINENO: result: no" >&5
35580 echo "${ECHO_T}no" >&6; }
35585 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35586 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35587 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35588 set dummy net-snmp-config; ac_word=$2
35589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35591 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35592 echo $ECHO_N "(cached) $ECHO_C" >&6
35593 else
35594 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35595 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35596 else
35597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35598 for as_dir in $PATH
35600 IFS=$as_save_IFS
35601 test -z "$as_dir" && as_dir=.
35602 for ac_exec_ext in '' $ac_executable_extensions; do
35603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35604 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35606 break 2
35608 done
35609 done
35610 IFS=$as_save_IFS
35614 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35615 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35616 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35617 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35618 else
35619 { echo "$as_me:$LINENO: result: no" >&5
35620 echo "${ECHO_T}no" >&6; }
35623 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35624 CONFIG_NETSNMP="No"
35625 else
35626 case $cross_compiling:$ac_tool_warned in
35627 yes:)
35628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35629 whose name does not start with the host triplet. If you think this
35630 configuration is useful to you, please write to autoconf@gnu.org." >&5
35631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35632 whose name does not start with the host triplet. If you think this
35633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35634 ac_tool_warned=yes ;;
35635 esac
35636 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35638 else
35639 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35642 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35643 if test x"" = x ; then A=--cflags ; else A="" ; fi
35644 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35645 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35646 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35647 if test x"#include <net-snmp/net-snmp-config.h>
35648 #include <net-snmp/net-snmp-includes.h>
35649 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35650 saved_cppflags="${CPPFLAGS}"
35651 if test "x${NETSNMP_DIR}" != "x"; then
35652 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35654 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35656 saved_ldflags="${LDFLAGS}"
35657 LDFLAGS="${NETSNMP_LIB}"
35659 cat >conftest.$ac_ext <<_ACEOF
35660 /* confdefs.h. */
35661 _ACEOF
35662 cat confdefs.h >>conftest.$ac_ext
35663 cat >>conftest.$ac_ext <<_ACEOF
35664 /* end confdefs.h. */
35665 #include <net-snmp/net-snmp-config.h>
35666 #include <net-snmp/net-snmp-includes.h>
35667 #include <net-snmp/agent/net-snmp-agent-includes.h>
35669 main ()
35671 int callback = snmp_register_callback(0, 0, NULL, NULL);
35674 return 0;
35676 _ACEOF
35677 rm -f conftest.$ac_objext conftest$ac_exeext
35678 if { (ac_try="$ac_link"
35679 case "(($ac_try" in
35680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35681 *) ac_try_echo=$ac_try;;
35682 esac
35683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35684 (eval "$ac_link") 2>conftest.er1
35685 ac_status=$?
35686 grep -v '^ *+' conftest.er1 >conftest.err
35687 rm -f conftest.er1
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } && {
35691 test -z "$ac_c_werror_flag" ||
35692 test ! -s conftest.err
35693 } && test -s conftest$ac_exeext &&
35694 $as_test_x conftest$ac_exeext; then
35695 PBX_NETSNMP=1
35697 cat >>confdefs.h <<\_ACEOF
35698 #define HAVE_NETSNMP 1
35699 _ACEOF
35702 else
35703 echo "$as_me: failed program was:" >&5
35704 sed 's/^/| /' conftest.$ac_ext >&5
35710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35711 conftest$ac_exeext conftest.$ac_ext
35712 CPPFLAGS="${saved_cppflags}"
35713 LDFLAGS="${saved_ldflags}"
35714 else
35715 PBX_NETSNMP=1
35717 cat >>confdefs.h <<\_ACEOF
35718 #define HAVE_NETSNMP 1
35719 _ACEOF
35727 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35728 pbxlibdir=""
35729 # if --with-NEWT=DIR has been specified, use it.
35730 if test "x${NEWT_DIR}" != "x"; then
35731 if test -d ${NEWT_DIR}/lib; then
35732 pbxlibdir="-L${NEWT_DIR}/lib"
35733 else
35734 pbxlibdir="-L${NEWT_DIR}"
35737 pbxfuncname="newtBell"
35738 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35739 AST_NEWT_FOUND=yes
35740 else
35741 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35742 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35743 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35744 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35745 echo $ECHO_N "(cached) $ECHO_C" >&6
35746 else
35747 ac_check_lib_save_LIBS=$LIBS
35748 LIBS="-lnewt ${pbxlibdir} $LIBS"
35749 cat >conftest.$ac_ext <<_ACEOF
35750 /* confdefs.h. */
35751 _ACEOF
35752 cat confdefs.h >>conftest.$ac_ext
35753 cat >>conftest.$ac_ext <<_ACEOF
35754 /* end confdefs.h. */
35756 /* Override any GCC internal prototype to avoid an error.
35757 Use char because int might match the return type of a GCC
35758 builtin and then its argument prototype would still apply. */
35759 #ifdef __cplusplus
35760 extern "C"
35761 #endif
35762 char ${pbxfuncname} ();
35764 main ()
35766 return ${pbxfuncname} ();
35768 return 0;
35770 _ACEOF
35771 rm -f conftest.$ac_objext conftest$ac_exeext
35772 if { (ac_try="$ac_link"
35773 case "(($ac_try" in
35774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35775 *) ac_try_echo=$ac_try;;
35776 esac
35777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35778 (eval "$ac_link") 2>conftest.er1
35779 ac_status=$?
35780 grep -v '^ *+' conftest.er1 >conftest.err
35781 rm -f conftest.er1
35782 cat conftest.err >&5
35783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); } && {
35785 test -z "$ac_c_werror_flag" ||
35786 test ! -s conftest.err
35787 } && test -s conftest$ac_exeext &&
35788 $as_test_x conftest$ac_exeext; then
35789 eval "$as_ac_Lib=yes"
35790 else
35791 echo "$as_me: failed program was:" >&5
35792 sed 's/^/| /' conftest.$ac_ext >&5
35794 eval "$as_ac_Lib=no"
35797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35798 conftest$ac_exeext conftest.$ac_ext
35799 LIBS=$ac_check_lib_save_LIBS
35801 ac_res=`eval echo '${'$as_ac_Lib'}'`
35802 { echo "$as_me:$LINENO: result: $ac_res" >&5
35803 echo "${ECHO_T}$ac_res" >&6; }
35804 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35805 AST_NEWT_FOUND=yes
35806 else
35807 AST_NEWT_FOUND=no
35812 # now check for the header.
35813 if test "${AST_NEWT_FOUND}" = "yes"; then
35814 NEWT_LIB="${pbxlibdir} -lnewt "
35815 # if --with-NEWT=DIR has been specified, use it.
35816 if test "x${NEWT_DIR}" != "x"; then
35817 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35819 NEWT_INCLUDE="${NEWT_INCLUDE} "
35820 if test "xnewt.h" = "x" ; then # no header, assume found
35821 NEWT_HEADER_FOUND="1"
35822 else # check for the header
35823 saved_cppflags="${CPPFLAGS}"
35824 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35825 if test "${ac_cv_header_newt_h+set}" = set; then
35826 { echo "$as_me:$LINENO: checking for newt.h" >&5
35827 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35828 if test "${ac_cv_header_newt_h+set}" = set; then
35829 echo $ECHO_N "(cached) $ECHO_C" >&6
35831 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35832 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35833 else
35834 # Is the header compilable?
35835 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35836 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35837 cat >conftest.$ac_ext <<_ACEOF
35838 /* confdefs.h. */
35839 _ACEOF
35840 cat confdefs.h >>conftest.$ac_ext
35841 cat >>conftest.$ac_ext <<_ACEOF
35842 /* end confdefs.h. */
35843 $ac_includes_default
35844 #include <newt.h>
35845 _ACEOF
35846 rm -f conftest.$ac_objext
35847 if { (ac_try="$ac_compile"
35848 case "(($ac_try" in
35849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35850 *) ac_try_echo=$ac_try;;
35851 esac
35852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35853 (eval "$ac_compile") 2>conftest.er1
35854 ac_status=$?
35855 grep -v '^ *+' conftest.er1 >conftest.err
35856 rm -f conftest.er1
35857 cat conftest.err >&5
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); } && {
35860 test -z "$ac_c_werror_flag" ||
35861 test ! -s conftest.err
35862 } && test -s conftest.$ac_objext; then
35863 ac_header_compiler=yes
35864 else
35865 echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35868 ac_header_compiler=no
35871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35873 echo "${ECHO_T}$ac_header_compiler" >&6; }
35875 # Is the header present?
35876 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35877 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35878 cat >conftest.$ac_ext <<_ACEOF
35879 /* confdefs.h. */
35880 _ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h. */
35884 #include <newt.h>
35885 _ACEOF
35886 if { (ac_try="$ac_cpp conftest.$ac_ext"
35887 case "(($ac_try" in
35888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35889 *) ac_try_echo=$ac_try;;
35890 esac
35891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35893 ac_status=$?
35894 grep -v '^ *+' conftest.er1 >conftest.err
35895 rm -f conftest.er1
35896 cat conftest.err >&5
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); } >/dev/null && {
35899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35900 test ! -s conftest.err
35901 }; then
35902 ac_header_preproc=yes
35903 else
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 ac_header_preproc=no
35910 rm -f conftest.err conftest.$ac_ext
35911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35912 echo "${ECHO_T}$ac_header_preproc" >&6; }
35914 # So? What about this header?
35915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35916 yes:no: )
35917 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
35918 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35919 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
35920 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
35921 ac_header_preproc=yes
35923 no:yes:* )
35924 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
35925 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
35926 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
35927 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
35928 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
35929 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
35930 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
35931 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
35932 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
35933 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
35934 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
35935 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
35936 ( cat <<\_ASBOX
35937 ## ------------------------------- ##
35938 ## Report this to www.asterisk.org ##
35939 ## ------------------------------- ##
35940 _ASBOX
35941 ) | sed "s/^/$as_me: WARNING: /" >&2
35943 esac
35944 { echo "$as_me:$LINENO: checking for newt.h" >&5
35945 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35946 if test "${ac_cv_header_newt_h+set}" = set; then
35947 echo $ECHO_N "(cached) $ECHO_C" >&6
35948 else
35949 ac_cv_header_newt_h=$ac_header_preproc
35951 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35952 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35955 if test $ac_cv_header_newt_h = yes; then
35956 NEWT_HEADER_FOUND=1
35957 else
35958 NEWT_HEADER_FOUND=0
35962 CPPFLAGS="${saved_cppflags}"
35964 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
35965 NEWT_LIB=""
35966 NEWT_INCLUDE=""
35967 else
35968 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35969 NEWT_LIB=""
35971 PBX_NEWT=1
35972 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35974 cat >>confdefs.h <<_ACEOF
35975 #define HAVE_NEWT 1
35976 _ACEOF
35979 cat >>confdefs.h <<_ACEOF
35980 #define HAVE_NEWT_VERSION
35981 _ACEOF
35989 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
35990 pbxlibdir=""
35991 # if --with-UNIXODBC=DIR has been specified, use it.
35992 if test "x${UNIXODBC_DIR}" != "x"; then
35993 if test -d ${UNIXODBC_DIR}/lib; then
35994 pbxlibdir="-L${UNIXODBC_DIR}/lib"
35995 else
35996 pbxlibdir="-L${UNIXODBC_DIR}"
35999 pbxfuncname="SQLConnect"
36000 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36001 AST_UNIXODBC_FOUND=yes
36002 else
36003 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
36004 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
36005 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
36006 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36007 echo $ECHO_N "(cached) $ECHO_C" >&6
36008 else
36009 ac_check_lib_save_LIBS=$LIBS
36010 LIBS="-lodbc ${pbxlibdir} $LIBS"
36011 cat >conftest.$ac_ext <<_ACEOF
36012 /* confdefs.h. */
36013 _ACEOF
36014 cat confdefs.h >>conftest.$ac_ext
36015 cat >>conftest.$ac_ext <<_ACEOF
36016 /* end confdefs.h. */
36018 /* Override any GCC internal prototype to avoid an error.
36019 Use char because int might match the return type of a GCC
36020 builtin and then its argument prototype would still apply. */
36021 #ifdef __cplusplus
36022 extern "C"
36023 #endif
36024 char ${pbxfuncname} ();
36026 main ()
36028 return ${pbxfuncname} ();
36030 return 0;
36032 _ACEOF
36033 rm -f conftest.$ac_objext conftest$ac_exeext
36034 if { (ac_try="$ac_link"
36035 case "(($ac_try" in
36036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36037 *) ac_try_echo=$ac_try;;
36038 esac
36039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36040 (eval "$ac_link") 2>conftest.er1
36041 ac_status=$?
36042 grep -v '^ *+' conftest.er1 >conftest.err
36043 rm -f conftest.er1
36044 cat conftest.err >&5
36045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046 (exit $ac_status); } && {
36047 test -z "$ac_c_werror_flag" ||
36048 test ! -s conftest.err
36049 } && test -s conftest$ac_exeext &&
36050 $as_test_x conftest$ac_exeext; then
36051 eval "$as_ac_Lib=yes"
36052 else
36053 echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36056 eval "$as_ac_Lib=no"
36059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36060 conftest$ac_exeext conftest.$ac_ext
36061 LIBS=$ac_check_lib_save_LIBS
36063 ac_res=`eval echo '${'$as_ac_Lib'}'`
36064 { echo "$as_me:$LINENO: result: $ac_res" >&5
36065 echo "${ECHO_T}$ac_res" >&6; }
36066 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36067 AST_UNIXODBC_FOUND=yes
36068 else
36069 AST_UNIXODBC_FOUND=no
36074 # now check for the header.
36075 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36076 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36077 # if --with-UNIXODBC=DIR has been specified, use it.
36078 if test "x${UNIXODBC_DIR}" != "x"; then
36079 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36081 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36082 if test "xsql.h" = "x" ; then # no header, assume found
36083 UNIXODBC_HEADER_FOUND="1"
36084 else # check for the header
36085 saved_cppflags="${CPPFLAGS}"
36086 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
36087 if test "${ac_cv_header_sql_h+set}" = set; then
36088 { echo "$as_me:$LINENO: checking for sql.h" >&5
36089 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36090 if test "${ac_cv_header_sql_h+set}" = set; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36093 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36094 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36095 else
36096 # Is the header compilable?
36097 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36098 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36099 cat >conftest.$ac_ext <<_ACEOF
36100 /* confdefs.h. */
36101 _ACEOF
36102 cat confdefs.h >>conftest.$ac_ext
36103 cat >>conftest.$ac_ext <<_ACEOF
36104 /* end confdefs.h. */
36105 $ac_includes_default
36106 #include <sql.h>
36107 _ACEOF
36108 rm -f conftest.$ac_objext
36109 if { (ac_try="$ac_compile"
36110 case "(($ac_try" in
36111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36112 *) ac_try_echo=$ac_try;;
36113 esac
36114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36115 (eval "$ac_compile") 2>conftest.er1
36116 ac_status=$?
36117 grep -v '^ *+' conftest.er1 >conftest.err
36118 rm -f conftest.er1
36119 cat conftest.err >&5
36120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); } && {
36122 test -z "$ac_c_werror_flag" ||
36123 test ! -s conftest.err
36124 } && test -s conftest.$ac_objext; then
36125 ac_header_compiler=yes
36126 else
36127 echo "$as_me: failed program was:" >&5
36128 sed 's/^/| /' conftest.$ac_ext >&5
36130 ac_header_compiler=no
36133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36135 echo "${ECHO_T}$ac_header_compiler" >&6; }
36137 # Is the header present?
36138 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36139 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36140 cat >conftest.$ac_ext <<_ACEOF
36141 /* confdefs.h. */
36142 _ACEOF
36143 cat confdefs.h >>conftest.$ac_ext
36144 cat >>conftest.$ac_ext <<_ACEOF
36145 /* end confdefs.h. */
36146 #include <sql.h>
36147 _ACEOF
36148 if { (ac_try="$ac_cpp conftest.$ac_ext"
36149 case "(($ac_try" in
36150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151 *) ac_try_echo=$ac_try;;
36152 esac
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36155 ac_status=$?
36156 grep -v '^ *+' conftest.er1 >conftest.err
36157 rm -f conftest.er1
36158 cat conftest.err >&5
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } >/dev/null && {
36161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36162 test ! -s conftest.err
36163 }; then
36164 ac_header_preproc=yes
36165 else
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36169 ac_header_preproc=no
36172 rm -f conftest.err conftest.$ac_ext
36173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36174 echo "${ECHO_T}$ac_header_preproc" >&6; }
36176 # So? What about this header?
36177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36178 yes:no: )
36179 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36180 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36181 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36182 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36183 ac_header_preproc=yes
36185 no:yes:* )
36186 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36187 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36188 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36189 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36190 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36191 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36192 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36193 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36194 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36195 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36196 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36197 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36198 ( cat <<\_ASBOX
36199 ## ------------------------------- ##
36200 ## Report this to www.asterisk.org ##
36201 ## ------------------------------- ##
36202 _ASBOX
36203 ) | sed "s/^/$as_me: WARNING: /" >&2
36205 esac
36206 { echo "$as_me:$LINENO: checking for sql.h" >&5
36207 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36208 if test "${ac_cv_header_sql_h+set}" = set; then
36209 echo $ECHO_N "(cached) $ECHO_C" >&6
36210 else
36211 ac_cv_header_sql_h=$ac_header_preproc
36213 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36214 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36217 if test $ac_cv_header_sql_h = yes; then
36218 UNIXODBC_HEADER_FOUND=1
36219 else
36220 UNIXODBC_HEADER_FOUND=0
36224 CPPFLAGS="${saved_cppflags}"
36226 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36227 UNIXODBC_LIB=""
36228 UNIXODBC_INCLUDE=""
36229 else
36230 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36231 UNIXODBC_LIB=""
36233 PBX_UNIXODBC=1
36234 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36236 cat >>confdefs.h <<_ACEOF
36237 #define HAVE_UNIXODBC 1
36238 _ACEOF
36241 cat >>confdefs.h <<_ACEOF
36242 #define HAVE_UNIXODBC_VERSION
36243 _ACEOF
36251 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36252 pbxlibdir=""
36253 # if --with-OGG=DIR has been specified, use it.
36254 if test "x${OGG_DIR}" != "x"; then
36255 if test -d ${OGG_DIR}/lib; then
36256 pbxlibdir="-L${OGG_DIR}/lib"
36257 else
36258 pbxlibdir="-L${OGG_DIR}"
36261 pbxfuncname="ogg_sync_init"
36262 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36263 AST_OGG_FOUND=yes
36264 else
36265 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36266 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36267 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36268 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36269 echo $ECHO_N "(cached) $ECHO_C" >&6
36270 else
36271 ac_check_lib_save_LIBS=$LIBS
36272 LIBS="-logg ${pbxlibdir} $LIBS"
36273 cat >conftest.$ac_ext <<_ACEOF
36274 /* confdefs.h. */
36275 _ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h. */
36280 /* Override any GCC internal prototype to avoid an error.
36281 Use char because int might match the return type of a GCC
36282 builtin and then its argument prototype would still apply. */
36283 #ifdef __cplusplus
36284 extern "C"
36285 #endif
36286 char ${pbxfuncname} ();
36288 main ()
36290 return ${pbxfuncname} ();
36292 return 0;
36294 _ACEOF
36295 rm -f conftest.$ac_objext conftest$ac_exeext
36296 if { (ac_try="$ac_link"
36297 case "(($ac_try" in
36298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36299 *) ac_try_echo=$ac_try;;
36300 esac
36301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36302 (eval "$ac_link") 2>conftest.er1
36303 ac_status=$?
36304 grep -v '^ *+' conftest.er1 >conftest.err
36305 rm -f conftest.er1
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } && {
36309 test -z "$ac_c_werror_flag" ||
36310 test ! -s conftest.err
36311 } && test -s conftest$ac_exeext &&
36312 $as_test_x conftest$ac_exeext; then
36313 eval "$as_ac_Lib=yes"
36314 else
36315 echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36318 eval "$as_ac_Lib=no"
36321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36322 conftest$ac_exeext conftest.$ac_ext
36323 LIBS=$ac_check_lib_save_LIBS
36325 ac_res=`eval echo '${'$as_ac_Lib'}'`
36326 { echo "$as_me:$LINENO: result: $ac_res" >&5
36327 echo "${ECHO_T}$ac_res" >&6; }
36328 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36329 AST_OGG_FOUND=yes
36330 else
36331 AST_OGG_FOUND=no
36336 # now check for the header.
36337 if test "${AST_OGG_FOUND}" = "yes"; then
36338 OGG_LIB="${pbxlibdir} -logg "
36339 # if --with-OGG=DIR has been specified, use it.
36340 if test "x${OGG_DIR}" != "x"; then
36341 OGG_INCLUDE="-I${OGG_DIR}/include"
36343 OGG_INCLUDE="${OGG_INCLUDE} "
36344 if test "x" = "x" ; then # no header, assume found
36345 OGG_HEADER_FOUND="1"
36346 else # check for the header
36347 saved_cppflags="${CPPFLAGS}"
36348 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
36349 if test "${ac_cv_header_+set}" = set; then
36350 { echo "$as_me:$LINENO: checking for " >&5
36351 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36352 if test "${ac_cv_header_+set}" = set; then
36353 echo $ECHO_N "(cached) $ECHO_C" >&6
36355 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36356 echo "${ECHO_T}$ac_cv_header_" >&6; }
36357 else
36358 # Is the header compilable?
36359 { echo "$as_me:$LINENO: checking usability" >&5
36360 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36361 cat >conftest.$ac_ext <<_ACEOF
36362 /* confdefs.h. */
36363 _ACEOF
36364 cat confdefs.h >>conftest.$ac_ext
36365 cat >>conftest.$ac_ext <<_ACEOF
36366 /* end confdefs.h. */
36367 $ac_includes_default
36368 #include <>
36369 _ACEOF
36370 rm -f conftest.$ac_objext
36371 if { (ac_try="$ac_compile"
36372 case "(($ac_try" in
36373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36374 *) ac_try_echo=$ac_try;;
36375 esac
36376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36377 (eval "$ac_compile") 2>conftest.er1
36378 ac_status=$?
36379 grep -v '^ *+' conftest.er1 >conftest.err
36380 rm -f conftest.er1
36381 cat conftest.err >&5
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); } && {
36384 test -z "$ac_c_werror_flag" ||
36385 test ! -s conftest.err
36386 } && test -s conftest.$ac_objext; then
36387 ac_header_compiler=yes
36388 else
36389 echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36392 ac_header_compiler=no
36395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36397 echo "${ECHO_T}$ac_header_compiler" >&6; }
36399 # Is the header present?
36400 { echo "$as_me:$LINENO: checking presence" >&5
36401 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36402 cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h. */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h. */
36408 #include <>
36409 _ACEOF
36410 if { (ac_try="$ac_cpp conftest.$ac_ext"
36411 case "(($ac_try" in
36412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36413 *) ac_try_echo=$ac_try;;
36414 esac
36415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36417 ac_status=$?
36418 grep -v '^ *+' conftest.er1 >conftest.err
36419 rm -f conftest.er1
36420 cat conftest.err >&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); } >/dev/null && {
36423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36424 test ! -s conftest.err
36425 }; then
36426 ac_header_preproc=yes
36427 else
36428 echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36431 ac_header_preproc=no
36434 rm -f conftest.err conftest.$ac_ext
36435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36436 echo "${ECHO_T}$ac_header_preproc" >&6; }
36438 # So? What about this header?
36439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36440 yes:no: )
36441 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36442 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36443 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36444 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36445 ac_header_preproc=yes
36447 no:yes:* )
36448 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36449 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36450 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36451 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36452 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36453 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36454 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36455 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36456 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36457 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36458 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36459 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36460 ( cat <<\_ASBOX
36461 ## ------------------------------- ##
36462 ## Report this to www.asterisk.org ##
36463 ## ------------------------------- ##
36464 _ASBOX
36465 ) | sed "s/^/$as_me: WARNING: /" >&2
36467 esac
36468 { echo "$as_me:$LINENO: checking for " >&5
36469 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36470 if test "${ac_cv_header_+set}" = set; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36472 else
36473 ac_cv_header_=$ac_header_preproc
36475 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36476 echo "${ECHO_T}$ac_cv_header_" >&6; }
36479 if test $ac_cv_header_ = yes; then
36480 OGG_HEADER_FOUND=1
36481 else
36482 OGG_HEADER_FOUND=0
36486 CPPFLAGS="${saved_cppflags}"
36488 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36489 OGG_LIB=""
36490 OGG_INCLUDE=""
36491 else
36492 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36493 OGG_LIB=""
36495 PBX_OGG=1
36496 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36498 cat >>confdefs.h <<_ACEOF
36499 #define HAVE_OGG 1
36500 _ACEOF
36503 cat >>confdefs.h <<_ACEOF
36504 #define HAVE_OGG_VERSION
36505 _ACEOF
36512 # Non-glibc platforms require libexecinfo for backtrace support
36514 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36515 pbxlibdir=""
36516 # if --with-BKTR=DIR has been specified, use it.
36517 if test "x${BKTR_DIR}" != "x"; then
36518 if test -d ${BKTR_DIR}/lib; then
36519 pbxlibdir="-L${BKTR_DIR}/lib"
36520 else
36521 pbxlibdir="-L${BKTR_DIR}"
36524 pbxfuncname="backtrace"
36525 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36526 AST_BKTR_FOUND=yes
36527 else
36528 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36529 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36530 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36531 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36532 echo $ECHO_N "(cached) $ECHO_C" >&6
36533 else
36534 ac_check_lib_save_LIBS=$LIBS
36535 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36536 cat >conftest.$ac_ext <<_ACEOF
36537 /* confdefs.h. */
36538 _ACEOF
36539 cat confdefs.h >>conftest.$ac_ext
36540 cat >>conftest.$ac_ext <<_ACEOF
36541 /* end confdefs.h. */
36543 /* Override any GCC internal prototype to avoid an error.
36544 Use char because int might match the return type of a GCC
36545 builtin and then its argument prototype would still apply. */
36546 #ifdef __cplusplus
36547 extern "C"
36548 #endif
36549 char ${pbxfuncname} ();
36551 main ()
36553 return ${pbxfuncname} ();
36555 return 0;
36557 _ACEOF
36558 rm -f conftest.$ac_objext conftest$ac_exeext
36559 if { (ac_try="$ac_link"
36560 case "(($ac_try" in
36561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562 *) ac_try_echo=$ac_try;;
36563 esac
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565 (eval "$ac_link") 2>conftest.er1
36566 ac_status=$?
36567 grep -v '^ *+' conftest.er1 >conftest.err
36568 rm -f conftest.er1
36569 cat conftest.err >&5
36570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571 (exit $ac_status); } && {
36572 test -z "$ac_c_werror_flag" ||
36573 test ! -s conftest.err
36574 } && test -s conftest$ac_exeext &&
36575 $as_test_x conftest$ac_exeext; then
36576 eval "$as_ac_Lib=yes"
36577 else
36578 echo "$as_me: failed program was:" >&5
36579 sed 's/^/| /' conftest.$ac_ext >&5
36581 eval "$as_ac_Lib=no"
36584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36585 conftest$ac_exeext conftest.$ac_ext
36586 LIBS=$ac_check_lib_save_LIBS
36588 ac_res=`eval echo '${'$as_ac_Lib'}'`
36589 { echo "$as_me:$LINENO: result: $ac_res" >&5
36590 echo "${ECHO_T}$ac_res" >&6; }
36591 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36592 AST_BKTR_FOUND=yes
36593 else
36594 AST_BKTR_FOUND=no
36599 # now check for the header.
36600 if test "${AST_BKTR_FOUND}" = "yes"; then
36601 BKTR_LIB="${pbxlibdir} -lexecinfo "
36602 # if --with-BKTR=DIR has been specified, use it.
36603 if test "x${BKTR_DIR}" != "x"; then
36604 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36606 BKTR_INCLUDE="${BKTR_INCLUDE} "
36607 if test "xexecinfo.h" = "x" ; then # no header, assume found
36608 BKTR_HEADER_FOUND="1"
36609 else # check for the header
36610 saved_cppflags="${CPPFLAGS}"
36611 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36612 if test "${ac_cv_header_execinfo_h+set}" = set; then
36613 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36614 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36615 if test "${ac_cv_header_execinfo_h+set}" = set; then
36616 echo $ECHO_N "(cached) $ECHO_C" >&6
36618 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36619 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36620 else
36621 # Is the header compilable?
36622 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36623 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36624 cat >conftest.$ac_ext <<_ACEOF
36625 /* confdefs.h. */
36626 _ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h. */
36630 $ac_includes_default
36631 #include <execinfo.h>
36632 _ACEOF
36633 rm -f conftest.$ac_objext
36634 if { (ac_try="$ac_compile"
36635 case "(($ac_try" in
36636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637 *) ac_try_echo=$ac_try;;
36638 esac
36639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36640 (eval "$ac_compile") 2>conftest.er1
36641 ac_status=$?
36642 grep -v '^ *+' conftest.er1 >conftest.err
36643 rm -f conftest.er1
36644 cat conftest.err >&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } && {
36647 test -z "$ac_c_werror_flag" ||
36648 test ! -s conftest.err
36649 } && test -s conftest.$ac_objext; then
36650 ac_header_compiler=yes
36651 else
36652 echo "$as_me: failed program was:" >&5
36653 sed 's/^/| /' conftest.$ac_ext >&5
36655 ac_header_compiler=no
36658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36660 echo "${ECHO_T}$ac_header_compiler" >&6; }
36662 # Is the header present?
36663 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36664 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36665 cat >conftest.$ac_ext <<_ACEOF
36666 /* confdefs.h. */
36667 _ACEOF
36668 cat confdefs.h >>conftest.$ac_ext
36669 cat >>conftest.$ac_ext <<_ACEOF
36670 /* end confdefs.h. */
36671 #include <execinfo.h>
36672 _ACEOF
36673 if { (ac_try="$ac_cpp conftest.$ac_ext"
36674 case "(($ac_try" in
36675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36676 *) ac_try_echo=$ac_try;;
36677 esac
36678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36680 ac_status=$?
36681 grep -v '^ *+' conftest.er1 >conftest.err
36682 rm -f conftest.er1
36683 cat conftest.err >&5
36684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); } >/dev/null && {
36686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36687 test ! -s conftest.err
36688 }; then
36689 ac_header_preproc=yes
36690 else
36691 echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.$ac_ext >&5
36694 ac_header_preproc=no
36697 rm -f conftest.err conftest.$ac_ext
36698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36699 echo "${ECHO_T}$ac_header_preproc" >&6; }
36701 # So? What about this header?
36702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36703 yes:no: )
36704 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36705 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36706 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36707 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36708 ac_header_preproc=yes
36710 no:yes:* )
36711 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36712 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36713 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36714 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36715 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36716 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36717 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36718 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36719 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36720 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36721 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36722 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36723 ( cat <<\_ASBOX
36724 ## ------------------------------- ##
36725 ## Report this to www.asterisk.org ##
36726 ## ------------------------------- ##
36727 _ASBOX
36728 ) | sed "s/^/$as_me: WARNING: /" >&2
36730 esac
36731 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36732 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36733 if test "${ac_cv_header_execinfo_h+set}" = set; then
36734 echo $ECHO_N "(cached) $ECHO_C" >&6
36735 else
36736 ac_cv_header_execinfo_h=$ac_header_preproc
36738 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36739 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36742 if test $ac_cv_header_execinfo_h = yes; then
36743 BKTR_HEADER_FOUND=1
36744 else
36745 BKTR_HEADER_FOUND=0
36749 CPPFLAGS="${saved_cppflags}"
36751 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36752 BKTR_LIB=""
36753 BKTR_INCLUDE=""
36754 else
36755 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36756 BKTR_LIB=""
36758 PBX_BKTR=1
36759 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36761 cat >>confdefs.h <<_ACEOF
36762 #define HAVE_BKTR 1
36763 _ACEOF
36766 cat >>confdefs.h <<_ACEOF
36767 #define HAVE_BKTR_VERSION
36768 _ACEOF
36774 # Linux, however, has backtrace directly in glibc
36776 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36777 pbxlibdir=""
36778 # if --with-BKTR=DIR has been specified, use it.
36779 if test "x${BKTR_DIR}" != "x"; then
36780 if test -d ${BKTR_DIR}/lib; then
36781 pbxlibdir="-L${BKTR_DIR}/lib"
36782 else
36783 pbxlibdir="-L${BKTR_DIR}"
36786 pbxfuncname="backtrace"
36787 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36788 AST_BKTR_FOUND=yes
36789 else
36790 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36791 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36792 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36793 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36794 echo $ECHO_N "(cached) $ECHO_C" >&6
36795 else
36796 ac_check_lib_save_LIBS=$LIBS
36797 LIBS="-lc ${pbxlibdir} $LIBS"
36798 cat >conftest.$ac_ext <<_ACEOF
36799 /* confdefs.h. */
36800 _ACEOF
36801 cat confdefs.h >>conftest.$ac_ext
36802 cat >>conftest.$ac_ext <<_ACEOF
36803 /* end confdefs.h. */
36805 /* Override any GCC internal prototype to avoid an error.
36806 Use char because int might match the return type of a GCC
36807 builtin and then its argument prototype would still apply. */
36808 #ifdef __cplusplus
36809 extern "C"
36810 #endif
36811 char ${pbxfuncname} ();
36813 main ()
36815 return ${pbxfuncname} ();
36817 return 0;
36819 _ACEOF
36820 rm -f conftest.$ac_objext conftest$ac_exeext
36821 if { (ac_try="$ac_link"
36822 case "(($ac_try" in
36823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36824 *) ac_try_echo=$ac_try;;
36825 esac
36826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36827 (eval "$ac_link") 2>conftest.er1
36828 ac_status=$?
36829 grep -v '^ *+' conftest.er1 >conftest.err
36830 rm -f conftest.er1
36831 cat conftest.err >&5
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); } && {
36834 test -z "$ac_c_werror_flag" ||
36835 test ! -s conftest.err
36836 } && test -s conftest$ac_exeext &&
36837 $as_test_x conftest$ac_exeext; then
36838 eval "$as_ac_Lib=yes"
36839 else
36840 echo "$as_me: failed program was:" >&5
36841 sed 's/^/| /' conftest.$ac_ext >&5
36843 eval "$as_ac_Lib=no"
36846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36847 conftest$ac_exeext conftest.$ac_ext
36848 LIBS=$ac_check_lib_save_LIBS
36850 ac_res=`eval echo '${'$as_ac_Lib'}'`
36851 { echo "$as_me:$LINENO: result: $ac_res" >&5
36852 echo "${ECHO_T}$ac_res" >&6; }
36853 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36854 AST_BKTR_FOUND=yes
36855 else
36856 AST_BKTR_FOUND=no
36861 # now check for the header.
36862 if test "${AST_BKTR_FOUND}" = "yes"; then
36863 BKTR_LIB="${pbxlibdir} -lc "
36864 # if --with-BKTR=DIR has been specified, use it.
36865 if test "x${BKTR_DIR}" != "x"; then
36866 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36868 BKTR_INCLUDE="${BKTR_INCLUDE} "
36869 if test "xexecinfo.h" = "x" ; then # no header, assume found
36870 BKTR_HEADER_FOUND="1"
36871 else # check for the header
36872 saved_cppflags="${CPPFLAGS}"
36873 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36874 if test "${ac_cv_header_execinfo_h+set}" = set; then
36875 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36876 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36877 if test "${ac_cv_header_execinfo_h+set}" = set; then
36878 echo $ECHO_N "(cached) $ECHO_C" >&6
36880 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36881 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36882 else
36883 # Is the header compilable?
36884 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36885 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36886 cat >conftest.$ac_ext <<_ACEOF
36887 /* confdefs.h. */
36888 _ACEOF
36889 cat confdefs.h >>conftest.$ac_ext
36890 cat >>conftest.$ac_ext <<_ACEOF
36891 /* end confdefs.h. */
36892 $ac_includes_default
36893 #include <execinfo.h>
36894 _ACEOF
36895 rm -f conftest.$ac_objext
36896 if { (ac_try="$ac_compile"
36897 case "(($ac_try" in
36898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36899 *) ac_try_echo=$ac_try;;
36900 esac
36901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36902 (eval "$ac_compile") 2>conftest.er1
36903 ac_status=$?
36904 grep -v '^ *+' conftest.er1 >conftest.err
36905 rm -f conftest.er1
36906 cat conftest.err >&5
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); } && {
36909 test -z "$ac_c_werror_flag" ||
36910 test ! -s conftest.err
36911 } && test -s conftest.$ac_objext; then
36912 ac_header_compiler=yes
36913 else
36914 echo "$as_me: failed program was:" >&5
36915 sed 's/^/| /' conftest.$ac_ext >&5
36917 ac_header_compiler=no
36920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36922 echo "${ECHO_T}$ac_header_compiler" >&6; }
36924 # Is the header present?
36925 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36926 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36927 cat >conftest.$ac_ext <<_ACEOF
36928 /* confdefs.h. */
36929 _ACEOF
36930 cat confdefs.h >>conftest.$ac_ext
36931 cat >>conftest.$ac_ext <<_ACEOF
36932 /* end confdefs.h. */
36933 #include <execinfo.h>
36934 _ACEOF
36935 if { (ac_try="$ac_cpp conftest.$ac_ext"
36936 case "(($ac_try" in
36937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36938 *) ac_try_echo=$ac_try;;
36939 esac
36940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36942 ac_status=$?
36943 grep -v '^ *+' conftest.er1 >conftest.err
36944 rm -f conftest.er1
36945 cat conftest.err >&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); } >/dev/null && {
36948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36949 test ! -s conftest.err
36950 }; then
36951 ac_header_preproc=yes
36952 else
36953 echo "$as_me: failed program was:" >&5
36954 sed 's/^/| /' conftest.$ac_ext >&5
36956 ac_header_preproc=no
36959 rm -f conftest.err conftest.$ac_ext
36960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36961 echo "${ECHO_T}$ac_header_preproc" >&6; }
36963 # So? What about this header?
36964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36965 yes:no: )
36966 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36967 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36968 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36969 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36970 ac_header_preproc=yes
36972 no:yes:* )
36973 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36974 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36975 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36976 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36977 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36978 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36979 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36980 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36981 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36982 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36983 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36984 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36985 ( cat <<\_ASBOX
36986 ## ------------------------------- ##
36987 ## Report this to www.asterisk.org ##
36988 ## ------------------------------- ##
36989 _ASBOX
36990 ) | sed "s/^/$as_me: WARNING: /" >&2
36992 esac
36993 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36994 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36995 if test "${ac_cv_header_execinfo_h+set}" = set; then
36996 echo $ECHO_N "(cached) $ECHO_C" >&6
36997 else
36998 ac_cv_header_execinfo_h=$ac_header_preproc
37000 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37001 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37004 if test $ac_cv_header_execinfo_h = yes; then
37005 BKTR_HEADER_FOUND=1
37006 else
37007 BKTR_HEADER_FOUND=0
37011 CPPFLAGS="${saved_cppflags}"
37013 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
37014 BKTR_LIB=""
37015 BKTR_INCLUDE=""
37016 else
37017 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37018 BKTR_LIB=""
37020 PBX_BKTR=1
37021 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37023 cat >>confdefs.h <<_ACEOF
37024 #define HAVE_BKTR 1
37025 _ACEOF
37028 cat >>confdefs.h <<_ACEOF
37029 #define HAVE_BKTR_VERSION
37030 _ACEOF
37037 # possible places for oss definitions
37039 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37040 pbxlibdir=""
37041 # if --with-OSS=DIR has been specified, use it.
37042 if test "x${OSS_DIR}" != "x"; then
37043 if test -d ${OSS_DIR}/lib; then
37044 pbxlibdir="-L${OSS_DIR}/lib"
37045 else
37046 pbxlibdir="-L${OSS_DIR}"
37049 pbxfuncname=""
37050 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37051 AST_OSS_FOUND=yes
37052 else
37053 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37054 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37055 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37056 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37057 echo $ECHO_N "(cached) $ECHO_C" >&6
37058 else
37059 ac_check_lib_save_LIBS=$LIBS
37060 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37061 cat >conftest.$ac_ext <<_ACEOF
37062 /* confdefs.h. */
37063 _ACEOF
37064 cat confdefs.h >>conftest.$ac_ext
37065 cat >>conftest.$ac_ext <<_ACEOF
37066 /* end confdefs.h. */
37068 /* Override any GCC internal prototype to avoid an error.
37069 Use char because int might match the return type of a GCC
37070 builtin and then its argument prototype would still apply. */
37071 #ifdef __cplusplus
37072 extern "C"
37073 #endif
37074 char ${pbxfuncname} ();
37076 main ()
37078 return ${pbxfuncname} ();
37080 return 0;
37082 _ACEOF
37083 rm -f conftest.$ac_objext conftest$ac_exeext
37084 if { (ac_try="$ac_link"
37085 case "(($ac_try" in
37086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37087 *) ac_try_echo=$ac_try;;
37088 esac
37089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37090 (eval "$ac_link") 2>conftest.er1
37091 ac_status=$?
37092 grep -v '^ *+' conftest.er1 >conftest.err
37093 rm -f conftest.er1
37094 cat conftest.err >&5
37095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); } && {
37097 test -z "$ac_c_werror_flag" ||
37098 test ! -s conftest.err
37099 } && test -s conftest$ac_exeext &&
37100 $as_test_x conftest$ac_exeext; then
37101 eval "$as_ac_Lib=yes"
37102 else
37103 echo "$as_me: failed program was:" >&5
37104 sed 's/^/| /' conftest.$ac_ext >&5
37106 eval "$as_ac_Lib=no"
37109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37110 conftest$ac_exeext conftest.$ac_ext
37111 LIBS=$ac_check_lib_save_LIBS
37113 ac_res=`eval echo '${'$as_ac_Lib'}'`
37114 { echo "$as_me:$LINENO: result: $ac_res" >&5
37115 echo "${ECHO_T}$ac_res" >&6; }
37116 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37117 AST_OSS_FOUND=yes
37118 else
37119 AST_OSS_FOUND=no
37124 # now check for the header.
37125 if test "${AST_OSS_FOUND}" = "yes"; then
37126 OSS_LIB="${pbxlibdir} -lossaudio "
37127 # if --with-OSS=DIR has been specified, use it.
37128 if test "x${OSS_DIR}" != "x"; then
37129 OSS_INCLUDE="-I${OSS_DIR}/include"
37131 OSS_INCLUDE="${OSS_INCLUDE} "
37132 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37133 OSS_HEADER_FOUND="1"
37134 else # check for the header
37135 saved_cppflags="${CPPFLAGS}"
37136 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37137 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37138 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37139 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37140 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37141 echo $ECHO_N "(cached) $ECHO_C" >&6
37143 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37144 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37145 else
37146 # Is the header compilable?
37147 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37148 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37149 cat >conftest.$ac_ext <<_ACEOF
37150 /* confdefs.h. */
37151 _ACEOF
37152 cat confdefs.h >>conftest.$ac_ext
37153 cat >>conftest.$ac_ext <<_ACEOF
37154 /* end confdefs.h. */
37155 $ac_includes_default
37156 #include <linux/soundcard.h>
37157 _ACEOF
37158 rm -f conftest.$ac_objext
37159 if { (ac_try="$ac_compile"
37160 case "(($ac_try" in
37161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37162 *) ac_try_echo=$ac_try;;
37163 esac
37164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37165 (eval "$ac_compile") 2>conftest.er1
37166 ac_status=$?
37167 grep -v '^ *+' conftest.er1 >conftest.err
37168 rm -f conftest.er1
37169 cat conftest.err >&5
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); } && {
37172 test -z "$ac_c_werror_flag" ||
37173 test ! -s conftest.err
37174 } && test -s conftest.$ac_objext; then
37175 ac_header_compiler=yes
37176 else
37177 echo "$as_me: failed program was:" >&5
37178 sed 's/^/| /' conftest.$ac_ext >&5
37180 ac_header_compiler=no
37183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37185 echo "${ECHO_T}$ac_header_compiler" >&6; }
37187 # Is the header present?
37188 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37189 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37190 cat >conftest.$ac_ext <<_ACEOF
37191 /* confdefs.h. */
37192 _ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37196 #include <linux/soundcard.h>
37197 _ACEOF
37198 if { (ac_try="$ac_cpp conftest.$ac_ext"
37199 case "(($ac_try" in
37200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37201 *) ac_try_echo=$ac_try;;
37202 esac
37203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37205 ac_status=$?
37206 grep -v '^ *+' conftest.er1 >conftest.err
37207 rm -f conftest.er1
37208 cat conftest.err >&5
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); } >/dev/null && {
37211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37212 test ! -s conftest.err
37213 }; then
37214 ac_header_preproc=yes
37215 else
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ac_header_preproc=no
37222 rm -f conftest.err conftest.$ac_ext
37223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37224 echo "${ECHO_T}$ac_header_preproc" >&6; }
37226 # So? What about this header?
37227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37228 yes:no: )
37229 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37230 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37231 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37232 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37233 ac_header_preproc=yes
37235 no:yes:* )
37236 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37237 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37238 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37239 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37240 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37241 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37242 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37243 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37244 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37245 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37246 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37247 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37248 ( cat <<\_ASBOX
37249 ## ------------------------------- ##
37250 ## Report this to www.asterisk.org ##
37251 ## ------------------------------- ##
37252 _ASBOX
37253 ) | sed "s/^/$as_me: WARNING: /" >&2
37255 esac
37256 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37257 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37258 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37260 else
37261 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37263 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37264 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37267 if test $ac_cv_header_linux_soundcard_h = yes; then
37268 OSS_HEADER_FOUND=1
37269 else
37270 OSS_HEADER_FOUND=0
37274 CPPFLAGS="${saved_cppflags}"
37276 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37277 OSS_LIB=""
37278 OSS_INCLUDE=""
37279 else
37280 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37281 OSS_LIB=""
37283 PBX_OSS=1
37284 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37286 cat >>confdefs.h <<_ACEOF
37287 #define HAVE_OSS 1
37288 _ACEOF
37291 cat >>confdefs.h <<_ACEOF
37292 #define HAVE_OSS_VERSION
37293 _ACEOF
37300 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37301 pbxlibdir=""
37302 # if --with-OSS=DIR has been specified, use it.
37303 if test "x${OSS_DIR}" != "x"; then
37304 if test -d ${OSS_DIR}/lib; then
37305 pbxlibdir="-L${OSS_DIR}/lib"
37306 else
37307 pbxlibdir="-L${OSS_DIR}"
37310 pbxfuncname=""
37311 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37312 AST_OSS_FOUND=yes
37313 else
37314 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37315 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37316 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37317 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37318 echo $ECHO_N "(cached) $ECHO_C" >&6
37319 else
37320 ac_check_lib_save_LIBS=$LIBS
37321 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37322 cat >conftest.$ac_ext <<_ACEOF
37323 /* confdefs.h. */
37324 _ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h. */
37329 /* Override any GCC internal prototype to avoid an error.
37330 Use char because int might match the return type of a GCC
37331 builtin and then its argument prototype would still apply. */
37332 #ifdef __cplusplus
37333 extern "C"
37334 #endif
37335 char ${pbxfuncname} ();
37337 main ()
37339 return ${pbxfuncname} ();
37341 return 0;
37343 _ACEOF
37344 rm -f conftest.$ac_objext conftest$ac_exeext
37345 if { (ac_try="$ac_link"
37346 case "(($ac_try" in
37347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37348 *) ac_try_echo=$ac_try;;
37349 esac
37350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37351 (eval "$ac_link") 2>conftest.er1
37352 ac_status=$?
37353 grep -v '^ *+' conftest.er1 >conftest.err
37354 rm -f conftest.er1
37355 cat conftest.err >&5
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); } && {
37358 test -z "$ac_c_werror_flag" ||
37359 test ! -s conftest.err
37360 } && test -s conftest$ac_exeext &&
37361 $as_test_x conftest$ac_exeext; then
37362 eval "$as_ac_Lib=yes"
37363 else
37364 echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37367 eval "$as_ac_Lib=no"
37370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37371 conftest$ac_exeext conftest.$ac_ext
37372 LIBS=$ac_check_lib_save_LIBS
37374 ac_res=`eval echo '${'$as_ac_Lib'}'`
37375 { echo "$as_me:$LINENO: result: $ac_res" >&5
37376 echo "${ECHO_T}$ac_res" >&6; }
37377 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37378 AST_OSS_FOUND=yes
37379 else
37380 AST_OSS_FOUND=no
37385 # now check for the header.
37386 if test "${AST_OSS_FOUND}" = "yes"; then
37387 OSS_LIB="${pbxlibdir} -lossaudio "
37388 # if --with-OSS=DIR has been specified, use it.
37389 if test "x${OSS_DIR}" != "x"; then
37390 OSS_INCLUDE="-I${OSS_DIR}/include"
37392 OSS_INCLUDE="${OSS_INCLUDE} "
37393 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37394 OSS_HEADER_FOUND="1"
37395 else # check for the header
37396 saved_cppflags="${CPPFLAGS}"
37397 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37398 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37399 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37400 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37401 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37404 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37405 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37406 else
37407 # Is the header compilable?
37408 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37409 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37410 cat >conftest.$ac_ext <<_ACEOF
37411 /* confdefs.h. */
37412 _ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h. */
37416 $ac_includes_default
37417 #include <sys/soundcard.h>
37418 _ACEOF
37419 rm -f conftest.$ac_objext
37420 if { (ac_try="$ac_compile"
37421 case "(($ac_try" in
37422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423 *) ac_try_echo=$ac_try;;
37424 esac
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426 (eval "$ac_compile") 2>conftest.er1
37427 ac_status=$?
37428 grep -v '^ *+' conftest.er1 >conftest.err
37429 rm -f conftest.er1
37430 cat conftest.err >&5
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); } && {
37433 test -z "$ac_c_werror_flag" ||
37434 test ! -s conftest.err
37435 } && test -s conftest.$ac_objext; then
37436 ac_header_compiler=yes
37437 else
37438 echo "$as_me: failed program was:" >&5
37439 sed 's/^/| /' conftest.$ac_ext >&5
37441 ac_header_compiler=no
37444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37446 echo "${ECHO_T}$ac_header_compiler" >&6; }
37448 # Is the header present?
37449 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37450 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37451 cat >conftest.$ac_ext <<_ACEOF
37452 /* confdefs.h. */
37453 _ACEOF
37454 cat confdefs.h >>conftest.$ac_ext
37455 cat >>conftest.$ac_ext <<_ACEOF
37456 /* end confdefs.h. */
37457 #include <sys/soundcard.h>
37458 _ACEOF
37459 if { (ac_try="$ac_cpp conftest.$ac_ext"
37460 case "(($ac_try" in
37461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37462 *) ac_try_echo=$ac_try;;
37463 esac
37464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37466 ac_status=$?
37467 grep -v '^ *+' conftest.er1 >conftest.err
37468 rm -f conftest.er1
37469 cat conftest.err >&5
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); } >/dev/null && {
37472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37473 test ! -s conftest.err
37474 }; then
37475 ac_header_preproc=yes
37476 else
37477 echo "$as_me: failed program was:" >&5
37478 sed 's/^/| /' conftest.$ac_ext >&5
37480 ac_header_preproc=no
37483 rm -f conftest.err conftest.$ac_ext
37484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37485 echo "${ECHO_T}$ac_header_preproc" >&6; }
37487 # So? What about this header?
37488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37489 yes:no: )
37490 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37491 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37492 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37493 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37494 ac_header_preproc=yes
37496 no:yes:* )
37497 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37498 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37499 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37500 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37501 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37502 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37503 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37504 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37505 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37506 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37507 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37508 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37509 ( cat <<\_ASBOX
37510 ## ------------------------------- ##
37511 ## Report this to www.asterisk.org ##
37512 ## ------------------------------- ##
37513 _ASBOX
37514 ) | sed "s/^/$as_me: WARNING: /" >&2
37516 esac
37517 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37518 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37519 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37520 echo $ECHO_N "(cached) $ECHO_C" >&6
37521 else
37522 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37524 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37525 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37528 if test $ac_cv_header_sys_soundcard_h = yes; then
37529 OSS_HEADER_FOUND=1
37530 else
37531 OSS_HEADER_FOUND=0
37535 CPPFLAGS="${saved_cppflags}"
37537 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37538 OSS_LIB=""
37539 OSS_INCLUDE=""
37540 else
37541 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37542 OSS_LIB=""
37544 PBX_OSS=1
37545 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37547 cat >>confdefs.h <<_ACEOF
37548 #define HAVE_OSS 1
37549 _ACEOF
37552 cat >>confdefs.h <<_ACEOF
37553 #define HAVE_OSS_VERSION
37554 _ACEOF
37561 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37562 pbxlibdir=""
37563 # if --with-OSS=DIR has been specified, use it.
37564 if test "x${OSS_DIR}" != "x"; then
37565 if test -d ${OSS_DIR}/lib; then
37566 pbxlibdir="-L${OSS_DIR}/lib"
37567 else
37568 pbxlibdir="-L${OSS_DIR}"
37571 pbxfuncname="oss_ioctl_mixer"
37572 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37573 AST_OSS_FOUND=yes
37574 else
37575 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37576 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37577 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37578 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37579 echo $ECHO_N "(cached) $ECHO_C" >&6
37580 else
37581 ac_check_lib_save_LIBS=$LIBS
37582 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37583 cat >conftest.$ac_ext <<_ACEOF
37584 /* confdefs.h. */
37585 _ACEOF
37586 cat confdefs.h >>conftest.$ac_ext
37587 cat >>conftest.$ac_ext <<_ACEOF
37588 /* end confdefs.h. */
37590 /* Override any GCC internal prototype to avoid an error.
37591 Use char because int might match the return type of a GCC
37592 builtin and then its argument prototype would still apply. */
37593 #ifdef __cplusplus
37594 extern "C"
37595 #endif
37596 char ${pbxfuncname} ();
37598 main ()
37600 return ${pbxfuncname} ();
37602 return 0;
37604 _ACEOF
37605 rm -f conftest.$ac_objext conftest$ac_exeext
37606 if { (ac_try="$ac_link"
37607 case "(($ac_try" in
37608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37609 *) ac_try_echo=$ac_try;;
37610 esac
37611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37612 (eval "$ac_link") 2>conftest.er1
37613 ac_status=$?
37614 grep -v '^ *+' conftest.er1 >conftest.err
37615 rm -f conftest.er1
37616 cat conftest.err >&5
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } && {
37619 test -z "$ac_c_werror_flag" ||
37620 test ! -s conftest.err
37621 } && test -s conftest$ac_exeext &&
37622 $as_test_x conftest$ac_exeext; then
37623 eval "$as_ac_Lib=yes"
37624 else
37625 echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37628 eval "$as_ac_Lib=no"
37631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37632 conftest$ac_exeext conftest.$ac_ext
37633 LIBS=$ac_check_lib_save_LIBS
37635 ac_res=`eval echo '${'$as_ac_Lib'}'`
37636 { echo "$as_me:$LINENO: result: $ac_res" >&5
37637 echo "${ECHO_T}$ac_res" >&6; }
37638 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37639 AST_OSS_FOUND=yes
37640 else
37641 AST_OSS_FOUND=no
37646 # now check for the header.
37647 if test "${AST_OSS_FOUND}" = "yes"; then
37648 OSS_LIB="${pbxlibdir} -lossaudio "
37649 # if --with-OSS=DIR has been specified, use it.
37650 if test "x${OSS_DIR}" != "x"; then
37651 OSS_INCLUDE="-I${OSS_DIR}/include"
37653 OSS_INCLUDE="${OSS_INCLUDE} "
37654 if test "xsoundcard.h" = "x" ; then # no header, assume found
37655 OSS_HEADER_FOUND="1"
37656 else # check for the header
37657 saved_cppflags="${CPPFLAGS}"
37658 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37659 if test "${ac_cv_header_soundcard_h+set}" = set; then
37660 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37661 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37662 if test "${ac_cv_header_soundcard_h+set}" = set; then
37663 echo $ECHO_N "(cached) $ECHO_C" >&6
37665 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37666 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37667 else
37668 # Is the header compilable?
37669 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37670 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37671 cat >conftest.$ac_ext <<_ACEOF
37672 /* confdefs.h. */
37673 _ACEOF
37674 cat confdefs.h >>conftest.$ac_ext
37675 cat >>conftest.$ac_ext <<_ACEOF
37676 /* end confdefs.h. */
37677 $ac_includes_default
37678 #include <soundcard.h>
37679 _ACEOF
37680 rm -f conftest.$ac_objext
37681 if { (ac_try="$ac_compile"
37682 case "(($ac_try" in
37683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684 *) ac_try_echo=$ac_try;;
37685 esac
37686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37687 (eval "$ac_compile") 2>conftest.er1
37688 ac_status=$?
37689 grep -v '^ *+' conftest.er1 >conftest.err
37690 rm -f conftest.er1
37691 cat conftest.err >&5
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); } && {
37694 test -z "$ac_c_werror_flag" ||
37695 test ! -s conftest.err
37696 } && test -s conftest.$ac_objext; then
37697 ac_header_compiler=yes
37698 else
37699 echo "$as_me: failed program was:" >&5
37700 sed 's/^/| /' conftest.$ac_ext >&5
37702 ac_header_compiler=no
37705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37707 echo "${ECHO_T}$ac_header_compiler" >&6; }
37709 # Is the header present?
37710 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37711 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37712 cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h. */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 #include <soundcard.h>
37719 _ACEOF
37720 if { (ac_try="$ac_cpp conftest.$ac_ext"
37721 case "(($ac_try" in
37722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37723 *) ac_try_echo=$ac_try;;
37724 esac
37725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37727 ac_status=$?
37728 grep -v '^ *+' conftest.er1 >conftest.err
37729 rm -f conftest.er1
37730 cat conftest.err >&5
37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732 (exit $ac_status); } >/dev/null && {
37733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37734 test ! -s conftest.err
37735 }; then
37736 ac_header_preproc=yes
37737 else
37738 echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37741 ac_header_preproc=no
37744 rm -f conftest.err conftest.$ac_ext
37745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37746 echo "${ECHO_T}$ac_header_preproc" >&6; }
37748 # So? What about this header?
37749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37750 yes:no: )
37751 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37752 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37753 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37754 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37755 ac_header_preproc=yes
37757 no:yes:* )
37758 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37759 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37760 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37761 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37762 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37763 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37764 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37765 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37766 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37767 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37768 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37769 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37770 ( cat <<\_ASBOX
37771 ## ------------------------------- ##
37772 ## Report this to www.asterisk.org ##
37773 ## ------------------------------- ##
37774 _ASBOX
37775 ) | sed "s/^/$as_me: WARNING: /" >&2
37777 esac
37778 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37779 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37780 if test "${ac_cv_header_soundcard_h+set}" = set; then
37781 echo $ECHO_N "(cached) $ECHO_C" >&6
37782 else
37783 ac_cv_header_soundcard_h=$ac_header_preproc
37785 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37786 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37789 if test $ac_cv_header_soundcard_h = yes; then
37790 OSS_HEADER_FOUND=1
37791 else
37792 OSS_HEADER_FOUND=0
37796 CPPFLAGS="${saved_cppflags}"
37798 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37799 OSS_LIB=""
37800 OSS_INCLUDE=""
37801 else
37802 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37803 OSS_LIB=""
37805 PBX_OSS=1
37806 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37808 cat >>confdefs.h <<_ACEOF
37809 #define HAVE_OSS 1
37810 _ACEOF
37813 cat >>confdefs.h <<_ACEOF
37814 #define HAVE_OSS_VERSION
37815 _ACEOF
37822 PG_CONFIG=No
37823 if test "${USE_PGSQL}" != "no"; then
37824 if test "x${PGSQL_DIR}" != "x"; then
37825 if test -n "$ac_tool_prefix"; then
37826 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37827 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37830 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37831 echo $ECHO_N "(cached) $ECHO_C" >&6
37832 else
37833 case $PG_CONFIG in
37834 [\\/]* | ?:[\\/]*)
37835 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37839 for as_dir in ${PGSQL_DIR}/bin
37841 IFS=$as_save_IFS
37842 test -z "$as_dir" && as_dir=.
37843 for ac_exec_ext in '' $ac_executable_extensions; do
37844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37845 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37847 break 2
37849 done
37850 done
37851 IFS=$as_save_IFS
37854 esac
37856 PG_CONFIG=$ac_cv_path_PG_CONFIG
37857 if test -n "$PG_CONFIG"; then
37858 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37859 echo "${ECHO_T}$PG_CONFIG" >&6; }
37860 else
37861 { echo "$as_me:$LINENO: result: no" >&5
37862 echo "${ECHO_T}no" >&6; }
37867 if test -z "$ac_cv_path_PG_CONFIG"; then
37868 ac_pt_PG_CONFIG=$PG_CONFIG
37869 # Extract the first word of "pg_config", so it can be a program name with args.
37870 set dummy pg_config; ac_word=$2
37871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37873 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37874 echo $ECHO_N "(cached) $ECHO_C" >&6
37875 else
37876 case $ac_pt_PG_CONFIG in
37877 [\\/]* | ?:[\\/]*)
37878 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37882 for as_dir in ${PGSQL_DIR}/bin
37884 IFS=$as_save_IFS
37885 test -z "$as_dir" && as_dir=.
37886 for ac_exec_ext in '' $ac_executable_extensions; do
37887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37888 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37890 break 2
37892 done
37893 done
37894 IFS=$as_save_IFS
37897 esac
37899 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37900 if test -n "$ac_pt_PG_CONFIG"; then
37901 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37902 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37903 else
37904 { echo "$as_me:$LINENO: result: no" >&5
37905 echo "${ECHO_T}no" >&6; }
37908 if test "x$ac_pt_PG_CONFIG" = x; then
37909 PG_CONFIG="No"
37910 else
37911 case $cross_compiling:$ac_tool_warned in
37912 yes:)
37913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37914 whose name does not start with the host triplet. If you think this
37915 configuration is useful to you, please write to autoconf@gnu.org." >&5
37916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37917 whose name does not start with the host triplet. If you think this
37918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37919 ac_tool_warned=yes ;;
37920 esac
37921 PG_CONFIG=$ac_pt_PG_CONFIG
37923 else
37924 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37927 if test x"${PG_CONFIG}" = xNo; then
37928 { echo "$as_me:$LINENO: ***" >&5
37929 echo "$as_me: ***" >&6;}
37930 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
37931 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
37932 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
37933 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
37934 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37935 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37936 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37937 echo "$as_me: *** including --without-postgres" >&6;}
37938 exit 1
37940 else
37941 if test -n "$ac_tool_prefix"; then
37942 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37943 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37946 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37947 echo $ECHO_N "(cached) $ECHO_C" >&6
37948 else
37949 case $PG_CONFIG in
37950 [\\/]* | ?:[\\/]*)
37951 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37955 for as_dir in $PATH
37957 IFS=$as_save_IFS
37958 test -z "$as_dir" && as_dir=.
37959 for ac_exec_ext in '' $ac_executable_extensions; do
37960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37961 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37963 break 2
37965 done
37966 done
37967 IFS=$as_save_IFS
37970 esac
37972 PG_CONFIG=$ac_cv_path_PG_CONFIG
37973 if test -n "$PG_CONFIG"; then
37974 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37975 echo "${ECHO_T}$PG_CONFIG" >&6; }
37976 else
37977 { echo "$as_me:$LINENO: result: no" >&5
37978 echo "${ECHO_T}no" >&6; }
37983 if test -z "$ac_cv_path_PG_CONFIG"; then
37984 ac_pt_PG_CONFIG=$PG_CONFIG
37985 # Extract the first word of "pg_config", so it can be a program name with args.
37986 set dummy pg_config; ac_word=$2
37987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37989 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37990 echo $ECHO_N "(cached) $ECHO_C" >&6
37991 else
37992 case $ac_pt_PG_CONFIG in
37993 [\\/]* | ?:[\\/]*)
37994 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37998 for as_dir in $PATH
38000 IFS=$as_save_IFS
38001 test -z "$as_dir" && as_dir=.
38002 for ac_exec_ext in '' $ac_executable_extensions; do
38003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38004 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38006 break 2
38008 done
38009 done
38010 IFS=$as_save_IFS
38013 esac
38015 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38016 if test -n "$ac_pt_PG_CONFIG"; then
38017 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38018 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38019 else
38020 { echo "$as_me:$LINENO: result: no" >&5
38021 echo "${ECHO_T}no" >&6; }
38024 if test "x$ac_pt_PG_CONFIG" = x; then
38025 PG_CONFIG="No"
38026 else
38027 case $cross_compiling:$ac_tool_warned in
38028 yes:)
38029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38030 whose name does not start with the host triplet. If you think this
38031 configuration is useful to you, please write to autoconf@gnu.org." >&5
38032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38033 whose name does not start with the host triplet. If you think this
38034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38035 ac_tool_warned=yes ;;
38036 esac
38037 PG_CONFIG=$ac_pt_PG_CONFIG
38039 else
38040 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38045 if test "${PG_CONFIG}" != No; then
38046 PGSQL_libdir=`${PG_CONFIG} --libdir`
38047 PGSQL_includedir=`${PG_CONFIG} --includedir`
38048 if test "x$?" != "x0" ; then
38049 if test -n "${PGSQL_MANDATORY}" ; then
38050 { echo "$as_me:$LINENO: ***" >&5
38051 echo "$as_me: ***" >&6;}
38052 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38053 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38054 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38055 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38056 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38057 echo "$as_me: *** including --without-postgres" >&6;}
38058 exit 1
38060 else
38061 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38062 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38063 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38065 else
38066 ac_check_lib_save_LIBS=$LIBS
38067 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38068 cat >conftest.$ac_ext <<_ACEOF
38069 /* confdefs.h. */
38070 _ACEOF
38071 cat confdefs.h >>conftest.$ac_ext
38072 cat >>conftest.$ac_ext <<_ACEOF
38073 /* end confdefs.h. */
38075 /* Override any GCC internal prototype to avoid an error.
38076 Use char because int might match the return type of a GCC
38077 builtin and then its argument prototype would still apply. */
38078 #ifdef __cplusplus
38079 extern "C"
38080 #endif
38081 char PQescapeStringConn ();
38083 main ()
38085 return PQescapeStringConn ();
38087 return 0;
38089 _ACEOF
38090 rm -f conftest.$ac_objext conftest$ac_exeext
38091 if { (ac_try="$ac_link"
38092 case "(($ac_try" in
38093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38094 *) ac_try_echo=$ac_try;;
38095 esac
38096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38097 (eval "$ac_link") 2>conftest.er1
38098 ac_status=$?
38099 grep -v '^ *+' conftest.er1 >conftest.err
38100 rm -f conftest.er1
38101 cat conftest.err >&5
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); } && {
38104 test -z "$ac_c_werror_flag" ||
38105 test ! -s conftest.err
38106 } && test -s conftest$ac_exeext &&
38107 $as_test_x conftest$ac_exeext; then
38108 ac_cv_lib_pq_PQescapeStringConn=yes
38109 else
38110 echo "$as_me: failed program was:" >&5
38111 sed 's/^/| /' conftest.$ac_ext >&5
38113 ac_cv_lib_pq_PQescapeStringConn=no
38116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38117 conftest$ac_exeext conftest.$ac_ext
38118 LIBS=$ac_check_lib_save_LIBS
38120 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38121 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38122 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38124 cat >>confdefs.h <<_ACEOF
38125 #define HAVE_PGSQL 1
38126 _ACEOF
38131 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38132 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38133 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38134 PBX_PGSQL=1
38135 elif test -n "${PGSQL_MANDATORY}";
38136 then
38137 { echo "$as_me:$LINENO: ***" >&5
38138 echo "$as_me: ***" >&6;}
38139 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38140 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38141 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38142 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38143 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38144 echo "$as_me: *** including --without-postgres" >&6;}
38145 exit 1
38151 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38152 pbxlibdir=""
38153 # if --with-POPT=DIR has been specified, use it.
38154 if test "x${POPT_DIR}" != "x"; then
38155 if test -d ${POPT_DIR}/lib; then
38156 pbxlibdir="-L${POPT_DIR}/lib"
38157 else
38158 pbxlibdir="-L${POPT_DIR}"
38161 pbxfuncname="poptStrerror"
38162 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38163 AST_POPT_FOUND=yes
38164 else
38165 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38166 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38167 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38168 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38169 echo $ECHO_N "(cached) $ECHO_C" >&6
38170 else
38171 ac_check_lib_save_LIBS=$LIBS
38172 LIBS="-lpopt ${pbxlibdir} $LIBS"
38173 cat >conftest.$ac_ext <<_ACEOF
38174 /* confdefs.h. */
38175 _ACEOF
38176 cat confdefs.h >>conftest.$ac_ext
38177 cat >>conftest.$ac_ext <<_ACEOF
38178 /* end confdefs.h. */
38180 /* Override any GCC internal prototype to avoid an error.
38181 Use char because int might match the return type of a GCC
38182 builtin and then its argument prototype would still apply. */
38183 #ifdef __cplusplus
38184 extern "C"
38185 #endif
38186 char ${pbxfuncname} ();
38188 main ()
38190 return ${pbxfuncname} ();
38192 return 0;
38194 _ACEOF
38195 rm -f conftest.$ac_objext conftest$ac_exeext
38196 if { (ac_try="$ac_link"
38197 case "(($ac_try" in
38198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38199 *) ac_try_echo=$ac_try;;
38200 esac
38201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38202 (eval "$ac_link") 2>conftest.er1
38203 ac_status=$?
38204 grep -v '^ *+' conftest.er1 >conftest.err
38205 rm -f conftest.er1
38206 cat conftest.err >&5
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); } && {
38209 test -z "$ac_c_werror_flag" ||
38210 test ! -s conftest.err
38211 } && test -s conftest$ac_exeext &&
38212 $as_test_x conftest$ac_exeext; then
38213 eval "$as_ac_Lib=yes"
38214 else
38215 echo "$as_me: failed program was:" >&5
38216 sed 's/^/| /' conftest.$ac_ext >&5
38218 eval "$as_ac_Lib=no"
38221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38222 conftest$ac_exeext conftest.$ac_ext
38223 LIBS=$ac_check_lib_save_LIBS
38225 ac_res=`eval echo '${'$as_ac_Lib'}'`
38226 { echo "$as_me:$LINENO: result: $ac_res" >&5
38227 echo "${ECHO_T}$ac_res" >&6; }
38228 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38229 AST_POPT_FOUND=yes
38230 else
38231 AST_POPT_FOUND=no
38236 # now check for the header.
38237 if test "${AST_POPT_FOUND}" = "yes"; then
38238 POPT_LIB="${pbxlibdir} -lpopt "
38239 # if --with-POPT=DIR has been specified, use it.
38240 if test "x${POPT_DIR}" != "x"; then
38241 POPT_INCLUDE="-I${POPT_DIR}/include"
38243 POPT_INCLUDE="${POPT_INCLUDE} "
38244 if test "xpopt.h" = "x" ; then # no header, assume found
38245 POPT_HEADER_FOUND="1"
38246 else # check for the header
38247 saved_cppflags="${CPPFLAGS}"
38248 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
38249 if test "${ac_cv_header_popt_h+set}" = set; then
38250 { echo "$as_me:$LINENO: checking for popt.h" >&5
38251 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38252 if test "${ac_cv_header_popt_h+set}" = set; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38256 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38257 else
38258 # Is the header compilable?
38259 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38260 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38261 cat >conftest.$ac_ext <<_ACEOF
38262 /* confdefs.h. */
38263 _ACEOF
38264 cat confdefs.h >>conftest.$ac_ext
38265 cat >>conftest.$ac_ext <<_ACEOF
38266 /* end confdefs.h. */
38267 $ac_includes_default
38268 #include <popt.h>
38269 _ACEOF
38270 rm -f conftest.$ac_objext
38271 if { (ac_try="$ac_compile"
38272 case "(($ac_try" in
38273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38274 *) ac_try_echo=$ac_try;;
38275 esac
38276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38277 (eval "$ac_compile") 2>conftest.er1
38278 ac_status=$?
38279 grep -v '^ *+' conftest.er1 >conftest.err
38280 rm -f conftest.er1
38281 cat conftest.err >&5
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); } && {
38284 test -z "$ac_c_werror_flag" ||
38285 test ! -s conftest.err
38286 } && test -s conftest.$ac_objext; then
38287 ac_header_compiler=yes
38288 else
38289 echo "$as_me: failed program was:" >&5
38290 sed 's/^/| /' conftest.$ac_ext >&5
38292 ac_header_compiler=no
38295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38297 echo "${ECHO_T}$ac_header_compiler" >&6; }
38299 # Is the header present?
38300 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38301 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38302 cat >conftest.$ac_ext <<_ACEOF
38303 /* confdefs.h. */
38304 _ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38308 #include <popt.h>
38309 _ACEOF
38310 if { (ac_try="$ac_cpp conftest.$ac_ext"
38311 case "(($ac_try" in
38312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38313 *) ac_try_echo=$ac_try;;
38314 esac
38315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38317 ac_status=$?
38318 grep -v '^ *+' conftest.er1 >conftest.err
38319 rm -f conftest.er1
38320 cat conftest.err >&5
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); } >/dev/null && {
38323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38324 test ! -s conftest.err
38325 }; then
38326 ac_header_preproc=yes
38327 else
38328 echo "$as_me: failed program was:" >&5
38329 sed 's/^/| /' conftest.$ac_ext >&5
38331 ac_header_preproc=no
38334 rm -f conftest.err conftest.$ac_ext
38335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38336 echo "${ECHO_T}$ac_header_preproc" >&6; }
38338 # So? What about this header?
38339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38340 yes:no: )
38341 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38342 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38343 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38344 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38345 ac_header_preproc=yes
38347 no:yes:* )
38348 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38349 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38350 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38351 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38352 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38353 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38354 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38355 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38356 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38357 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38358 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38359 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38360 ( cat <<\_ASBOX
38361 ## ------------------------------- ##
38362 ## Report this to www.asterisk.org ##
38363 ## ------------------------------- ##
38364 _ASBOX
38365 ) | sed "s/^/$as_me: WARNING: /" >&2
38367 esac
38368 { echo "$as_me:$LINENO: checking for popt.h" >&5
38369 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38370 if test "${ac_cv_header_popt_h+set}" = set; then
38371 echo $ECHO_N "(cached) $ECHO_C" >&6
38372 else
38373 ac_cv_header_popt_h=$ac_header_preproc
38375 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38376 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38379 if test $ac_cv_header_popt_h = yes; then
38380 POPT_HEADER_FOUND=1
38381 else
38382 POPT_HEADER_FOUND=0
38386 CPPFLAGS="${saved_cppflags}"
38388 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38389 POPT_LIB=""
38390 POPT_INCLUDE=""
38391 else
38392 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38393 POPT_LIB=""
38395 PBX_POPT=1
38396 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38398 cat >>confdefs.h <<_ACEOF
38399 #define HAVE_POPT 1
38400 _ACEOF
38403 cat >>confdefs.h <<_ACEOF
38404 #define HAVE_POPT_VERSION
38405 _ACEOF
38413 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38414 pbxlibdir=""
38415 # if --with-PORTAUDIO=DIR has been specified, use it.
38416 if test "x${PORTAUDIO_DIR}" != "x"; then
38417 if test -d ${PORTAUDIO_DIR}/lib; then
38418 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38419 else
38420 pbxlibdir="-L${PORTAUDIO_DIR}"
38423 pbxfuncname="Pa_GetDeviceCount"
38424 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38425 AST_PORTAUDIO_FOUND=yes
38426 else
38427 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38428 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38429 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38430 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38431 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 else
38433 ac_check_lib_save_LIBS=$LIBS
38434 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38435 cat >conftest.$ac_ext <<_ACEOF
38436 /* confdefs.h. */
38437 _ACEOF
38438 cat confdefs.h >>conftest.$ac_ext
38439 cat >>conftest.$ac_ext <<_ACEOF
38440 /* end confdefs.h. */
38442 /* Override any GCC internal prototype to avoid an error.
38443 Use char because int might match the return type of a GCC
38444 builtin and then its argument prototype would still apply. */
38445 #ifdef __cplusplus
38446 extern "C"
38447 #endif
38448 char ${pbxfuncname} ();
38450 main ()
38452 return ${pbxfuncname} ();
38454 return 0;
38456 _ACEOF
38457 rm -f conftest.$ac_objext conftest$ac_exeext
38458 if { (ac_try="$ac_link"
38459 case "(($ac_try" in
38460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38461 *) ac_try_echo=$ac_try;;
38462 esac
38463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38464 (eval "$ac_link") 2>conftest.er1
38465 ac_status=$?
38466 grep -v '^ *+' conftest.er1 >conftest.err
38467 rm -f conftest.er1
38468 cat conftest.err >&5
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); } && {
38471 test -z "$ac_c_werror_flag" ||
38472 test ! -s conftest.err
38473 } && test -s conftest$ac_exeext &&
38474 $as_test_x conftest$ac_exeext; then
38475 eval "$as_ac_Lib=yes"
38476 else
38477 echo "$as_me: failed program was:" >&5
38478 sed 's/^/| /' conftest.$ac_ext >&5
38480 eval "$as_ac_Lib=no"
38483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38484 conftest$ac_exeext conftest.$ac_ext
38485 LIBS=$ac_check_lib_save_LIBS
38487 ac_res=`eval echo '${'$as_ac_Lib'}'`
38488 { echo "$as_me:$LINENO: result: $ac_res" >&5
38489 echo "${ECHO_T}$ac_res" >&6; }
38490 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38491 AST_PORTAUDIO_FOUND=yes
38492 else
38493 AST_PORTAUDIO_FOUND=no
38498 # now check for the header.
38499 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38500 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38501 # if --with-PORTAUDIO=DIR has been specified, use it.
38502 if test "x${PORTAUDIO_DIR}" != "x"; then
38503 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38505 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38506 if test "xportaudio.h" = "x" ; then # no header, assume found
38507 PORTAUDIO_HEADER_FOUND="1"
38508 else # check for the header
38509 saved_cppflags="${CPPFLAGS}"
38510 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38511 if test "${ac_cv_header_portaudio_h+set}" = set; then
38512 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38513 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38514 if test "${ac_cv_header_portaudio_h+set}" = set; then
38515 echo $ECHO_N "(cached) $ECHO_C" >&6
38517 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38518 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38519 else
38520 # Is the header compilable?
38521 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38522 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38523 cat >conftest.$ac_ext <<_ACEOF
38524 /* confdefs.h. */
38525 _ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h. */
38529 $ac_includes_default
38530 #include <portaudio.h>
38531 _ACEOF
38532 rm -f conftest.$ac_objext
38533 if { (ac_try="$ac_compile"
38534 case "(($ac_try" in
38535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38536 *) ac_try_echo=$ac_try;;
38537 esac
38538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38539 (eval "$ac_compile") 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } && {
38546 test -z "$ac_c_werror_flag" ||
38547 test ! -s conftest.err
38548 } && test -s conftest.$ac_objext; then
38549 ac_header_compiler=yes
38550 else
38551 echo "$as_me: failed program was:" >&5
38552 sed 's/^/| /' conftest.$ac_ext >&5
38554 ac_header_compiler=no
38557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38559 echo "${ECHO_T}$ac_header_compiler" >&6; }
38561 # Is the header present?
38562 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38563 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38564 cat >conftest.$ac_ext <<_ACEOF
38565 /* confdefs.h. */
38566 _ACEOF
38567 cat confdefs.h >>conftest.$ac_ext
38568 cat >>conftest.$ac_ext <<_ACEOF
38569 /* end confdefs.h. */
38570 #include <portaudio.h>
38571 _ACEOF
38572 if { (ac_try="$ac_cpp conftest.$ac_ext"
38573 case "(($ac_try" in
38574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38575 *) ac_try_echo=$ac_try;;
38576 esac
38577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38579 ac_status=$?
38580 grep -v '^ *+' conftest.er1 >conftest.err
38581 rm -f conftest.er1
38582 cat conftest.err >&5
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); } >/dev/null && {
38585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38586 test ! -s conftest.err
38587 }; then
38588 ac_header_preproc=yes
38589 else
38590 echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38593 ac_header_preproc=no
38596 rm -f conftest.err conftest.$ac_ext
38597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38598 echo "${ECHO_T}$ac_header_preproc" >&6; }
38600 # So? What about this header?
38601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38602 yes:no: )
38603 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38604 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38605 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38606 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38607 ac_header_preproc=yes
38609 no:yes:* )
38610 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38611 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38612 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38613 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38614 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38615 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38616 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38617 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38618 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38619 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38620 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38621 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38622 ( cat <<\_ASBOX
38623 ## ------------------------------- ##
38624 ## Report this to www.asterisk.org ##
38625 ## ------------------------------- ##
38626 _ASBOX
38627 ) | sed "s/^/$as_me: WARNING: /" >&2
38629 esac
38630 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38631 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38632 if test "${ac_cv_header_portaudio_h+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635 ac_cv_header_portaudio_h=$ac_header_preproc
38637 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38638 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38641 if test $ac_cv_header_portaudio_h = yes; then
38642 PORTAUDIO_HEADER_FOUND=1
38643 else
38644 PORTAUDIO_HEADER_FOUND=0
38648 CPPFLAGS="${saved_cppflags}"
38650 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38651 PORTAUDIO_LIB=""
38652 PORTAUDIO_INCLUDE=""
38653 else
38654 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38655 PORTAUDIO_LIB=""
38657 PBX_PORTAUDIO=1
38658 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38660 cat >>confdefs.h <<_ACEOF
38661 #define HAVE_PORTAUDIO 1
38662 _ACEOF
38665 cat >>confdefs.h <<_ACEOF
38666 #define HAVE_PORTAUDIO_VERSION
38667 _ACEOF
38675 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38676 pbxlibdir=""
38677 # if --with-PRI=DIR has been specified, use it.
38678 if test "x${PRI_DIR}" != "x"; then
38679 if test -d ${PRI_DIR}/lib; then
38680 pbxlibdir="-L${PRI_DIR}/lib"
38681 else
38682 pbxlibdir="-L${PRI_DIR}"
38685 pbxfuncname="pri_get_version"
38686 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38687 AST_PRI_FOUND=yes
38688 else
38689 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38690 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38691 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38692 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38693 echo $ECHO_N "(cached) $ECHO_C" >&6
38694 else
38695 ac_check_lib_save_LIBS=$LIBS
38696 LIBS="-lpri ${pbxlibdir} $LIBS"
38697 cat >conftest.$ac_ext <<_ACEOF
38698 /* confdefs.h. */
38699 _ACEOF
38700 cat confdefs.h >>conftest.$ac_ext
38701 cat >>conftest.$ac_ext <<_ACEOF
38702 /* end confdefs.h. */
38704 /* Override any GCC internal prototype to avoid an error.
38705 Use char because int might match the return type of a GCC
38706 builtin and then its argument prototype would still apply. */
38707 #ifdef __cplusplus
38708 extern "C"
38709 #endif
38710 char ${pbxfuncname} ();
38712 main ()
38714 return ${pbxfuncname} ();
38716 return 0;
38718 _ACEOF
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (ac_try="$ac_link"
38721 case "(($ac_try" in
38722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38723 *) ac_try_echo=$ac_try;;
38724 esac
38725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38726 (eval "$ac_link") 2>conftest.er1
38727 ac_status=$?
38728 grep -v '^ *+' conftest.er1 >conftest.err
38729 rm -f conftest.er1
38730 cat conftest.err >&5
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); } && {
38733 test -z "$ac_c_werror_flag" ||
38734 test ! -s conftest.err
38735 } && test -s conftest$ac_exeext &&
38736 $as_test_x conftest$ac_exeext; then
38737 eval "$as_ac_Lib=yes"
38738 else
38739 echo "$as_me: failed program was:" >&5
38740 sed 's/^/| /' conftest.$ac_ext >&5
38742 eval "$as_ac_Lib=no"
38745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38746 conftest$ac_exeext conftest.$ac_ext
38747 LIBS=$ac_check_lib_save_LIBS
38749 ac_res=`eval echo '${'$as_ac_Lib'}'`
38750 { echo "$as_me:$LINENO: result: $ac_res" >&5
38751 echo "${ECHO_T}$ac_res" >&6; }
38752 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38753 AST_PRI_FOUND=yes
38754 else
38755 AST_PRI_FOUND=no
38760 # now check for the header.
38761 if test "${AST_PRI_FOUND}" = "yes"; then
38762 PRI_LIB="${pbxlibdir} -lpri "
38763 # if --with-PRI=DIR has been specified, use it.
38764 if test "x${PRI_DIR}" != "x"; then
38765 PRI_INCLUDE="-I${PRI_DIR}/include"
38767 PRI_INCLUDE="${PRI_INCLUDE} "
38768 if test "xlibpri.h" = "x" ; then # no header, assume found
38769 PRI_HEADER_FOUND="1"
38770 else # check for the header
38771 saved_cppflags="${CPPFLAGS}"
38772 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38773 if test "${ac_cv_header_libpri_h+set}" = set; then
38774 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38775 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38776 if test "${ac_cv_header_libpri_h+set}" = set; then
38777 echo $ECHO_N "(cached) $ECHO_C" >&6
38779 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38780 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38781 else
38782 # Is the header compilable?
38783 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38784 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38785 cat >conftest.$ac_ext <<_ACEOF
38786 /* confdefs.h. */
38787 _ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h. */
38791 $ac_includes_default
38792 #include <libpri.h>
38793 _ACEOF
38794 rm -f conftest.$ac_objext
38795 if { (ac_try="$ac_compile"
38796 case "(($ac_try" in
38797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38798 *) ac_try_echo=$ac_try;;
38799 esac
38800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38801 (eval "$ac_compile") 2>conftest.er1
38802 ac_status=$?
38803 grep -v '^ *+' conftest.er1 >conftest.err
38804 rm -f conftest.er1
38805 cat conftest.err >&5
38806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807 (exit $ac_status); } && {
38808 test -z "$ac_c_werror_flag" ||
38809 test ! -s conftest.err
38810 } && test -s conftest.$ac_objext; then
38811 ac_header_compiler=yes
38812 else
38813 echo "$as_me: failed program was:" >&5
38814 sed 's/^/| /' conftest.$ac_ext >&5
38816 ac_header_compiler=no
38819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38821 echo "${ECHO_T}$ac_header_compiler" >&6; }
38823 # Is the header present?
38824 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38825 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38826 cat >conftest.$ac_ext <<_ACEOF
38827 /* confdefs.h. */
38828 _ACEOF
38829 cat confdefs.h >>conftest.$ac_ext
38830 cat >>conftest.$ac_ext <<_ACEOF
38831 /* end confdefs.h. */
38832 #include <libpri.h>
38833 _ACEOF
38834 if { (ac_try="$ac_cpp conftest.$ac_ext"
38835 case "(($ac_try" in
38836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837 *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38841 ac_status=$?
38842 grep -v '^ *+' conftest.er1 >conftest.err
38843 rm -f conftest.er1
38844 cat conftest.err >&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); } >/dev/null && {
38847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38848 test ! -s conftest.err
38849 }; then
38850 ac_header_preproc=yes
38851 else
38852 echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38855 ac_header_preproc=no
38858 rm -f conftest.err conftest.$ac_ext
38859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38860 echo "${ECHO_T}$ac_header_preproc" >&6; }
38862 # So? What about this header?
38863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38864 yes:no: )
38865 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38866 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38867 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38868 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38869 ac_header_preproc=yes
38871 no:yes:* )
38872 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38873 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38874 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38875 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38876 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38877 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38878 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38879 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38880 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38881 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38882 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38883 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38884 ( cat <<\_ASBOX
38885 ## ------------------------------- ##
38886 ## Report this to www.asterisk.org ##
38887 ## ------------------------------- ##
38888 _ASBOX
38889 ) | sed "s/^/$as_me: WARNING: /" >&2
38891 esac
38892 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38893 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38894 if test "${ac_cv_header_libpri_h+set}" = set; then
38895 echo $ECHO_N "(cached) $ECHO_C" >&6
38896 else
38897 ac_cv_header_libpri_h=$ac_header_preproc
38899 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38900 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38903 if test $ac_cv_header_libpri_h = yes; then
38904 PRI_HEADER_FOUND=1
38905 else
38906 PRI_HEADER_FOUND=0
38910 CPPFLAGS="${saved_cppflags}"
38912 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
38913 PRI_LIB=""
38914 PRI_INCLUDE=""
38915 else
38916 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38917 PRI_LIB=""
38919 PBX_PRI=1
38920 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38922 cat >>confdefs.h <<_ACEOF
38923 #define HAVE_PRI 1
38924 _ACEOF
38927 cat >>confdefs.h <<_ACEOF
38928 #define HAVE_PRI_VERSION
38929 _ACEOF
38937 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
38938 { echo "$as_me:$LINENO: checking if \"
38939 #if SPANDSP_RELEASE_DATE < 20080516
38940 #error \"spandsp 0.0.5 or greater is required\"
38941 #endif
38942 \" compiles using spandsp/version.h" >&5
38943 echo $ECHO_N "checking if \"
38944 #if SPANDSP_RELEASE_DATE < 20080516
38945 #error \"spandsp 0.0.5 or greater is required\"
38946 #endif
38947 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
38948 saved_cppflags="${CPPFLAGS}"
38949 if test "x${SPANDSP_DIR}" != "x"; then
38950 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
38952 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
38954 cat >conftest.$ac_ext <<_ACEOF
38955 /* confdefs.h. */
38956 _ACEOF
38957 cat confdefs.h >>conftest.$ac_ext
38958 cat >>conftest.$ac_ext <<_ACEOF
38959 /* end confdefs.h. */
38960 #include <spandsp/version.h>
38962 main ()
38965 #if SPANDSP_RELEASE_DATE < 20080516
38966 #error "spandsp 0.0.5 or greater is required"
38967 #endif
38971 return 0;
38973 _ACEOF
38974 rm -f conftest.$ac_objext
38975 if { (ac_try="$ac_compile"
38976 case "(($ac_try" in
38977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38978 *) ac_try_echo=$ac_try;;
38979 esac
38980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38981 (eval "$ac_compile") 2>conftest.er1
38982 ac_status=$?
38983 grep -v '^ *+' conftest.er1 >conftest.err
38984 rm -f conftest.er1
38985 cat conftest.err >&5
38986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987 (exit $ac_status); } && {
38988 test -z "$ac_c_werror_flag" ||
38989 test ! -s conftest.err
38990 } && test -s conftest.$ac_objext; then
38991 { echo "$as_me:$LINENO: result: yes" >&5
38992 echo "${ECHO_T}yes" >&6; }
38993 PBX_SPANDSP=1
38995 cat >>confdefs.h <<\_ACEOF
38996 #define HAVE_SPANDSP 1
38997 _ACEOF
39000 cat >>confdefs.h <<\_ACEOF
39001 #define HAVE_SPANDSP_VERSION
39002 _ACEOF
39005 else
39006 echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39009 { echo "$as_me:$LINENO: result: no" >&5
39010 echo "${ECHO_T}no" >&6; }
39014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39015 CPPFLAGS="${saved_cppflags}"
39019 if test "x${PBX_SPANDSP}" = "x1" ; then
39020 # We found the correct version in the header, now let's make sure it links
39021 # properly, and that libtiff is available
39022 PBX_SPANDSP=0
39024 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39025 pbxlibdir=""
39026 # if --with-SPANDSP=DIR has been specified, use it.
39027 if test "x${SPANDSP_DIR}" != "x"; then
39028 if test -d ${SPANDSP_DIR}/lib; then
39029 pbxlibdir="-L${SPANDSP_DIR}/lib"
39030 else
39031 pbxlibdir="-L${SPANDSP_DIR}"
39034 pbxfuncname="span_set_message_handler"
39035 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39036 AST_SPANDSP_FOUND=yes
39037 else
39038 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
39039 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
39040 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
39041 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39042 echo $ECHO_N "(cached) $ECHO_C" >&6
39043 else
39044 ac_check_lib_save_LIBS=$LIBS
39045 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
39046 cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h. */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h. */
39053 /* Override any GCC internal prototype to avoid an error.
39054 Use char because int might match the return type of a GCC
39055 builtin and then its argument prototype would still apply. */
39056 #ifdef __cplusplus
39057 extern "C"
39058 #endif
39059 char ${pbxfuncname} ();
39061 main ()
39063 return ${pbxfuncname} ();
39065 return 0;
39067 _ACEOF
39068 rm -f conftest.$ac_objext conftest$ac_exeext
39069 if { (ac_try="$ac_link"
39070 case "(($ac_try" in
39071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39072 *) ac_try_echo=$ac_try;;
39073 esac
39074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39075 (eval "$ac_link") 2>conftest.er1
39076 ac_status=$?
39077 grep -v '^ *+' conftest.er1 >conftest.err
39078 rm -f conftest.er1
39079 cat conftest.err >&5
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); } && {
39082 test -z "$ac_c_werror_flag" ||
39083 test ! -s conftest.err
39084 } && test -s conftest$ac_exeext &&
39085 $as_test_x conftest$ac_exeext; then
39086 eval "$as_ac_Lib=yes"
39087 else
39088 echo "$as_me: failed program was:" >&5
39089 sed 's/^/| /' conftest.$ac_ext >&5
39091 eval "$as_ac_Lib=no"
39094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39095 conftest$ac_exeext conftest.$ac_ext
39096 LIBS=$ac_check_lib_save_LIBS
39098 ac_res=`eval echo '${'$as_ac_Lib'}'`
39099 { echo "$as_me:$LINENO: result: $ac_res" >&5
39100 echo "${ECHO_T}$ac_res" >&6; }
39101 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39102 AST_SPANDSP_FOUND=yes
39103 else
39104 AST_SPANDSP_FOUND=no
39109 # now check for the header.
39110 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39111 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39112 # if --with-SPANDSP=DIR has been specified, use it.
39113 if test "x${SPANDSP_DIR}" != "x"; then
39114 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39116 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39117 if test "xspandsp.h" = "x" ; then # no header, assume found
39118 SPANDSP_HEADER_FOUND="1"
39119 else # check for the header
39120 saved_cppflags="${CPPFLAGS}"
39121 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE} "
39122 if test "${ac_cv_header_spandsp_h+set}" = set; then
39123 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39124 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39125 if test "${ac_cv_header_spandsp_h+set}" = set; then
39126 echo $ECHO_N "(cached) $ECHO_C" >&6
39128 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39129 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39130 else
39131 # Is the header compilable?
39132 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39133 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39134 cat >conftest.$ac_ext <<_ACEOF
39135 /* confdefs.h. */
39136 _ACEOF
39137 cat confdefs.h >>conftest.$ac_ext
39138 cat >>conftest.$ac_ext <<_ACEOF
39139 /* end confdefs.h. */
39140 $ac_includes_default
39141 #include <spandsp.h>
39142 _ACEOF
39143 rm -f conftest.$ac_objext
39144 if { (ac_try="$ac_compile"
39145 case "(($ac_try" in
39146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39147 *) ac_try_echo=$ac_try;;
39148 esac
39149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39150 (eval "$ac_compile") 2>conftest.er1
39151 ac_status=$?
39152 grep -v '^ *+' conftest.er1 >conftest.err
39153 rm -f conftest.er1
39154 cat conftest.err >&5
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } && {
39157 test -z "$ac_c_werror_flag" ||
39158 test ! -s conftest.err
39159 } && test -s conftest.$ac_objext; then
39160 ac_header_compiler=yes
39161 else
39162 echo "$as_me: failed program was:" >&5
39163 sed 's/^/| /' conftest.$ac_ext >&5
39165 ac_header_compiler=no
39168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39170 echo "${ECHO_T}$ac_header_compiler" >&6; }
39172 # Is the header present?
39173 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39174 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39175 cat >conftest.$ac_ext <<_ACEOF
39176 /* confdefs.h. */
39177 _ACEOF
39178 cat confdefs.h >>conftest.$ac_ext
39179 cat >>conftest.$ac_ext <<_ACEOF
39180 /* end confdefs.h. */
39181 #include <spandsp.h>
39182 _ACEOF
39183 if { (ac_try="$ac_cpp conftest.$ac_ext"
39184 case "(($ac_try" in
39185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39186 *) ac_try_echo=$ac_try;;
39187 esac
39188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39190 ac_status=$?
39191 grep -v '^ *+' conftest.er1 >conftest.err
39192 rm -f conftest.er1
39193 cat conftest.err >&5
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195 (exit $ac_status); } >/dev/null && {
39196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39197 test ! -s conftest.err
39198 }; then
39199 ac_header_preproc=yes
39200 else
39201 echo "$as_me: failed program was:" >&5
39202 sed 's/^/| /' conftest.$ac_ext >&5
39204 ac_header_preproc=no
39207 rm -f conftest.err conftest.$ac_ext
39208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39209 echo "${ECHO_T}$ac_header_preproc" >&6; }
39211 # So? What about this header?
39212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39213 yes:no: )
39214 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39215 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39216 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39217 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39218 ac_header_preproc=yes
39220 no:yes:* )
39221 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39222 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39223 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39224 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39225 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39226 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39227 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39228 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39229 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39230 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39231 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39232 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39233 ( cat <<\_ASBOX
39234 ## ------------------------------- ##
39235 ## Report this to www.asterisk.org ##
39236 ## ------------------------------- ##
39237 _ASBOX
39238 ) | sed "s/^/$as_me: WARNING: /" >&2
39240 esac
39241 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39242 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39243 if test "${ac_cv_header_spandsp_h+set}" = set; then
39244 echo $ECHO_N "(cached) $ECHO_C" >&6
39245 else
39246 ac_cv_header_spandsp_h=$ac_header_preproc
39248 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39249 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39252 if test $ac_cv_header_spandsp_h = yes; then
39253 SPANDSP_HEADER_FOUND=1
39254 else
39255 SPANDSP_HEADER_FOUND=0
39259 CPPFLAGS="${saved_cppflags}"
39261 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39262 SPANDSP_LIB=""
39263 SPANDSP_INCLUDE=""
39264 else
39265 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39266 SPANDSP_LIB=""
39268 PBX_SPANDSP=1
39269 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39271 cat >>confdefs.h <<_ACEOF
39272 #define HAVE_SPANDSP 1
39273 _ACEOF
39276 cat >>confdefs.h <<_ACEOF
39277 #define HAVE_SPANDSP_VERSION
39278 _ACEOF
39287 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
39288 pbxlibdir=""
39289 # if --with-SS7=DIR has been specified, use it.
39290 if test "x${SS7_DIR}" != "x"; then
39291 if test -d ${SS7_DIR}/lib; then
39292 pbxlibdir="-L${SS7_DIR}/lib"
39293 else
39294 pbxlibdir="-L${SS7_DIR}"
39297 pbxfuncname="ss7_pollflags"
39298 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39299 AST_SS7_FOUND=yes
39300 else
39301 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
39302 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
39303 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
39304 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39305 echo $ECHO_N "(cached) $ECHO_C" >&6
39306 else
39307 ac_check_lib_save_LIBS=$LIBS
39308 LIBS="-lss7 ${pbxlibdir} $LIBS"
39309 cat >conftest.$ac_ext <<_ACEOF
39310 /* confdefs.h. */
39311 _ACEOF
39312 cat confdefs.h >>conftest.$ac_ext
39313 cat >>conftest.$ac_ext <<_ACEOF
39314 /* end confdefs.h. */
39316 /* Override any GCC internal prototype to avoid an error.
39317 Use char because int might match the return type of a GCC
39318 builtin and then its argument prototype would still apply. */
39319 #ifdef __cplusplus
39320 extern "C"
39321 #endif
39322 char ${pbxfuncname} ();
39324 main ()
39326 return ${pbxfuncname} ();
39328 return 0;
39330 _ACEOF
39331 rm -f conftest.$ac_objext conftest$ac_exeext
39332 if { (ac_try="$ac_link"
39333 case "(($ac_try" in
39334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39335 *) ac_try_echo=$ac_try;;
39336 esac
39337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39338 (eval "$ac_link") 2>conftest.er1
39339 ac_status=$?
39340 grep -v '^ *+' conftest.er1 >conftest.err
39341 rm -f conftest.er1
39342 cat conftest.err >&5
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } && {
39345 test -z "$ac_c_werror_flag" ||
39346 test ! -s conftest.err
39347 } && test -s conftest$ac_exeext &&
39348 $as_test_x conftest$ac_exeext; then
39349 eval "$as_ac_Lib=yes"
39350 else
39351 echo "$as_me: failed program was:" >&5
39352 sed 's/^/| /' conftest.$ac_ext >&5
39354 eval "$as_ac_Lib=no"
39357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39358 conftest$ac_exeext conftest.$ac_ext
39359 LIBS=$ac_check_lib_save_LIBS
39361 ac_res=`eval echo '${'$as_ac_Lib'}'`
39362 { echo "$as_me:$LINENO: result: $ac_res" >&5
39363 echo "${ECHO_T}$ac_res" >&6; }
39364 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39365 AST_SS7_FOUND=yes
39366 else
39367 AST_SS7_FOUND=no
39372 # now check for the header.
39373 if test "${AST_SS7_FOUND}" = "yes"; then
39374 SS7_LIB="${pbxlibdir} -lss7 "
39375 # if --with-SS7=DIR has been specified, use it.
39376 if test "x${SS7_DIR}" != "x"; then
39377 SS7_INCLUDE="-I${SS7_DIR}/include"
39379 SS7_INCLUDE="${SS7_INCLUDE} "
39380 if test "xlibss7.h" = "x" ; then # no header, assume found
39381 SS7_HEADER_FOUND="1"
39382 else # check for the header
39383 saved_cppflags="${CPPFLAGS}"
39384 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
39385 if test "${ac_cv_header_libss7_h+set}" = set; then
39386 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39387 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39388 if test "${ac_cv_header_libss7_h+set}" = set; then
39389 echo $ECHO_N "(cached) $ECHO_C" >&6
39391 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39392 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39393 else
39394 # Is the header compilable?
39395 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
39396 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
39397 cat >conftest.$ac_ext <<_ACEOF
39398 /* confdefs.h. */
39399 _ACEOF
39400 cat confdefs.h >>conftest.$ac_ext
39401 cat >>conftest.$ac_ext <<_ACEOF
39402 /* end confdefs.h. */
39403 $ac_includes_default
39404 #include <libss7.h>
39405 _ACEOF
39406 rm -f conftest.$ac_objext
39407 if { (ac_try="$ac_compile"
39408 case "(($ac_try" in
39409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39410 *) ac_try_echo=$ac_try;;
39411 esac
39412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39413 (eval "$ac_compile") 2>conftest.er1
39414 ac_status=$?
39415 grep -v '^ *+' conftest.er1 >conftest.err
39416 rm -f conftest.er1
39417 cat conftest.err >&5
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); } && {
39420 test -z "$ac_c_werror_flag" ||
39421 test ! -s conftest.err
39422 } && test -s conftest.$ac_objext; then
39423 ac_header_compiler=yes
39424 else
39425 echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39428 ac_header_compiler=no
39431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39433 echo "${ECHO_T}$ac_header_compiler" >&6; }
39435 # Is the header present?
39436 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
39437 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
39438 cat >conftest.$ac_ext <<_ACEOF
39439 /* confdefs.h. */
39440 _ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h. */
39444 #include <libss7.h>
39445 _ACEOF
39446 if { (ac_try="$ac_cpp conftest.$ac_ext"
39447 case "(($ac_try" in
39448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39449 *) ac_try_echo=$ac_try;;
39450 esac
39451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39453 ac_status=$?
39454 grep -v '^ *+' conftest.er1 >conftest.err
39455 rm -f conftest.er1
39456 cat conftest.err >&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); } >/dev/null && {
39459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39460 test ! -s conftest.err
39461 }; then
39462 ac_header_preproc=yes
39463 else
39464 echo "$as_me: failed program was:" >&5
39465 sed 's/^/| /' conftest.$ac_ext >&5
39467 ac_header_preproc=no
39470 rm -f conftest.err conftest.$ac_ext
39471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39472 echo "${ECHO_T}$ac_header_preproc" >&6; }
39474 # So? What about this header?
39475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39476 yes:no: )
39477 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
39478 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39479 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
39480 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
39481 ac_header_preproc=yes
39483 no:yes:* )
39484 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
39485 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
39486 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
39487 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
39488 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
39489 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
39490 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
39491 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
39492 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
39493 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
39494 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
39495 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
39496 ( cat <<\_ASBOX
39497 ## ------------------------------- ##
39498 ## Report this to www.asterisk.org ##
39499 ## ------------------------------- ##
39500 _ASBOX
39501 ) | sed "s/^/$as_me: WARNING: /" >&2
39503 esac
39504 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39505 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39506 if test "${ac_cv_header_libss7_h+set}" = set; then
39507 echo $ECHO_N "(cached) $ECHO_C" >&6
39508 else
39509 ac_cv_header_libss7_h=$ac_header_preproc
39511 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39512 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39515 if test $ac_cv_header_libss7_h = yes; then
39516 SS7_HEADER_FOUND=1
39517 else
39518 SS7_HEADER_FOUND=0
39522 CPPFLAGS="${saved_cppflags}"
39524 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
39525 SS7_LIB=""
39526 SS7_INCLUDE=""
39527 else
39528 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39529 SS7_LIB=""
39531 PBX_SS7=1
39532 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39534 cat >>confdefs.h <<_ACEOF
39535 #define HAVE_SS7 1
39536 _ACEOF
39539 cat >>confdefs.h <<_ACEOF
39540 #define HAVE_SS7_VERSION
39541 _ACEOF
39548 if test "${USE_PWLIB}" != "no"; then
39549 if test -n "${PWLIB_DIR}"; then
39550 PWLIBDIR="${PWLIB_DIR}"
39555 PWLIB_INCDIR=
39556 PWLIB_LIBDIR=
39557 ac_ext=cpp
39558 ac_cpp='$CXXCPP $CPPFLAGS'
39559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39563 if test "${PWLIBDIR:-unset}" != "unset" ; then
39564 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
39565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39566 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39567 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39569 echo $ECHO_N "(cached) $ECHO_C" >&6
39571 ac_res=`eval echo '${'$as_ac_Header'}'`
39572 { echo "$as_me:$LINENO: result: $ac_res" >&5
39573 echo "${ECHO_T}$ac_res" >&6; }
39574 else
39575 # Is the header compilable?
39576 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
39577 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
39578 cat >conftest.$ac_ext <<_ACEOF
39579 /* confdefs.h. */
39580 _ACEOF
39581 cat confdefs.h >>conftest.$ac_ext
39582 cat >>conftest.$ac_ext <<_ACEOF
39583 /* end confdefs.h. */
39584 $ac_includes_default
39585 #include <${PWLIBDIR}/version.h>
39586 _ACEOF
39587 rm -f conftest.$ac_objext
39588 if { (ac_try="$ac_compile"
39589 case "(($ac_try" in
39590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39591 *) ac_try_echo=$ac_try;;
39592 esac
39593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39594 (eval "$ac_compile") 2>conftest.er1
39595 ac_status=$?
39596 grep -v '^ *+' conftest.er1 >conftest.err
39597 rm -f conftest.er1
39598 cat conftest.err >&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } && {
39601 test -z "$ac_cxx_werror_flag" ||
39602 test ! -s conftest.err
39603 } && test -s conftest.$ac_objext; then
39604 ac_header_compiler=yes
39605 else
39606 echo "$as_me: failed program was:" >&5
39607 sed 's/^/| /' conftest.$ac_ext >&5
39609 ac_header_compiler=no
39612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39614 echo "${ECHO_T}$ac_header_compiler" >&6; }
39616 # Is the header present?
39617 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
39618 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
39619 cat >conftest.$ac_ext <<_ACEOF
39620 /* confdefs.h. */
39621 _ACEOF
39622 cat confdefs.h >>conftest.$ac_ext
39623 cat >>conftest.$ac_ext <<_ACEOF
39624 /* end confdefs.h. */
39625 #include <${PWLIBDIR}/version.h>
39626 _ACEOF
39627 if { (ac_try="$ac_cpp conftest.$ac_ext"
39628 case "(($ac_try" in
39629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39630 *) ac_try_echo=$ac_try;;
39631 esac
39632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39634 ac_status=$?
39635 grep -v '^ *+' conftest.er1 >conftest.err
39636 rm -f conftest.er1
39637 cat conftest.err >&5
39638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639 (exit $ac_status); } >/dev/null && {
39640 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39641 test ! -s conftest.err
39642 }; then
39643 ac_header_preproc=yes
39644 else
39645 echo "$as_me: failed program was:" >&5
39646 sed 's/^/| /' conftest.$ac_ext >&5
39648 ac_header_preproc=no
39651 rm -f conftest.err conftest.$ac_ext
39652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39653 echo "${ECHO_T}$ac_header_preproc" >&6; }
39655 # So? What about this header?
39656 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39657 yes:no: )
39658 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39659 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39660 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
39661 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
39662 ac_header_preproc=yes
39664 no:yes:* )
39665 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
39666 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
39667 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
39668 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
39669 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
39670 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
39671 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
39672 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39673 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
39674 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
39675 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
39676 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
39677 ( cat <<\_ASBOX
39678 ## ------------------------------- ##
39679 ## Report this to www.asterisk.org ##
39680 ## ------------------------------- ##
39681 _ASBOX
39682 ) | sed "s/^/$as_me: WARNING: /" >&2
39684 esac
39685 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39686 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39688 echo $ECHO_N "(cached) $ECHO_C" >&6
39689 else
39690 eval "$as_ac_Header=\$ac_header_preproc"
39692 ac_res=`eval echo '${'$as_ac_Header'}'`
39693 { echo "$as_me:$LINENO: result: $ac_res" >&5
39694 echo "${ECHO_T}$ac_res" >&6; }
39697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39698 HAS_PWLIB=1
39703 if test "${HAS_PWLIB:-unset}" = "unset" ; then
39704 if test "${OPENH323DIR:-unset}" != "unset"; then
39705 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
39706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39707 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39708 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39710 echo $ECHO_N "(cached) $ECHO_C" >&6
39712 ac_res=`eval echo '${'$as_ac_Header'}'`
39713 { echo "$as_me:$LINENO: result: $ac_res" >&5
39714 echo "${ECHO_T}$ac_res" >&6; }
39715 else
39716 # Is the header compilable?
39717 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39718 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39719 cat >conftest.$ac_ext <<_ACEOF
39720 /* confdefs.h. */
39721 _ACEOF
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h. */
39725 $ac_includes_default
39726 #include <${OPENH323DIR}/../pwlib/version.h>
39727 _ACEOF
39728 rm -f conftest.$ac_objext
39729 if { (ac_try="$ac_compile"
39730 case "(($ac_try" in
39731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39732 *) ac_try_echo=$ac_try;;
39733 esac
39734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39735 (eval "$ac_compile") 2>conftest.er1
39736 ac_status=$?
39737 grep -v '^ *+' conftest.er1 >conftest.err
39738 rm -f conftest.er1
39739 cat conftest.err >&5
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); } && {
39742 test -z "$ac_cxx_werror_flag" ||
39743 test ! -s conftest.err
39744 } && test -s conftest.$ac_objext; then
39745 ac_header_compiler=yes
39746 else
39747 echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.$ac_ext >&5
39750 ac_header_compiler=no
39753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39755 echo "${ECHO_T}$ac_header_compiler" >&6; }
39757 # Is the header present?
39758 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39759 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39760 cat >conftest.$ac_ext <<_ACEOF
39761 /* confdefs.h. */
39762 _ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h. */
39766 #include <${OPENH323DIR}/../pwlib/version.h>
39767 _ACEOF
39768 if { (ac_try="$ac_cpp conftest.$ac_ext"
39769 case "(($ac_try" in
39770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39771 *) ac_try_echo=$ac_try;;
39772 esac
39773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39775 ac_status=$?
39776 grep -v '^ *+' conftest.er1 >conftest.err
39777 rm -f conftest.er1
39778 cat conftest.err >&5
39779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780 (exit $ac_status); } >/dev/null && {
39781 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39782 test ! -s conftest.err
39783 }; then
39784 ac_header_preproc=yes
39785 else
39786 echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39789 ac_header_preproc=no
39792 rm -f conftest.err conftest.$ac_ext
39793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39794 echo "${ECHO_T}$ac_header_preproc" >&6; }
39796 # So? What about this header?
39797 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39798 yes:no: )
39799 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39800 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39801 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39802 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39803 ac_header_preproc=yes
39805 no:yes:* )
39806 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39807 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39808 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39809 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39810 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39811 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39812 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39813 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39814 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39815 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39816 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39817 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39818 ( cat <<\_ASBOX
39819 ## ------------------------------- ##
39820 ## Report this to www.asterisk.org ##
39821 ## ------------------------------- ##
39822 _ASBOX
39823 ) | sed "s/^/$as_me: WARNING: /" >&2
39825 esac
39826 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39827 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39829 echo $ECHO_N "(cached) $ECHO_C" >&6
39830 else
39831 eval "$as_ac_Header=\$ac_header_preproc"
39833 ac_res=`eval echo '${'$as_ac_Header'}'`
39834 { echo "$as_me:$LINENO: result: $ac_res" >&5
39835 echo "${ECHO_T}$ac_res" >&6; }
39838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39839 HAS_PWLIB=1
39844 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39845 PWLIBDIR="${OPENH323DIR}/../pwlib"
39846 else
39847 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39849 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39850 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39852 echo $ECHO_N "(cached) $ECHO_C" >&6
39854 ac_res=`eval echo '${'$as_ac_Header'}'`
39855 { echo "$as_me:$LINENO: result: $ac_res" >&5
39856 echo "${ECHO_T}$ac_res" >&6; }
39857 else
39858 # Is the header compilable?
39859 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39860 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39861 cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h. */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h. */
39867 $ac_includes_default
39868 #include <${HOME}/pwlib/include/ptlib.h>
39869 _ACEOF
39870 rm -f conftest.$ac_objext
39871 if { (ac_try="$ac_compile"
39872 case "(($ac_try" in
39873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39874 *) ac_try_echo=$ac_try;;
39875 esac
39876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39877 (eval "$ac_compile") 2>conftest.er1
39878 ac_status=$?
39879 grep -v '^ *+' conftest.er1 >conftest.err
39880 rm -f conftest.er1
39881 cat conftest.err >&5
39882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883 (exit $ac_status); } && {
39884 test -z "$ac_cxx_werror_flag" ||
39885 test ! -s conftest.err
39886 } && test -s conftest.$ac_objext; then
39887 ac_header_compiler=yes
39888 else
39889 echo "$as_me: failed program was:" >&5
39890 sed 's/^/| /' conftest.$ac_ext >&5
39892 ac_header_compiler=no
39895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39897 echo "${ECHO_T}$ac_header_compiler" >&6; }
39899 # Is the header present?
39900 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
39901 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
39902 cat >conftest.$ac_ext <<_ACEOF
39903 /* confdefs.h. */
39904 _ACEOF
39905 cat confdefs.h >>conftest.$ac_ext
39906 cat >>conftest.$ac_ext <<_ACEOF
39907 /* end confdefs.h. */
39908 #include <${HOME}/pwlib/include/ptlib.h>
39909 _ACEOF
39910 if { (ac_try="$ac_cpp conftest.$ac_ext"
39911 case "(($ac_try" in
39912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39913 *) ac_try_echo=$ac_try;;
39914 esac
39915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39917 ac_status=$?
39918 grep -v '^ *+' conftest.er1 >conftest.err
39919 rm -f conftest.er1
39920 cat conftest.err >&5
39921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39922 (exit $ac_status); } >/dev/null && {
39923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39924 test ! -s conftest.err
39925 }; then
39926 ac_header_preproc=yes
39927 else
39928 echo "$as_me: failed program was:" >&5
39929 sed 's/^/| /' conftest.$ac_ext >&5
39931 ac_header_preproc=no
39934 rm -f conftest.err conftest.$ac_ext
39935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39936 echo "${ECHO_T}$ac_header_preproc" >&6; }
39938 # So? What about this header?
39939 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39940 yes:no: )
39941 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39942 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39943 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
39944 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
39945 ac_header_preproc=yes
39947 no:yes:* )
39948 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
39949 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
39950 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
39951 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39952 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
39953 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
39954 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39955 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39956 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
39957 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39958 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
39959 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39960 ( cat <<\_ASBOX
39961 ## ------------------------------- ##
39962 ## Report this to www.asterisk.org ##
39963 ## ------------------------------- ##
39964 _ASBOX
39965 ) | sed "s/^/$as_me: WARNING: /" >&2
39967 esac
39968 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39969 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39971 echo $ECHO_N "(cached) $ECHO_C" >&6
39972 else
39973 eval "$as_ac_Header=\$ac_header_preproc"
39975 ac_res=`eval echo '${'$as_ac_Header'}'`
39976 { echo "$as_me:$LINENO: result: $ac_res" >&5
39977 echo "${ECHO_T}$ac_res" >&6; }
39980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39981 HAS_PWLIB=1
39985 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39986 PWLIBDIR="${HOME}/pwlib"
39987 else
39988 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39989 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39990 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39991 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39992 echo $ECHO_N "(cached) $ECHO_C" >&6
39994 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39995 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39996 else
39997 # Is the header compilable?
39998 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
39999 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
40000 cat >conftest.$ac_ext <<_ACEOF
40001 /* confdefs.h. */
40002 _ACEOF
40003 cat confdefs.h >>conftest.$ac_ext
40004 cat >>conftest.$ac_ext <<_ACEOF
40005 /* end confdefs.h. */
40006 $ac_includes_default
40007 #include </usr/local/include/ptlib.h>
40008 _ACEOF
40009 rm -f conftest.$ac_objext
40010 if { (ac_try="$ac_compile"
40011 case "(($ac_try" in
40012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40013 *) ac_try_echo=$ac_try;;
40014 esac
40015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40016 (eval "$ac_compile") 2>conftest.er1
40017 ac_status=$?
40018 grep -v '^ *+' conftest.er1 >conftest.err
40019 rm -f conftest.er1
40020 cat conftest.err >&5
40021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022 (exit $ac_status); } && {
40023 test -z "$ac_cxx_werror_flag" ||
40024 test ! -s conftest.err
40025 } && test -s conftest.$ac_objext; then
40026 ac_header_compiler=yes
40027 else
40028 echo "$as_me: failed program was:" >&5
40029 sed 's/^/| /' conftest.$ac_ext >&5
40031 ac_header_compiler=no
40034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40036 echo "${ECHO_T}$ac_header_compiler" >&6; }
40038 # Is the header present?
40039 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
40040 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
40041 cat >conftest.$ac_ext <<_ACEOF
40042 /* confdefs.h. */
40043 _ACEOF
40044 cat confdefs.h >>conftest.$ac_ext
40045 cat >>conftest.$ac_ext <<_ACEOF
40046 /* end confdefs.h. */
40047 #include </usr/local/include/ptlib.h>
40048 _ACEOF
40049 if { (ac_try="$ac_cpp conftest.$ac_ext"
40050 case "(($ac_try" in
40051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40052 *) ac_try_echo=$ac_try;;
40053 esac
40054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40056 ac_status=$?
40057 grep -v '^ *+' conftest.er1 >conftest.err
40058 rm -f conftest.er1
40059 cat conftest.err >&5
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); } >/dev/null && {
40062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40063 test ! -s conftest.err
40064 }; then
40065 ac_header_preproc=yes
40066 else
40067 echo "$as_me: failed program was:" >&5
40068 sed 's/^/| /' conftest.$ac_ext >&5
40070 ac_header_preproc=no
40073 rm -f conftest.err conftest.$ac_ext
40074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40075 echo "${ECHO_T}$ac_header_preproc" >&6; }
40077 # So? What about this header?
40078 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40079 yes:no: )
40080 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40081 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40082 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40083 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40084 ac_header_preproc=yes
40086 no:yes:* )
40087 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40088 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40089 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40090 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40091 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40092 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40093 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40094 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40095 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40096 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40097 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40098 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40099 ( cat <<\_ASBOX
40100 ## ------------------------------- ##
40101 ## Report this to www.asterisk.org ##
40102 ## ------------------------------- ##
40103 _ASBOX
40104 ) | sed "s/^/$as_me: WARNING: /" >&2
40106 esac
40107 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40108 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40109 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40110 echo $ECHO_N "(cached) $ECHO_C" >&6
40111 else
40112 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40114 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40115 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40118 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40119 HAS_PWLIB=1
40123 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40124 # Extract the first word of "ptlib-config", so it can be a program name with args.
40125 set dummy ptlib-config; ac_word=$2
40126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40128 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40129 echo $ECHO_N "(cached) $ECHO_C" >&6
40130 else
40131 case $PTLIB_CONFIG in
40132 [\\/]* | ?:[\\/]*)
40133 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40137 for as_dir in /usr/local/bin
40139 IFS=$as_save_IFS
40140 test -z "$as_dir" && as_dir=.
40141 for ac_exec_ext in '' $ac_executable_extensions; do
40142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40143 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40145 break 2
40147 done
40148 done
40149 IFS=$as_save_IFS
40152 esac
40154 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40155 if test -n "$PTLIB_CONFIG"; then
40156 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40157 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40158 else
40159 { echo "$as_me:$LINENO: result: no" >&5
40160 echo "${ECHO_T}no" >&6; }
40164 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40165 # Extract the first word of "ptlib-config", so it can be a program name with args.
40166 set dummy ptlib-config; ac_word=$2
40167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40169 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40170 echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172 case $PTLIB_CONFIG in
40173 [\\/]* | ?:[\\/]*)
40174 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40178 for as_dir in /usr/local/share/pwlib/make
40180 IFS=$as_save_IFS
40181 test -z "$as_dir" && as_dir=.
40182 for ac_exec_ext in '' $ac_executable_extensions; do
40183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40184 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40186 break 2
40188 done
40189 done
40190 IFS=$as_save_IFS
40193 esac
40195 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40196 if test -n "$PTLIB_CONFIG"; then
40197 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40198 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40199 else
40200 { echo "$as_me:$LINENO: result: no" >&5
40201 echo "${ECHO_T}no" >&6; }
40206 PWLIB_INCDIR="/usr/local/include"
40207 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40208 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40209 if test "x$LIB64" != "x"; then
40210 PWLIB_LIBDIR="/usr/local/lib64"
40211 else
40212 PWLIB_LIBDIR="/usr/local/lib"
40215 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40216 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40217 else
40218 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40219 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40220 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40221 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40222 echo $ECHO_N "(cached) $ECHO_C" >&6
40224 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40225 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40226 else
40227 # Is the header compilable?
40228 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40229 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40230 cat >conftest.$ac_ext <<_ACEOF
40231 /* confdefs.h. */
40232 _ACEOF
40233 cat confdefs.h >>conftest.$ac_ext
40234 cat >>conftest.$ac_ext <<_ACEOF
40235 /* end confdefs.h. */
40236 $ac_includes_default
40237 #include </usr/include/ptlib.h>
40238 _ACEOF
40239 rm -f conftest.$ac_objext
40240 if { (ac_try="$ac_compile"
40241 case "(($ac_try" in
40242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40243 *) ac_try_echo=$ac_try;;
40244 esac
40245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40246 (eval "$ac_compile") 2>conftest.er1
40247 ac_status=$?
40248 grep -v '^ *+' conftest.er1 >conftest.err
40249 rm -f conftest.er1
40250 cat conftest.err >&5
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); } && {
40253 test -z "$ac_cxx_werror_flag" ||
40254 test ! -s conftest.err
40255 } && test -s conftest.$ac_objext; then
40256 ac_header_compiler=yes
40257 else
40258 echo "$as_me: failed program was:" >&5
40259 sed 's/^/| /' conftest.$ac_ext >&5
40261 ac_header_compiler=no
40264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40266 echo "${ECHO_T}$ac_header_compiler" >&6; }
40268 # Is the header present?
40269 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40270 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40271 cat >conftest.$ac_ext <<_ACEOF
40272 /* confdefs.h. */
40273 _ACEOF
40274 cat confdefs.h >>conftest.$ac_ext
40275 cat >>conftest.$ac_ext <<_ACEOF
40276 /* end confdefs.h. */
40277 #include </usr/include/ptlib.h>
40278 _ACEOF
40279 if { (ac_try="$ac_cpp conftest.$ac_ext"
40280 case "(($ac_try" in
40281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40282 *) ac_try_echo=$ac_try;;
40283 esac
40284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40286 ac_status=$?
40287 grep -v '^ *+' conftest.er1 >conftest.err
40288 rm -f conftest.er1
40289 cat conftest.err >&5
40290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); } >/dev/null && {
40292 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40293 test ! -s conftest.err
40294 }; then
40295 ac_header_preproc=yes
40296 else
40297 echo "$as_me: failed program was:" >&5
40298 sed 's/^/| /' conftest.$ac_ext >&5
40300 ac_header_preproc=no
40303 rm -f conftest.err conftest.$ac_ext
40304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40305 echo "${ECHO_T}$ac_header_preproc" >&6; }
40307 # So? What about this header?
40308 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40309 yes:no: )
40310 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40311 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40312 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
40313 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
40314 ac_header_preproc=yes
40316 no:yes:* )
40317 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
40318 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
40319 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
40320 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40321 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
40322 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
40323 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40324 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40325 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
40326 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40327 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
40328 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40329 ( cat <<\_ASBOX
40330 ## ------------------------------- ##
40331 ## Report this to www.asterisk.org ##
40332 ## ------------------------------- ##
40333 _ASBOX
40334 ) | sed "s/^/$as_me: WARNING: /" >&2
40336 esac
40337 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40338 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40339 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40340 echo $ECHO_N "(cached) $ECHO_C" >&6
40341 else
40342 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
40344 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40345 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40348 if test $ac_cv_header__usr_include_ptlib_h = yes; then
40349 HAS_PWLIB=1
40353 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40354 # Extract the first word of "ptlib-config", so it can be a program name with args.
40355 set dummy ptlib-config; ac_word=$2
40356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40358 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40359 echo $ECHO_N "(cached) $ECHO_C" >&6
40360 else
40361 case $PTLIB_CONFIG in
40362 [\\/]* | ?:[\\/]*)
40363 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40367 for as_dir in /usr/share/pwlib/make
40369 IFS=$as_save_IFS
40370 test -z "$as_dir" && as_dir=.
40371 for ac_exec_ext in '' $ac_executable_extensions; do
40372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40373 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40375 break 2
40377 done
40378 done
40379 IFS=$as_save_IFS
40382 esac
40384 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40385 if test -n "$PTLIB_CONFIG"; then
40386 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40387 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40388 else
40389 { echo "$as_me:$LINENO: result: no" >&5
40390 echo "${ECHO_T}no" >&6; }
40394 PWLIB_INCDIR="/usr/include"
40395 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40396 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40397 if test "x$LIB64" != "x"; then
40398 PWLIB_LIBDIR="/usr/lib64"
40399 else
40400 PWLIB_LIBDIR="/usr/lib"
40403 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40404 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40411 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
40412 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
40413 # exit
40416 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40417 if test "${PWLIBDIR:-unset}" = "unset" ; then
40418 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
40419 PWLIBDIR=`$PTLIB_CONFIG --prefix`
40420 else
40421 echo "Cannot find ptlib-config - please install and try again"
40422 exit
40426 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
40427 PWLIBDIR="/usr/share/pwlib"
40428 PWLIB_INCDIR="/usr/include"
40429 if test "x$LIB64" != "x"; then
40430 PWLIB_LIBDIR="/usr/lib64"
40431 else
40432 PWLIB_LIBDIR="/usr/lib"
40435 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
40436 PWLIBDIR="/usr/local/share/pwlib"
40437 PWLIB_INCDIR="/usr/local/include"
40438 if test "x$LIB64" != "x"; then
40439 PWLIB_LIBDIR="/usr/local/lib64"
40440 else
40441 PWLIB_LIBDIR="/usr/local/lib"
40445 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
40446 PWLIB_INCDIR="${PWLIBDIR}/include"
40448 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40449 PWLIB_LIBDIR="${PWLIBDIR}/lib"
40456 ac_ext=c
40457 ac_cpp='$CPP $CPPFLAGS'
40458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40464 if test "${HAS_PWLIB:-unset}" != "unset"; then
40465 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40466 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
40467 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
40468 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
40469 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
40470 let PWLIB_REQ=1*10000+9*100+2
40472 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
40473 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40474 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
40475 { echo "$as_me:$LINENO: result: no" >&5
40476 echo "${ECHO_T}no" >&6; }
40477 unset HAS_PWLIB
40478 else
40479 { echo "$as_me:$LINENO: result: yes" >&5
40480 echo "${ECHO_T}yes" >&6; }
40485 if test "${HAS_PWLIB:-unset}" != "unset"; then
40487 PWLIB_OSTYPE=
40488 case "$host_os" in
40489 linux*) PWLIB_OSTYPE=linux ;
40491 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
40493 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
40494 ENDLDLIBS="-lossaudio" ;
40496 netbsd* ) PWLIB_OSTYPE=NetBSD ;
40497 ENDLDLIBS="-lossaudio" ;
40499 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
40501 darwin* ) PWLIB_OSTYPE=Darwin ;
40503 beos*) PWLIB_OSTYPE=beos ;
40504 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
40506 cygwin*) PWLIB_OSTYPE=cygwin ;
40508 mingw*) PWLIB_OSTYPE=mingw ;
40509 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
40510 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
40512 * ) PWLIB_OSTYPE="$host_os" ;
40513 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
40514 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
40516 esac
40518 PWLIB_MACHTYPE=
40519 case "$host_cpu" in
40520 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
40523 x86_64) PWLIB_MACHTYPE=x86_64 ;
40524 P_64BIT=1 ;
40525 LIB64=1 ;
40528 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
40529 P_64BIT=1 ;
40532 sparc ) PWLIB_MACHTYPE=sparc ;
40535 powerpc ) PWLIB_MACHTYPE=ppc ;
40538 ppc ) PWLIB_MACHTYPE=ppc ;
40541 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
40542 P_64BIT=1 ;
40543 LIB64=1 ;
40546 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
40547 P_64BIT=1 ;
40548 LIB64=1 ;
40551 ia64) PWLIB_MACHTYPE=ia64 ;
40552 P_64BIT=1 ;
40555 s390x) PWLIB_MACHTYPE=s390x ;
40556 P_64BIT=1 ;
40557 LIB64=1 ;
40560 s390) PWLIB_MACHTYPE=s390 ;
40563 * ) PWLIB_MACHTYPE="$host_cpu";
40564 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
40565 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
40566 esac
40568 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
40573 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
40576 if test "${HAS_PWLIB:-unset}" != "unset"; then
40577 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
40578 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
40580 saved_cppflags="${CPPFLAGS}"
40581 saved_libs="${LIBS}"
40582 if test "${PWLIB_LIB:-unset}" != "unset"; then
40583 LIBS="${LIBS} ${PWLIB_LIB} "
40584 else
40585 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
40587 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
40589 ac_ext=cpp
40590 ac_cpp='$CXXCPP $CPPFLAGS'
40591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40596 cat >conftest.$ac_ext <<_ACEOF
40597 /* confdefs.h. */
40598 _ACEOF
40599 cat confdefs.h >>conftest.$ac_ext
40600 cat >>conftest.$ac_ext <<_ACEOF
40601 /* end confdefs.h. */
40602 #include "ptlib.h"
40604 main ()
40606 BOOL q = PTime::IsDaylightSavings();
40608 return 0;
40610 _ACEOF
40611 rm -f conftest.$ac_objext conftest$ac_exeext
40612 if { (ac_try="$ac_link"
40613 case "(($ac_try" in
40614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40615 *) ac_try_echo=$ac_try;;
40616 esac
40617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40618 (eval "$ac_link") 2>conftest.er1
40619 ac_status=$?
40620 grep -v '^ *+' conftest.er1 >conftest.err
40621 rm -f conftest.er1
40622 cat conftest.err >&5
40623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624 (exit $ac_status); } && {
40625 test -z "$ac_cxx_werror_flag" ||
40626 test ! -s conftest.err
40627 } && test -s conftest$ac_exeext &&
40628 $as_test_x conftest$ac_exeext; then
40629 { echo "$as_me:$LINENO: result: yes" >&5
40630 echo "${ECHO_T}yes" >&6; }
40631 ac_cv_lib_PWLIB="yes"
40633 else
40634 echo "$as_me: failed program was:" >&5
40635 sed 's/^/| /' conftest.$ac_ext >&5
40637 { echo "$as_me:$LINENO: result: no" >&5
40638 echo "${ECHO_T}no" >&6; }
40639 ac_cv_lib_PWLIB="no"
40644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40645 conftest$ac_exeext conftest.$ac_ext
40647 ac_ext=c
40648 ac_cpp='$CPP $CPPFLAGS'
40649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40654 LIBS="${saved_libs}"
40655 CPPFLAGS="${saved_cppflags}"
40657 if test "${ac_cv_lib_PWLIB}" = "yes"; then
40658 if test "${PWLIB_LIB:-undef}" = "undef"; then
40659 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
40660 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
40661 else
40662 PWLIB_LIB="-l${PLATFORM_PWLIB}"
40665 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
40666 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
40668 PBX_PWLIB=1
40670 cat >>confdefs.h <<\_ACEOF
40671 #define HAVE_PWLIB 1
40672 _ACEOF
40680 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
40681 if test -n "${OPENH323_DIR}"; then
40682 OPENH323DIR="${OPENH323_DIR}"
40685 OPENH323_INCDIR=
40686 OPENH323_LIBDIR=
40687 ac_ext=cpp
40688 ac_cpp='$CXXCPP $CPPFLAGS'
40689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40693 if test "${OPENH323DIR:-unset}" != "unset" ; then
40694 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
40695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40696 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40697 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40699 echo $ECHO_N "(cached) $ECHO_C" >&6
40701 ac_res=`eval echo '${'$as_ac_Header'}'`
40702 { echo "$as_me:$LINENO: result: $ac_res" >&5
40703 echo "${ECHO_T}$ac_res" >&6; }
40704 else
40705 # Is the header compilable?
40706 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
40707 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
40708 cat >conftest.$ac_ext <<_ACEOF
40709 /* confdefs.h. */
40710 _ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h. */
40714 $ac_includes_default
40715 #include <${OPENH323DIR}/version.h>
40716 _ACEOF
40717 rm -f conftest.$ac_objext
40718 if { (ac_try="$ac_compile"
40719 case "(($ac_try" in
40720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40721 *) ac_try_echo=$ac_try;;
40722 esac
40723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40724 (eval "$ac_compile") 2>conftest.er1
40725 ac_status=$?
40726 grep -v '^ *+' conftest.er1 >conftest.err
40727 rm -f conftest.er1
40728 cat conftest.err >&5
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); } && {
40731 test -z "$ac_cxx_werror_flag" ||
40732 test ! -s conftest.err
40733 } && test -s conftest.$ac_objext; then
40734 ac_header_compiler=yes
40735 else
40736 echo "$as_me: failed program was:" >&5
40737 sed 's/^/| /' conftest.$ac_ext >&5
40739 ac_header_compiler=no
40742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40744 echo "${ECHO_T}$ac_header_compiler" >&6; }
40746 # Is the header present?
40747 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40748 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40749 cat >conftest.$ac_ext <<_ACEOF
40750 /* confdefs.h. */
40751 _ACEOF
40752 cat confdefs.h >>conftest.$ac_ext
40753 cat >>conftest.$ac_ext <<_ACEOF
40754 /* end confdefs.h. */
40755 #include <${OPENH323DIR}/version.h>
40756 _ACEOF
40757 if { (ac_try="$ac_cpp conftest.$ac_ext"
40758 case "(($ac_try" in
40759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40760 *) ac_try_echo=$ac_try;;
40761 esac
40762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40764 ac_status=$?
40765 grep -v '^ *+' conftest.er1 >conftest.err
40766 rm -f conftest.er1
40767 cat conftest.err >&5
40768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40769 (exit $ac_status); } >/dev/null && {
40770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40771 test ! -s conftest.err
40772 }; then
40773 ac_header_preproc=yes
40774 else
40775 echo "$as_me: failed program was:" >&5
40776 sed 's/^/| /' conftest.$ac_ext >&5
40778 ac_header_preproc=no
40781 rm -f conftest.err conftest.$ac_ext
40782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40783 echo "${ECHO_T}$ac_header_preproc" >&6; }
40785 # So? What about this header?
40786 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40787 yes:no: )
40788 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40789 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40790 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40791 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40792 ac_header_preproc=yes
40794 no:yes:* )
40795 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40796 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40797 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40798 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40799 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40800 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40801 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40802 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40803 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40804 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40805 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40806 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40807 ( cat <<\_ASBOX
40808 ## ------------------------------- ##
40809 ## Report this to www.asterisk.org ##
40810 ## ------------------------------- ##
40811 _ASBOX
40812 ) | sed "s/^/$as_me: WARNING: /" >&2
40814 esac
40815 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40816 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40818 echo $ECHO_N "(cached) $ECHO_C" >&6
40819 else
40820 eval "$as_ac_Header=\$ac_header_preproc"
40822 ac_res=`eval echo '${'$as_ac_Header'}'`
40823 { echo "$as_me:$LINENO: result: $ac_res" >&5
40824 echo "${ECHO_T}$ac_res" >&6; }
40827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40828 HAS_OPENH323=1
40833 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40834 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40836 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40837 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40839 echo $ECHO_N "(cached) $ECHO_C" >&6
40841 ac_res=`eval echo '${'$as_ac_Header'}'`
40842 { echo "$as_me:$LINENO: result: $ac_res" >&5
40843 echo "${ECHO_T}$ac_res" >&6; }
40844 else
40845 # Is the header compilable?
40846 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40847 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40848 cat >conftest.$ac_ext <<_ACEOF
40849 /* confdefs.h. */
40850 _ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h. */
40854 $ac_includes_default
40855 #include <${PWLIBDIR}/../openh323/version.h>
40856 _ACEOF
40857 rm -f conftest.$ac_objext
40858 if { (ac_try="$ac_compile"
40859 case "(($ac_try" in
40860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40861 *) ac_try_echo=$ac_try;;
40862 esac
40863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40864 (eval "$ac_compile") 2>conftest.er1
40865 ac_status=$?
40866 grep -v '^ *+' conftest.er1 >conftest.err
40867 rm -f conftest.er1
40868 cat conftest.err >&5
40869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870 (exit $ac_status); } && {
40871 test -z "$ac_cxx_werror_flag" ||
40872 test ! -s conftest.err
40873 } && test -s conftest.$ac_objext; then
40874 ac_header_compiler=yes
40875 else
40876 echo "$as_me: failed program was:" >&5
40877 sed 's/^/| /' conftest.$ac_ext >&5
40879 ac_header_compiler=no
40882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40884 echo "${ECHO_T}$ac_header_compiler" >&6; }
40886 # Is the header present?
40887 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
40888 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
40889 cat >conftest.$ac_ext <<_ACEOF
40890 /* confdefs.h. */
40891 _ACEOF
40892 cat confdefs.h >>conftest.$ac_ext
40893 cat >>conftest.$ac_ext <<_ACEOF
40894 /* end confdefs.h. */
40895 #include <${PWLIBDIR}/../openh323/version.h>
40896 _ACEOF
40897 if { (ac_try="$ac_cpp conftest.$ac_ext"
40898 case "(($ac_try" in
40899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900 *) ac_try_echo=$ac_try;;
40901 esac
40902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40904 ac_status=$?
40905 grep -v '^ *+' conftest.er1 >conftest.err
40906 rm -f conftest.er1
40907 cat conftest.err >&5
40908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909 (exit $ac_status); } >/dev/null && {
40910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40911 test ! -s conftest.err
40912 }; then
40913 ac_header_preproc=yes
40914 else
40915 echo "$as_me: failed program was:" >&5
40916 sed 's/^/| /' conftest.$ac_ext >&5
40918 ac_header_preproc=no
40921 rm -f conftest.err conftest.$ac_ext
40922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40923 echo "${ECHO_T}$ac_header_preproc" >&6; }
40925 # So? What about this header?
40926 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40927 yes:no: )
40928 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40929 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40930 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
40931 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
40932 ac_header_preproc=yes
40934 no:yes:* )
40935 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
40936 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
40937 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
40938 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
40939 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
40940 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
40941 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
40942 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40943 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
40944 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
40945 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
40946 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
40947 ( cat <<\_ASBOX
40948 ## ------------------------------- ##
40949 ## Report this to www.asterisk.org ##
40950 ## ------------------------------- ##
40951 _ASBOX
40952 ) | sed "s/^/$as_me: WARNING: /" >&2
40954 esac
40955 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40956 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40958 echo $ECHO_N "(cached) $ECHO_C" >&6
40959 else
40960 eval "$as_ac_Header=\$ac_header_preproc"
40962 ac_res=`eval echo '${'$as_ac_Header'}'`
40963 { echo "$as_me:$LINENO: result: $ac_res" >&5
40964 echo "${ECHO_T}$ac_res" >&6; }
40967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40968 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
40972 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40973 OPENH323DIR="${PWLIBDIR}/../openh323"
40974 saved_cppflags="${CPPFLAGS}"
40975 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
40976 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
40977 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
40978 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
40979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40980 echo $ECHO_N "(cached) $ECHO_C" >&6
40981 else
40982 cat >conftest.$ac_ext <<_ACEOF
40983 /* confdefs.h. */
40984 _ACEOF
40985 cat confdefs.h >>conftest.$ac_ext
40986 cat >>conftest.$ac_ext <<_ACEOF
40987 /* end confdefs.h. */
40988 #include <ptlib.h>
40990 #include <${OPENH323DIR}/include/h323.h>
40991 _ACEOF
40992 rm -f conftest.$ac_objext
40993 if { (ac_try="$ac_compile"
40994 case "(($ac_try" in
40995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40996 *) ac_try_echo=$ac_try;;
40997 esac
40998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40999 (eval "$ac_compile") 2>conftest.er1
41000 ac_status=$?
41001 grep -v '^ *+' conftest.er1 >conftest.err
41002 rm -f conftest.er1
41003 cat conftest.err >&5
41004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005 (exit $ac_status); } && {
41006 test -z "$ac_cxx_werror_flag" ||
41007 test ! -s conftest.err
41008 } && test -s conftest.$ac_objext; then
41009 eval "$as_ac_Header=yes"
41010 else
41011 echo "$as_me: failed program was:" >&5
41012 sed 's/^/| /' conftest.$ac_ext >&5
41014 eval "$as_ac_Header=no"
41017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41019 ac_res=`eval echo '${'$as_ac_Header'}'`
41020 { echo "$as_me:$LINENO: result: $ac_res" >&5
41021 echo "${ECHO_T}$ac_res" >&6; }
41022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41024 else
41025 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
41029 CPPFLAGS="${saved_cppflags}"
41030 else
41031 saved_cppflags="${CPPFLAGS}"
41032 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
41033 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
41034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41035 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41036 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41038 echo $ECHO_N "(cached) $ECHO_C" >&6
41040 ac_res=`eval echo '${'$as_ac_Header'}'`
41041 { echo "$as_me:$LINENO: result: $ac_res" >&5
41042 echo "${ECHO_T}$ac_res" >&6; }
41043 else
41044 # Is the header compilable?
41045 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
41046 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
41047 cat >conftest.$ac_ext <<_ACEOF
41048 /* confdefs.h. */
41049 _ACEOF
41050 cat confdefs.h >>conftest.$ac_ext
41051 cat >>conftest.$ac_ext <<_ACEOF
41052 /* end confdefs.h. */
41053 $ac_includes_default
41054 #include <${HOME}/openh323/include/h323.h>
41055 _ACEOF
41056 rm -f conftest.$ac_objext
41057 if { (ac_try="$ac_compile"
41058 case "(($ac_try" in
41059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060 *) ac_try_echo=$ac_try;;
41061 esac
41062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41063 (eval "$ac_compile") 2>conftest.er1
41064 ac_status=$?
41065 grep -v '^ *+' conftest.er1 >conftest.err
41066 rm -f conftest.er1
41067 cat conftest.err >&5
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); } && {
41070 test -z "$ac_cxx_werror_flag" ||
41071 test ! -s conftest.err
41072 } && test -s conftest.$ac_objext; then
41073 ac_header_compiler=yes
41074 else
41075 echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41078 ac_header_compiler=no
41081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41083 echo "${ECHO_T}$ac_header_compiler" >&6; }
41085 # Is the header present?
41086 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41087 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41088 cat >conftest.$ac_ext <<_ACEOF
41089 /* confdefs.h. */
41090 _ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h. */
41094 #include <${HOME}/openh323/include/h323.h>
41095 _ACEOF
41096 if { (ac_try="$ac_cpp conftest.$ac_ext"
41097 case "(($ac_try" in
41098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41099 *) ac_try_echo=$ac_try;;
41100 esac
41101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41103 ac_status=$?
41104 grep -v '^ *+' conftest.er1 >conftest.err
41105 rm -f conftest.er1
41106 cat conftest.err >&5
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); } >/dev/null && {
41109 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41110 test ! -s conftest.err
41111 }; then
41112 ac_header_preproc=yes
41113 else
41114 echo "$as_me: failed program was:" >&5
41115 sed 's/^/| /' conftest.$ac_ext >&5
41117 ac_header_preproc=no
41120 rm -f conftest.err conftest.$ac_ext
41121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41122 echo "${ECHO_T}$ac_header_preproc" >&6; }
41124 # So? What about this header?
41125 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41126 yes:no: )
41127 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41128 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41129 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41130 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41131 ac_header_preproc=yes
41133 no:yes:* )
41134 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41135 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41136 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41137 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41138 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41139 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41140 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41141 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41142 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41143 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41144 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41145 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41146 ( cat <<\_ASBOX
41147 ## ------------------------------- ##
41148 ## Report this to www.asterisk.org ##
41149 ## ------------------------------- ##
41150 _ASBOX
41151 ) | sed "s/^/$as_me: WARNING: /" >&2
41153 esac
41154 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41155 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41157 echo $ECHO_N "(cached) $ECHO_C" >&6
41158 else
41159 eval "$as_ac_Header=\$ac_header_preproc"
41161 ac_res=`eval echo '${'$as_ac_Header'}'`
41162 { echo "$as_me:$LINENO: result: $ac_res" >&5
41163 echo "${ECHO_T}$ac_res" >&6; }
41166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41167 HAS_OPENH323=1
41171 CPPFLAGS="${saved_cppflags}"
41172 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41173 OPENH323DIR="${HOME}/openh323"
41174 else
41175 saved_cppflags="${CPPFLAGS}"
41176 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41177 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41178 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41179 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41180 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41181 echo $ECHO_N "(cached) $ECHO_C" >&6
41183 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41184 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41185 else
41186 # Is the header compilable?
41187 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41188 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41189 cat >conftest.$ac_ext <<_ACEOF
41190 /* confdefs.h. */
41191 _ACEOF
41192 cat confdefs.h >>conftest.$ac_ext
41193 cat >>conftest.$ac_ext <<_ACEOF
41194 /* end confdefs.h. */
41195 $ac_includes_default
41196 #include </usr/local/include/openh323/h323.h>
41197 _ACEOF
41198 rm -f conftest.$ac_objext
41199 if { (ac_try="$ac_compile"
41200 case "(($ac_try" in
41201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41202 *) ac_try_echo=$ac_try;;
41203 esac
41204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41205 (eval "$ac_compile") 2>conftest.er1
41206 ac_status=$?
41207 grep -v '^ *+' conftest.er1 >conftest.err
41208 rm -f conftest.er1
41209 cat conftest.err >&5
41210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211 (exit $ac_status); } && {
41212 test -z "$ac_cxx_werror_flag" ||
41213 test ! -s conftest.err
41214 } && test -s conftest.$ac_objext; then
41215 ac_header_compiler=yes
41216 else
41217 echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41220 ac_header_compiler=no
41223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41225 echo "${ECHO_T}$ac_header_compiler" >&6; }
41227 # Is the header present?
41228 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41229 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41230 cat >conftest.$ac_ext <<_ACEOF
41231 /* confdefs.h. */
41232 _ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h. */
41236 #include </usr/local/include/openh323/h323.h>
41237 _ACEOF
41238 if { (ac_try="$ac_cpp conftest.$ac_ext"
41239 case "(($ac_try" in
41240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41241 *) ac_try_echo=$ac_try;;
41242 esac
41243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41245 ac_status=$?
41246 grep -v '^ *+' conftest.er1 >conftest.err
41247 rm -f conftest.er1
41248 cat conftest.err >&5
41249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250 (exit $ac_status); } >/dev/null && {
41251 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41252 test ! -s conftest.err
41253 }; then
41254 ac_header_preproc=yes
41255 else
41256 echo "$as_me: failed program was:" >&5
41257 sed 's/^/| /' conftest.$ac_ext >&5
41259 ac_header_preproc=no
41262 rm -f conftest.err conftest.$ac_ext
41263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41264 echo "${ECHO_T}$ac_header_preproc" >&6; }
41266 # So? What about this header?
41267 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41268 yes:no: )
41269 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41270 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41271 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41272 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41273 ac_header_preproc=yes
41275 no:yes:* )
41276 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
41277 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
41278 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
41279 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
41280 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
41281 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
41282 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41283 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41284 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
41285 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
41286 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
41287 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
41288 ( cat <<\_ASBOX
41289 ## ------------------------------- ##
41290 ## Report this to www.asterisk.org ##
41291 ## ------------------------------- ##
41292 _ASBOX
41293 ) | sed "s/^/$as_me: WARNING: /" >&2
41295 esac
41296 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41297 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41298 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41299 echo $ECHO_N "(cached) $ECHO_C" >&6
41300 else
41301 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
41303 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41304 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41307 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
41308 HAS_OPENH323=1
41312 CPPFLAGS="${saved_cppflags}"
41313 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41314 OPENH323DIR="/usr/local/share/openh323"
41315 OPENH323_INCDIR="/usr/local/include/openh323"
41316 if test "x$LIB64" != "x"; then
41317 OPENH323_LIBDIR="/usr/local/lib64"
41318 else
41319 OPENH323_LIBDIR="/usr/local/lib"
41321 else
41322 saved_cppflags="${CPPFLAGS}"
41323 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
41324 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
41325 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
41326 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
41327 echo $ECHO_N "(cached) $ECHO_C" >&6
41328 else
41329 cat >conftest.$ac_ext <<_ACEOF
41330 /* confdefs.h. */
41331 _ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h. */
41335 #include <ptlib.h>
41337 #include </usr/include/openh323/h323.h>
41338 _ACEOF
41339 rm -f conftest.$ac_objext
41340 if { (ac_try="$ac_compile"
41341 case "(($ac_try" in
41342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41343 *) ac_try_echo=$ac_try;;
41344 esac
41345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41346 (eval "$ac_compile") 2>conftest.er1
41347 ac_status=$?
41348 grep -v '^ *+' conftest.er1 >conftest.err
41349 rm -f conftest.er1
41350 cat conftest.err >&5
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); } && {
41353 test -z "$ac_cxx_werror_flag" ||
41354 test ! -s conftest.err
41355 } && test -s conftest.$ac_objext; then
41356 ac_cv_header__usr_include_openh323_h323_h=yes
41357 else
41358 echo "$as_me: failed program was:" >&5
41359 sed 's/^/| /' conftest.$ac_ext >&5
41361 ac_cv_header__usr_include_openh323_h323_h=no
41364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41366 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
41367 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
41368 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
41369 HAS_OPENH323=1
41373 CPPFLAGS="${saved_cppflags}"
41374 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41375 OPENH323DIR="/usr/share/openh323"
41376 OPENH323_INCDIR="/usr/include/openh323"
41377 if test "x$LIB64" != "x"; then
41378 OPENH323_LIBDIR="/usr/lib64"
41379 else
41380 OPENH323_LIBDIR="/usr/lib"
41388 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41389 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
41390 OPENH323_INCDIR="${OPENH323DIR}/include"
41392 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
41393 OPENH323_LIBDIR="${OPENH323DIR}/lib"
41396 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
41397 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
41398 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
41404 ac_ext=c
41405 ac_cpp='$CPP $CPPFLAGS'
41406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41412 if test "${HAS_OPENH323:-unset}" != "unset"; then
41413 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41414 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
41415 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
41416 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
41417 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
41418 let OPENH323_REQ=1*10000+17*100+3
41420 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
41421 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41422 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
41423 { echo "$as_me:$LINENO: result: no" >&5
41424 echo "${ECHO_T}no" >&6; }
41425 unset HAS_OPENH323
41426 else
41427 { echo "$as_me:$LINENO: result: yes" >&5
41428 echo "${ECHO_T}yes" >&6; }
41433 if test "${HAS_OPENH323:-unset}" != "unset"; then
41434 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
41435 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
41436 OPENH323_SUFFIX=
41437 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
41438 for pfx in $prefixes; do
41439 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
41440 libfile=
41441 if test -n "$files"; then
41442 for f in $files; do
41443 if test -f $f -a ! -L $f; then
41444 libfile=`basename $f`
41445 break;
41447 done
41449 if test -n "$libfile"; then
41450 OPENH323_PREFIX=$pfx
41451 break;
41453 done
41454 if test "${libfile:-unset}" != "unset"; then
41455 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
41457 case "${OPENH323_SUFFIX}" in
41459 OPENH323_BUILD="notrace";;
41461 OPENH323_BUILD="opt";;
41463 OPENH323_BUILD="debug";;
41465 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
41466 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
41467 if test "x$notrace" = "x"; then
41468 notrace="0"
41470 if test "$notrace" -ne 0; then
41471 OPENH323_BUILD="notrace"
41472 else
41473 OPENH323_BUILD="opt"
41475 OPENH323_LIB="-l${OPENH323_PREFIX}"
41476 else
41477 OPENH323_BUILD="notrace"
41480 esac
41481 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
41482 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
41488 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
41490 if test "${HAS_OPENH323:-unset}" != "unset"; then
41491 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
41492 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
41494 saved_cppflags="${CPPFLAGS}"
41495 saved_libs="${LIBS}"
41496 if test "${OPENH323_LIB:-unset}" != "unset"; then
41497 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
41498 else
41499 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
41501 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
41503 ac_ext=cpp
41504 ac_cpp='$CXXCPP $CPPFLAGS'
41505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41510 cat >conftest.$ac_ext <<_ACEOF
41511 /* confdefs.h. */
41512 _ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41516 #include "ptlib.h"
41517 #include "h323.h"
41518 #include "h323ep.h"
41520 main ()
41522 H323EndPoint ep = H323EndPoint();
41524 return 0;
41526 _ACEOF
41527 rm -f conftest.$ac_objext conftest$ac_exeext
41528 if { (ac_try="$ac_link"
41529 case "(($ac_try" in
41530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41531 *) ac_try_echo=$ac_try;;
41532 esac
41533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41534 (eval "$ac_link") 2>conftest.er1
41535 ac_status=$?
41536 grep -v '^ *+' conftest.er1 >conftest.err
41537 rm -f conftest.er1
41538 cat conftest.err >&5
41539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540 (exit $ac_status); } && {
41541 test -z "$ac_cxx_werror_flag" ||
41542 test ! -s conftest.err
41543 } && test -s conftest$ac_exeext &&
41544 $as_test_x conftest$ac_exeext; then
41545 { echo "$as_me:$LINENO: result: yes" >&5
41546 echo "${ECHO_T}yes" >&6; }
41547 ac_cv_lib_OPENH323="yes"
41549 else
41550 echo "$as_me: failed program was:" >&5
41551 sed 's/^/| /' conftest.$ac_ext >&5
41553 { echo "$as_me:$LINENO: result: no" >&5
41554 echo "${ECHO_T}no" >&6; }
41555 ac_cv_lib_OPENH323="no"
41560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41561 conftest$ac_exeext conftest.$ac_ext
41563 ac_ext=c
41564 ac_cpp='$CPP $CPPFLAGS'
41565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41570 LIBS="${saved_libs}"
41571 CPPFLAGS="${saved_cppflags}"
41573 if test "${ac_cv_lib_OPENH323}" = "yes"; then
41574 if test "${OPENH323_LIB:-undef}" = "undef"; then
41575 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
41576 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
41577 else
41578 OPENH323_LIB="-l${PLATFORM_OPENH323}"
41581 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
41582 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
41584 PBX_OPENH323=1
41586 cat >>confdefs.h <<\_ACEOF
41587 #define HAVE_OPENH323 1
41588 _ACEOF
41595 LUA_INCLUDE="-I/usr/include/lua5.1"
41596 LUA_LIB="-llua5.1"
41598 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
41599 pbxlibdir=""
41600 # if --with-LUA=DIR has been specified, use it.
41601 if test "x${LUA_DIR}" != "x"; then
41602 if test -d ${LUA_DIR}/lib; then
41603 pbxlibdir="-L${LUA_DIR}/lib"
41604 else
41605 pbxlibdir="-L${LUA_DIR}"
41608 pbxfuncname="luaL_newstate"
41609 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41610 AST_LUA_FOUND=yes
41611 else
41612 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
41613 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
41614 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
41615 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41616 echo $ECHO_N "(cached) $ECHO_C" >&6
41617 else
41618 ac_check_lib_save_LIBS=$LIBS
41619 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
41620 cat >conftest.$ac_ext <<_ACEOF
41621 /* confdefs.h. */
41622 _ACEOF
41623 cat confdefs.h >>conftest.$ac_ext
41624 cat >>conftest.$ac_ext <<_ACEOF
41625 /* end confdefs.h. */
41627 /* Override any GCC internal prototype to avoid an error.
41628 Use char because int might match the return type of a GCC
41629 builtin and then its argument prototype would still apply. */
41630 #ifdef __cplusplus
41631 extern "C"
41632 #endif
41633 char ${pbxfuncname} ();
41635 main ()
41637 return ${pbxfuncname} ();
41639 return 0;
41641 _ACEOF
41642 rm -f conftest.$ac_objext conftest$ac_exeext
41643 if { (ac_try="$ac_link"
41644 case "(($ac_try" in
41645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41646 *) ac_try_echo=$ac_try;;
41647 esac
41648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41649 (eval "$ac_link") 2>conftest.er1
41650 ac_status=$?
41651 grep -v '^ *+' conftest.er1 >conftest.err
41652 rm -f conftest.er1
41653 cat conftest.err >&5
41654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41655 (exit $ac_status); } && {
41656 test -z "$ac_c_werror_flag" ||
41657 test ! -s conftest.err
41658 } && test -s conftest$ac_exeext &&
41659 $as_test_x conftest$ac_exeext; then
41660 eval "$as_ac_Lib=yes"
41661 else
41662 echo "$as_me: failed program was:" >&5
41663 sed 's/^/| /' conftest.$ac_ext >&5
41665 eval "$as_ac_Lib=no"
41668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41669 conftest$ac_exeext conftest.$ac_ext
41670 LIBS=$ac_check_lib_save_LIBS
41672 ac_res=`eval echo '${'$as_ac_Lib'}'`
41673 { echo "$as_me:$LINENO: result: $ac_res" >&5
41674 echo "${ECHO_T}$ac_res" >&6; }
41675 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41676 AST_LUA_FOUND=yes
41677 else
41678 AST_LUA_FOUND=no
41683 # now check for the header.
41684 if test "${AST_LUA_FOUND}" = "yes"; then
41685 LUA_LIB="${pbxlibdir} -llua5.1 "
41686 # if --with-LUA=DIR has been specified, use it.
41687 if test "x${LUA_DIR}" != "x"; then
41688 LUA_INCLUDE="-I${LUA_DIR}/include"
41690 LUA_INCLUDE="${LUA_INCLUDE} "
41691 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
41692 LUA_HEADER_FOUND="1"
41693 else # check for the header
41694 saved_cppflags="${CPPFLAGS}"
41695 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
41696 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41697 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41698 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41699 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41700 echo $ECHO_N "(cached) $ECHO_C" >&6
41702 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41703 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41704 else
41705 # Is the header compilable?
41706 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
41707 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
41708 cat >conftest.$ac_ext <<_ACEOF
41709 /* confdefs.h. */
41710 _ACEOF
41711 cat confdefs.h >>conftest.$ac_ext
41712 cat >>conftest.$ac_ext <<_ACEOF
41713 /* end confdefs.h. */
41714 $ac_includes_default
41715 #include <lua5.1/lua.h>
41716 _ACEOF
41717 rm -f conftest.$ac_objext
41718 if { (ac_try="$ac_compile"
41719 case "(($ac_try" in
41720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41721 *) ac_try_echo=$ac_try;;
41722 esac
41723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41724 (eval "$ac_compile") 2>conftest.er1
41725 ac_status=$?
41726 grep -v '^ *+' conftest.er1 >conftest.err
41727 rm -f conftest.er1
41728 cat conftest.err >&5
41729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730 (exit $ac_status); } && {
41731 test -z "$ac_c_werror_flag" ||
41732 test ! -s conftest.err
41733 } && test -s conftest.$ac_objext; then
41734 ac_header_compiler=yes
41735 else
41736 echo "$as_me: failed program was:" >&5
41737 sed 's/^/| /' conftest.$ac_ext >&5
41739 ac_header_compiler=no
41742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41744 echo "${ECHO_T}$ac_header_compiler" >&6; }
41746 # Is the header present?
41747 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41748 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41749 cat >conftest.$ac_ext <<_ACEOF
41750 /* confdefs.h. */
41751 _ACEOF
41752 cat confdefs.h >>conftest.$ac_ext
41753 cat >>conftest.$ac_ext <<_ACEOF
41754 /* end confdefs.h. */
41755 #include <lua5.1/lua.h>
41756 _ACEOF
41757 if { (ac_try="$ac_cpp conftest.$ac_ext"
41758 case "(($ac_try" in
41759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41760 *) ac_try_echo=$ac_try;;
41761 esac
41762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41764 ac_status=$?
41765 grep -v '^ *+' conftest.er1 >conftest.err
41766 rm -f conftest.er1
41767 cat conftest.err >&5
41768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41769 (exit $ac_status); } >/dev/null && {
41770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41771 test ! -s conftest.err
41772 }; then
41773 ac_header_preproc=yes
41774 else
41775 echo "$as_me: failed program was:" >&5
41776 sed 's/^/| /' conftest.$ac_ext >&5
41778 ac_header_preproc=no
41781 rm -f conftest.err conftest.$ac_ext
41782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41783 echo "${ECHO_T}$ac_header_preproc" >&6; }
41785 # So? What about this header?
41786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41787 yes:no: )
41788 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41789 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41790 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41791 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41792 ac_header_preproc=yes
41794 no:yes:* )
41795 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41796 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41797 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41798 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41799 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41800 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41801 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41802 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41803 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41804 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41805 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41806 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41807 ( cat <<\_ASBOX
41808 ## ------------------------------- ##
41809 ## Report this to www.asterisk.org ##
41810 ## ------------------------------- ##
41811 _ASBOX
41812 ) | sed "s/^/$as_me: WARNING: /" >&2
41814 esac
41815 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41816 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41817 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41818 echo $ECHO_N "(cached) $ECHO_C" >&6
41819 else
41820 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41822 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41823 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41826 if test $ac_cv_header_lua5_1_lua_h = yes; then
41827 LUA_HEADER_FOUND=1
41828 else
41829 LUA_HEADER_FOUND=0
41833 CPPFLAGS="${saved_cppflags}"
41835 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41836 LUA_LIB=""
41837 LUA_INCLUDE=""
41838 else
41839 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41840 LUA_LIB=""
41842 PBX_LUA=1
41843 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41845 cat >>confdefs.h <<_ACEOF
41846 #define HAVE_LUA 1
41847 _ACEOF
41850 cat >>confdefs.h <<_ACEOF
41851 #define HAVE_LUA_VERSION
41852 _ACEOF
41860 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41861 pbxlibdir=""
41862 # if --with-RADIUS=DIR has been specified, use it.
41863 if test "x${RADIUS_DIR}" != "x"; then
41864 if test -d ${RADIUS_DIR}/lib; then
41865 pbxlibdir="-L${RADIUS_DIR}/lib"
41866 else
41867 pbxlibdir="-L${RADIUS_DIR}"
41870 pbxfuncname="rc_read_config"
41871 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41872 AST_RADIUS_FOUND=yes
41873 else
41874 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
41875 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
41876 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
41877 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41878 echo $ECHO_N "(cached) $ECHO_C" >&6
41879 else
41880 ac_check_lib_save_LIBS=$LIBS
41881 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
41882 cat >conftest.$ac_ext <<_ACEOF
41883 /* confdefs.h. */
41884 _ACEOF
41885 cat confdefs.h >>conftest.$ac_ext
41886 cat >>conftest.$ac_ext <<_ACEOF
41887 /* end confdefs.h. */
41889 /* Override any GCC internal prototype to avoid an error.
41890 Use char because int might match the return type of a GCC
41891 builtin and then its argument prototype would still apply. */
41892 #ifdef __cplusplus
41893 extern "C"
41894 #endif
41895 char ${pbxfuncname} ();
41897 main ()
41899 return ${pbxfuncname} ();
41901 return 0;
41903 _ACEOF
41904 rm -f conftest.$ac_objext conftest$ac_exeext
41905 if { (ac_try="$ac_link"
41906 case "(($ac_try" in
41907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41908 *) ac_try_echo=$ac_try;;
41909 esac
41910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41911 (eval "$ac_link") 2>conftest.er1
41912 ac_status=$?
41913 grep -v '^ *+' conftest.er1 >conftest.err
41914 rm -f conftest.er1
41915 cat conftest.err >&5
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); } && {
41918 test -z "$ac_c_werror_flag" ||
41919 test ! -s conftest.err
41920 } && test -s conftest$ac_exeext &&
41921 $as_test_x conftest$ac_exeext; then
41922 eval "$as_ac_Lib=yes"
41923 else
41924 echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41927 eval "$as_ac_Lib=no"
41930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41931 conftest$ac_exeext conftest.$ac_ext
41932 LIBS=$ac_check_lib_save_LIBS
41934 ac_res=`eval echo '${'$as_ac_Lib'}'`
41935 { echo "$as_me:$LINENO: result: $ac_res" >&5
41936 echo "${ECHO_T}$ac_res" >&6; }
41937 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41938 AST_RADIUS_FOUND=yes
41939 else
41940 AST_RADIUS_FOUND=no
41945 # now check for the header.
41946 if test "${AST_RADIUS_FOUND}" = "yes"; then
41947 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
41948 # if --with-RADIUS=DIR has been specified, use it.
41949 if test "x${RADIUS_DIR}" != "x"; then
41950 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
41952 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
41953 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
41954 RADIUS_HEADER_FOUND="1"
41955 else # check for the header
41956 saved_cppflags="${CPPFLAGS}"
41957 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
41958 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41959 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41960 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41961 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41962 echo $ECHO_N "(cached) $ECHO_C" >&6
41964 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41965 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41966 else
41967 # Is the header compilable?
41968 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
41969 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
41970 cat >conftest.$ac_ext <<_ACEOF
41971 /* confdefs.h. */
41972 _ACEOF
41973 cat confdefs.h >>conftest.$ac_ext
41974 cat >>conftest.$ac_ext <<_ACEOF
41975 /* end confdefs.h. */
41976 $ac_includes_default
41977 #include <radiusclient-ng.h>
41978 _ACEOF
41979 rm -f conftest.$ac_objext
41980 if { (ac_try="$ac_compile"
41981 case "(($ac_try" in
41982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41983 *) ac_try_echo=$ac_try;;
41984 esac
41985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41986 (eval "$ac_compile") 2>conftest.er1
41987 ac_status=$?
41988 grep -v '^ *+' conftest.er1 >conftest.err
41989 rm -f conftest.er1
41990 cat conftest.err >&5
41991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41992 (exit $ac_status); } && {
41993 test -z "$ac_c_werror_flag" ||
41994 test ! -s conftest.err
41995 } && test -s conftest.$ac_objext; then
41996 ac_header_compiler=yes
41997 else
41998 echo "$as_me: failed program was:" >&5
41999 sed 's/^/| /' conftest.$ac_ext >&5
42001 ac_header_compiler=no
42004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42006 echo "${ECHO_T}$ac_header_compiler" >&6; }
42008 # Is the header present?
42009 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
42010 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
42011 cat >conftest.$ac_ext <<_ACEOF
42012 /* confdefs.h. */
42013 _ACEOF
42014 cat confdefs.h >>conftest.$ac_ext
42015 cat >>conftest.$ac_ext <<_ACEOF
42016 /* end confdefs.h. */
42017 #include <radiusclient-ng.h>
42018 _ACEOF
42019 if { (ac_try="$ac_cpp conftest.$ac_ext"
42020 case "(($ac_try" in
42021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42022 *) ac_try_echo=$ac_try;;
42023 esac
42024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42026 ac_status=$?
42027 grep -v '^ *+' conftest.er1 >conftest.err
42028 rm -f conftest.er1
42029 cat conftest.err >&5
42030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031 (exit $ac_status); } >/dev/null && {
42032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42033 test ! -s conftest.err
42034 }; then
42035 ac_header_preproc=yes
42036 else
42037 echo "$as_me: failed program was:" >&5
42038 sed 's/^/| /' conftest.$ac_ext >&5
42040 ac_header_preproc=no
42043 rm -f conftest.err conftest.$ac_ext
42044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42045 echo "${ECHO_T}$ac_header_preproc" >&6; }
42047 # So? What about this header?
42048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42049 yes:no: )
42050 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
42051 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42052 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
42053 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
42054 ac_header_preproc=yes
42056 no:yes:* )
42057 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
42058 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
42059 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
42060 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
42061 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
42062 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
42063 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
42064 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
42065 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42066 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42067 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42068 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42069 ( cat <<\_ASBOX
42070 ## ------------------------------- ##
42071 ## Report this to www.asterisk.org ##
42072 ## ------------------------------- ##
42073 _ASBOX
42074 ) | sed "s/^/$as_me: WARNING: /" >&2
42076 esac
42077 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42078 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42079 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42080 echo $ECHO_N "(cached) $ECHO_C" >&6
42081 else
42082 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42084 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42085 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42088 if test $ac_cv_header_radiusclient_ng_h = yes; then
42089 RADIUS_HEADER_FOUND=1
42090 else
42091 RADIUS_HEADER_FOUND=0
42095 CPPFLAGS="${saved_cppflags}"
42097 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42098 RADIUS_LIB=""
42099 RADIUS_INCLUDE=""
42100 else
42101 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42102 RADIUS_LIB=""
42104 PBX_RADIUS=1
42105 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42107 cat >>confdefs.h <<_ACEOF
42108 #define HAVE_RADIUS 1
42109 _ACEOF
42112 cat >>confdefs.h <<_ACEOF
42113 #define HAVE_RADIUS_VERSION
42114 _ACEOF
42122 if test "x${PBX_SACLM}" != "x1" -a "${USE_SACLM}" != "no"; then
42123 pbxlibdir=""
42124 # if --with-SACLM=DIR has been specified, use it.
42125 if test "x${SACLM_DIR}" != "x"; then
42126 if test -d ${SACLM_DIR}/lib; then
42127 pbxlibdir="-L${SACLM_DIR}/lib"
42128 else
42129 pbxlibdir="-L${SACLM_DIR}"
42132 pbxfuncname="saClmInitialize"
42133 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42134 AST_SACLM_FOUND=yes
42135 else
42136 as_ac_Lib=`echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
42137 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
42138 echo $ECHO_N "checking for ${pbxfuncname} in -lSaClm... $ECHO_C" >&6; }
42139 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42140 echo $ECHO_N "(cached) $ECHO_C" >&6
42141 else
42142 ac_check_lib_save_LIBS=$LIBS
42143 LIBS="-lSaClm ${pbxlibdir} $LIBS"
42144 cat >conftest.$ac_ext <<_ACEOF
42145 /* confdefs.h. */
42146 _ACEOF
42147 cat confdefs.h >>conftest.$ac_ext
42148 cat >>conftest.$ac_ext <<_ACEOF
42149 /* end confdefs.h. */
42151 /* Override any GCC internal prototype to avoid an error.
42152 Use char because int might match the return type of a GCC
42153 builtin and then its argument prototype would still apply. */
42154 #ifdef __cplusplus
42155 extern "C"
42156 #endif
42157 char ${pbxfuncname} ();
42159 main ()
42161 return ${pbxfuncname} ();
42163 return 0;
42165 _ACEOF
42166 rm -f conftest.$ac_objext conftest$ac_exeext
42167 if { (ac_try="$ac_link"
42168 case "(($ac_try" in
42169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42170 *) ac_try_echo=$ac_try;;
42171 esac
42172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42173 (eval "$ac_link") 2>conftest.er1
42174 ac_status=$?
42175 grep -v '^ *+' conftest.er1 >conftest.err
42176 rm -f conftest.er1
42177 cat conftest.err >&5
42178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179 (exit $ac_status); } && {
42180 test -z "$ac_c_werror_flag" ||
42181 test ! -s conftest.err
42182 } && test -s conftest$ac_exeext &&
42183 $as_test_x conftest$ac_exeext; then
42184 eval "$as_ac_Lib=yes"
42185 else
42186 echo "$as_me: failed program was:" >&5
42187 sed 's/^/| /' conftest.$ac_ext >&5
42189 eval "$as_ac_Lib=no"
42192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42193 conftest$ac_exeext conftest.$ac_ext
42194 LIBS=$ac_check_lib_save_LIBS
42196 ac_res=`eval echo '${'$as_ac_Lib'}'`
42197 { echo "$as_me:$LINENO: result: $ac_res" >&5
42198 echo "${ECHO_T}$ac_res" >&6; }
42199 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42200 AST_SACLM_FOUND=yes
42201 else
42202 AST_SACLM_FOUND=no
42207 # now check for the header.
42208 if test "${AST_SACLM_FOUND}" = "yes"; then
42209 SACLM_LIB="${pbxlibdir} -lSaClm "
42210 # if --with-SACLM=DIR has been specified, use it.
42211 if test "x${SACLM_DIR}" != "x"; then
42212 SACLM_INCLUDE="-I${SACLM_DIR}/include"
42214 SACLM_INCLUDE="${SACLM_INCLUDE} "
42215 if test "xopenais/saClm.h" = "x" ; then # no header, assume found
42216 SACLM_HEADER_FOUND="1"
42217 else # check for the header
42218 saved_cppflags="${CPPFLAGS}"
42219 CPPFLAGS="${CPPFLAGS} ${SACLM_INCLUDE} "
42220 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42221 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42222 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42223 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42224 echo $ECHO_N "(cached) $ECHO_C" >&6
42226 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42227 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42228 else
42229 # Is the header compilable?
42230 { echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
42231 echo $ECHO_N "checking openais/saClm.h usability... $ECHO_C" >&6; }
42232 cat >conftest.$ac_ext <<_ACEOF
42233 /* confdefs.h. */
42234 _ACEOF
42235 cat confdefs.h >>conftest.$ac_ext
42236 cat >>conftest.$ac_ext <<_ACEOF
42237 /* end confdefs.h. */
42238 $ac_includes_default
42239 #include <openais/saClm.h>
42240 _ACEOF
42241 rm -f conftest.$ac_objext
42242 if { (ac_try="$ac_compile"
42243 case "(($ac_try" in
42244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42245 *) ac_try_echo=$ac_try;;
42246 esac
42247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42248 (eval "$ac_compile") 2>conftest.er1
42249 ac_status=$?
42250 grep -v '^ *+' conftest.er1 >conftest.err
42251 rm -f conftest.er1
42252 cat conftest.err >&5
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); } && {
42255 test -z "$ac_c_werror_flag" ||
42256 test ! -s conftest.err
42257 } && test -s conftest.$ac_objext; then
42258 ac_header_compiler=yes
42259 else
42260 echo "$as_me: failed program was:" >&5
42261 sed 's/^/| /' conftest.$ac_ext >&5
42263 ac_header_compiler=no
42266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42268 echo "${ECHO_T}$ac_header_compiler" >&6; }
42270 # Is the header present?
42271 { echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
42272 echo $ECHO_N "checking openais/saClm.h presence... $ECHO_C" >&6; }
42273 cat >conftest.$ac_ext <<_ACEOF
42274 /* confdefs.h. */
42275 _ACEOF
42276 cat confdefs.h >>conftest.$ac_ext
42277 cat >>conftest.$ac_ext <<_ACEOF
42278 /* end confdefs.h. */
42279 #include <openais/saClm.h>
42280 _ACEOF
42281 if { (ac_try="$ac_cpp conftest.$ac_ext"
42282 case "(($ac_try" in
42283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42284 *) ac_try_echo=$ac_try;;
42285 esac
42286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42288 ac_status=$?
42289 grep -v '^ *+' conftest.er1 >conftest.err
42290 rm -f conftest.er1
42291 cat conftest.err >&5
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); } >/dev/null && {
42294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42295 test ! -s conftest.err
42296 }; then
42297 ac_header_preproc=yes
42298 else
42299 echo "$as_me: failed program was:" >&5
42300 sed 's/^/| /' conftest.$ac_ext >&5
42302 ac_header_preproc=no
42305 rm -f conftest.err conftest.$ac_ext
42306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42307 echo "${ECHO_T}$ac_header_preproc" >&6; }
42309 # So? What about this header?
42310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42311 yes:no: )
42312 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
42313 echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42314 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
42315 echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
42316 ac_header_preproc=yes
42318 no:yes:* )
42319 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
42320 echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
42321 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
42322 echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
42323 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
42324 echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
42325 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
42326 echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
42327 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
42328 echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
42329 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
42330 echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
42331 ( cat <<\_ASBOX
42332 ## ------------------------------- ##
42333 ## Report this to www.asterisk.org ##
42334 ## ------------------------------- ##
42335 _ASBOX
42336 ) | sed "s/^/$as_me: WARNING: /" >&2
42338 esac
42339 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42340 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42341 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42342 echo $ECHO_N "(cached) $ECHO_C" >&6
42343 else
42344 ac_cv_header_openais_saClm_h=$ac_header_preproc
42346 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42347 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42350 if test $ac_cv_header_openais_saClm_h = yes; then
42351 SACLM_HEADER_FOUND=1
42352 else
42353 SACLM_HEADER_FOUND=0
42357 CPPFLAGS="${saved_cppflags}"
42359 if test "x${SACLM_HEADER_FOUND}" = "x0" ; then
42360 SACLM_LIB=""
42361 SACLM_INCLUDE=""
42362 else
42363 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42364 SACLM_LIB=""
42366 PBX_SACLM=1
42367 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42369 cat >>confdefs.h <<_ACEOF
42370 #define HAVE_SACLM 1
42371 _ACEOF
42374 cat >>confdefs.h <<_ACEOF
42375 #define HAVE_SACLM_VERSION
42376 _ACEOF
42383 if test "x${PBX_SAEVT}" != "x1" -a "${USE_SAEVT}" != "no"; then
42384 pbxlibdir=""
42385 # if --with-SAEVT=DIR has been specified, use it.
42386 if test "x${SAEVT_DIR}" != "x"; then
42387 if test -d ${SAEVT_DIR}/lib; then
42388 pbxlibdir="-L${SAEVT_DIR}/lib"
42389 else
42390 pbxlibdir="-L${SAEVT_DIR}"
42393 pbxfuncname="saEvtInitialize"
42394 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42395 AST_SAEVT_FOUND=yes
42396 else
42397 as_ac_Lib=`echo "ac_cv_lib_SaEvt_${pbxfuncname}" | $as_tr_sh`
42398 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaEvt" >&5
42399 echo $ECHO_N "checking for ${pbxfuncname} in -lSaEvt... $ECHO_C" >&6; }
42400 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42401 echo $ECHO_N "(cached) $ECHO_C" >&6
42402 else
42403 ac_check_lib_save_LIBS=$LIBS
42404 LIBS="-lSaEvt ${pbxlibdir} $LIBS"
42405 cat >conftest.$ac_ext <<_ACEOF
42406 /* confdefs.h. */
42407 _ACEOF
42408 cat confdefs.h >>conftest.$ac_ext
42409 cat >>conftest.$ac_ext <<_ACEOF
42410 /* end confdefs.h. */
42412 /* Override any GCC internal prototype to avoid an error.
42413 Use char because int might match the return type of a GCC
42414 builtin and then its argument prototype would still apply. */
42415 #ifdef __cplusplus
42416 extern "C"
42417 #endif
42418 char ${pbxfuncname} ();
42420 main ()
42422 return ${pbxfuncname} ();
42424 return 0;
42426 _ACEOF
42427 rm -f conftest.$ac_objext conftest$ac_exeext
42428 if { (ac_try="$ac_link"
42429 case "(($ac_try" in
42430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42431 *) ac_try_echo=$ac_try;;
42432 esac
42433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42434 (eval "$ac_link") 2>conftest.er1
42435 ac_status=$?
42436 grep -v '^ *+' conftest.er1 >conftest.err
42437 rm -f conftest.er1
42438 cat conftest.err >&5
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } && {
42441 test -z "$ac_c_werror_flag" ||
42442 test ! -s conftest.err
42443 } && test -s conftest$ac_exeext &&
42444 $as_test_x conftest$ac_exeext; then
42445 eval "$as_ac_Lib=yes"
42446 else
42447 echo "$as_me: failed program was:" >&5
42448 sed 's/^/| /' conftest.$ac_ext >&5
42450 eval "$as_ac_Lib=no"
42453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42454 conftest$ac_exeext conftest.$ac_ext
42455 LIBS=$ac_check_lib_save_LIBS
42457 ac_res=`eval echo '${'$as_ac_Lib'}'`
42458 { echo "$as_me:$LINENO: result: $ac_res" >&5
42459 echo "${ECHO_T}$ac_res" >&6; }
42460 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42461 AST_SAEVT_FOUND=yes
42462 else
42463 AST_SAEVT_FOUND=no
42468 # now check for the header.
42469 if test "${AST_SAEVT_FOUND}" = "yes"; then
42470 SAEVT_LIB="${pbxlibdir} -lSaEvt "
42471 # if --with-SAEVT=DIR has been specified, use it.
42472 if test "x${SAEVT_DIR}" != "x"; then
42473 SAEVT_INCLUDE="-I${SAEVT_DIR}/include"
42475 SAEVT_INCLUDE="${SAEVT_INCLUDE} "
42476 if test "xopenais/saEvt.h" = "x" ; then # no header, assume found
42477 SAEVT_HEADER_FOUND="1"
42478 else # check for the header
42479 saved_cppflags="${CPPFLAGS}"
42480 CPPFLAGS="${CPPFLAGS} ${SAEVT_INCLUDE} "
42481 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42482 { echo "$as_me:$LINENO: checking for openais/saEvt.h" >&5
42483 echo $ECHO_N "checking for openais/saEvt.h... $ECHO_C" >&6; }
42484 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42485 echo $ECHO_N "(cached) $ECHO_C" >&6
42487 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saEvt_h" >&5
42488 echo "${ECHO_T}$ac_cv_header_openais_saEvt_h" >&6; }
42489 else
42490 # Is the header compilable?
42491 { echo "$as_me:$LINENO: checking openais/saEvt.h usability" >&5
42492 echo $ECHO_N "checking openais/saEvt.h usability... $ECHO_C" >&6; }
42493 cat >conftest.$ac_ext <<_ACEOF
42494 /* confdefs.h. */
42495 _ACEOF
42496 cat confdefs.h >>conftest.$ac_ext
42497 cat >>conftest.$ac_ext <<_ACEOF
42498 /* end confdefs.h. */
42499 $ac_includes_default
42500 #include <openais/saEvt.h>
42501 _ACEOF
42502 rm -f conftest.$ac_objext
42503 if { (ac_try="$ac_compile"
42504 case "(($ac_try" in
42505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42506 *) ac_try_echo=$ac_try;;
42507 esac
42508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42509 (eval "$ac_compile") 2>conftest.er1
42510 ac_status=$?
42511 grep -v '^ *+' conftest.er1 >conftest.err
42512 rm -f conftest.er1
42513 cat conftest.err >&5
42514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515 (exit $ac_status); } && {
42516 test -z "$ac_c_werror_flag" ||
42517 test ! -s conftest.err
42518 } && test -s conftest.$ac_objext; then
42519 ac_header_compiler=yes
42520 else
42521 echo "$as_me: failed program was:" >&5
42522 sed 's/^/| /' conftest.$ac_ext >&5
42524 ac_header_compiler=no
42527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42529 echo "${ECHO_T}$ac_header_compiler" >&6; }
42531 # Is the header present?
42532 { echo "$as_me:$LINENO: checking openais/saEvt.h presence" >&5
42533 echo $ECHO_N "checking openais/saEvt.h presence... $ECHO_C" >&6; }
42534 cat >conftest.$ac_ext <<_ACEOF
42535 /* confdefs.h. */
42536 _ACEOF
42537 cat confdefs.h >>conftest.$ac_ext
42538 cat >>conftest.$ac_ext <<_ACEOF
42539 /* end confdefs.h. */
42540 #include <openais/saEvt.h>
42541 _ACEOF
42542 if { (ac_try="$ac_cpp conftest.$ac_ext"
42543 case "(($ac_try" in
42544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42545 *) ac_try_echo=$ac_try;;
42546 esac
42547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42549 ac_status=$?
42550 grep -v '^ *+' conftest.er1 >conftest.err
42551 rm -f conftest.er1
42552 cat conftest.err >&5
42553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42554 (exit $ac_status); } >/dev/null && {
42555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42556 test ! -s conftest.err
42557 }; then
42558 ac_header_preproc=yes
42559 else
42560 echo "$as_me: failed program was:" >&5
42561 sed 's/^/| /' conftest.$ac_ext >&5
42563 ac_header_preproc=no
42566 rm -f conftest.err conftest.$ac_ext
42567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42568 echo "${ECHO_T}$ac_header_preproc" >&6; }
42570 # So? What about this header?
42571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42572 yes:no: )
42573 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: accepted by the compiler, rejected by the preprocessor!" >&5
42574 echo "$as_me: WARNING: openais/saEvt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42575 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: proceeding with the compiler's result" >&5
42576 echo "$as_me: WARNING: openais/saEvt.h: proceeding with the compiler's result" >&2;}
42577 ac_header_preproc=yes
42579 no:yes:* )
42580 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: present but cannot be compiled" >&5
42581 echo "$as_me: WARNING: openais/saEvt.h: present but cannot be compiled" >&2;}
42582 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: check for missing prerequisite headers?" >&5
42583 echo "$as_me: WARNING: openais/saEvt.h: check for missing prerequisite headers?" >&2;}
42584 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: see the Autoconf documentation" >&5
42585 echo "$as_me: WARNING: openais/saEvt.h: see the Autoconf documentation" >&2;}
42586 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: section \"Present But Cannot Be Compiled\"" >&5
42587 echo "$as_me: WARNING: openais/saEvt.h: section \"Present But Cannot Be Compiled\"" >&2;}
42588 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: proceeding with the preprocessor's result" >&5
42589 echo "$as_me: WARNING: openais/saEvt.h: proceeding with the preprocessor's result" >&2;}
42590 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: in the future, the compiler will take precedence" >&5
42591 echo "$as_me: WARNING: openais/saEvt.h: in the future, the compiler will take precedence" >&2;}
42592 ( cat <<\_ASBOX
42593 ## ------------------------------- ##
42594 ## Report this to www.asterisk.org ##
42595 ## ------------------------------- ##
42596 _ASBOX
42597 ) | sed "s/^/$as_me: WARNING: /" >&2
42599 esac
42600 { echo "$as_me:$LINENO: checking for openais/saEvt.h" >&5
42601 echo $ECHO_N "checking for openais/saEvt.h... $ECHO_C" >&6; }
42602 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42603 echo $ECHO_N "(cached) $ECHO_C" >&6
42604 else
42605 ac_cv_header_openais_saEvt_h=$ac_header_preproc
42607 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saEvt_h" >&5
42608 echo "${ECHO_T}$ac_cv_header_openais_saEvt_h" >&6; }
42611 if test $ac_cv_header_openais_saEvt_h = yes; then
42612 SAEVT_HEADER_FOUND=1
42613 else
42614 SAEVT_HEADER_FOUND=0
42618 CPPFLAGS="${saved_cppflags}"
42620 if test "x${SAEVT_HEADER_FOUND}" = "x0" ; then
42621 SAEVT_LIB=""
42622 SAEVT_INCLUDE=""
42623 else
42624 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42625 SAEVT_LIB=""
42627 PBX_SAEVT=1
42628 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42630 cat >>confdefs.h <<_ACEOF
42631 #define HAVE_SAEVT 1
42632 _ACEOF
42635 cat >>confdefs.h <<_ACEOF
42636 #define HAVE_SAEVT_VERSION
42637 _ACEOF
42645 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
42646 pbxlibdir=""
42647 # if --with-SPEEX=DIR has been specified, use it.
42648 if test "x${SPEEX_DIR}" != "x"; then
42649 if test -d ${SPEEX_DIR}/lib; then
42650 pbxlibdir="-L${SPEEX_DIR}/lib"
42651 else
42652 pbxlibdir="-L${SPEEX_DIR}"
42655 pbxfuncname="speex_encode"
42656 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42657 AST_SPEEX_FOUND=yes
42658 else
42659 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42660 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42661 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42662 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42663 echo $ECHO_N "(cached) $ECHO_C" >&6
42664 else
42665 ac_check_lib_save_LIBS=$LIBS
42666 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42667 cat >conftest.$ac_ext <<_ACEOF
42668 /* confdefs.h. */
42669 _ACEOF
42670 cat confdefs.h >>conftest.$ac_ext
42671 cat >>conftest.$ac_ext <<_ACEOF
42672 /* end confdefs.h. */
42674 /* Override any GCC internal prototype to avoid an error.
42675 Use char because int might match the return type of a GCC
42676 builtin and then its argument prototype would still apply. */
42677 #ifdef __cplusplus
42678 extern "C"
42679 #endif
42680 char ${pbxfuncname} ();
42682 main ()
42684 return ${pbxfuncname} ();
42686 return 0;
42688 _ACEOF
42689 rm -f conftest.$ac_objext conftest$ac_exeext
42690 if { (ac_try="$ac_link"
42691 case "(($ac_try" in
42692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42693 *) ac_try_echo=$ac_try;;
42694 esac
42695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42696 (eval "$ac_link") 2>conftest.er1
42697 ac_status=$?
42698 grep -v '^ *+' conftest.er1 >conftest.err
42699 rm -f conftest.er1
42700 cat conftest.err >&5
42701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42702 (exit $ac_status); } && {
42703 test -z "$ac_c_werror_flag" ||
42704 test ! -s conftest.err
42705 } && test -s conftest$ac_exeext &&
42706 $as_test_x conftest$ac_exeext; then
42707 eval "$as_ac_Lib=yes"
42708 else
42709 echo "$as_me: failed program was:" >&5
42710 sed 's/^/| /' conftest.$ac_ext >&5
42712 eval "$as_ac_Lib=no"
42715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42716 conftest$ac_exeext conftest.$ac_ext
42717 LIBS=$ac_check_lib_save_LIBS
42719 ac_res=`eval echo '${'$as_ac_Lib'}'`
42720 { echo "$as_me:$LINENO: result: $ac_res" >&5
42721 echo "${ECHO_T}$ac_res" >&6; }
42722 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42723 AST_SPEEX_FOUND=yes
42724 else
42725 AST_SPEEX_FOUND=no
42730 # now check for the header.
42731 if test "${AST_SPEEX_FOUND}" = "yes"; then
42732 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
42733 # if --with-SPEEX=DIR has been specified, use it.
42734 if test "x${SPEEX_DIR}" != "x"; then
42735 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
42737 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
42738 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42739 SPEEX_HEADER_FOUND="1"
42740 else # check for the header
42741 saved_cppflags="${CPPFLAGS}"
42742 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
42743 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42744 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42745 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42746 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42747 echo $ECHO_N "(cached) $ECHO_C" >&6
42749 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42750 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42751 else
42752 # Is the header compilable?
42753 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42754 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42755 cat >conftest.$ac_ext <<_ACEOF
42756 /* confdefs.h. */
42757 _ACEOF
42758 cat confdefs.h >>conftest.$ac_ext
42759 cat >>conftest.$ac_ext <<_ACEOF
42760 /* end confdefs.h. */
42761 $ac_includes_default
42762 #include <speex/speex.h>
42763 _ACEOF
42764 rm -f conftest.$ac_objext
42765 if { (ac_try="$ac_compile"
42766 case "(($ac_try" in
42767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42768 *) ac_try_echo=$ac_try;;
42769 esac
42770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42771 (eval "$ac_compile") 2>conftest.er1
42772 ac_status=$?
42773 grep -v '^ *+' conftest.er1 >conftest.err
42774 rm -f conftest.er1
42775 cat conftest.err >&5
42776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777 (exit $ac_status); } && {
42778 test -z "$ac_c_werror_flag" ||
42779 test ! -s conftest.err
42780 } && test -s conftest.$ac_objext; then
42781 ac_header_compiler=yes
42782 else
42783 echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42786 ac_header_compiler=no
42789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42791 echo "${ECHO_T}$ac_header_compiler" >&6; }
42793 # Is the header present?
42794 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42795 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42796 cat >conftest.$ac_ext <<_ACEOF
42797 /* confdefs.h. */
42798 _ACEOF
42799 cat confdefs.h >>conftest.$ac_ext
42800 cat >>conftest.$ac_ext <<_ACEOF
42801 /* end confdefs.h. */
42802 #include <speex/speex.h>
42803 _ACEOF
42804 if { (ac_try="$ac_cpp conftest.$ac_ext"
42805 case "(($ac_try" in
42806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42807 *) ac_try_echo=$ac_try;;
42808 esac
42809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42811 ac_status=$?
42812 grep -v '^ *+' conftest.er1 >conftest.err
42813 rm -f conftest.er1
42814 cat conftest.err >&5
42815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816 (exit $ac_status); } >/dev/null && {
42817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42818 test ! -s conftest.err
42819 }; then
42820 ac_header_preproc=yes
42821 else
42822 echo "$as_me: failed program was:" >&5
42823 sed 's/^/| /' conftest.$ac_ext >&5
42825 ac_header_preproc=no
42828 rm -f conftest.err conftest.$ac_ext
42829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42830 echo "${ECHO_T}$ac_header_preproc" >&6; }
42832 # So? What about this header?
42833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42834 yes:no: )
42835 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42836 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42837 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42838 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42839 ac_header_preproc=yes
42841 no:yes:* )
42842 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42843 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42844 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42845 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42846 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42847 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42848 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42849 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42850 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42851 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42852 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42853 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42854 ( cat <<\_ASBOX
42855 ## ------------------------------- ##
42856 ## Report this to www.asterisk.org ##
42857 ## ------------------------------- ##
42858 _ASBOX
42859 ) | sed "s/^/$as_me: WARNING: /" >&2
42861 esac
42862 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42863 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42864 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42865 echo $ECHO_N "(cached) $ECHO_C" >&6
42866 else
42867 ac_cv_header_speex_speex_h=$ac_header_preproc
42869 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42870 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42873 if test $ac_cv_header_speex_speex_h = yes; then
42874 SPEEX_HEADER_FOUND=1
42875 else
42876 SPEEX_HEADER_FOUND=0
42880 CPPFLAGS="${saved_cppflags}"
42882 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
42883 SPEEX_LIB=""
42884 SPEEX_INCLUDE=""
42885 else
42886 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42887 SPEEX_LIB=""
42889 PBX_SPEEX=1
42890 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42892 cat >>confdefs.h <<_ACEOF
42893 #define HAVE_SPEEX 1
42894 _ACEOF
42897 cat >>confdefs.h <<_ACEOF
42898 #define HAVE_SPEEX_VERSION
42899 _ACEOF
42906 # See if the main speex library contains the preprocess functions
42908 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
42909 pbxlibdir=""
42910 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42911 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42912 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
42913 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
42914 else
42915 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
42918 pbxfuncname="speex_preprocess_ctl"
42919 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42920 AST_SPEEX_PREPROCESS_FOUND=yes
42921 else
42922 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42923 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42924 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42925 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42926 echo $ECHO_N "(cached) $ECHO_C" >&6
42927 else
42928 ac_check_lib_save_LIBS=$LIBS
42929 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42930 cat >conftest.$ac_ext <<_ACEOF
42931 /* confdefs.h. */
42932 _ACEOF
42933 cat confdefs.h >>conftest.$ac_ext
42934 cat >>conftest.$ac_ext <<_ACEOF
42935 /* end confdefs.h. */
42937 /* Override any GCC internal prototype to avoid an error.
42938 Use char because int might match the return type of a GCC
42939 builtin and then its argument prototype would still apply. */
42940 #ifdef __cplusplus
42941 extern "C"
42942 #endif
42943 char ${pbxfuncname} ();
42945 main ()
42947 return ${pbxfuncname} ();
42949 return 0;
42951 _ACEOF
42952 rm -f conftest.$ac_objext conftest$ac_exeext
42953 if { (ac_try="$ac_link"
42954 case "(($ac_try" in
42955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42956 *) ac_try_echo=$ac_try;;
42957 esac
42958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42959 (eval "$ac_link") 2>conftest.er1
42960 ac_status=$?
42961 grep -v '^ *+' conftest.er1 >conftest.err
42962 rm -f conftest.er1
42963 cat conftest.err >&5
42964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42965 (exit $ac_status); } && {
42966 test -z "$ac_c_werror_flag" ||
42967 test ! -s conftest.err
42968 } && test -s conftest$ac_exeext &&
42969 $as_test_x conftest$ac_exeext; then
42970 eval "$as_ac_Lib=yes"
42971 else
42972 echo "$as_me: failed program was:" >&5
42973 sed 's/^/| /' conftest.$ac_ext >&5
42975 eval "$as_ac_Lib=no"
42978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42979 conftest$ac_exeext conftest.$ac_ext
42980 LIBS=$ac_check_lib_save_LIBS
42982 ac_res=`eval echo '${'$as_ac_Lib'}'`
42983 { echo "$as_me:$LINENO: result: $ac_res" >&5
42984 echo "${ECHO_T}$ac_res" >&6; }
42985 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42986 AST_SPEEX_PREPROCESS_FOUND=yes
42987 else
42988 AST_SPEEX_PREPROCESS_FOUND=no
42993 # now check for the header.
42994 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
42995 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
42996 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42997 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42998 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
43000 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
43001 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43002 SPEEX_PREPROCESS_HEADER_FOUND="1"
43003 else # check for the header
43004 saved_cppflags="${CPPFLAGS}"
43005 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE} "
43006 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43007 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43008 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43009 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43012 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43013 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43014 else
43015 # Is the header compilable?
43016 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43017 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43018 cat >conftest.$ac_ext <<_ACEOF
43019 /* confdefs.h. */
43020 _ACEOF
43021 cat confdefs.h >>conftest.$ac_ext
43022 cat >>conftest.$ac_ext <<_ACEOF
43023 /* end confdefs.h. */
43024 $ac_includes_default
43025 #include <speex/speex.h>
43026 _ACEOF
43027 rm -f conftest.$ac_objext
43028 if { (ac_try="$ac_compile"
43029 case "(($ac_try" in
43030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43031 *) ac_try_echo=$ac_try;;
43032 esac
43033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43034 (eval "$ac_compile") 2>conftest.er1
43035 ac_status=$?
43036 grep -v '^ *+' conftest.er1 >conftest.err
43037 rm -f conftest.er1
43038 cat conftest.err >&5
43039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040 (exit $ac_status); } && {
43041 test -z "$ac_c_werror_flag" ||
43042 test ! -s conftest.err
43043 } && test -s conftest.$ac_objext; then
43044 ac_header_compiler=yes
43045 else
43046 echo "$as_me: failed program was:" >&5
43047 sed 's/^/| /' conftest.$ac_ext >&5
43049 ac_header_compiler=no
43052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43054 echo "${ECHO_T}$ac_header_compiler" >&6; }
43056 # Is the header present?
43057 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43058 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43059 cat >conftest.$ac_ext <<_ACEOF
43060 /* confdefs.h. */
43061 _ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h. */
43065 #include <speex/speex.h>
43066 _ACEOF
43067 if { (ac_try="$ac_cpp conftest.$ac_ext"
43068 case "(($ac_try" in
43069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43070 *) ac_try_echo=$ac_try;;
43071 esac
43072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43074 ac_status=$?
43075 grep -v '^ *+' conftest.er1 >conftest.err
43076 rm -f conftest.er1
43077 cat conftest.err >&5
43078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079 (exit $ac_status); } >/dev/null && {
43080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43081 test ! -s conftest.err
43082 }; then
43083 ac_header_preproc=yes
43084 else
43085 echo "$as_me: failed program was:" >&5
43086 sed 's/^/| /' conftest.$ac_ext >&5
43088 ac_header_preproc=no
43091 rm -f conftest.err conftest.$ac_ext
43092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43093 echo "${ECHO_T}$ac_header_preproc" >&6; }
43095 # So? What about this header?
43096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43097 yes:no: )
43098 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43099 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43100 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43101 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43102 ac_header_preproc=yes
43104 no:yes:* )
43105 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43106 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43107 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43108 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43109 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43110 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43111 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43112 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43113 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43114 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43115 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43116 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43117 ( cat <<\_ASBOX
43118 ## ------------------------------- ##
43119 ## Report this to www.asterisk.org ##
43120 ## ------------------------------- ##
43121 _ASBOX
43122 ) | sed "s/^/$as_me: WARNING: /" >&2
43124 esac
43125 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43126 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43127 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43128 echo $ECHO_N "(cached) $ECHO_C" >&6
43129 else
43130 ac_cv_header_speex_speex_h=$ac_header_preproc
43132 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43133 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43136 if test $ac_cv_header_speex_speex_h = yes; then
43137 SPEEX_PREPROCESS_HEADER_FOUND=1
43138 else
43139 SPEEX_PREPROCESS_HEADER_FOUND=0
43143 CPPFLAGS="${saved_cppflags}"
43145 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
43146 SPEEX_PREPROCESS_LIB=""
43147 SPEEX_PREPROCESS_INCLUDE=""
43148 else
43149 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43150 SPEEX_PREPROCESS_LIB=""
43152 PBX_SPEEX_PREPROCESS=1
43153 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43155 cat >>confdefs.h <<_ACEOF
43156 #define HAVE_SPEEX_PREPROCESS 1
43157 _ACEOF
43160 cat >>confdefs.h <<_ACEOF
43161 #define HAVE_SPEEX_PREPROCESS_VERSION
43162 _ACEOF
43168 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
43169 PBX_SPEEX_PREPROCESS=1
43173 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
43174 pbxlibdir=""
43175 # if --with-SPEEXDSP=DIR has been specified, use it.
43176 if test "x${SPEEXDSP_DIR}" != "x"; then
43177 if test -d ${SPEEXDSP_DIR}/lib; then
43178 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
43179 else
43180 pbxlibdir="-L${SPEEXDSP_DIR}"
43183 pbxfuncname="speex_preprocess_ctl"
43184 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43185 AST_SPEEXDSP_FOUND=yes
43186 else
43187 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
43188 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
43189 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
43190 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43191 echo $ECHO_N "(cached) $ECHO_C" >&6
43192 else
43193 ac_check_lib_save_LIBS=$LIBS
43194 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
43195 cat >conftest.$ac_ext <<_ACEOF
43196 /* confdefs.h. */
43197 _ACEOF
43198 cat confdefs.h >>conftest.$ac_ext
43199 cat >>conftest.$ac_ext <<_ACEOF
43200 /* end confdefs.h. */
43202 /* Override any GCC internal prototype to avoid an error.
43203 Use char because int might match the return type of a GCC
43204 builtin and then its argument prototype would still apply. */
43205 #ifdef __cplusplus
43206 extern "C"
43207 #endif
43208 char ${pbxfuncname} ();
43210 main ()
43212 return ${pbxfuncname} ();
43214 return 0;
43216 _ACEOF
43217 rm -f conftest.$ac_objext conftest$ac_exeext
43218 if { (ac_try="$ac_link"
43219 case "(($ac_try" in
43220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43221 *) ac_try_echo=$ac_try;;
43222 esac
43223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43224 (eval "$ac_link") 2>conftest.er1
43225 ac_status=$?
43226 grep -v '^ *+' conftest.er1 >conftest.err
43227 rm -f conftest.er1
43228 cat conftest.err >&5
43229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); } && {
43231 test -z "$ac_c_werror_flag" ||
43232 test ! -s conftest.err
43233 } && test -s conftest$ac_exeext &&
43234 $as_test_x conftest$ac_exeext; then
43235 eval "$as_ac_Lib=yes"
43236 else
43237 echo "$as_me: failed program was:" >&5
43238 sed 's/^/| /' conftest.$ac_ext >&5
43240 eval "$as_ac_Lib=no"
43243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43244 conftest$ac_exeext conftest.$ac_ext
43245 LIBS=$ac_check_lib_save_LIBS
43247 ac_res=`eval echo '${'$as_ac_Lib'}'`
43248 { echo "$as_me:$LINENO: result: $ac_res" >&5
43249 echo "${ECHO_T}$ac_res" >&6; }
43250 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43251 AST_SPEEXDSP_FOUND=yes
43252 else
43253 AST_SPEEXDSP_FOUND=no
43258 # now check for the header.
43259 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
43260 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
43261 # if --with-SPEEXDSP=DIR has been specified, use it.
43262 if test "x${SPEEXDSP_DIR}" != "x"; then
43263 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
43265 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
43266 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43267 SPEEXDSP_HEADER_FOUND="1"
43268 else # check for the header
43269 saved_cppflags="${CPPFLAGS}"
43270 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
43271 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43272 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43273 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43274 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43275 echo $ECHO_N "(cached) $ECHO_C" >&6
43277 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43278 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43279 else
43280 # Is the header compilable?
43281 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43282 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43283 cat >conftest.$ac_ext <<_ACEOF
43284 /* confdefs.h. */
43285 _ACEOF
43286 cat confdefs.h >>conftest.$ac_ext
43287 cat >>conftest.$ac_ext <<_ACEOF
43288 /* end confdefs.h. */
43289 $ac_includes_default
43290 #include <speex/speex.h>
43291 _ACEOF
43292 rm -f conftest.$ac_objext
43293 if { (ac_try="$ac_compile"
43294 case "(($ac_try" in
43295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43296 *) ac_try_echo=$ac_try;;
43297 esac
43298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43299 (eval "$ac_compile") 2>conftest.er1
43300 ac_status=$?
43301 grep -v '^ *+' conftest.er1 >conftest.err
43302 rm -f conftest.er1
43303 cat conftest.err >&5
43304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305 (exit $ac_status); } && {
43306 test -z "$ac_c_werror_flag" ||
43307 test ! -s conftest.err
43308 } && test -s conftest.$ac_objext; then
43309 ac_header_compiler=yes
43310 else
43311 echo "$as_me: failed program was:" >&5
43312 sed 's/^/| /' conftest.$ac_ext >&5
43314 ac_header_compiler=no
43317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43319 echo "${ECHO_T}$ac_header_compiler" >&6; }
43321 # Is the header present?
43322 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43323 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43324 cat >conftest.$ac_ext <<_ACEOF
43325 /* confdefs.h. */
43326 _ACEOF
43327 cat confdefs.h >>conftest.$ac_ext
43328 cat >>conftest.$ac_ext <<_ACEOF
43329 /* end confdefs.h. */
43330 #include <speex/speex.h>
43331 _ACEOF
43332 if { (ac_try="$ac_cpp conftest.$ac_ext"
43333 case "(($ac_try" in
43334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43335 *) ac_try_echo=$ac_try;;
43336 esac
43337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43339 ac_status=$?
43340 grep -v '^ *+' conftest.er1 >conftest.err
43341 rm -f conftest.er1
43342 cat conftest.err >&5
43343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344 (exit $ac_status); } >/dev/null && {
43345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43346 test ! -s conftest.err
43347 }; then
43348 ac_header_preproc=yes
43349 else
43350 echo "$as_me: failed program was:" >&5
43351 sed 's/^/| /' conftest.$ac_ext >&5
43353 ac_header_preproc=no
43356 rm -f conftest.err conftest.$ac_ext
43357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43358 echo "${ECHO_T}$ac_header_preproc" >&6; }
43360 # So? What about this header?
43361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43362 yes:no: )
43363 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43364 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43365 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43366 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43367 ac_header_preproc=yes
43369 no:yes:* )
43370 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43371 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43372 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43373 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43374 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43375 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43376 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43377 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43378 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43379 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43380 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43381 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43382 ( cat <<\_ASBOX
43383 ## ------------------------------- ##
43384 ## Report this to www.asterisk.org ##
43385 ## ------------------------------- ##
43386 _ASBOX
43387 ) | sed "s/^/$as_me: WARNING: /" >&2
43389 esac
43390 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43391 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43392 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43393 echo $ECHO_N "(cached) $ECHO_C" >&6
43394 else
43395 ac_cv_header_speex_speex_h=$ac_header_preproc
43397 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43398 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43401 if test $ac_cv_header_speex_speex_h = yes; then
43402 SPEEXDSP_HEADER_FOUND=1
43403 else
43404 SPEEXDSP_HEADER_FOUND=0
43408 CPPFLAGS="${saved_cppflags}"
43410 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
43411 SPEEXDSP_LIB=""
43412 SPEEXDSP_INCLUDE=""
43413 else
43414 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43415 SPEEXDSP_LIB=""
43417 PBX_SPEEXDSP=1
43418 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43420 cat >>confdefs.h <<_ACEOF
43421 #define HAVE_SPEEXDSP 1
43422 _ACEOF
43425 cat >>confdefs.h <<_ACEOF
43426 #define HAVE_SPEEXDSP_VERSION
43427 _ACEOF
43433 if test "${PBX_SPEEXDSP}" = 1; then
43434 PBX_SPEEX_PREPROCESS=1
43440 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
43441 pbxlibdir=""
43442 # if --with-SQLITE=DIR has been specified, use it.
43443 if test "x${SQLITE_DIR}" != "x"; then
43444 if test -d ${SQLITE_DIR}/lib; then
43445 pbxlibdir="-L${SQLITE_DIR}/lib"
43446 else
43447 pbxlibdir="-L${SQLITE_DIR}"
43450 pbxfuncname="sqlite_exec"
43451 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43452 AST_SQLITE_FOUND=yes
43453 else
43454 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
43455 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
43456 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
43457 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43458 echo $ECHO_N "(cached) $ECHO_C" >&6
43459 else
43460 ac_check_lib_save_LIBS=$LIBS
43461 LIBS="-lsqlite ${pbxlibdir} $LIBS"
43462 cat >conftest.$ac_ext <<_ACEOF
43463 /* confdefs.h. */
43464 _ACEOF
43465 cat confdefs.h >>conftest.$ac_ext
43466 cat >>conftest.$ac_ext <<_ACEOF
43467 /* end confdefs.h. */
43469 /* Override any GCC internal prototype to avoid an error.
43470 Use char because int might match the return type of a GCC
43471 builtin and then its argument prototype would still apply. */
43472 #ifdef __cplusplus
43473 extern "C"
43474 #endif
43475 char ${pbxfuncname} ();
43477 main ()
43479 return ${pbxfuncname} ();
43481 return 0;
43483 _ACEOF
43484 rm -f conftest.$ac_objext conftest$ac_exeext
43485 if { (ac_try="$ac_link"
43486 case "(($ac_try" in
43487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43488 *) ac_try_echo=$ac_try;;
43489 esac
43490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43491 (eval "$ac_link") 2>conftest.er1
43492 ac_status=$?
43493 grep -v '^ *+' conftest.er1 >conftest.err
43494 rm -f conftest.er1
43495 cat conftest.err >&5
43496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43497 (exit $ac_status); } && {
43498 test -z "$ac_c_werror_flag" ||
43499 test ! -s conftest.err
43500 } && test -s conftest$ac_exeext &&
43501 $as_test_x conftest$ac_exeext; then
43502 eval "$as_ac_Lib=yes"
43503 else
43504 echo "$as_me: failed program was:" >&5
43505 sed 's/^/| /' conftest.$ac_ext >&5
43507 eval "$as_ac_Lib=no"
43510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43511 conftest$ac_exeext conftest.$ac_ext
43512 LIBS=$ac_check_lib_save_LIBS
43514 ac_res=`eval echo '${'$as_ac_Lib'}'`
43515 { echo "$as_me:$LINENO: result: $ac_res" >&5
43516 echo "${ECHO_T}$ac_res" >&6; }
43517 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43518 AST_SQLITE_FOUND=yes
43519 else
43520 AST_SQLITE_FOUND=no
43525 # now check for the header.
43526 if test "${AST_SQLITE_FOUND}" = "yes"; then
43527 SQLITE_LIB="${pbxlibdir} -lsqlite "
43528 # if --with-SQLITE=DIR has been specified, use it.
43529 if test "x${SQLITE_DIR}" != "x"; then
43530 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
43532 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
43533 if test "xsqlite.h" = "x" ; then # no header, assume found
43534 SQLITE_HEADER_FOUND="1"
43535 else # check for the header
43536 saved_cppflags="${CPPFLAGS}"
43537 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
43538 if test "${ac_cv_header_sqlite_h+set}" = set; then
43539 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43540 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43541 if test "${ac_cv_header_sqlite_h+set}" = set; then
43542 echo $ECHO_N "(cached) $ECHO_C" >&6
43544 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43545 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43546 else
43547 # Is the header compilable?
43548 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
43549 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
43550 cat >conftest.$ac_ext <<_ACEOF
43551 /* confdefs.h. */
43552 _ACEOF
43553 cat confdefs.h >>conftest.$ac_ext
43554 cat >>conftest.$ac_ext <<_ACEOF
43555 /* end confdefs.h. */
43556 $ac_includes_default
43557 #include <sqlite.h>
43558 _ACEOF
43559 rm -f conftest.$ac_objext
43560 if { (ac_try="$ac_compile"
43561 case "(($ac_try" in
43562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43563 *) ac_try_echo=$ac_try;;
43564 esac
43565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43566 (eval "$ac_compile") 2>conftest.er1
43567 ac_status=$?
43568 grep -v '^ *+' conftest.er1 >conftest.err
43569 rm -f conftest.er1
43570 cat conftest.err >&5
43571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572 (exit $ac_status); } && {
43573 test -z "$ac_c_werror_flag" ||
43574 test ! -s conftest.err
43575 } && test -s conftest.$ac_objext; then
43576 ac_header_compiler=yes
43577 else
43578 echo "$as_me: failed program was:" >&5
43579 sed 's/^/| /' conftest.$ac_ext >&5
43581 ac_header_compiler=no
43584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43586 echo "${ECHO_T}$ac_header_compiler" >&6; }
43588 # Is the header present?
43589 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
43590 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
43591 cat >conftest.$ac_ext <<_ACEOF
43592 /* confdefs.h. */
43593 _ACEOF
43594 cat confdefs.h >>conftest.$ac_ext
43595 cat >>conftest.$ac_ext <<_ACEOF
43596 /* end confdefs.h. */
43597 #include <sqlite.h>
43598 _ACEOF
43599 if { (ac_try="$ac_cpp conftest.$ac_ext"
43600 case "(($ac_try" in
43601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43602 *) ac_try_echo=$ac_try;;
43603 esac
43604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43606 ac_status=$?
43607 grep -v '^ *+' conftest.er1 >conftest.err
43608 rm -f conftest.er1
43609 cat conftest.err >&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); } >/dev/null && {
43612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43613 test ! -s conftest.err
43614 }; then
43615 ac_header_preproc=yes
43616 else
43617 echo "$as_me: failed program was:" >&5
43618 sed 's/^/| /' conftest.$ac_ext >&5
43620 ac_header_preproc=no
43623 rm -f conftest.err conftest.$ac_ext
43624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43625 echo "${ECHO_T}$ac_header_preproc" >&6; }
43627 # So? What about this header?
43628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43629 yes:no: )
43630 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
43631 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43632 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
43633 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
43634 ac_header_preproc=yes
43636 no:yes:* )
43637 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
43638 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
43639 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
43640 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
43641 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
43642 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
43643 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
43644 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
43645 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
43646 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
43647 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
43648 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
43649 ( cat <<\_ASBOX
43650 ## ------------------------------- ##
43651 ## Report this to www.asterisk.org ##
43652 ## ------------------------------- ##
43653 _ASBOX
43654 ) | sed "s/^/$as_me: WARNING: /" >&2
43656 esac
43657 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43658 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43659 if test "${ac_cv_header_sqlite_h+set}" = set; then
43660 echo $ECHO_N "(cached) $ECHO_C" >&6
43661 else
43662 ac_cv_header_sqlite_h=$ac_header_preproc
43664 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43665 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43668 if test $ac_cv_header_sqlite_h = yes; then
43669 SQLITE_HEADER_FOUND=1
43670 else
43671 SQLITE_HEADER_FOUND=0
43675 CPPFLAGS="${saved_cppflags}"
43677 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
43678 SQLITE_LIB=""
43679 SQLITE_INCLUDE=""
43680 else
43681 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43682 SQLITE_LIB=""
43684 PBX_SQLITE=1
43685 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43687 cat >>confdefs.h <<_ACEOF
43688 #define HAVE_SQLITE 1
43689 _ACEOF
43692 cat >>confdefs.h <<_ACEOF
43693 #define HAVE_SQLITE_VERSION
43694 _ACEOF
43702 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
43703 pbxlibdir=""
43704 # if --with-SQLITE3=DIR has been specified, use it.
43705 if test "x${SQLITE3_DIR}" != "x"; then
43706 if test -d ${SQLITE3_DIR}/lib; then
43707 pbxlibdir="-L${SQLITE3_DIR}/lib"
43708 else
43709 pbxlibdir="-L${SQLITE3_DIR}"
43712 pbxfuncname="sqlite3_open"
43713 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43714 AST_SQLITE3_FOUND=yes
43715 else
43716 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
43717 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
43718 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
43719 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43720 echo $ECHO_N "(cached) $ECHO_C" >&6
43721 else
43722 ac_check_lib_save_LIBS=$LIBS
43723 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
43724 cat >conftest.$ac_ext <<_ACEOF
43725 /* confdefs.h. */
43726 _ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h. */
43731 /* Override any GCC internal prototype to avoid an error.
43732 Use char because int might match the return type of a GCC
43733 builtin and then its argument prototype would still apply. */
43734 #ifdef __cplusplus
43735 extern "C"
43736 #endif
43737 char ${pbxfuncname} ();
43739 main ()
43741 return ${pbxfuncname} ();
43743 return 0;
43745 _ACEOF
43746 rm -f conftest.$ac_objext conftest$ac_exeext
43747 if { (ac_try="$ac_link"
43748 case "(($ac_try" in
43749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750 *) ac_try_echo=$ac_try;;
43751 esac
43752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43753 (eval "$ac_link") 2>conftest.er1
43754 ac_status=$?
43755 grep -v '^ *+' conftest.er1 >conftest.err
43756 rm -f conftest.er1
43757 cat conftest.err >&5
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); } && {
43760 test -z "$ac_c_werror_flag" ||
43761 test ! -s conftest.err
43762 } && test -s conftest$ac_exeext &&
43763 $as_test_x conftest$ac_exeext; then
43764 eval "$as_ac_Lib=yes"
43765 else
43766 echo "$as_me: failed program was:" >&5
43767 sed 's/^/| /' conftest.$ac_ext >&5
43769 eval "$as_ac_Lib=no"
43772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43773 conftest$ac_exeext conftest.$ac_ext
43774 LIBS=$ac_check_lib_save_LIBS
43776 ac_res=`eval echo '${'$as_ac_Lib'}'`
43777 { echo "$as_me:$LINENO: result: $ac_res" >&5
43778 echo "${ECHO_T}$ac_res" >&6; }
43779 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43780 AST_SQLITE3_FOUND=yes
43781 else
43782 AST_SQLITE3_FOUND=no
43787 # now check for the header.
43788 if test "${AST_SQLITE3_FOUND}" = "yes"; then
43789 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
43790 # if --with-SQLITE3=DIR has been specified, use it.
43791 if test "x${SQLITE3_DIR}" != "x"; then
43792 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
43794 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
43795 if test "xsqlite3.h" = "x" ; then # no header, assume found
43796 SQLITE3_HEADER_FOUND="1"
43797 else # check for the header
43798 saved_cppflags="${CPPFLAGS}"
43799 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
43800 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43801 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43802 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43803 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43804 echo $ECHO_N "(cached) $ECHO_C" >&6
43806 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43807 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43808 else
43809 # Is the header compilable?
43810 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
43811 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
43812 cat >conftest.$ac_ext <<_ACEOF
43813 /* confdefs.h. */
43814 _ACEOF
43815 cat confdefs.h >>conftest.$ac_ext
43816 cat >>conftest.$ac_ext <<_ACEOF
43817 /* end confdefs.h. */
43818 $ac_includes_default
43819 #include <sqlite3.h>
43820 _ACEOF
43821 rm -f conftest.$ac_objext
43822 if { (ac_try="$ac_compile"
43823 case "(($ac_try" in
43824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43825 *) ac_try_echo=$ac_try;;
43826 esac
43827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43828 (eval "$ac_compile") 2>conftest.er1
43829 ac_status=$?
43830 grep -v '^ *+' conftest.er1 >conftest.err
43831 rm -f conftest.er1
43832 cat conftest.err >&5
43833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43834 (exit $ac_status); } && {
43835 test -z "$ac_c_werror_flag" ||
43836 test ! -s conftest.err
43837 } && test -s conftest.$ac_objext; then
43838 ac_header_compiler=yes
43839 else
43840 echo "$as_me: failed program was:" >&5
43841 sed 's/^/| /' conftest.$ac_ext >&5
43843 ac_header_compiler=no
43846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43848 echo "${ECHO_T}$ac_header_compiler" >&6; }
43850 # Is the header present?
43851 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
43852 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
43853 cat >conftest.$ac_ext <<_ACEOF
43854 /* confdefs.h. */
43855 _ACEOF
43856 cat confdefs.h >>conftest.$ac_ext
43857 cat >>conftest.$ac_ext <<_ACEOF
43858 /* end confdefs.h. */
43859 #include <sqlite3.h>
43860 _ACEOF
43861 if { (ac_try="$ac_cpp conftest.$ac_ext"
43862 case "(($ac_try" in
43863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43864 *) ac_try_echo=$ac_try;;
43865 esac
43866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43868 ac_status=$?
43869 grep -v '^ *+' conftest.er1 >conftest.err
43870 rm -f conftest.er1
43871 cat conftest.err >&5
43872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873 (exit $ac_status); } >/dev/null && {
43874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43875 test ! -s conftest.err
43876 }; then
43877 ac_header_preproc=yes
43878 else
43879 echo "$as_me: failed program was:" >&5
43880 sed 's/^/| /' conftest.$ac_ext >&5
43882 ac_header_preproc=no
43885 rm -f conftest.err conftest.$ac_ext
43886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43887 echo "${ECHO_T}$ac_header_preproc" >&6; }
43889 # So? What about this header?
43890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43891 yes:no: )
43892 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
43893 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43894 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
43895 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
43896 ac_header_preproc=yes
43898 no:yes:* )
43899 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
43900 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
43901 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
43902 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
43903 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
43904 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
43905 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
43906 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
43907 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
43908 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
43909 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
43910 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
43911 ( cat <<\_ASBOX
43912 ## ------------------------------- ##
43913 ## Report this to www.asterisk.org ##
43914 ## ------------------------------- ##
43915 _ASBOX
43916 ) | sed "s/^/$as_me: WARNING: /" >&2
43918 esac
43919 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43920 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43921 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43922 echo $ECHO_N "(cached) $ECHO_C" >&6
43923 else
43924 ac_cv_header_sqlite3_h=$ac_header_preproc
43926 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43927 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43930 if test $ac_cv_header_sqlite3_h = yes; then
43931 SQLITE3_HEADER_FOUND=1
43932 else
43933 SQLITE3_HEADER_FOUND=0
43937 CPPFLAGS="${saved_cppflags}"
43939 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
43940 SQLITE3_LIB=""
43941 SQLITE3_INCLUDE=""
43942 else
43943 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43944 SQLITE3_LIB=""
43946 PBX_SQLITE3=1
43947 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43949 cat >>confdefs.h <<_ACEOF
43950 #define HAVE_SQLITE3 1
43951 _ACEOF
43954 cat >>confdefs.h <<_ACEOF
43955 #define HAVE_SQLITE3_VERSION
43956 _ACEOF
43964 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
43965 pbxlibdir=""
43966 # if --with-CRYPTO=DIR has been specified, use it.
43967 if test "x${CRYPTO_DIR}" != "x"; then
43968 if test -d ${CRYPTO_DIR}/lib; then
43969 pbxlibdir="-L${CRYPTO_DIR}/lib"
43970 else
43971 pbxlibdir="-L${CRYPTO_DIR}"
43974 pbxfuncname="AES_encrypt"
43975 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43976 AST_CRYPTO_FOUND=yes
43977 else
43978 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
43979 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
43980 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
43981 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43982 echo $ECHO_N "(cached) $ECHO_C" >&6
43983 else
43984 ac_check_lib_save_LIBS=$LIBS
43985 LIBS="-lcrypto ${pbxlibdir} $LIBS"
43986 cat >conftest.$ac_ext <<_ACEOF
43987 /* confdefs.h. */
43988 _ACEOF
43989 cat confdefs.h >>conftest.$ac_ext
43990 cat >>conftest.$ac_ext <<_ACEOF
43991 /* end confdefs.h. */
43993 /* Override any GCC internal prototype to avoid an error.
43994 Use char because int might match the return type of a GCC
43995 builtin and then its argument prototype would still apply. */
43996 #ifdef __cplusplus
43997 extern "C"
43998 #endif
43999 char ${pbxfuncname} ();
44001 main ()
44003 return ${pbxfuncname} ();
44005 return 0;
44007 _ACEOF
44008 rm -f conftest.$ac_objext conftest$ac_exeext
44009 if { (ac_try="$ac_link"
44010 case "(($ac_try" in
44011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44012 *) ac_try_echo=$ac_try;;
44013 esac
44014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44015 (eval "$ac_link") 2>conftest.er1
44016 ac_status=$?
44017 grep -v '^ *+' conftest.er1 >conftest.err
44018 rm -f conftest.er1
44019 cat conftest.err >&5
44020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021 (exit $ac_status); } && {
44022 test -z "$ac_c_werror_flag" ||
44023 test ! -s conftest.err
44024 } && test -s conftest$ac_exeext &&
44025 $as_test_x conftest$ac_exeext; then
44026 eval "$as_ac_Lib=yes"
44027 else
44028 echo "$as_me: failed program was:" >&5
44029 sed 's/^/| /' conftest.$ac_ext >&5
44031 eval "$as_ac_Lib=no"
44034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44035 conftest$ac_exeext conftest.$ac_ext
44036 LIBS=$ac_check_lib_save_LIBS
44038 ac_res=`eval echo '${'$as_ac_Lib'}'`
44039 { echo "$as_me:$LINENO: result: $ac_res" >&5
44040 echo "${ECHO_T}$ac_res" >&6; }
44041 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44042 AST_CRYPTO_FOUND=yes
44043 else
44044 AST_CRYPTO_FOUND=no
44049 # now check for the header.
44050 if test "${AST_CRYPTO_FOUND}" = "yes"; then
44051 CRYPTO_LIB="${pbxlibdir} -lcrypto "
44052 # if --with-CRYPTO=DIR has been specified, use it.
44053 if test "x${CRYPTO_DIR}" != "x"; then
44054 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
44056 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
44057 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
44058 CRYPTO_HEADER_FOUND="1"
44059 else # check for the header
44060 saved_cppflags="${CPPFLAGS}"
44061 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
44062 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44063 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44064 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44065 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44066 echo $ECHO_N "(cached) $ECHO_C" >&6
44068 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44069 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44070 else
44071 # Is the header compilable?
44072 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
44073 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
44074 cat >conftest.$ac_ext <<_ACEOF
44075 /* confdefs.h. */
44076 _ACEOF
44077 cat confdefs.h >>conftest.$ac_ext
44078 cat >>conftest.$ac_ext <<_ACEOF
44079 /* end confdefs.h. */
44080 $ac_includes_default
44081 #include <openssl/aes.h>
44082 _ACEOF
44083 rm -f conftest.$ac_objext
44084 if { (ac_try="$ac_compile"
44085 case "(($ac_try" in
44086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44087 *) ac_try_echo=$ac_try;;
44088 esac
44089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44090 (eval "$ac_compile") 2>conftest.er1
44091 ac_status=$?
44092 grep -v '^ *+' conftest.er1 >conftest.err
44093 rm -f conftest.er1
44094 cat conftest.err >&5
44095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); } && {
44097 test -z "$ac_c_werror_flag" ||
44098 test ! -s conftest.err
44099 } && test -s conftest.$ac_objext; then
44100 ac_header_compiler=yes
44101 else
44102 echo "$as_me: failed program was:" >&5
44103 sed 's/^/| /' conftest.$ac_ext >&5
44105 ac_header_compiler=no
44108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44110 echo "${ECHO_T}$ac_header_compiler" >&6; }
44112 # Is the header present?
44113 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
44114 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
44115 cat >conftest.$ac_ext <<_ACEOF
44116 /* confdefs.h. */
44117 _ACEOF
44118 cat confdefs.h >>conftest.$ac_ext
44119 cat >>conftest.$ac_ext <<_ACEOF
44120 /* end confdefs.h. */
44121 #include <openssl/aes.h>
44122 _ACEOF
44123 if { (ac_try="$ac_cpp conftest.$ac_ext"
44124 case "(($ac_try" in
44125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44126 *) ac_try_echo=$ac_try;;
44127 esac
44128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44130 ac_status=$?
44131 grep -v '^ *+' conftest.er1 >conftest.err
44132 rm -f conftest.er1
44133 cat conftest.err >&5
44134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135 (exit $ac_status); } >/dev/null && {
44136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44137 test ! -s conftest.err
44138 }; then
44139 ac_header_preproc=yes
44140 else
44141 echo "$as_me: failed program was:" >&5
44142 sed 's/^/| /' conftest.$ac_ext >&5
44144 ac_header_preproc=no
44147 rm -f conftest.err conftest.$ac_ext
44148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44149 echo "${ECHO_T}$ac_header_preproc" >&6; }
44151 # So? What about this header?
44152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44153 yes:no: )
44154 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
44155 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44156 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
44157 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
44158 ac_header_preproc=yes
44160 no:yes:* )
44161 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
44162 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
44163 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
44164 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
44165 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
44166 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
44167 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
44168 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
44169 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
44170 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
44171 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
44172 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
44173 ( cat <<\_ASBOX
44174 ## ------------------------------- ##
44175 ## Report this to www.asterisk.org ##
44176 ## ------------------------------- ##
44177 _ASBOX
44178 ) | sed "s/^/$as_me: WARNING: /" >&2
44180 esac
44181 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44182 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44183 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44184 echo $ECHO_N "(cached) $ECHO_C" >&6
44185 else
44186 ac_cv_header_openssl_aes_h=$ac_header_preproc
44188 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44189 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44192 if test $ac_cv_header_openssl_aes_h = yes; then
44193 CRYPTO_HEADER_FOUND=1
44194 else
44195 CRYPTO_HEADER_FOUND=0
44199 CPPFLAGS="${saved_cppflags}"
44201 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
44202 CRYPTO_LIB=""
44203 CRYPTO_INCLUDE=""
44204 else
44205 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44206 CRYPTO_LIB=""
44208 PBX_CRYPTO=1
44209 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44211 cat >>confdefs.h <<_ACEOF
44212 #define HAVE_CRYPTO 1
44213 _ACEOF
44216 cat >>confdefs.h <<_ACEOF
44217 #define HAVE_CRYPTO_VERSION
44218 _ACEOF
44225 if test "$PBX_CRYPTO" = "1";
44226 then
44228 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
44229 pbxlibdir=""
44230 # if --with-OPENSSL=DIR has been specified, use it.
44231 if test "x${OPENSSL_DIR}" != "x"; then
44232 if test -d ${OPENSSL_DIR}/lib; then
44233 pbxlibdir="-L${OPENSSL_DIR}/lib"
44234 else
44235 pbxlibdir="-L${OPENSSL_DIR}"
44238 pbxfuncname="ssl2_connect"
44239 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44240 AST_OPENSSL_FOUND=yes
44241 else
44242 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
44243 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
44244 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
44245 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44246 echo $ECHO_N "(cached) $ECHO_C" >&6
44247 else
44248 ac_check_lib_save_LIBS=$LIBS
44249 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
44250 cat >conftest.$ac_ext <<_ACEOF
44251 /* confdefs.h. */
44252 _ACEOF
44253 cat confdefs.h >>conftest.$ac_ext
44254 cat >>conftest.$ac_ext <<_ACEOF
44255 /* end confdefs.h. */
44257 /* Override any GCC internal prototype to avoid an error.
44258 Use char because int might match the return type of a GCC
44259 builtin and then its argument prototype would still apply. */
44260 #ifdef __cplusplus
44261 extern "C"
44262 #endif
44263 char ${pbxfuncname} ();
44265 main ()
44267 return ${pbxfuncname} ();
44269 return 0;
44271 _ACEOF
44272 rm -f conftest.$ac_objext conftest$ac_exeext
44273 if { (ac_try="$ac_link"
44274 case "(($ac_try" in
44275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44276 *) ac_try_echo=$ac_try;;
44277 esac
44278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44279 (eval "$ac_link") 2>conftest.er1
44280 ac_status=$?
44281 grep -v '^ *+' conftest.er1 >conftest.err
44282 rm -f conftest.er1
44283 cat conftest.err >&5
44284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285 (exit $ac_status); } && {
44286 test -z "$ac_c_werror_flag" ||
44287 test ! -s conftest.err
44288 } && test -s conftest$ac_exeext &&
44289 $as_test_x conftest$ac_exeext; then
44290 eval "$as_ac_Lib=yes"
44291 else
44292 echo "$as_me: failed program was:" >&5
44293 sed 's/^/| /' conftest.$ac_ext >&5
44295 eval "$as_ac_Lib=no"
44298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44299 conftest$ac_exeext conftest.$ac_ext
44300 LIBS=$ac_check_lib_save_LIBS
44302 ac_res=`eval echo '${'$as_ac_Lib'}'`
44303 { echo "$as_me:$LINENO: result: $ac_res" >&5
44304 echo "${ECHO_T}$ac_res" >&6; }
44305 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44306 AST_OPENSSL_FOUND=yes
44307 else
44308 AST_OPENSSL_FOUND=no
44313 # now check for the header.
44314 if test "${AST_OPENSSL_FOUND}" = "yes"; then
44315 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
44316 # if --with-OPENSSL=DIR has been specified, use it.
44317 if test "x${OPENSSL_DIR}" != "x"; then
44318 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
44320 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
44321 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
44322 OPENSSL_HEADER_FOUND="1"
44323 else # check for the header
44324 saved_cppflags="${CPPFLAGS}"
44325 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
44326 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44327 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44328 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44329 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44330 echo $ECHO_N "(cached) $ECHO_C" >&6
44332 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44333 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44334 else
44335 # Is the header compilable?
44336 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
44337 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
44338 cat >conftest.$ac_ext <<_ACEOF
44339 /* confdefs.h. */
44340 _ACEOF
44341 cat confdefs.h >>conftest.$ac_ext
44342 cat >>conftest.$ac_ext <<_ACEOF
44343 /* end confdefs.h. */
44344 $ac_includes_default
44345 #include <openssl/ssl.h>
44346 _ACEOF
44347 rm -f conftest.$ac_objext
44348 if { (ac_try="$ac_compile"
44349 case "(($ac_try" in
44350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44351 *) ac_try_echo=$ac_try;;
44352 esac
44353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44354 (eval "$ac_compile") 2>conftest.er1
44355 ac_status=$?
44356 grep -v '^ *+' conftest.er1 >conftest.err
44357 rm -f conftest.er1
44358 cat conftest.err >&5
44359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44360 (exit $ac_status); } && {
44361 test -z "$ac_c_werror_flag" ||
44362 test ! -s conftest.err
44363 } && test -s conftest.$ac_objext; then
44364 ac_header_compiler=yes
44365 else
44366 echo "$as_me: failed program was:" >&5
44367 sed 's/^/| /' conftest.$ac_ext >&5
44369 ac_header_compiler=no
44372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44374 echo "${ECHO_T}$ac_header_compiler" >&6; }
44376 # Is the header present?
44377 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
44378 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
44379 cat >conftest.$ac_ext <<_ACEOF
44380 /* confdefs.h. */
44381 _ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h. */
44385 #include <openssl/ssl.h>
44386 _ACEOF
44387 if { (ac_try="$ac_cpp conftest.$ac_ext"
44388 case "(($ac_try" in
44389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44390 *) ac_try_echo=$ac_try;;
44391 esac
44392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44394 ac_status=$?
44395 grep -v '^ *+' conftest.er1 >conftest.err
44396 rm -f conftest.er1
44397 cat conftest.err >&5
44398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44399 (exit $ac_status); } >/dev/null && {
44400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44401 test ! -s conftest.err
44402 }; then
44403 ac_header_preproc=yes
44404 else
44405 echo "$as_me: failed program was:" >&5
44406 sed 's/^/| /' conftest.$ac_ext >&5
44408 ac_header_preproc=no
44411 rm -f conftest.err conftest.$ac_ext
44412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44413 echo "${ECHO_T}$ac_header_preproc" >&6; }
44415 # So? What about this header?
44416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44417 yes:no: )
44418 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
44419 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44420 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
44421 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
44422 ac_header_preproc=yes
44424 no:yes:* )
44425 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
44426 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
44427 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
44428 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
44429 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
44430 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
44431 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
44432 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
44433 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
44434 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
44435 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
44436 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
44437 ( cat <<\_ASBOX
44438 ## ------------------------------- ##
44439 ## Report this to www.asterisk.org ##
44440 ## ------------------------------- ##
44441 _ASBOX
44442 ) | sed "s/^/$as_me: WARNING: /" >&2
44444 esac
44445 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44446 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44447 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44448 echo $ECHO_N "(cached) $ECHO_C" >&6
44449 else
44450 ac_cv_header_openssl_ssl_h=$ac_header_preproc
44452 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44453 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44456 if test $ac_cv_header_openssl_ssl_h = yes; then
44457 OPENSSL_HEADER_FOUND=1
44458 else
44459 OPENSSL_HEADER_FOUND=0
44463 CPPFLAGS="${saved_cppflags}"
44465 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
44466 OPENSSL_LIB=""
44467 OPENSSL_INCLUDE=""
44468 else
44469 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44470 OPENSSL_LIB=""
44472 PBX_OPENSSL=1
44473 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44475 cat >>confdefs.h <<_ACEOF
44476 #define HAVE_OPENSSL 1
44477 _ACEOF
44480 cat >>confdefs.h <<_ACEOF
44481 #define HAVE_OPENSSL_VERSION
44482 _ACEOF
44490 if test "$PBX_OPENSSL" = "1";
44491 then
44493 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
44494 pbxlibdir=""
44495 # if --with-OSPTK=DIR has been specified, use it.
44496 if test "x${OSPTK_DIR}" != "x"; then
44497 if test -d ${OSPTK_DIR}/lib; then
44498 pbxlibdir="-L${OSPTK_DIR}/lib"
44499 else
44500 pbxlibdir="-L${OSPTK_DIR}"
44503 pbxfuncname="OSPPCryptoDecrypt"
44504 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44505 AST_OSPTK_FOUND=yes
44506 else
44507 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
44508 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
44509 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
44510 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44511 echo $ECHO_N "(cached) $ECHO_C" >&6
44512 else
44513 ac_check_lib_save_LIBS=$LIBS
44514 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
44515 cat >conftest.$ac_ext <<_ACEOF
44516 /* confdefs.h. */
44517 _ACEOF
44518 cat confdefs.h >>conftest.$ac_ext
44519 cat >>conftest.$ac_ext <<_ACEOF
44520 /* end confdefs.h. */
44522 /* Override any GCC internal prototype to avoid an error.
44523 Use char because int might match the return type of a GCC
44524 builtin and then its argument prototype would still apply. */
44525 #ifdef __cplusplus
44526 extern "C"
44527 #endif
44528 char ${pbxfuncname} ();
44530 main ()
44532 return ${pbxfuncname} ();
44534 return 0;
44536 _ACEOF
44537 rm -f conftest.$ac_objext conftest$ac_exeext
44538 if { (ac_try="$ac_link"
44539 case "(($ac_try" in
44540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44541 *) ac_try_echo=$ac_try;;
44542 esac
44543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44544 (eval "$ac_link") 2>conftest.er1
44545 ac_status=$?
44546 grep -v '^ *+' conftest.er1 >conftest.err
44547 rm -f conftest.er1
44548 cat conftest.err >&5
44549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44550 (exit $ac_status); } && {
44551 test -z "$ac_c_werror_flag" ||
44552 test ! -s conftest.err
44553 } && test -s conftest$ac_exeext &&
44554 $as_test_x conftest$ac_exeext; then
44555 eval "$as_ac_Lib=yes"
44556 else
44557 echo "$as_me: failed program was:" >&5
44558 sed 's/^/| /' conftest.$ac_ext >&5
44560 eval "$as_ac_Lib=no"
44563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44564 conftest$ac_exeext conftest.$ac_ext
44565 LIBS=$ac_check_lib_save_LIBS
44567 ac_res=`eval echo '${'$as_ac_Lib'}'`
44568 { echo "$as_me:$LINENO: result: $ac_res" >&5
44569 echo "${ECHO_T}$ac_res" >&6; }
44570 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44571 AST_OSPTK_FOUND=yes
44572 else
44573 AST_OSPTK_FOUND=no
44578 # now check for the header.
44579 if test "${AST_OSPTK_FOUND}" = "yes"; then
44580 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
44581 # if --with-OSPTK=DIR has been specified, use it.
44582 if test "x${OSPTK_DIR}" != "x"; then
44583 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
44585 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
44586 if test "xosp/osp.h" = "x" ; then # no header, assume found
44587 OSPTK_HEADER_FOUND="1"
44588 else # check for the header
44589 saved_cppflags="${CPPFLAGS}"
44590 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
44591 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44592 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44593 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44594 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44595 echo $ECHO_N "(cached) $ECHO_C" >&6
44597 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44598 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44599 else
44600 # Is the header compilable?
44601 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
44602 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
44603 cat >conftest.$ac_ext <<_ACEOF
44604 /* confdefs.h. */
44605 _ACEOF
44606 cat confdefs.h >>conftest.$ac_ext
44607 cat >>conftest.$ac_ext <<_ACEOF
44608 /* end confdefs.h. */
44609 $ac_includes_default
44610 #include <osp/osp.h>
44611 _ACEOF
44612 rm -f conftest.$ac_objext
44613 if { (ac_try="$ac_compile"
44614 case "(($ac_try" in
44615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44616 *) ac_try_echo=$ac_try;;
44617 esac
44618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44619 (eval "$ac_compile") 2>conftest.er1
44620 ac_status=$?
44621 grep -v '^ *+' conftest.er1 >conftest.err
44622 rm -f conftest.er1
44623 cat conftest.err >&5
44624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44625 (exit $ac_status); } && {
44626 test -z "$ac_c_werror_flag" ||
44627 test ! -s conftest.err
44628 } && test -s conftest.$ac_objext; then
44629 ac_header_compiler=yes
44630 else
44631 echo "$as_me: failed program was:" >&5
44632 sed 's/^/| /' conftest.$ac_ext >&5
44634 ac_header_compiler=no
44637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44639 echo "${ECHO_T}$ac_header_compiler" >&6; }
44641 # Is the header present?
44642 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
44643 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
44644 cat >conftest.$ac_ext <<_ACEOF
44645 /* confdefs.h. */
44646 _ACEOF
44647 cat confdefs.h >>conftest.$ac_ext
44648 cat >>conftest.$ac_ext <<_ACEOF
44649 /* end confdefs.h. */
44650 #include <osp/osp.h>
44651 _ACEOF
44652 if { (ac_try="$ac_cpp conftest.$ac_ext"
44653 case "(($ac_try" in
44654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44655 *) ac_try_echo=$ac_try;;
44656 esac
44657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44659 ac_status=$?
44660 grep -v '^ *+' conftest.er1 >conftest.err
44661 rm -f conftest.er1
44662 cat conftest.err >&5
44663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44664 (exit $ac_status); } >/dev/null && {
44665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44666 test ! -s conftest.err
44667 }; then
44668 ac_header_preproc=yes
44669 else
44670 echo "$as_me: failed program was:" >&5
44671 sed 's/^/| /' conftest.$ac_ext >&5
44673 ac_header_preproc=no
44676 rm -f conftest.err conftest.$ac_ext
44677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44678 echo "${ECHO_T}$ac_header_preproc" >&6; }
44680 # So? What about this header?
44681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44682 yes:no: )
44683 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
44684 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44685 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
44686 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
44687 ac_header_preproc=yes
44689 no:yes:* )
44690 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
44691 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
44692 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
44693 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
44694 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
44695 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
44696 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
44697 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
44698 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
44699 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
44700 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
44701 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
44702 ( cat <<\_ASBOX
44703 ## ------------------------------- ##
44704 ## Report this to www.asterisk.org ##
44705 ## ------------------------------- ##
44706 _ASBOX
44707 ) | sed "s/^/$as_me: WARNING: /" >&2
44709 esac
44710 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44711 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44712 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44713 echo $ECHO_N "(cached) $ECHO_C" >&6
44714 else
44715 ac_cv_header_osp_osp_h=$ac_header_preproc
44717 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44718 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44721 if test $ac_cv_header_osp_osp_h = yes; then
44722 OSPTK_HEADER_FOUND=1
44723 else
44724 OSPTK_HEADER_FOUND=0
44728 CPPFLAGS="${saved_cppflags}"
44730 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
44731 OSPTK_LIB=""
44732 OSPTK_INCLUDE=""
44733 else
44734 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44735 OSPTK_LIB=""
44737 PBX_OSPTK=1
44738 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44740 cat >>confdefs.h <<_ACEOF
44741 #define HAVE_OSPTK 1
44742 _ACEOF
44745 cat >>confdefs.h <<_ACEOF
44746 #define HAVE_OSPTK_VERSION
44747 _ACEOF
44756 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
44757 PBX_GMIME=0
44758 if test -n "$ac_tool_prefix"; then
44759 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
44760 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
44761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44763 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
44764 echo $ECHO_N "(cached) $ECHO_C" >&6
44765 else
44766 if test -n "$CONFIG_GMIME"; then
44767 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
44768 else
44769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44770 for as_dir in $PATH
44772 IFS=$as_save_IFS
44773 test -z "$as_dir" && as_dir=.
44774 for ac_exec_ext in '' $ac_executable_extensions; do
44775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44776 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
44777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44778 break 2
44780 done
44781 done
44782 IFS=$as_save_IFS
44786 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
44787 if test -n "$CONFIG_GMIME"; then
44788 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
44789 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
44790 else
44791 { echo "$as_me:$LINENO: result: no" >&5
44792 echo "${ECHO_T}no" >&6; }
44797 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
44798 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
44799 # Extract the first word of "gmime-config", so it can be a program name with args.
44800 set dummy gmime-config; ac_word=$2
44801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44803 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
44804 echo $ECHO_N "(cached) $ECHO_C" >&6
44805 else
44806 if test -n "$ac_ct_CONFIG_GMIME"; then
44807 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
44808 else
44809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44810 for as_dir in $PATH
44812 IFS=$as_save_IFS
44813 test -z "$as_dir" && as_dir=.
44814 for ac_exec_ext in '' $ac_executable_extensions; do
44815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44816 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
44817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44818 break 2
44820 done
44821 done
44822 IFS=$as_save_IFS
44826 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
44827 if test -n "$ac_ct_CONFIG_GMIME"; then
44828 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
44829 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
44830 else
44831 { echo "$as_me:$LINENO: result: no" >&5
44832 echo "${ECHO_T}no" >&6; }
44835 if test "x$ac_ct_CONFIG_GMIME" = x; then
44836 CONFIG_GMIME="No"
44837 else
44838 case $cross_compiling:$ac_tool_warned in
44839 yes:)
44840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44841 whose name does not start with the host triplet. If you think this
44842 configuration is useful to you, please write to autoconf@gnu.org." >&5
44843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44844 whose name does not start with the host triplet. If you think this
44845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44846 ac_tool_warned=yes ;;
44847 esac
44848 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
44850 else
44851 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
44854 if test ! "x${CONFIG_GMIME}" = xNo; then
44855 if test x"" = x ; then A=--cflags ; else A="" ; fi
44856 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
44857 if test x"" = x ; then A=--libs ; else A="" ; fi
44858 GMIME_LIB=$(${CONFIG_GMIME} $A)
44859 if test x"" != x ; then
44860 saved_cppflags="${CPPFLAGS}"
44861 if test "x${GMIME_DIR}" != "x"; then
44862 GMIME_INCLUDE="-I${GMIME_DIR}/include"
44864 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
44866 saved_ldflags="${LDFLAGS}"
44867 LDFLAGS="${GMIME_LIB}"
44869 cat >conftest.$ac_ext <<_ACEOF
44870 /* confdefs.h. */
44871 _ACEOF
44872 cat confdefs.h >>conftest.$ac_ext
44873 cat >>conftest.$ac_ext <<_ACEOF
44874 /* end confdefs.h. */
44877 main ()
44882 return 0;
44884 _ACEOF
44885 rm -f conftest.$ac_objext conftest$ac_exeext
44886 if { (ac_try="$ac_link"
44887 case "(($ac_try" in
44888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44889 *) ac_try_echo=$ac_try;;
44890 esac
44891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44892 (eval "$ac_link") 2>conftest.er1
44893 ac_status=$?
44894 grep -v '^ *+' conftest.er1 >conftest.err
44895 rm -f conftest.er1
44896 cat conftest.err >&5
44897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44898 (exit $ac_status); } && {
44899 test -z "$ac_c_werror_flag" ||
44900 test ! -s conftest.err
44901 } && test -s conftest$ac_exeext &&
44902 $as_test_x conftest$ac_exeext; then
44903 PBX_GMIME=1
44905 cat >>confdefs.h <<\_ACEOF
44906 #define HAVE_GMIME 1
44907 _ACEOF
44910 else
44911 echo "$as_me: failed program was:" >&5
44912 sed 's/^/| /' conftest.$ac_ext >&5
44918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44919 conftest$ac_exeext conftest.$ac_ext
44920 CPPFLAGS="${saved_cppflags}"
44921 LDFLAGS="${saved_ldflags}"
44922 else
44923 PBX_GMIME=1
44925 cat >>confdefs.h <<\_ACEOF
44926 #define HAVE_GMIME 1
44927 _ACEOF
44935 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
44936 pbxlibdir=""
44937 # if --with-FREETDS=DIR has been specified, use it.
44938 if test "x${FREETDS_DIR}" != "x"; then
44939 if test -d ${FREETDS_DIR}/lib; then
44940 pbxlibdir="-L${FREETDS_DIR}/lib"
44941 else
44942 pbxlibdir="-L${FREETDS_DIR}"
44945 pbxfuncname="tds_version"
44946 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44947 AST_FREETDS_FOUND=yes
44948 else
44949 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
44950 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
44951 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
44952 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44953 echo $ECHO_N "(cached) $ECHO_C" >&6
44954 else
44955 ac_check_lib_save_LIBS=$LIBS
44956 LIBS="-ltds ${pbxlibdir} $LIBS"
44957 cat >conftest.$ac_ext <<_ACEOF
44958 /* confdefs.h. */
44959 _ACEOF
44960 cat confdefs.h >>conftest.$ac_ext
44961 cat >>conftest.$ac_ext <<_ACEOF
44962 /* end confdefs.h. */
44964 /* Override any GCC internal prototype to avoid an error.
44965 Use char because int might match the return type of a GCC
44966 builtin and then its argument prototype would still apply. */
44967 #ifdef __cplusplus
44968 extern "C"
44969 #endif
44970 char ${pbxfuncname} ();
44972 main ()
44974 return ${pbxfuncname} ();
44976 return 0;
44978 _ACEOF
44979 rm -f conftest.$ac_objext conftest$ac_exeext
44980 if { (ac_try="$ac_link"
44981 case "(($ac_try" in
44982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44983 *) ac_try_echo=$ac_try;;
44984 esac
44985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44986 (eval "$ac_link") 2>conftest.er1
44987 ac_status=$?
44988 grep -v '^ *+' conftest.er1 >conftest.err
44989 rm -f conftest.er1
44990 cat conftest.err >&5
44991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992 (exit $ac_status); } && {
44993 test -z "$ac_c_werror_flag" ||
44994 test ! -s conftest.err
44995 } && test -s conftest$ac_exeext &&
44996 $as_test_x conftest$ac_exeext; then
44997 eval "$as_ac_Lib=yes"
44998 else
44999 echo "$as_me: failed program was:" >&5
45000 sed 's/^/| /' conftest.$ac_ext >&5
45002 eval "$as_ac_Lib=no"
45005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45006 conftest$ac_exeext conftest.$ac_ext
45007 LIBS=$ac_check_lib_save_LIBS
45009 ac_res=`eval echo '${'$as_ac_Lib'}'`
45010 { echo "$as_me:$LINENO: result: $ac_res" >&5
45011 echo "${ECHO_T}$ac_res" >&6; }
45012 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45013 AST_FREETDS_FOUND=yes
45014 else
45015 AST_FREETDS_FOUND=no
45020 # now check for the header.
45021 if test "${AST_FREETDS_FOUND}" = "yes"; then
45022 FREETDS_LIB="${pbxlibdir} -ltds "
45023 # if --with-FREETDS=DIR has been specified, use it.
45024 if test "x${FREETDS_DIR}" != "x"; then
45025 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
45027 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
45028 if test "xtds.h" = "x" ; then # no header, assume found
45029 FREETDS_HEADER_FOUND="1"
45030 else # check for the header
45031 saved_cppflags="${CPPFLAGS}"
45032 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
45033 if test "${ac_cv_header_tds_h+set}" = set; then
45034 { echo "$as_me:$LINENO: checking for tds.h" >&5
45035 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
45036 if test "${ac_cv_header_tds_h+set}" = set; then
45037 echo $ECHO_N "(cached) $ECHO_C" >&6
45039 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
45040 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
45041 else
45042 # Is the header compilable?
45043 { echo "$as_me:$LINENO: checking tds.h usability" >&5
45044 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
45045 cat >conftest.$ac_ext <<_ACEOF
45046 /* confdefs.h. */
45047 _ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h. */
45051 $ac_includes_default
45052 #include <tds.h>
45053 _ACEOF
45054 rm -f conftest.$ac_objext
45055 if { (ac_try="$ac_compile"
45056 case "(($ac_try" in
45057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45058 *) ac_try_echo=$ac_try;;
45059 esac
45060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45061 (eval "$ac_compile") 2>conftest.er1
45062 ac_status=$?
45063 grep -v '^ *+' conftest.er1 >conftest.err
45064 rm -f conftest.er1
45065 cat conftest.err >&5
45066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45067 (exit $ac_status); } && {
45068 test -z "$ac_c_werror_flag" ||
45069 test ! -s conftest.err
45070 } && test -s conftest.$ac_objext; then
45071 ac_header_compiler=yes
45072 else
45073 echo "$as_me: failed program was:" >&5
45074 sed 's/^/| /' conftest.$ac_ext >&5
45076 ac_header_compiler=no
45079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45081 echo "${ECHO_T}$ac_header_compiler" >&6; }
45083 # Is the header present?
45084 { echo "$as_me:$LINENO: checking tds.h presence" >&5
45085 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
45086 cat >conftest.$ac_ext <<_ACEOF
45087 /* confdefs.h. */
45088 _ACEOF
45089 cat confdefs.h >>conftest.$ac_ext
45090 cat >>conftest.$ac_ext <<_ACEOF
45091 /* end confdefs.h. */
45092 #include <tds.h>
45093 _ACEOF
45094 if { (ac_try="$ac_cpp conftest.$ac_ext"
45095 case "(($ac_try" in
45096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45097 *) ac_try_echo=$ac_try;;
45098 esac
45099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45101 ac_status=$?
45102 grep -v '^ *+' conftest.er1 >conftest.err
45103 rm -f conftest.er1
45104 cat conftest.err >&5
45105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 (exit $ac_status); } >/dev/null && {
45107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45108 test ! -s conftest.err
45109 }; then
45110 ac_header_preproc=yes
45111 else
45112 echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45115 ac_header_preproc=no
45118 rm -f conftest.err conftest.$ac_ext
45119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45120 echo "${ECHO_T}$ac_header_preproc" >&6; }
45122 # So? What about this header?
45123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45124 yes:no: )
45125 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
45126 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45127 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
45128 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
45129 ac_header_preproc=yes
45131 no:yes:* )
45132 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
45133 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
45134 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
45135 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
45136 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
45137 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
45138 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
45139 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
45140 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
45141 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
45142 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
45143 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
45144 ( cat <<\_ASBOX
45145 ## ------------------------------- ##
45146 ## Report this to www.asterisk.org ##
45147 ## ------------------------------- ##
45148 _ASBOX
45149 ) | sed "s/^/$as_me: WARNING: /" >&2
45151 esac
45152 { echo "$as_me:$LINENO: checking for tds.h" >&5
45153 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
45154 if test "${ac_cv_header_tds_h+set}" = set; then
45155 echo $ECHO_N "(cached) $ECHO_C" >&6
45156 else
45157 ac_cv_header_tds_h=$ac_header_preproc
45159 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
45160 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
45163 if test $ac_cv_header_tds_h = yes; then
45164 FREETDS_HEADER_FOUND=1
45165 else
45166 FREETDS_HEADER_FOUND=0
45170 CPPFLAGS="${saved_cppflags}"
45172 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
45173 FREETDS_LIB=""
45174 FREETDS_INCLUDE=""
45175 else
45176 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45177 FREETDS_LIB=""
45179 PBX_FREETDS=1
45180 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45182 cat >>confdefs.h <<_ACEOF
45183 #define HAVE_FREETDS 1
45184 _ACEOF
45187 cat >>confdefs.h <<_ACEOF
45188 #define HAVE_FREETDS_VERSION
45189 _ACEOF
45195 if test "${PBX_FREETDS}" != "0";
45196 then
45197 if test "${FREETDS_DIR}x" = "x";
45198 then
45199 for tds_dir in /usr /usr/local;
45201 if test -f "${tds_dir}/include/tdsver.h";
45202 then
45203 FREETDS_DIR="${tds_dir}"
45205 done
45207 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
45208 *0.64*)
45209 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
45211 *0.63*)
45212 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
45214 *0.62*)
45215 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
45218 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
45220 esac
45224 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
45225 pbxlibdir=""
45226 # if --with-TERMCAP=DIR has been specified, use it.
45227 if test "x${TERMCAP_DIR}" != "x"; then
45228 if test -d ${TERMCAP_DIR}/lib; then
45229 pbxlibdir="-L${TERMCAP_DIR}/lib"
45230 else
45231 pbxlibdir="-L${TERMCAP_DIR}"
45234 pbxfuncname="tgetent"
45235 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45236 AST_TERMCAP_FOUND=yes
45237 else
45238 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
45239 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
45240 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
45241 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45242 echo $ECHO_N "(cached) $ECHO_C" >&6
45243 else
45244 ac_check_lib_save_LIBS=$LIBS
45245 LIBS="-ltermcap ${pbxlibdir} $LIBS"
45246 cat >conftest.$ac_ext <<_ACEOF
45247 /* confdefs.h. */
45248 _ACEOF
45249 cat confdefs.h >>conftest.$ac_ext
45250 cat >>conftest.$ac_ext <<_ACEOF
45251 /* end confdefs.h. */
45253 /* Override any GCC internal prototype to avoid an error.
45254 Use char because int might match the return type of a GCC
45255 builtin and then its argument prototype would still apply. */
45256 #ifdef __cplusplus
45257 extern "C"
45258 #endif
45259 char ${pbxfuncname} ();
45261 main ()
45263 return ${pbxfuncname} ();
45265 return 0;
45267 _ACEOF
45268 rm -f conftest.$ac_objext conftest$ac_exeext
45269 if { (ac_try="$ac_link"
45270 case "(($ac_try" in
45271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45272 *) ac_try_echo=$ac_try;;
45273 esac
45274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45275 (eval "$ac_link") 2>conftest.er1
45276 ac_status=$?
45277 grep -v '^ *+' conftest.er1 >conftest.err
45278 rm -f conftest.er1
45279 cat conftest.err >&5
45280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45281 (exit $ac_status); } && {
45282 test -z "$ac_c_werror_flag" ||
45283 test ! -s conftest.err
45284 } && test -s conftest$ac_exeext &&
45285 $as_test_x conftest$ac_exeext; then
45286 eval "$as_ac_Lib=yes"
45287 else
45288 echo "$as_me: failed program was:" >&5
45289 sed 's/^/| /' conftest.$ac_ext >&5
45291 eval "$as_ac_Lib=no"
45294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45295 conftest$ac_exeext conftest.$ac_ext
45296 LIBS=$ac_check_lib_save_LIBS
45298 ac_res=`eval echo '${'$as_ac_Lib'}'`
45299 { echo "$as_me:$LINENO: result: $ac_res" >&5
45300 echo "${ECHO_T}$ac_res" >&6; }
45301 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45302 AST_TERMCAP_FOUND=yes
45303 else
45304 AST_TERMCAP_FOUND=no
45309 # now check for the header.
45310 if test "${AST_TERMCAP_FOUND}" = "yes"; then
45311 TERMCAP_LIB="${pbxlibdir} -ltermcap "
45312 # if --with-TERMCAP=DIR has been specified, use it.
45313 if test "x${TERMCAP_DIR}" != "x"; then
45314 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
45316 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
45317 if test "x" = "x" ; then # no header, assume found
45318 TERMCAP_HEADER_FOUND="1"
45319 else # check for the header
45320 saved_cppflags="${CPPFLAGS}"
45321 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
45322 if test "${ac_cv_header_+set}" = set; then
45323 { echo "$as_me:$LINENO: checking for " >&5
45324 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45325 if test "${ac_cv_header_+set}" = set; then
45326 echo $ECHO_N "(cached) $ECHO_C" >&6
45328 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45329 echo "${ECHO_T}$ac_cv_header_" >&6; }
45330 else
45331 # Is the header compilable?
45332 { echo "$as_me:$LINENO: checking usability" >&5
45333 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45334 cat >conftest.$ac_ext <<_ACEOF
45335 /* confdefs.h. */
45336 _ACEOF
45337 cat confdefs.h >>conftest.$ac_ext
45338 cat >>conftest.$ac_ext <<_ACEOF
45339 /* end confdefs.h. */
45340 $ac_includes_default
45341 #include <>
45342 _ACEOF
45343 rm -f conftest.$ac_objext
45344 if { (ac_try="$ac_compile"
45345 case "(($ac_try" in
45346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45347 *) ac_try_echo=$ac_try;;
45348 esac
45349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45350 (eval "$ac_compile") 2>conftest.er1
45351 ac_status=$?
45352 grep -v '^ *+' conftest.er1 >conftest.err
45353 rm -f conftest.er1
45354 cat conftest.err >&5
45355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356 (exit $ac_status); } && {
45357 test -z "$ac_c_werror_flag" ||
45358 test ! -s conftest.err
45359 } && test -s conftest.$ac_objext; then
45360 ac_header_compiler=yes
45361 else
45362 echo "$as_me: failed program was:" >&5
45363 sed 's/^/| /' conftest.$ac_ext >&5
45365 ac_header_compiler=no
45368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45370 echo "${ECHO_T}$ac_header_compiler" >&6; }
45372 # Is the header present?
45373 { echo "$as_me:$LINENO: checking presence" >&5
45374 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45375 cat >conftest.$ac_ext <<_ACEOF
45376 /* confdefs.h. */
45377 _ACEOF
45378 cat confdefs.h >>conftest.$ac_ext
45379 cat >>conftest.$ac_ext <<_ACEOF
45380 /* end confdefs.h. */
45381 #include <>
45382 _ACEOF
45383 if { (ac_try="$ac_cpp conftest.$ac_ext"
45384 case "(($ac_try" in
45385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45386 *) ac_try_echo=$ac_try;;
45387 esac
45388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45390 ac_status=$?
45391 grep -v '^ *+' conftest.er1 >conftest.err
45392 rm -f conftest.er1
45393 cat conftest.err >&5
45394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45395 (exit $ac_status); } >/dev/null && {
45396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45397 test ! -s conftest.err
45398 }; then
45399 ac_header_preproc=yes
45400 else
45401 echo "$as_me: failed program was:" >&5
45402 sed 's/^/| /' conftest.$ac_ext >&5
45404 ac_header_preproc=no
45407 rm -f conftest.err conftest.$ac_ext
45408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45409 echo "${ECHO_T}$ac_header_preproc" >&6; }
45411 # So? What about this header?
45412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45413 yes:no: )
45414 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45415 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45416 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45417 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45418 ac_header_preproc=yes
45420 no:yes:* )
45421 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45422 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45423 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45424 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45425 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45426 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45427 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45428 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45429 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45430 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45431 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45432 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45433 ( cat <<\_ASBOX
45434 ## ------------------------------- ##
45435 ## Report this to www.asterisk.org ##
45436 ## ------------------------------- ##
45437 _ASBOX
45438 ) | sed "s/^/$as_me: WARNING: /" >&2
45440 esac
45441 { echo "$as_me:$LINENO: checking for " >&5
45442 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45443 if test "${ac_cv_header_+set}" = set; then
45444 echo $ECHO_N "(cached) $ECHO_C" >&6
45445 else
45446 ac_cv_header_=$ac_header_preproc
45448 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45449 echo "${ECHO_T}$ac_cv_header_" >&6; }
45452 if test $ac_cv_header_ = yes; then
45453 TERMCAP_HEADER_FOUND=1
45454 else
45455 TERMCAP_HEADER_FOUND=0
45459 CPPFLAGS="${saved_cppflags}"
45461 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
45462 TERMCAP_LIB=""
45463 TERMCAP_INCLUDE=""
45464 else
45465 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45466 TERMCAP_LIB=""
45468 PBX_TERMCAP=1
45469 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45471 cat >>confdefs.h <<_ACEOF
45472 #define HAVE_TERMCAP 1
45473 _ACEOF
45476 cat >>confdefs.h <<_ACEOF
45477 #define HAVE_TERMCAP_VERSION
45478 _ACEOF
45486 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
45487 pbxlibdir=""
45488 # if --with-TINFO=DIR has been specified, use it.
45489 if test "x${TINFO_DIR}" != "x"; then
45490 if test -d ${TINFO_DIR}/lib; then
45491 pbxlibdir="-L${TINFO_DIR}/lib"
45492 else
45493 pbxlibdir="-L${TINFO_DIR}"
45496 pbxfuncname="tgetent"
45497 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45498 AST_TINFO_FOUND=yes
45499 else
45500 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
45501 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
45502 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
45503 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45504 echo $ECHO_N "(cached) $ECHO_C" >&6
45505 else
45506 ac_check_lib_save_LIBS=$LIBS
45507 LIBS="-ltinfo ${pbxlibdir} $LIBS"
45508 cat >conftest.$ac_ext <<_ACEOF
45509 /* confdefs.h. */
45510 _ACEOF
45511 cat confdefs.h >>conftest.$ac_ext
45512 cat >>conftest.$ac_ext <<_ACEOF
45513 /* end confdefs.h. */
45515 /* Override any GCC internal prototype to avoid an error.
45516 Use char because int might match the return type of a GCC
45517 builtin and then its argument prototype would still apply. */
45518 #ifdef __cplusplus
45519 extern "C"
45520 #endif
45521 char ${pbxfuncname} ();
45523 main ()
45525 return ${pbxfuncname} ();
45527 return 0;
45529 _ACEOF
45530 rm -f conftest.$ac_objext conftest$ac_exeext
45531 if { (ac_try="$ac_link"
45532 case "(($ac_try" in
45533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45534 *) ac_try_echo=$ac_try;;
45535 esac
45536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45537 (eval "$ac_link") 2>conftest.er1
45538 ac_status=$?
45539 grep -v '^ *+' conftest.er1 >conftest.err
45540 rm -f conftest.er1
45541 cat conftest.err >&5
45542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543 (exit $ac_status); } && {
45544 test -z "$ac_c_werror_flag" ||
45545 test ! -s conftest.err
45546 } && test -s conftest$ac_exeext &&
45547 $as_test_x conftest$ac_exeext; then
45548 eval "$as_ac_Lib=yes"
45549 else
45550 echo "$as_me: failed program was:" >&5
45551 sed 's/^/| /' conftest.$ac_ext >&5
45553 eval "$as_ac_Lib=no"
45556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45557 conftest$ac_exeext conftest.$ac_ext
45558 LIBS=$ac_check_lib_save_LIBS
45560 ac_res=`eval echo '${'$as_ac_Lib'}'`
45561 { echo "$as_me:$LINENO: result: $ac_res" >&5
45562 echo "${ECHO_T}$ac_res" >&6; }
45563 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45564 AST_TINFO_FOUND=yes
45565 else
45566 AST_TINFO_FOUND=no
45571 # now check for the header.
45572 if test "${AST_TINFO_FOUND}" = "yes"; then
45573 TINFO_LIB="${pbxlibdir} -ltinfo "
45574 # if --with-TINFO=DIR has been specified, use it.
45575 if test "x${TINFO_DIR}" != "x"; then
45576 TINFO_INCLUDE="-I${TINFO_DIR}/include"
45578 TINFO_INCLUDE="${TINFO_INCLUDE} "
45579 if test "x" = "x" ; then # no header, assume found
45580 TINFO_HEADER_FOUND="1"
45581 else # check for the header
45582 saved_cppflags="${CPPFLAGS}"
45583 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
45584 if test "${ac_cv_header_+set}" = set; then
45585 { echo "$as_me:$LINENO: checking for " >&5
45586 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45587 if test "${ac_cv_header_+set}" = set; then
45588 echo $ECHO_N "(cached) $ECHO_C" >&6
45590 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45591 echo "${ECHO_T}$ac_cv_header_" >&6; }
45592 else
45593 # Is the header compilable?
45594 { echo "$as_me:$LINENO: checking usability" >&5
45595 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45596 cat >conftest.$ac_ext <<_ACEOF
45597 /* confdefs.h. */
45598 _ACEOF
45599 cat confdefs.h >>conftest.$ac_ext
45600 cat >>conftest.$ac_ext <<_ACEOF
45601 /* end confdefs.h. */
45602 $ac_includes_default
45603 #include <>
45604 _ACEOF
45605 rm -f conftest.$ac_objext
45606 if { (ac_try="$ac_compile"
45607 case "(($ac_try" in
45608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45609 *) ac_try_echo=$ac_try;;
45610 esac
45611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45612 (eval "$ac_compile") 2>conftest.er1
45613 ac_status=$?
45614 grep -v '^ *+' conftest.er1 >conftest.err
45615 rm -f conftest.er1
45616 cat conftest.err >&5
45617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618 (exit $ac_status); } && {
45619 test -z "$ac_c_werror_flag" ||
45620 test ! -s conftest.err
45621 } && test -s conftest.$ac_objext; then
45622 ac_header_compiler=yes
45623 else
45624 echo "$as_me: failed program was:" >&5
45625 sed 's/^/| /' conftest.$ac_ext >&5
45627 ac_header_compiler=no
45630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45632 echo "${ECHO_T}$ac_header_compiler" >&6; }
45634 # Is the header present?
45635 { echo "$as_me:$LINENO: checking presence" >&5
45636 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45637 cat >conftest.$ac_ext <<_ACEOF
45638 /* confdefs.h. */
45639 _ACEOF
45640 cat confdefs.h >>conftest.$ac_ext
45641 cat >>conftest.$ac_ext <<_ACEOF
45642 /* end confdefs.h. */
45643 #include <>
45644 _ACEOF
45645 if { (ac_try="$ac_cpp conftest.$ac_ext"
45646 case "(($ac_try" in
45647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45648 *) ac_try_echo=$ac_try;;
45649 esac
45650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45652 ac_status=$?
45653 grep -v '^ *+' conftest.er1 >conftest.err
45654 rm -f conftest.er1
45655 cat conftest.err >&5
45656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45657 (exit $ac_status); } >/dev/null && {
45658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45659 test ! -s conftest.err
45660 }; then
45661 ac_header_preproc=yes
45662 else
45663 echo "$as_me: failed program was:" >&5
45664 sed 's/^/| /' conftest.$ac_ext >&5
45666 ac_header_preproc=no
45669 rm -f conftest.err conftest.$ac_ext
45670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45671 echo "${ECHO_T}$ac_header_preproc" >&6; }
45673 # So? What about this header?
45674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45675 yes:no: )
45676 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45677 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45678 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45679 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45680 ac_header_preproc=yes
45682 no:yes:* )
45683 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45684 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45685 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45686 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45687 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45688 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45689 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45690 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45691 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45692 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45693 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45694 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45695 ( cat <<\_ASBOX
45696 ## ------------------------------- ##
45697 ## Report this to www.asterisk.org ##
45698 ## ------------------------------- ##
45699 _ASBOX
45700 ) | sed "s/^/$as_me: WARNING: /" >&2
45702 esac
45703 { echo "$as_me:$LINENO: checking for " >&5
45704 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45705 if test "${ac_cv_header_+set}" = set; then
45706 echo $ECHO_N "(cached) $ECHO_C" >&6
45707 else
45708 ac_cv_header_=$ac_header_preproc
45710 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45711 echo "${ECHO_T}$ac_cv_header_" >&6; }
45714 if test $ac_cv_header_ = yes; then
45715 TINFO_HEADER_FOUND=1
45716 else
45717 TINFO_HEADER_FOUND=0
45721 CPPFLAGS="${saved_cppflags}"
45723 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
45724 TINFO_LIB=""
45725 TINFO_INCLUDE=""
45726 else
45727 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45728 TINFO_LIB=""
45730 PBX_TINFO=1
45731 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45733 cat >>confdefs.h <<_ACEOF
45734 #define HAVE_TINFO 1
45735 _ACEOF
45738 cat >>confdefs.h <<_ACEOF
45739 #define HAVE_TINFO_VERSION
45740 _ACEOF
45747 if test "${host_os}" != "linux-gnu" ; then
45748 tonezone_extra="-lm"
45751 # new tonezone, version 1.4.0
45753 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
45754 pbxlibdir=""
45755 # if --with-TONEZONE=DIR has been specified, use it.
45756 if test "x${TONEZONE_DIR}" != "x"; then
45757 if test -d ${TONEZONE_DIR}/lib; then
45758 pbxlibdir="-L${TONEZONE_DIR}/lib"
45759 else
45760 pbxlibdir="-L${TONEZONE_DIR}"
45763 pbxfuncname="tone_zone_find"
45764 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45765 AST_TONEZONE_FOUND=yes
45766 else
45767 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
45768 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
45769 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
45770 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45771 echo $ECHO_N "(cached) $ECHO_C" >&6
45772 else
45773 ac_check_lib_save_LIBS=$LIBS
45774 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
45775 cat >conftest.$ac_ext <<_ACEOF
45776 /* confdefs.h. */
45777 _ACEOF
45778 cat confdefs.h >>conftest.$ac_ext
45779 cat >>conftest.$ac_ext <<_ACEOF
45780 /* end confdefs.h. */
45782 /* Override any GCC internal prototype to avoid an error.
45783 Use char because int might match the return type of a GCC
45784 builtin and then its argument prototype would still apply. */
45785 #ifdef __cplusplus
45786 extern "C"
45787 #endif
45788 char ${pbxfuncname} ();
45790 main ()
45792 return ${pbxfuncname} ();
45794 return 0;
45796 _ACEOF
45797 rm -f conftest.$ac_objext conftest$ac_exeext
45798 if { (ac_try="$ac_link"
45799 case "(($ac_try" in
45800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45801 *) ac_try_echo=$ac_try;;
45802 esac
45803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45804 (eval "$ac_link") 2>conftest.er1
45805 ac_status=$?
45806 grep -v '^ *+' conftest.er1 >conftest.err
45807 rm -f conftest.er1
45808 cat conftest.err >&5
45809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45810 (exit $ac_status); } && {
45811 test -z "$ac_c_werror_flag" ||
45812 test ! -s conftest.err
45813 } && test -s conftest$ac_exeext &&
45814 $as_test_x conftest$ac_exeext; then
45815 eval "$as_ac_Lib=yes"
45816 else
45817 echo "$as_me: failed program was:" >&5
45818 sed 's/^/| /' conftest.$ac_ext >&5
45820 eval "$as_ac_Lib=no"
45823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45824 conftest$ac_exeext conftest.$ac_ext
45825 LIBS=$ac_check_lib_save_LIBS
45827 ac_res=`eval echo '${'$as_ac_Lib'}'`
45828 { echo "$as_me:$LINENO: result: $ac_res" >&5
45829 echo "${ECHO_T}$ac_res" >&6; }
45830 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45831 AST_TONEZONE_FOUND=yes
45832 else
45833 AST_TONEZONE_FOUND=no
45838 # now check for the header.
45839 if test "${AST_TONEZONE_FOUND}" = "yes"; then
45840 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
45841 # if --with-TONEZONE=DIR has been specified, use it.
45842 if test "x${TONEZONE_DIR}" != "x"; then
45843 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
45845 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
45846 if test "xzaptel/tonezone.h" = "x" ; then # no header, assume found
45847 TONEZONE_HEADER_FOUND="1"
45848 else # check for the header
45849 saved_cppflags="${CPPFLAGS}"
45850 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
45851 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45852 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
45853 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
45854 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45855 echo $ECHO_N "(cached) $ECHO_C" >&6
45857 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
45858 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
45859 else
45860 # Is the header compilable?
45861 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
45862 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
45863 cat >conftest.$ac_ext <<_ACEOF
45864 /* confdefs.h. */
45865 _ACEOF
45866 cat confdefs.h >>conftest.$ac_ext
45867 cat >>conftest.$ac_ext <<_ACEOF
45868 /* end confdefs.h. */
45869 $ac_includes_default
45870 #include <zaptel/tonezone.h>
45871 _ACEOF
45872 rm -f conftest.$ac_objext
45873 if { (ac_try="$ac_compile"
45874 case "(($ac_try" in
45875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45876 *) ac_try_echo=$ac_try;;
45877 esac
45878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45879 (eval "$ac_compile") 2>conftest.er1
45880 ac_status=$?
45881 grep -v '^ *+' conftest.er1 >conftest.err
45882 rm -f conftest.er1
45883 cat conftest.err >&5
45884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45885 (exit $ac_status); } && {
45886 test -z "$ac_c_werror_flag" ||
45887 test ! -s conftest.err
45888 } && test -s conftest.$ac_objext; then
45889 ac_header_compiler=yes
45890 else
45891 echo "$as_me: failed program was:" >&5
45892 sed 's/^/| /' conftest.$ac_ext >&5
45894 ac_header_compiler=no
45897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45899 echo "${ECHO_T}$ac_header_compiler" >&6; }
45901 # Is the header present?
45902 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
45903 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
45904 cat >conftest.$ac_ext <<_ACEOF
45905 /* confdefs.h. */
45906 _ACEOF
45907 cat confdefs.h >>conftest.$ac_ext
45908 cat >>conftest.$ac_ext <<_ACEOF
45909 /* end confdefs.h. */
45910 #include <zaptel/tonezone.h>
45911 _ACEOF
45912 if { (ac_try="$ac_cpp conftest.$ac_ext"
45913 case "(($ac_try" in
45914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45915 *) ac_try_echo=$ac_try;;
45916 esac
45917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45919 ac_status=$?
45920 grep -v '^ *+' conftest.er1 >conftest.err
45921 rm -f conftest.er1
45922 cat conftest.err >&5
45923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924 (exit $ac_status); } >/dev/null && {
45925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45926 test ! -s conftest.err
45927 }; then
45928 ac_header_preproc=yes
45929 else
45930 echo "$as_me: failed program was:" >&5
45931 sed 's/^/| /' conftest.$ac_ext >&5
45933 ac_header_preproc=no
45936 rm -f conftest.err conftest.$ac_ext
45937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45938 echo "${ECHO_T}$ac_header_preproc" >&6; }
45940 # So? What about this header?
45941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45942 yes:no: )
45943 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
45944 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45945 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
45946 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
45947 ac_header_preproc=yes
45949 no:yes:* )
45950 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
45951 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
45952 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
45953 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
45954 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
45955 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
45956 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
45957 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
45958 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
45959 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
45960 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
45961 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
45962 ( cat <<\_ASBOX
45963 ## ------------------------------- ##
45964 ## Report this to www.asterisk.org ##
45965 ## ------------------------------- ##
45966 _ASBOX
45967 ) | sed "s/^/$as_me: WARNING: /" >&2
45969 esac
45970 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
45971 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
45972 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45973 echo $ECHO_N "(cached) $ECHO_C" >&6
45974 else
45975 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
45977 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
45978 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
45981 if test $ac_cv_header_zaptel_tonezone_h = yes; then
45982 TONEZONE_HEADER_FOUND=1
45983 else
45984 TONEZONE_HEADER_FOUND=0
45988 CPPFLAGS="${saved_cppflags}"
45990 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
45991 TONEZONE_LIB=""
45992 TONEZONE_INCLUDE=""
45993 else
45994 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45995 TONEZONE_LIB=""
45997 PBX_TONEZONE=1
45998 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46000 cat >>confdefs.h <<_ACEOF
46001 #define HAVE_TONEZONE 1
46002 _ACEOF
46005 cat >>confdefs.h <<_ACEOF
46006 #define HAVE_TONEZONE_VERSION 140
46007 _ACEOF
46013 # other case, old tonezone (0.80)
46015 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
46016 pbxlibdir=""
46017 # if --with-TONEZONE=DIR has been specified, use it.
46018 if test "x${TONEZONE_DIR}" != "x"; then
46019 if test -d ${TONEZONE_DIR}/lib; then
46020 pbxlibdir="-L${TONEZONE_DIR}/lib"
46021 else
46022 pbxlibdir="-L${TONEZONE_DIR}"
46025 pbxfuncname="tone_zone_find"
46026 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46027 AST_TONEZONE_FOUND=yes
46028 else
46029 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
46030 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
46031 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
46032 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46033 echo $ECHO_N "(cached) $ECHO_C" >&6
46034 else
46035 ac_check_lib_save_LIBS=$LIBS
46036 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
46037 cat >conftest.$ac_ext <<_ACEOF
46038 /* confdefs.h. */
46039 _ACEOF
46040 cat confdefs.h >>conftest.$ac_ext
46041 cat >>conftest.$ac_ext <<_ACEOF
46042 /* end confdefs.h. */
46044 /* Override any GCC internal prototype to avoid an error.
46045 Use char because int might match the return type of a GCC
46046 builtin and then its argument prototype would still apply. */
46047 #ifdef __cplusplus
46048 extern "C"
46049 #endif
46050 char ${pbxfuncname} ();
46052 main ()
46054 return ${pbxfuncname} ();
46056 return 0;
46058 _ACEOF
46059 rm -f conftest.$ac_objext conftest$ac_exeext
46060 if { (ac_try="$ac_link"
46061 case "(($ac_try" in
46062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46063 *) ac_try_echo=$ac_try;;
46064 esac
46065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46066 (eval "$ac_link") 2>conftest.er1
46067 ac_status=$?
46068 grep -v '^ *+' conftest.er1 >conftest.err
46069 rm -f conftest.er1
46070 cat conftest.err >&5
46071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46072 (exit $ac_status); } && {
46073 test -z "$ac_c_werror_flag" ||
46074 test ! -s conftest.err
46075 } && test -s conftest$ac_exeext &&
46076 $as_test_x conftest$ac_exeext; then
46077 eval "$as_ac_Lib=yes"
46078 else
46079 echo "$as_me: failed program was:" >&5
46080 sed 's/^/| /' conftest.$ac_ext >&5
46082 eval "$as_ac_Lib=no"
46085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46086 conftest$ac_exeext conftest.$ac_ext
46087 LIBS=$ac_check_lib_save_LIBS
46089 ac_res=`eval echo '${'$as_ac_Lib'}'`
46090 { echo "$as_me:$LINENO: result: $ac_res" >&5
46091 echo "${ECHO_T}$ac_res" >&6; }
46092 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46093 AST_TONEZONE_FOUND=yes
46094 else
46095 AST_TONEZONE_FOUND=no
46100 # now check for the header.
46101 if test "${AST_TONEZONE_FOUND}" = "yes"; then
46102 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
46103 # if --with-TONEZONE=DIR has been specified, use it.
46104 if test "x${TONEZONE_DIR}" != "x"; then
46105 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
46107 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
46108 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
46109 TONEZONE_HEADER_FOUND="1"
46110 else # check for the header
46111 saved_cppflags="${CPPFLAGS}"
46112 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
46113 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46114 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
46115 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
46116 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46117 echo $ECHO_N "(cached) $ECHO_C" >&6
46119 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
46120 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
46121 else
46122 # Is the header compilable?
46123 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
46124 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
46125 cat >conftest.$ac_ext <<_ACEOF
46126 /* confdefs.h. */
46127 _ACEOF
46128 cat confdefs.h >>conftest.$ac_ext
46129 cat >>conftest.$ac_ext <<_ACEOF
46130 /* end confdefs.h. */
46131 $ac_includes_default
46132 #include <zaptel/zaptel.h>
46133 _ACEOF
46134 rm -f conftest.$ac_objext
46135 if { (ac_try="$ac_compile"
46136 case "(($ac_try" in
46137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46138 *) ac_try_echo=$ac_try;;
46139 esac
46140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46141 (eval "$ac_compile") 2>conftest.er1
46142 ac_status=$?
46143 grep -v '^ *+' conftest.er1 >conftest.err
46144 rm -f conftest.er1
46145 cat conftest.err >&5
46146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46147 (exit $ac_status); } && {
46148 test -z "$ac_c_werror_flag" ||
46149 test ! -s conftest.err
46150 } && test -s conftest.$ac_objext; then
46151 ac_header_compiler=yes
46152 else
46153 echo "$as_me: failed program was:" >&5
46154 sed 's/^/| /' conftest.$ac_ext >&5
46156 ac_header_compiler=no
46159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46161 echo "${ECHO_T}$ac_header_compiler" >&6; }
46163 # Is the header present?
46164 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
46165 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
46166 cat >conftest.$ac_ext <<_ACEOF
46167 /* confdefs.h. */
46168 _ACEOF
46169 cat confdefs.h >>conftest.$ac_ext
46170 cat >>conftest.$ac_ext <<_ACEOF
46171 /* end confdefs.h. */
46172 #include <zaptel/zaptel.h>
46173 _ACEOF
46174 if { (ac_try="$ac_cpp conftest.$ac_ext"
46175 case "(($ac_try" in
46176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46177 *) ac_try_echo=$ac_try;;
46178 esac
46179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46181 ac_status=$?
46182 grep -v '^ *+' conftest.er1 >conftest.err
46183 rm -f conftest.er1
46184 cat conftest.err >&5
46185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46186 (exit $ac_status); } >/dev/null && {
46187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46188 test ! -s conftest.err
46189 }; then
46190 ac_header_preproc=yes
46191 else
46192 echo "$as_me: failed program was:" >&5
46193 sed 's/^/| /' conftest.$ac_ext >&5
46195 ac_header_preproc=no
46198 rm -f conftest.err conftest.$ac_ext
46199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46200 echo "${ECHO_T}$ac_header_preproc" >&6; }
46202 # So? What about this header?
46203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46204 yes:no: )
46205 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
46206 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46207 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
46208 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
46209 ac_header_preproc=yes
46211 no:yes:* )
46212 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
46213 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
46214 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
46215 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
46216 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
46217 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
46218 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
46219 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
46220 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
46221 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
46222 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
46223 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
46224 ( cat <<\_ASBOX
46225 ## ------------------------------- ##
46226 ## Report this to www.asterisk.org ##
46227 ## ------------------------------- ##
46228 _ASBOX
46229 ) | sed "s/^/$as_me: WARNING: /" >&2
46231 esac
46232 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
46233 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
46234 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46235 echo $ECHO_N "(cached) $ECHO_C" >&6
46236 else
46237 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
46239 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
46240 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
46243 if test $ac_cv_header_zaptel_zaptel_h = yes; then
46244 TONEZONE_HEADER_FOUND=1
46245 else
46246 TONEZONE_HEADER_FOUND=0
46250 CPPFLAGS="${saved_cppflags}"
46252 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
46253 TONEZONE_LIB=""
46254 TONEZONE_INCLUDE=""
46255 else
46256 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46257 TONEZONE_LIB=""
46259 PBX_TONEZONE=1
46260 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46262 cat >>confdefs.h <<_ACEOF
46263 #define HAVE_TONEZONE 1
46264 _ACEOF
46267 cat >>confdefs.h <<_ACEOF
46268 #define HAVE_TONEZONE_VERSION 80
46269 _ACEOF
46277 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
46278 pbxlibdir=""
46279 # if --with-USB=DIR has been specified, use it.
46280 if test "x${USB_DIR}" != "x"; then
46281 if test -d ${USB_DIR}/lib; then
46282 pbxlibdir="-L${USB_DIR}/lib"
46283 else
46284 pbxlibdir="-L${USB_DIR}"
46287 pbxfuncname="usb_init"
46288 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46289 AST_USB_FOUND=yes
46290 else
46291 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
46292 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
46293 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
46294 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46295 echo $ECHO_N "(cached) $ECHO_C" >&6
46296 else
46297 ac_check_lib_save_LIBS=$LIBS
46298 LIBS="-lusb ${pbxlibdir} $LIBS"
46299 cat >conftest.$ac_ext <<_ACEOF
46300 /* confdefs.h. */
46301 _ACEOF
46302 cat confdefs.h >>conftest.$ac_ext
46303 cat >>conftest.$ac_ext <<_ACEOF
46304 /* end confdefs.h. */
46306 /* Override any GCC internal prototype to avoid an error.
46307 Use char because int might match the return type of a GCC
46308 builtin and then its argument prototype would still apply. */
46309 #ifdef __cplusplus
46310 extern "C"
46311 #endif
46312 char ${pbxfuncname} ();
46314 main ()
46316 return ${pbxfuncname} ();
46318 return 0;
46320 _ACEOF
46321 rm -f conftest.$ac_objext conftest$ac_exeext
46322 if { (ac_try="$ac_link"
46323 case "(($ac_try" in
46324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46325 *) ac_try_echo=$ac_try;;
46326 esac
46327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46328 (eval "$ac_link") 2>conftest.er1
46329 ac_status=$?
46330 grep -v '^ *+' conftest.er1 >conftest.err
46331 rm -f conftest.er1
46332 cat conftest.err >&5
46333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46334 (exit $ac_status); } && {
46335 test -z "$ac_c_werror_flag" ||
46336 test ! -s conftest.err
46337 } && test -s conftest$ac_exeext &&
46338 $as_test_x conftest$ac_exeext; then
46339 eval "$as_ac_Lib=yes"
46340 else
46341 echo "$as_me: failed program was:" >&5
46342 sed 's/^/| /' conftest.$ac_ext >&5
46344 eval "$as_ac_Lib=no"
46347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46348 conftest$ac_exeext conftest.$ac_ext
46349 LIBS=$ac_check_lib_save_LIBS
46351 ac_res=`eval echo '${'$as_ac_Lib'}'`
46352 { echo "$as_me:$LINENO: result: $ac_res" >&5
46353 echo "${ECHO_T}$ac_res" >&6; }
46354 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46355 AST_USB_FOUND=yes
46356 else
46357 AST_USB_FOUND=no
46362 # now check for the header.
46363 if test "${AST_USB_FOUND}" = "yes"; then
46364 USB_LIB="${pbxlibdir} -lusb "
46365 # if --with-USB=DIR has been specified, use it.
46366 if test "x${USB_DIR}" != "x"; then
46367 USB_INCLUDE="-I${USB_DIR}/include"
46369 USB_INCLUDE="${USB_INCLUDE} "
46370 if test "xusb.h" = "x" ; then # no header, assume found
46371 USB_HEADER_FOUND="1"
46372 else # check for the header
46373 saved_cppflags="${CPPFLAGS}"
46374 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
46375 if test "${ac_cv_header_usb_h+set}" = set; then
46376 { echo "$as_me:$LINENO: checking for usb.h" >&5
46377 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46378 if test "${ac_cv_header_usb_h+set}" = set; then
46379 echo $ECHO_N "(cached) $ECHO_C" >&6
46381 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46382 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46383 else
46384 # Is the header compilable?
46385 { echo "$as_me:$LINENO: checking usb.h usability" >&5
46386 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
46387 cat >conftest.$ac_ext <<_ACEOF
46388 /* confdefs.h. */
46389 _ACEOF
46390 cat confdefs.h >>conftest.$ac_ext
46391 cat >>conftest.$ac_ext <<_ACEOF
46392 /* end confdefs.h. */
46393 $ac_includes_default
46394 #include <usb.h>
46395 _ACEOF
46396 rm -f conftest.$ac_objext
46397 if { (ac_try="$ac_compile"
46398 case "(($ac_try" in
46399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46400 *) ac_try_echo=$ac_try;;
46401 esac
46402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46403 (eval "$ac_compile") 2>conftest.er1
46404 ac_status=$?
46405 grep -v '^ *+' conftest.er1 >conftest.err
46406 rm -f conftest.er1
46407 cat conftest.err >&5
46408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46409 (exit $ac_status); } && {
46410 test -z "$ac_c_werror_flag" ||
46411 test ! -s conftest.err
46412 } && test -s conftest.$ac_objext; then
46413 ac_header_compiler=yes
46414 else
46415 echo "$as_me: failed program was:" >&5
46416 sed 's/^/| /' conftest.$ac_ext >&5
46418 ac_header_compiler=no
46421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46423 echo "${ECHO_T}$ac_header_compiler" >&6; }
46425 # Is the header present?
46426 { echo "$as_me:$LINENO: checking usb.h presence" >&5
46427 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
46428 cat >conftest.$ac_ext <<_ACEOF
46429 /* confdefs.h. */
46430 _ACEOF
46431 cat confdefs.h >>conftest.$ac_ext
46432 cat >>conftest.$ac_ext <<_ACEOF
46433 /* end confdefs.h. */
46434 #include <usb.h>
46435 _ACEOF
46436 if { (ac_try="$ac_cpp conftest.$ac_ext"
46437 case "(($ac_try" in
46438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46439 *) ac_try_echo=$ac_try;;
46440 esac
46441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46443 ac_status=$?
46444 grep -v '^ *+' conftest.er1 >conftest.err
46445 rm -f conftest.er1
46446 cat conftest.err >&5
46447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46448 (exit $ac_status); } >/dev/null && {
46449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46450 test ! -s conftest.err
46451 }; then
46452 ac_header_preproc=yes
46453 else
46454 echo "$as_me: failed program was:" >&5
46455 sed 's/^/| /' conftest.$ac_ext >&5
46457 ac_header_preproc=no
46460 rm -f conftest.err conftest.$ac_ext
46461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46462 echo "${ECHO_T}$ac_header_preproc" >&6; }
46464 # So? What about this header?
46465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46466 yes:no: )
46467 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
46468 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46469 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
46470 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
46471 ac_header_preproc=yes
46473 no:yes:* )
46474 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
46475 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
46476 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
46477 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
46478 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
46479 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
46480 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
46481 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
46482 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
46483 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
46484 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
46485 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
46486 ( cat <<\_ASBOX
46487 ## ------------------------------- ##
46488 ## Report this to www.asterisk.org ##
46489 ## ------------------------------- ##
46490 _ASBOX
46491 ) | sed "s/^/$as_me: WARNING: /" >&2
46493 esac
46494 { echo "$as_me:$LINENO: checking for usb.h" >&5
46495 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46496 if test "${ac_cv_header_usb_h+set}" = set; then
46497 echo $ECHO_N "(cached) $ECHO_C" >&6
46498 else
46499 ac_cv_header_usb_h=$ac_header_preproc
46501 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46502 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46505 if test $ac_cv_header_usb_h = yes; then
46506 USB_HEADER_FOUND=1
46507 else
46508 USB_HEADER_FOUND=0
46512 CPPFLAGS="${saved_cppflags}"
46514 if test "x${USB_HEADER_FOUND}" = "x0" ; then
46515 USB_LIB=""
46516 USB_INCLUDE=""
46517 else
46518 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46519 USB_LIB=""
46521 PBX_USB=1
46522 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46524 cat >>confdefs.h <<_ACEOF
46525 #define HAVE_USB 1
46526 _ACEOF
46529 cat >>confdefs.h <<_ACEOF
46530 #define HAVE_USB_VERSION
46531 _ACEOF
46539 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
46540 pbxlibdir=""
46541 # if --with-VORBIS=DIR has been specified, use it.
46542 if test "x${VORBIS_DIR}" != "x"; then
46543 if test -d ${VORBIS_DIR}/lib; then
46544 pbxlibdir="-L${VORBIS_DIR}/lib"
46545 else
46546 pbxlibdir="-L${VORBIS_DIR}"
46549 pbxfuncname="vorbis_info_init"
46550 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46551 AST_VORBIS_FOUND=yes
46552 else
46553 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
46554 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
46555 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
46556 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46557 echo $ECHO_N "(cached) $ECHO_C" >&6
46558 else
46559 ac_check_lib_save_LIBS=$LIBS
46560 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
46561 cat >conftest.$ac_ext <<_ACEOF
46562 /* confdefs.h. */
46563 _ACEOF
46564 cat confdefs.h >>conftest.$ac_ext
46565 cat >>conftest.$ac_ext <<_ACEOF
46566 /* end confdefs.h. */
46568 /* Override any GCC internal prototype to avoid an error.
46569 Use char because int might match the return type of a GCC
46570 builtin and then its argument prototype would still apply. */
46571 #ifdef __cplusplus
46572 extern "C"
46573 #endif
46574 char ${pbxfuncname} ();
46576 main ()
46578 return ${pbxfuncname} ();
46580 return 0;
46582 _ACEOF
46583 rm -f conftest.$ac_objext conftest$ac_exeext
46584 if { (ac_try="$ac_link"
46585 case "(($ac_try" in
46586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46587 *) ac_try_echo=$ac_try;;
46588 esac
46589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46590 (eval "$ac_link") 2>conftest.er1
46591 ac_status=$?
46592 grep -v '^ *+' conftest.er1 >conftest.err
46593 rm -f conftest.er1
46594 cat conftest.err >&5
46595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46596 (exit $ac_status); } && {
46597 test -z "$ac_c_werror_flag" ||
46598 test ! -s conftest.err
46599 } && test -s conftest$ac_exeext &&
46600 $as_test_x conftest$ac_exeext; then
46601 eval "$as_ac_Lib=yes"
46602 else
46603 echo "$as_me: failed program was:" >&5
46604 sed 's/^/| /' conftest.$ac_ext >&5
46606 eval "$as_ac_Lib=no"
46609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46610 conftest$ac_exeext conftest.$ac_ext
46611 LIBS=$ac_check_lib_save_LIBS
46613 ac_res=`eval echo '${'$as_ac_Lib'}'`
46614 { echo "$as_me:$LINENO: result: $ac_res" >&5
46615 echo "${ECHO_T}$ac_res" >&6; }
46616 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46617 AST_VORBIS_FOUND=yes
46618 else
46619 AST_VORBIS_FOUND=no
46624 # now check for the header.
46625 if test "${AST_VORBIS_FOUND}" = "yes"; then
46626 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
46627 # if --with-VORBIS=DIR has been specified, use it.
46628 if test "x${VORBIS_DIR}" != "x"; then
46629 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
46631 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
46632 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
46633 VORBIS_HEADER_FOUND="1"
46634 else # check for the header
46635 saved_cppflags="${CPPFLAGS}"
46636 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
46637 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46638 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46639 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46640 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46641 echo $ECHO_N "(cached) $ECHO_C" >&6
46643 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46644 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46645 else
46646 # Is the header compilable?
46647 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
46648 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
46649 cat >conftest.$ac_ext <<_ACEOF
46650 /* confdefs.h. */
46651 _ACEOF
46652 cat confdefs.h >>conftest.$ac_ext
46653 cat >>conftest.$ac_ext <<_ACEOF
46654 /* end confdefs.h. */
46655 $ac_includes_default
46656 #include <vorbis/codec.h>
46657 _ACEOF
46658 rm -f conftest.$ac_objext
46659 if { (ac_try="$ac_compile"
46660 case "(($ac_try" in
46661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46662 *) ac_try_echo=$ac_try;;
46663 esac
46664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46665 (eval "$ac_compile") 2>conftest.er1
46666 ac_status=$?
46667 grep -v '^ *+' conftest.er1 >conftest.err
46668 rm -f conftest.er1
46669 cat conftest.err >&5
46670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46671 (exit $ac_status); } && {
46672 test -z "$ac_c_werror_flag" ||
46673 test ! -s conftest.err
46674 } && test -s conftest.$ac_objext; then
46675 ac_header_compiler=yes
46676 else
46677 echo "$as_me: failed program was:" >&5
46678 sed 's/^/| /' conftest.$ac_ext >&5
46680 ac_header_compiler=no
46683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46685 echo "${ECHO_T}$ac_header_compiler" >&6; }
46687 # Is the header present?
46688 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
46689 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
46690 cat >conftest.$ac_ext <<_ACEOF
46691 /* confdefs.h. */
46692 _ACEOF
46693 cat confdefs.h >>conftest.$ac_ext
46694 cat >>conftest.$ac_ext <<_ACEOF
46695 /* end confdefs.h. */
46696 #include <vorbis/codec.h>
46697 _ACEOF
46698 if { (ac_try="$ac_cpp conftest.$ac_ext"
46699 case "(($ac_try" in
46700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46701 *) ac_try_echo=$ac_try;;
46702 esac
46703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46705 ac_status=$?
46706 grep -v '^ *+' conftest.er1 >conftest.err
46707 rm -f conftest.er1
46708 cat conftest.err >&5
46709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46710 (exit $ac_status); } >/dev/null && {
46711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46712 test ! -s conftest.err
46713 }; then
46714 ac_header_preproc=yes
46715 else
46716 echo "$as_me: failed program was:" >&5
46717 sed 's/^/| /' conftest.$ac_ext >&5
46719 ac_header_preproc=no
46722 rm -f conftest.err conftest.$ac_ext
46723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46724 echo "${ECHO_T}$ac_header_preproc" >&6; }
46726 # So? What about this header?
46727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46728 yes:no: )
46729 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46730 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46731 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
46732 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
46733 ac_header_preproc=yes
46735 no:yes:* )
46736 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
46737 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
46738 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
46739 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
46740 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
46741 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
46742 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
46743 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46744 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
46745 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
46746 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
46747 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
46748 ( cat <<\_ASBOX
46749 ## ------------------------------- ##
46750 ## Report this to www.asterisk.org ##
46751 ## ------------------------------- ##
46752 _ASBOX
46753 ) | sed "s/^/$as_me: WARNING: /" >&2
46755 esac
46756 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46757 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46758 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46759 echo $ECHO_N "(cached) $ECHO_C" >&6
46760 else
46761 ac_cv_header_vorbis_codec_h=$ac_header_preproc
46763 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46764 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46767 if test $ac_cv_header_vorbis_codec_h = yes; then
46768 VORBIS_HEADER_FOUND=1
46769 else
46770 VORBIS_HEADER_FOUND=0
46774 CPPFLAGS="${saved_cppflags}"
46776 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
46777 VORBIS_LIB=""
46778 VORBIS_INCLUDE=""
46779 else
46780 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46781 VORBIS_LIB=""
46783 PBX_VORBIS=1
46784 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46786 cat >>confdefs.h <<_ACEOF
46787 #define HAVE_VORBIS 1
46788 _ACEOF
46791 cat >>confdefs.h <<_ACEOF
46792 #define HAVE_VORBIS_VERSION
46793 _ACEOF
46800 ac_ext=cpp
46801 ac_cpp='$CXXCPP $CPPFLAGS'
46802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46807 if test "${USE_VPB}" != "no"; then
46808 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
46809 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
46810 saved_libs="${LIBS}"
46811 saved_cppflags="${CPPFLAGS}"
46812 if test "x${VPB_DIR}" != "x"; then
46813 if test -d ${VPB_DIR}/lib; then
46814 vpblibdir=${VPB_DIR}/lib
46815 else
46816 vpblibdir=${VPB_DIR}
46818 LIBS="${LIBS} -L${vpblibdir}"
46819 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
46821 LIBS="${LIBS} -lvpb -lpthread"
46822 cat >conftest.$ac_ext <<_ACEOF
46824 /* confdefs.h. */
46825 _ACEOF
46826 cat confdefs.h >>conftest.$ac_ext
46827 cat >>conftest.$ac_ext <<_ACEOF
46828 /* end confdefs.h. */
46829 #include <vpbapi.h>
46831 main ()
46833 int q = vpb_open(0,0);
46835 return 0;
46838 _ACEOF
46839 rm -f conftest.$ac_objext conftest$ac_exeext
46840 if { (ac_try="$ac_link"
46841 case "(($ac_try" in
46842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46843 *) ac_try_echo=$ac_try;;
46844 esac
46845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46846 (eval "$ac_link") 2>conftest.er1
46847 ac_status=$?
46848 grep -v '^ *+' conftest.er1 >conftest.err
46849 rm -f conftest.er1
46850 cat conftest.err >&5
46851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852 (exit $ac_status); } && {
46853 test -z "$ac_cxx_werror_flag" ||
46854 test ! -s conftest.err
46855 } && test -s conftest$ac_exeext &&
46856 $as_test_x conftest$ac_exeext; then
46857 { echo "$as_me:$LINENO: result: yes" >&5
46858 echo "${ECHO_T}yes" >&6; }
46859 ac_cv_lib_vpb_vpb_open="yes"
46861 else
46862 echo "$as_me: failed program was:" >&5
46863 sed 's/^/| /' conftest.$ac_ext >&5
46865 { echo "$as_me:$LINENO: result: no" >&5
46866 echo "${ECHO_T}no" >&6; }
46867 ac_cv_lib_vpb_vpb_open="no"
46872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46873 conftest$ac_exeext conftest.$ac_ext
46874 LIBS="${saved_libs}"
46875 CPPFLAGS="${saved_cppflags}"
46876 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
46877 VPB_LIB="-lvpb"
46878 if test "${VPB_DIR}" != ""; then
46879 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
46880 VPB_INCLUDE="-I${VPB_DIR}/include"
46882 PBX_VPB=1
46884 cat >>confdefs.h <<\_ACEOF
46885 #define HAVE_VPB 1
46886 _ACEOF
46891 ac_ext=c
46892 ac_cpp='$CPP $CPPFLAGS'
46893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46899 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
46900 pbxlibdir=""
46901 # if --with-ZLIB=DIR has been specified, use it.
46902 if test "x${ZLIB_DIR}" != "x"; then
46903 if test -d ${ZLIB_DIR}/lib; then
46904 pbxlibdir="-L${ZLIB_DIR}/lib"
46905 else
46906 pbxlibdir="-L${ZLIB_DIR}"
46909 pbxfuncname="compress"
46910 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46911 AST_ZLIB_FOUND=yes
46912 else
46913 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
46914 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
46915 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
46916 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46917 echo $ECHO_N "(cached) $ECHO_C" >&6
46918 else
46919 ac_check_lib_save_LIBS=$LIBS
46920 LIBS="-lz ${pbxlibdir} $LIBS"
46921 cat >conftest.$ac_ext <<_ACEOF
46922 /* confdefs.h. */
46923 _ACEOF
46924 cat confdefs.h >>conftest.$ac_ext
46925 cat >>conftest.$ac_ext <<_ACEOF
46926 /* end confdefs.h. */
46928 /* Override any GCC internal prototype to avoid an error.
46929 Use char because int might match the return type of a GCC
46930 builtin and then its argument prototype would still apply. */
46931 #ifdef __cplusplus
46932 extern "C"
46933 #endif
46934 char ${pbxfuncname} ();
46936 main ()
46938 return ${pbxfuncname} ();
46940 return 0;
46942 _ACEOF
46943 rm -f conftest.$ac_objext conftest$ac_exeext
46944 if { (ac_try="$ac_link"
46945 case "(($ac_try" in
46946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46947 *) ac_try_echo=$ac_try;;
46948 esac
46949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46950 (eval "$ac_link") 2>conftest.er1
46951 ac_status=$?
46952 grep -v '^ *+' conftest.er1 >conftest.err
46953 rm -f conftest.er1
46954 cat conftest.err >&5
46955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46956 (exit $ac_status); } && {
46957 test -z "$ac_c_werror_flag" ||
46958 test ! -s conftest.err
46959 } && test -s conftest$ac_exeext &&
46960 $as_test_x conftest$ac_exeext; then
46961 eval "$as_ac_Lib=yes"
46962 else
46963 echo "$as_me: failed program was:" >&5
46964 sed 's/^/| /' conftest.$ac_ext >&5
46966 eval "$as_ac_Lib=no"
46969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46970 conftest$ac_exeext conftest.$ac_ext
46971 LIBS=$ac_check_lib_save_LIBS
46973 ac_res=`eval echo '${'$as_ac_Lib'}'`
46974 { echo "$as_me:$LINENO: result: $ac_res" >&5
46975 echo "${ECHO_T}$ac_res" >&6; }
46976 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46977 AST_ZLIB_FOUND=yes
46978 else
46979 AST_ZLIB_FOUND=no
46984 # now check for the header.
46985 if test "${AST_ZLIB_FOUND}" = "yes"; then
46986 ZLIB_LIB="${pbxlibdir} -lz "
46987 # if --with-ZLIB=DIR has been specified, use it.
46988 if test "x${ZLIB_DIR}" != "x"; then
46989 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
46991 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
46992 if test "xzlib.h" = "x" ; then # no header, assume found
46993 ZLIB_HEADER_FOUND="1"
46994 else # check for the header
46995 saved_cppflags="${CPPFLAGS}"
46996 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
46997 if test "${ac_cv_header_zlib_h+set}" = set; then
46998 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46999 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47000 if test "${ac_cv_header_zlib_h+set}" = set; then
47001 echo $ECHO_N "(cached) $ECHO_C" >&6
47003 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47004 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47005 else
47006 # Is the header compilable?
47007 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
47008 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
47009 cat >conftest.$ac_ext <<_ACEOF
47010 /* confdefs.h. */
47011 _ACEOF
47012 cat confdefs.h >>conftest.$ac_ext
47013 cat >>conftest.$ac_ext <<_ACEOF
47014 /* end confdefs.h. */
47015 $ac_includes_default
47016 #include <zlib.h>
47017 _ACEOF
47018 rm -f conftest.$ac_objext
47019 if { (ac_try="$ac_compile"
47020 case "(($ac_try" in
47021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47022 *) ac_try_echo=$ac_try;;
47023 esac
47024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47025 (eval "$ac_compile") 2>conftest.er1
47026 ac_status=$?
47027 grep -v '^ *+' conftest.er1 >conftest.err
47028 rm -f conftest.er1
47029 cat conftest.err >&5
47030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47031 (exit $ac_status); } && {
47032 test -z "$ac_c_werror_flag" ||
47033 test ! -s conftest.err
47034 } && test -s conftest.$ac_objext; then
47035 ac_header_compiler=yes
47036 else
47037 echo "$as_me: failed program was:" >&5
47038 sed 's/^/| /' conftest.$ac_ext >&5
47040 ac_header_compiler=no
47043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47045 echo "${ECHO_T}$ac_header_compiler" >&6; }
47047 # Is the header present?
47048 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
47049 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
47050 cat >conftest.$ac_ext <<_ACEOF
47051 /* confdefs.h. */
47052 _ACEOF
47053 cat confdefs.h >>conftest.$ac_ext
47054 cat >>conftest.$ac_ext <<_ACEOF
47055 /* end confdefs.h. */
47056 #include <zlib.h>
47057 _ACEOF
47058 if { (ac_try="$ac_cpp conftest.$ac_ext"
47059 case "(($ac_try" in
47060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47061 *) ac_try_echo=$ac_try;;
47062 esac
47063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47065 ac_status=$?
47066 grep -v '^ *+' conftest.er1 >conftest.err
47067 rm -f conftest.er1
47068 cat conftest.err >&5
47069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); } >/dev/null && {
47071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47072 test ! -s conftest.err
47073 }; then
47074 ac_header_preproc=yes
47075 else
47076 echo "$as_me: failed program was:" >&5
47077 sed 's/^/| /' conftest.$ac_ext >&5
47079 ac_header_preproc=no
47082 rm -f conftest.err conftest.$ac_ext
47083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47084 echo "${ECHO_T}$ac_header_preproc" >&6; }
47086 # So? What about this header?
47087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47088 yes:no: )
47089 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
47090 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47091 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
47092 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
47093 ac_header_preproc=yes
47095 no:yes:* )
47096 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
47097 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
47098 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
47099 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
47100 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
47101 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
47102 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
47103 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
47104 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
47105 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
47106 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
47107 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
47108 ( cat <<\_ASBOX
47109 ## ------------------------------- ##
47110 ## Report this to www.asterisk.org ##
47111 ## ------------------------------- ##
47112 _ASBOX
47113 ) | sed "s/^/$as_me: WARNING: /" >&2
47115 esac
47116 { echo "$as_me:$LINENO: checking for zlib.h" >&5
47117 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47118 if test "${ac_cv_header_zlib_h+set}" = set; then
47119 echo $ECHO_N "(cached) $ECHO_C" >&6
47120 else
47121 ac_cv_header_zlib_h=$ac_header_preproc
47123 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47124 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47127 if test $ac_cv_header_zlib_h = yes; then
47128 ZLIB_HEADER_FOUND=1
47129 else
47130 ZLIB_HEADER_FOUND=0
47134 CPPFLAGS="${saved_cppflags}"
47136 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
47137 ZLIB_LIB=""
47138 ZLIB_INCLUDE=""
47139 else
47140 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47141 ZLIB_LIB=""
47143 PBX_ZLIB=1
47144 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47146 cat >>confdefs.h <<_ACEOF
47147 #define HAVE_ZLIB 1
47148 _ACEOF
47151 cat >>confdefs.h <<_ACEOF
47152 #define HAVE_ZLIB_VERSION
47153 _ACEOF
47160 # Check for various zaptel features and locations.
47161 # The version number, which goes into HAVE_ZAPTEL_VERSION,
47162 # will be used in the system headers to determine the location
47163 # of the zaptel.h header.
47166 if test "x${PBX_ZAPTEL}" != "x1"; then
47167 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
47168 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
47169 saved_cppflags="${CPPFLAGS}"
47170 if test "x${ZAPTEL_DIR}" != "x"; then
47171 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
47173 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
47175 cat >conftest.$ac_ext <<_ACEOF
47176 /* confdefs.h. */
47177 _ACEOF
47178 cat confdefs.h >>conftest.$ac_ext
47179 cat >>conftest.$ac_ext <<_ACEOF
47180 /* end confdefs.h. */
47181 #include <zaptel/zaptel.h>
47183 main ()
47185 #if defined(ZT_TONE_DTMF_BASE)
47186 int foo = 0;
47187 #else
47188 int foo = bar;
47189 #endif
47193 return 0;
47195 _ACEOF
47196 rm -f conftest.$ac_objext
47197 if { (ac_try="$ac_compile"
47198 case "(($ac_try" in
47199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47200 *) ac_try_echo=$ac_try;;
47201 esac
47202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47203 (eval "$ac_compile") 2>conftest.er1
47204 ac_status=$?
47205 grep -v '^ *+' conftest.er1 >conftest.err
47206 rm -f conftest.er1
47207 cat conftest.err >&5
47208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209 (exit $ac_status); } && {
47210 test -z "$ac_c_werror_flag" ||
47211 test ! -s conftest.err
47212 } && test -s conftest.$ac_objext; then
47213 { echo "$as_me:$LINENO: result: yes" >&5
47214 echo "${ECHO_T}yes" >&6; }
47215 PBX_ZAPTEL=1
47217 cat >>confdefs.h <<\_ACEOF
47218 #define HAVE_ZAPTEL 1
47219 _ACEOF
47222 cat >>confdefs.h <<\_ACEOF
47223 #define HAVE_ZAPTEL_VERSION 140
47224 _ACEOF
47227 else
47228 echo "$as_me: failed program was:" >&5
47229 sed 's/^/| /' conftest.$ac_ext >&5
47231 { echo "$as_me:$LINENO: result: no" >&5
47232 echo "${ECHO_T}no" >&6; }
47236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47237 CPPFLAGS="${saved_cppflags}"
47242 if test "x${PBX_ZAPTEL}" != "x1"; then
47243 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
47244 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
47245 saved_cppflags="${CPPFLAGS}"
47246 if test "x${ZAPTEL_DIR}" != "x"; then
47247 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
47249 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
47251 cat >conftest.$ac_ext <<_ACEOF
47252 /* confdefs.h. */
47253 _ACEOF
47254 cat confdefs.h >>conftest.$ac_ext
47255 cat >>conftest.$ac_ext <<_ACEOF
47256 /* end confdefs.h. */
47257 #include <zaptel/zaptel.h>
47259 main ()
47261 #if defined(ZT_DIAL_OP_CANCEL)
47262 int foo = 0;
47263 #else
47264 int foo = bar;
47265 #endif
47269 return 0;
47271 _ACEOF
47272 rm -f conftest.$ac_objext
47273 if { (ac_try="$ac_compile"
47274 case "(($ac_try" in
47275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47276 *) ac_try_echo=$ac_try;;
47277 esac
47278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47279 (eval "$ac_compile") 2>conftest.er1
47280 ac_status=$?
47281 grep -v '^ *+' conftest.er1 >conftest.err
47282 rm -f conftest.er1
47283 cat conftest.err >&5
47284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47285 (exit $ac_status); } && {
47286 test -z "$ac_c_werror_flag" ||
47287 test ! -s conftest.err
47288 } && test -s conftest.$ac_objext; then
47289 { echo "$as_me:$LINENO: result: yes" >&5
47290 echo "${ECHO_T}yes" >&6; }
47291 PBX_ZAPTEL=1
47293 cat >>confdefs.h <<\_ACEOF
47294 #define HAVE_ZAPTEL 1
47295 _ACEOF
47298 cat >>confdefs.h <<\_ACEOF
47299 #define HAVE_ZAPTEL_VERSION 90
47300 _ACEOF
47303 else
47304 echo "$as_me: failed program was:" >&5
47305 sed 's/^/| /' conftest.$ac_ext >&5
47307 { echo "$as_me:$LINENO: result: no" >&5
47308 echo "${ECHO_T}no" >&6; }
47312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47313 CPPFLAGS="${saved_cppflags}"
47318 # Check for VLDTMF support
47320 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1"; then
47321 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
47322 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
47323 saved_cppflags="${CPPFLAGS}"
47324 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47325 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
47327 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE}"
47329 cat >conftest.$ac_ext <<_ACEOF
47330 /* confdefs.h. */
47331 _ACEOF
47332 cat confdefs.h >>conftest.$ac_ext
47333 cat >>conftest.$ac_ext <<_ACEOF
47334 /* end confdefs.h. */
47335 #include <zaptel/zaptel.h>
47337 main ()
47339 #if defined(ZT_EVENT_REMOVED)
47340 int foo = 0;
47341 #else
47342 int foo = bar;
47343 #endif
47347 return 0;
47349 _ACEOF
47350 rm -f conftest.$ac_objext
47351 if { (ac_try="$ac_compile"
47352 case "(($ac_try" in
47353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47354 *) ac_try_echo=$ac_try;;
47355 esac
47356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47357 (eval "$ac_compile") 2>conftest.er1
47358 ac_status=$?
47359 grep -v '^ *+' conftest.er1 >conftest.err
47360 rm -f conftest.er1
47361 cat conftest.err >&5
47362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47363 (exit $ac_status); } && {
47364 test -z "$ac_c_werror_flag" ||
47365 test ! -s conftest.err
47366 } && test -s conftest.$ac_objext; then
47367 { echo "$as_me:$LINENO: result: yes" >&5
47368 echo "${ECHO_T}yes" >&6; }
47369 PBX_ZAPTEL_VLDTMF=1
47371 cat >>confdefs.h <<\_ACEOF
47372 #define HAVE_ZAPTEL_VLDTMF 1
47373 _ACEOF
47376 cat >>confdefs.h <<\_ACEOF
47377 #define HAVE_ZAPTEL_VLDTMF_VERSION
47378 _ACEOF
47381 else
47382 echo "$as_me: failed program was:" >&5
47383 sed 's/^/| /' conftest.$ac_ext >&5
47385 { echo "$as_me:$LINENO: result: no" >&5
47386 echo "${ECHO_T}no" >&6; }
47390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47391 CPPFLAGS="${saved_cppflags}"
47396 # Check for echo canceler parameters support
47398 if test "x${PBX_ZAPTEL_ECHOCANPARAMS}" != "x1"; then
47399 { echo "$as_me:$LINENO: checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h" >&5
47400 echo $ECHO_N "checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h... $ECHO_C" >&6; }
47401 saved_cppflags="${CPPFLAGS}"
47402 if test "x${ZAPTEL_ECHOCANPARAMS_DIR}" != "x"; then
47403 ZAPTEL_ECHOCANPARAMS_INCLUDE="-I${ZAPTEL_ECHOCANPARAMS_DIR}/include"
47405 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_ECHOCANPARAMS_INCLUDE}"
47407 cat >conftest.$ac_ext <<_ACEOF
47408 /* confdefs.h. */
47409 _ACEOF
47410 cat confdefs.h >>conftest.$ac_ext
47411 cat >>conftest.$ac_ext <<_ACEOF
47412 /* end confdefs.h. */
47413 #include <zaptel/zaptel.h>
47415 main ()
47417 #if defined(ZT_ECHOCANCEL_PARAMS)
47418 int foo = 0;
47419 #else
47420 int foo = bar;
47421 #endif
47425 return 0;
47427 _ACEOF
47428 rm -f conftest.$ac_objext
47429 if { (ac_try="$ac_compile"
47430 case "(($ac_try" in
47431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47432 *) ac_try_echo=$ac_try;;
47433 esac
47434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47435 (eval "$ac_compile") 2>conftest.er1
47436 ac_status=$?
47437 grep -v '^ *+' conftest.er1 >conftest.err
47438 rm -f conftest.er1
47439 cat conftest.err >&5
47440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47441 (exit $ac_status); } && {
47442 test -z "$ac_c_werror_flag" ||
47443 test ! -s conftest.err
47444 } && test -s conftest.$ac_objext; then
47445 { echo "$as_me:$LINENO: result: yes" >&5
47446 echo "${ECHO_T}yes" >&6; }
47447 PBX_ZAPTEL_ECHOCANPARAMS=1
47449 cat >>confdefs.h <<\_ACEOF
47450 #define HAVE_ZAPTEL_ECHOCANPARAMS 1
47451 _ACEOF
47454 cat >>confdefs.h <<\_ACEOF
47455 #define HAVE_ZAPTEL_ECHOCANPARAMS_VERSION
47456 _ACEOF
47459 else
47460 echo "$as_me: failed program was:" >&5
47461 sed 's/^/| /' conftest.$ac_ext >&5
47463 { echo "$as_me:$LINENO: result: no" >&5
47464 echo "${ECHO_T}no" >&6; }
47468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47469 CPPFLAGS="${saved_cppflags}"
47474 # Check for transcoder support
47476 if test "x${PBX_ZAPTEL_TRANSCODE}" != "x1"; then
47477 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
47478 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
47479 saved_cppflags="${CPPFLAGS}"
47480 if test "x${ZAPTEL_TRANSCODE_DIR}" != "x"; then
47481 ZAPTEL_TRANSCODE_INCLUDE="-I${ZAPTEL_TRANSCODE_DIR}/include"
47483 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_TRANSCODE_INCLUDE}"
47485 cat >conftest.$ac_ext <<_ACEOF
47486 /* confdefs.h. */
47487 _ACEOF
47488 cat confdefs.h >>conftest.$ac_ext
47489 cat >>conftest.$ac_ext <<_ACEOF
47490 /* end confdefs.h. */
47491 #include <zaptel/zaptel.h>
47493 main ()
47495 #if defined(ZT_TCOP_ALLOCATE)
47496 int foo = 0;
47497 #else
47498 int foo = bar;
47499 #endif
47503 return 0;
47505 _ACEOF
47506 rm -f conftest.$ac_objext
47507 if { (ac_try="$ac_compile"
47508 case "(($ac_try" in
47509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47510 *) ac_try_echo=$ac_try;;
47511 esac
47512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47513 (eval "$ac_compile") 2>conftest.er1
47514 ac_status=$?
47515 grep -v '^ *+' conftest.er1 >conftest.err
47516 rm -f conftest.er1
47517 cat conftest.err >&5
47518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47519 (exit $ac_status); } && {
47520 test -z "$ac_c_werror_flag" ||
47521 test ! -s conftest.err
47522 } && test -s conftest.$ac_objext; then
47523 { echo "$as_me:$LINENO: result: yes" >&5
47524 echo "${ECHO_T}yes" >&6; }
47525 PBX_ZAPTEL_TRANSCODE=1
47527 cat >>confdefs.h <<\_ACEOF
47528 #define HAVE_ZAPTEL_TRANSCODE 1
47529 _ACEOF
47532 cat >>confdefs.h <<\_ACEOF
47533 #define HAVE_ZAPTEL_TRANSCODE_VERSION
47534 _ACEOF
47537 else
47538 echo "$as_me: failed program was:" >&5
47539 sed 's/^/| /' conftest.$ac_ext >&5
47541 { echo "$as_me:$LINENO: result: no" >&5
47542 echo "${ECHO_T}no" >&6; }
47546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47547 CPPFLAGS="${saved_cppflags}"
47552 # Check for hwgain support
47554 if test "x${PBX_ZAPTEL_HWGAIN}" != "x1"; then
47555 { echo "$as_me:$LINENO: checking for ZT_SET_HWGAIN in zaptel/zaptel.h" >&5
47556 echo $ECHO_N "checking for ZT_SET_HWGAIN in zaptel/zaptel.h... $ECHO_C" >&6; }
47557 saved_cppflags="${CPPFLAGS}"
47558 if test "x${ZAPTEL_HWGAIN_DIR}" != "x"; then
47559 ZAPTEL_HWGAIN_INCLUDE="-I${ZAPTEL_HWGAIN_DIR}/include"
47561 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_HWGAIN_INCLUDE}"
47563 cat >conftest.$ac_ext <<_ACEOF
47564 /* confdefs.h. */
47565 _ACEOF
47566 cat confdefs.h >>conftest.$ac_ext
47567 cat >>conftest.$ac_ext <<_ACEOF
47568 /* end confdefs.h. */
47569 #include <zaptel/zaptel.h>
47571 main ()
47573 #if defined(ZT_SET_HWGAIN)
47574 int foo = 0;
47575 #else
47576 int foo = bar;
47577 #endif
47581 return 0;
47583 _ACEOF
47584 rm -f conftest.$ac_objext
47585 if { (ac_try="$ac_compile"
47586 case "(($ac_try" in
47587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47588 *) ac_try_echo=$ac_try;;
47589 esac
47590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47591 (eval "$ac_compile") 2>conftest.er1
47592 ac_status=$?
47593 grep -v '^ *+' conftest.er1 >conftest.err
47594 rm -f conftest.er1
47595 cat conftest.err >&5
47596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597 (exit $ac_status); } && {
47598 test -z "$ac_c_werror_flag" ||
47599 test ! -s conftest.err
47600 } && test -s conftest.$ac_objext; then
47601 { echo "$as_me:$LINENO: result: yes" >&5
47602 echo "${ECHO_T}yes" >&6; }
47603 PBX_ZAPTEL_HWGAIN=1
47605 cat >>confdefs.h <<\_ACEOF
47606 #define HAVE_ZAPTEL_HWGAIN 1
47607 _ACEOF
47610 cat >>confdefs.h <<\_ACEOF
47611 #define HAVE_ZAPTEL_HWGAIN_VERSION
47612 _ACEOF
47615 else
47616 echo "$as_me: failed program was:" >&5
47617 sed 's/^/| /' conftest.$ac_ext >&5
47619 { echo "$as_me:$LINENO: result: no" >&5
47620 echo "${ECHO_T}no" >&6; }
47624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47625 CPPFLAGS="${saved_cppflags}"
47630 # Check for neon mwi support
47632 if test "x${PBX_ZAPTEL_NEONMWI}" != "x1"; then
47633 { echo "$as_me:$LINENO: checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h" >&5
47634 echo $ECHO_N "checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h... $ECHO_C" >&6; }
47635 saved_cppflags="${CPPFLAGS}"
47636 if test "x${ZAPTEL_NEONMWI_DIR}" != "x"; then
47637 ZAPTEL_NEONMWI_INCLUDE="-I${ZAPTEL_NEONMWI_DIR}/include"
47639 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_NEONMWI_INCLUDE}"
47641 cat >conftest.$ac_ext <<_ACEOF
47642 /* confdefs.h. */
47643 _ACEOF
47644 cat confdefs.h >>conftest.$ac_ext
47645 cat >>conftest.$ac_ext <<_ACEOF
47646 /* end confdefs.h. */
47647 #include <zaptel/zaptel.h>
47649 main ()
47651 #if defined(ZT_EVENT_NEONMWI_ACTIVE)
47652 int foo = 0;
47653 #else
47654 int foo = bar;
47655 #endif
47659 return 0;
47661 _ACEOF
47662 rm -f conftest.$ac_objext
47663 if { (ac_try="$ac_compile"
47664 case "(($ac_try" in
47665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47666 *) ac_try_echo=$ac_try;;
47667 esac
47668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47669 (eval "$ac_compile") 2>conftest.er1
47670 ac_status=$?
47671 grep -v '^ *+' conftest.er1 >conftest.err
47672 rm -f conftest.er1
47673 cat conftest.err >&5
47674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675 (exit $ac_status); } && {
47676 test -z "$ac_c_werror_flag" ||
47677 test ! -s conftest.err
47678 } && test -s conftest.$ac_objext; then
47679 { echo "$as_me:$LINENO: result: yes" >&5
47680 echo "${ECHO_T}yes" >&6; }
47681 PBX_ZAPTEL_NEONMWI=1
47683 cat >>confdefs.h <<\_ACEOF
47684 #define HAVE_ZAPTEL_NEONMWI 1
47685 _ACEOF
47688 cat >>confdefs.h <<\_ACEOF
47689 #define HAVE_ZAPTEL_NEONMWI_VERSION
47690 _ACEOF
47693 else
47694 echo "$as_me: failed program was:" >&5
47695 sed 's/^/| /' conftest.$ac_ext >&5
47697 { echo "$as_me:$LINENO: result: no" >&5
47698 echo "${ECHO_T}no" >&6; }
47702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47703 CPPFLAGS="${saved_cppflags}"
47708 # Check for channel alarm support
47710 if test "x${PBX_ZAPTEL_CHANALARMS}" != "x1" -a "${USE_ZAPTEL_CHANALARMS}" != "no"; then
47711 { echo "$as_me:$LINENO: checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h" >&5
47712 echo $ECHO_N "checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h... $ECHO_C" >&6; }
47713 saved_cppflags="${CPPFLAGS}"
47714 if test "x${ZAPTEL_CHANALARMS_DIR}" != "x"; then
47715 ZAPTEL_CHANALARMS_INCLUDE="-I${ZAPTEL_CHANALARMS_DIR}/include"
47717 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_CHANALARMS_INCLUDE}"
47719 cat >conftest.$ac_ext <<_ACEOF
47720 /* confdefs.h. */
47721 _ACEOF
47722 cat confdefs.h >>conftest.$ac_ext
47723 cat >>conftest.$ac_ext <<_ACEOF
47724 /* end confdefs.h. */
47725 #include <zaptel/zaptel.h>
47727 main ()
47729 size_t foo = sizeof(struct zt_params_v1);
47732 return 0;
47734 _ACEOF
47735 rm -f conftest.$ac_objext
47736 if { (ac_try="$ac_compile"
47737 case "(($ac_try" in
47738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47739 *) ac_try_echo=$ac_try;;
47740 esac
47741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47742 (eval "$ac_compile") 2>conftest.er1
47743 ac_status=$?
47744 grep -v '^ *+' conftest.er1 >conftest.err
47745 rm -f conftest.er1
47746 cat conftest.err >&5
47747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47748 (exit $ac_status); } && {
47749 test -z "$ac_c_werror_flag" ||
47750 test ! -s conftest.err
47751 } && test -s conftest.$ac_objext; then
47752 { echo "$as_me:$LINENO: result: yes" >&5
47753 echo "${ECHO_T}yes" >&6; }
47754 PBX_ZAPTEL_CHANALARMS=1
47756 cat >>confdefs.h <<\_ACEOF
47757 #define HAVE_ZAPTEL_CHANALARMS 1
47758 _ACEOF
47761 cat >>confdefs.h <<\_ACEOF
47762 #define HAVE_ZAPTEL_CHANALARMS_VERSION
47763 _ACEOF
47766 else
47767 echo "$as_me: failed program was:" >&5
47768 sed 's/^/| /' conftest.$ac_ext >&5
47770 { echo "$as_me:$LINENO: result: no" >&5
47771 echo "${ECHO_T}no" >&6; }
47775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47776 CPPFLAGS="${saved_cppflags}"
47780 # Check for ZT_SIG_MTP2
47782 if test "x${PBX_ZAPTEL_SIG_MTP2}" != "x1"; then
47783 { echo "$as_me:$LINENO: checking for ZT_SIG_MTP2 in zaptel/zaptel.h" >&5
47784 echo $ECHO_N "checking for ZT_SIG_MTP2 in zaptel/zaptel.h... $ECHO_C" >&6; }
47785 saved_cppflags="${CPPFLAGS}"
47786 if test "x${ZAPTEL_SIG_MTP2_DIR}" != "x"; then
47787 ZAPTEL_SIG_MTP2_INCLUDE="-I${ZAPTEL_SIG_MTP2_DIR}/include"
47789 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_SIG_MTP2_INCLUDE}"
47791 cat >conftest.$ac_ext <<_ACEOF
47792 /* confdefs.h. */
47793 _ACEOF
47794 cat confdefs.h >>conftest.$ac_ext
47795 cat >>conftest.$ac_ext <<_ACEOF
47796 /* end confdefs.h. */
47797 #include <zaptel/zaptel.h>
47799 main ()
47801 #if defined(ZT_SIG_MTP2)
47802 int foo = 0;
47803 #else
47804 int foo = bar;
47805 #endif
47809 return 0;
47811 _ACEOF
47812 rm -f conftest.$ac_objext
47813 if { (ac_try="$ac_compile"
47814 case "(($ac_try" in
47815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47816 *) ac_try_echo=$ac_try;;
47817 esac
47818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47819 (eval "$ac_compile") 2>conftest.er1
47820 ac_status=$?
47821 grep -v '^ *+' conftest.er1 >conftest.err
47822 rm -f conftest.er1
47823 cat conftest.err >&5
47824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47825 (exit $ac_status); } && {
47826 test -z "$ac_c_werror_flag" ||
47827 test ! -s conftest.err
47828 } && test -s conftest.$ac_objext; then
47829 { echo "$as_me:$LINENO: result: yes" >&5
47830 echo "${ECHO_T}yes" >&6; }
47831 PBX_ZAPTEL_SIG_MTP2=1
47833 cat >>confdefs.h <<\_ACEOF
47834 #define HAVE_ZAPTEL_SIG_MTP2 1
47835 _ACEOF
47838 cat >>confdefs.h <<\_ACEOF
47839 #define HAVE_ZAPTEL_SIG_MTP2_VERSION
47840 _ACEOF
47843 else
47844 echo "$as_me: failed program was:" >&5
47845 sed 's/^/| /' conftest.$ac_ext >&5
47847 { echo "$as_me:$LINENO: result: no" >&5
47848 echo "${ECHO_T}no" >&6; }
47852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47853 CPPFLAGS="${saved_cppflags}"
47858 # On FreeBSD, try old zaptel (0.80 or so) and pretend we have vldtmf
47859 case "${host_os}" in
47860 freebsd*)
47862 if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then
47863 pbxlibdir=""
47864 # if --with-ZAPTEL=DIR has been specified, use it.
47865 if test "x${ZAPTEL_DIR}" != "x"; then
47866 if test -d ${ZAPTEL_DIR}/lib; then
47867 pbxlibdir="-L${ZAPTEL_DIR}/lib"
47868 else
47869 pbxlibdir="-L${ZAPTEL_DIR}"
47872 pbxfuncname=""
47873 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47874 AST_ZAPTEL_FOUND=yes
47875 else
47876 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
47877 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
47878 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
47879 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47880 echo $ECHO_N "(cached) $ECHO_C" >&6
47881 else
47882 ac_check_lib_save_LIBS=$LIBS
47883 LIBS="-lzaptel ${pbxlibdir} $LIBS"
47884 cat >conftest.$ac_ext <<_ACEOF
47885 /* confdefs.h. */
47886 _ACEOF
47887 cat confdefs.h >>conftest.$ac_ext
47888 cat >>conftest.$ac_ext <<_ACEOF
47889 /* end confdefs.h. */
47891 /* Override any GCC internal prototype to avoid an error.
47892 Use char because int might match the return type of a GCC
47893 builtin and then its argument prototype would still apply. */
47894 #ifdef __cplusplus
47895 extern "C"
47896 #endif
47897 char ${pbxfuncname} ();
47899 main ()
47901 return ${pbxfuncname} ();
47903 return 0;
47905 _ACEOF
47906 rm -f conftest.$ac_objext conftest$ac_exeext
47907 if { (ac_try="$ac_link"
47908 case "(($ac_try" in
47909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47910 *) ac_try_echo=$ac_try;;
47911 esac
47912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47913 (eval "$ac_link") 2>conftest.er1
47914 ac_status=$?
47915 grep -v '^ *+' conftest.er1 >conftest.err
47916 rm -f conftest.er1
47917 cat conftest.err >&5
47918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47919 (exit $ac_status); } && {
47920 test -z "$ac_c_werror_flag" ||
47921 test ! -s conftest.err
47922 } && test -s conftest$ac_exeext &&
47923 $as_test_x conftest$ac_exeext; then
47924 eval "$as_ac_Lib=yes"
47925 else
47926 echo "$as_me: failed program was:" >&5
47927 sed 's/^/| /' conftest.$ac_ext >&5
47929 eval "$as_ac_Lib=no"
47932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47933 conftest$ac_exeext conftest.$ac_ext
47934 LIBS=$ac_check_lib_save_LIBS
47936 ac_res=`eval echo '${'$as_ac_Lib'}'`
47937 { echo "$as_me:$LINENO: result: $ac_res" >&5
47938 echo "${ECHO_T}$ac_res" >&6; }
47939 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47940 AST_ZAPTEL_FOUND=yes
47941 else
47942 AST_ZAPTEL_FOUND=no
47947 # now check for the header.
47948 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
47949 ZAPTEL_LIB="${pbxlibdir} -lzaptel "
47950 # if --with-ZAPTEL=DIR has been specified, use it.
47951 if test "x${ZAPTEL_DIR}" != "x"; then
47952 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
47954 ZAPTEL_INCLUDE="${ZAPTEL_INCLUDE} "
47955 if test "xzaptel.h" = "x" ; then # no header, assume found
47956 ZAPTEL_HEADER_FOUND="1"
47957 else # check for the header
47958 saved_cppflags="${CPPFLAGS}"
47959 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE} "
47960 if test "${ac_cv_header_zaptel_h+set}" = set; then
47961 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47962 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47963 if test "${ac_cv_header_zaptel_h+set}" = set; then
47964 echo $ECHO_N "(cached) $ECHO_C" >&6
47966 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47967 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47968 else
47969 # Is the header compilable?
47970 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47971 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47972 cat >conftest.$ac_ext <<_ACEOF
47973 /* confdefs.h. */
47974 _ACEOF
47975 cat confdefs.h >>conftest.$ac_ext
47976 cat >>conftest.$ac_ext <<_ACEOF
47977 /* end confdefs.h. */
47978 $ac_includes_default
47979 #include <zaptel.h>
47980 _ACEOF
47981 rm -f conftest.$ac_objext
47982 if { (ac_try="$ac_compile"
47983 case "(($ac_try" in
47984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47985 *) ac_try_echo=$ac_try;;
47986 esac
47987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47988 (eval "$ac_compile") 2>conftest.er1
47989 ac_status=$?
47990 grep -v '^ *+' conftest.er1 >conftest.err
47991 rm -f conftest.er1
47992 cat conftest.err >&5
47993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47994 (exit $ac_status); } && {
47995 test -z "$ac_c_werror_flag" ||
47996 test ! -s conftest.err
47997 } && test -s conftest.$ac_objext; then
47998 ac_header_compiler=yes
47999 else
48000 echo "$as_me: failed program was:" >&5
48001 sed 's/^/| /' conftest.$ac_ext >&5
48003 ac_header_compiler=no
48006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48008 echo "${ECHO_T}$ac_header_compiler" >&6; }
48010 # Is the header present?
48011 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
48012 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
48013 cat >conftest.$ac_ext <<_ACEOF
48014 /* confdefs.h. */
48015 _ACEOF
48016 cat confdefs.h >>conftest.$ac_ext
48017 cat >>conftest.$ac_ext <<_ACEOF
48018 /* end confdefs.h. */
48019 #include <zaptel.h>
48020 _ACEOF
48021 if { (ac_try="$ac_cpp conftest.$ac_ext"
48022 case "(($ac_try" in
48023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48024 *) ac_try_echo=$ac_try;;
48025 esac
48026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48028 ac_status=$?
48029 grep -v '^ *+' conftest.er1 >conftest.err
48030 rm -f conftest.er1
48031 cat conftest.err >&5
48032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48033 (exit $ac_status); } >/dev/null && {
48034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48035 test ! -s conftest.err
48036 }; then
48037 ac_header_preproc=yes
48038 else
48039 echo "$as_me: failed program was:" >&5
48040 sed 's/^/| /' conftest.$ac_ext >&5
48042 ac_header_preproc=no
48045 rm -f conftest.err conftest.$ac_ext
48046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48047 echo "${ECHO_T}$ac_header_preproc" >&6; }
48049 # So? What about this header?
48050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48051 yes:no: )
48052 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
48053 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48054 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
48055 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
48056 ac_header_preproc=yes
48058 no:yes:* )
48059 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
48060 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
48061 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
48062 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
48063 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
48064 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
48065 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
48066 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48067 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
48068 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
48069 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
48070 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
48071 ( cat <<\_ASBOX
48072 ## ------------------------------- ##
48073 ## Report this to www.asterisk.org ##
48074 ## ------------------------------- ##
48075 _ASBOX
48076 ) | sed "s/^/$as_me: WARNING: /" >&2
48078 esac
48079 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48080 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48081 if test "${ac_cv_header_zaptel_h+set}" = set; then
48082 echo $ECHO_N "(cached) $ECHO_C" >&6
48083 else
48084 ac_cv_header_zaptel_h=$ac_header_preproc
48086 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48087 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48090 if test $ac_cv_header_zaptel_h = yes; then
48091 ZAPTEL_HEADER_FOUND=1
48092 else
48093 ZAPTEL_HEADER_FOUND=0
48097 CPPFLAGS="${saved_cppflags}"
48099 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
48100 ZAPTEL_LIB=""
48101 ZAPTEL_INCLUDE=""
48102 else
48103 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48104 ZAPTEL_LIB=""
48106 PBX_ZAPTEL=1
48107 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48109 cat >>confdefs.h <<_ACEOF
48110 #define HAVE_ZAPTEL 1
48111 _ACEOF
48114 cat >>confdefs.h <<_ACEOF
48115 #define HAVE_ZAPTEL_VERSION 80
48116 _ACEOF
48123 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
48124 pbxlibdir=""
48125 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
48126 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
48127 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
48128 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
48129 else
48130 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
48133 pbxfuncname=""
48134 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48135 AST_ZAPTEL_VLDTMF_FOUND=yes
48136 else
48137 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
48138 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
48139 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
48140 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48141 echo $ECHO_N "(cached) $ECHO_C" >&6
48142 else
48143 ac_check_lib_save_LIBS=$LIBS
48144 LIBS="-lzaptel ${pbxlibdir} $LIBS"
48145 cat >conftest.$ac_ext <<_ACEOF
48146 /* confdefs.h. */
48147 _ACEOF
48148 cat confdefs.h >>conftest.$ac_ext
48149 cat >>conftest.$ac_ext <<_ACEOF
48150 /* end confdefs.h. */
48152 /* Override any GCC internal prototype to avoid an error.
48153 Use char because int might match the return type of a GCC
48154 builtin and then its argument prototype would still apply. */
48155 #ifdef __cplusplus
48156 extern "C"
48157 #endif
48158 char ${pbxfuncname} ();
48160 main ()
48162 return ${pbxfuncname} ();
48164 return 0;
48166 _ACEOF
48167 rm -f conftest.$ac_objext conftest$ac_exeext
48168 if { (ac_try="$ac_link"
48169 case "(($ac_try" in
48170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48171 *) ac_try_echo=$ac_try;;
48172 esac
48173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48174 (eval "$ac_link") 2>conftest.er1
48175 ac_status=$?
48176 grep -v '^ *+' conftest.er1 >conftest.err
48177 rm -f conftest.er1
48178 cat conftest.err >&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); } && {
48181 test -z "$ac_c_werror_flag" ||
48182 test ! -s conftest.err
48183 } && test -s conftest$ac_exeext &&
48184 $as_test_x conftest$ac_exeext; then
48185 eval "$as_ac_Lib=yes"
48186 else
48187 echo "$as_me: failed program was:" >&5
48188 sed 's/^/| /' conftest.$ac_ext >&5
48190 eval "$as_ac_Lib=no"
48193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48194 conftest$ac_exeext conftest.$ac_ext
48195 LIBS=$ac_check_lib_save_LIBS
48197 ac_res=`eval echo '${'$as_ac_Lib'}'`
48198 { echo "$as_me:$LINENO: result: $ac_res" >&5
48199 echo "${ECHO_T}$ac_res" >&6; }
48200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48201 AST_ZAPTEL_VLDTMF_FOUND=yes
48202 else
48203 AST_ZAPTEL_VLDTMF_FOUND=no
48208 # now check for the header.
48209 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
48210 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
48211 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
48212 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
48213 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
48215 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
48216 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
48217 ZAPTEL_VLDTMF_HEADER_FOUND="1"
48218 else # check for the header
48219 saved_cppflags="${CPPFLAGS}"
48220 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
48221 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
48222 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
48223 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
48224 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
48225 echo $ECHO_N "(cached) $ECHO_C" >&6
48227 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
48228 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
48229 else
48230 # Is the header compilable?
48231 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
48232 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
48233 cat >conftest.$ac_ext <<_ACEOF
48234 /* confdefs.h. */
48235 _ACEOF
48236 cat confdefs.h >>conftest.$ac_ext
48237 cat >>conftest.$ac_ext <<_ACEOF
48238 /* end confdefs.h. */
48239 $ac_includes_default
48240 #include <zaptel/zaptel.h>
48241 _ACEOF
48242 rm -f conftest.$ac_objext
48243 if { (ac_try="$ac_compile"
48244 case "(($ac_try" in
48245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48246 *) ac_try_echo=$ac_try;;
48247 esac
48248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48249 (eval "$ac_compile") 2>conftest.er1
48250 ac_status=$?
48251 grep -v '^ *+' conftest.er1 >conftest.err
48252 rm -f conftest.er1
48253 cat conftest.err >&5
48254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48255 (exit $ac_status); } && {
48256 test -z "$ac_c_werror_flag" ||
48257 test ! -s conftest.err
48258 } && test -s conftest.$ac_objext; then
48259 ac_header_compiler=yes
48260 else
48261 echo "$as_me: failed program was:" >&5
48262 sed 's/^/| /' conftest.$ac_ext >&5
48264 ac_header_compiler=no
48267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48269 echo "${ECHO_T}$ac_header_compiler" >&6; }
48271 # Is the header present?
48272 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
48273 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
48274 cat >conftest.$ac_ext <<_ACEOF
48275 /* confdefs.h. */
48276 _ACEOF
48277 cat confdefs.h >>conftest.$ac_ext
48278 cat >>conftest.$ac_ext <<_ACEOF
48279 /* end confdefs.h. */
48280 #include <zaptel/zaptel.h>
48281 _ACEOF
48282 if { (ac_try="$ac_cpp conftest.$ac_ext"
48283 case "(($ac_try" in
48284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48285 *) ac_try_echo=$ac_try;;
48286 esac
48287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48289 ac_status=$?
48290 grep -v '^ *+' conftest.er1 >conftest.err
48291 rm -f conftest.er1
48292 cat conftest.err >&5
48293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48294 (exit $ac_status); } >/dev/null && {
48295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48296 test ! -s conftest.err
48297 }; then
48298 ac_header_preproc=yes
48299 else
48300 echo "$as_me: failed program was:" >&5
48301 sed 's/^/| /' conftest.$ac_ext >&5
48303 ac_header_preproc=no
48306 rm -f conftest.err conftest.$ac_ext
48307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48308 echo "${ECHO_T}$ac_header_preproc" >&6; }
48310 # So? What about this header?
48311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48312 yes:no: )
48313 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
48314 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48315 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
48316 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
48317 ac_header_preproc=yes
48319 no:yes:* )
48320 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
48321 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
48322 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
48323 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
48324 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
48325 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
48326 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
48327 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48328 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
48329 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
48330 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
48331 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
48332 ( cat <<\_ASBOX
48333 ## ------------------------------- ##
48334 ## Report this to www.asterisk.org ##
48335 ## ------------------------------- ##
48336 _ASBOX
48337 ) | sed "s/^/$as_me: WARNING: /" >&2
48339 esac
48340 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
48341 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
48342 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
48343 echo $ECHO_N "(cached) $ECHO_C" >&6
48344 else
48345 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
48347 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
48348 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
48351 if test $ac_cv_header_zaptel_zaptel_h = yes; then
48352 ZAPTEL_VLDTMF_HEADER_FOUND=1
48353 else
48354 ZAPTEL_VLDTMF_HEADER_FOUND=0
48358 CPPFLAGS="${saved_cppflags}"
48360 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
48361 ZAPTEL_VLDTMF_LIB=""
48362 ZAPTEL_VLDTMF_INCLUDE=""
48363 else
48364 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48365 ZAPTEL_VLDTMF_LIB=""
48367 PBX_ZAPTEL_VLDTMF=1
48368 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48370 cat >>confdefs.h <<_ACEOF
48371 #define HAVE_ZAPTEL_VLDTMF 1
48372 _ACEOF
48375 cat >>confdefs.h <<_ACEOF
48376 #define HAVE_ZAPTEL_VLDTMF_VERSION 90
48377 _ACEOF
48384 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
48385 pbxlibdir=""
48386 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
48387 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
48388 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
48389 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
48390 else
48391 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
48394 pbxfuncname=""
48395 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48396 AST_ZAPTEL_VLDTMF_FOUND=yes
48397 else
48398 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
48399 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
48400 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
48401 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48402 echo $ECHO_N "(cached) $ECHO_C" >&6
48403 else
48404 ac_check_lib_save_LIBS=$LIBS
48405 LIBS="-lzaptel ${pbxlibdir} $LIBS"
48406 cat >conftest.$ac_ext <<_ACEOF
48407 /* confdefs.h. */
48408 _ACEOF
48409 cat confdefs.h >>conftest.$ac_ext
48410 cat >>conftest.$ac_ext <<_ACEOF
48411 /* end confdefs.h. */
48413 /* Override any GCC internal prototype to avoid an error.
48414 Use char because int might match the return type of a GCC
48415 builtin and then its argument prototype would still apply. */
48416 #ifdef __cplusplus
48417 extern "C"
48418 #endif
48419 char ${pbxfuncname} ();
48421 main ()
48423 return ${pbxfuncname} ();
48425 return 0;
48427 _ACEOF
48428 rm -f conftest.$ac_objext conftest$ac_exeext
48429 if { (ac_try="$ac_link"
48430 case "(($ac_try" in
48431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48432 *) ac_try_echo=$ac_try;;
48433 esac
48434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48435 (eval "$ac_link") 2>conftest.er1
48436 ac_status=$?
48437 grep -v '^ *+' conftest.er1 >conftest.err
48438 rm -f conftest.er1
48439 cat conftest.err >&5
48440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48441 (exit $ac_status); } && {
48442 test -z "$ac_c_werror_flag" ||
48443 test ! -s conftest.err
48444 } && test -s conftest$ac_exeext &&
48445 $as_test_x conftest$ac_exeext; then
48446 eval "$as_ac_Lib=yes"
48447 else
48448 echo "$as_me: failed program was:" >&5
48449 sed 's/^/| /' conftest.$ac_ext >&5
48451 eval "$as_ac_Lib=no"
48454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48455 conftest$ac_exeext conftest.$ac_ext
48456 LIBS=$ac_check_lib_save_LIBS
48458 ac_res=`eval echo '${'$as_ac_Lib'}'`
48459 { echo "$as_me:$LINENO: result: $ac_res" >&5
48460 echo "${ECHO_T}$ac_res" >&6; }
48461 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48462 AST_ZAPTEL_VLDTMF_FOUND=yes
48463 else
48464 AST_ZAPTEL_VLDTMF_FOUND=no
48469 # now check for the header.
48470 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
48471 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
48472 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
48473 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
48474 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
48476 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
48477 if test "xzaptel.h" = "x" ; then # no header, assume found
48478 ZAPTEL_VLDTMF_HEADER_FOUND="1"
48479 else # check for the header
48480 saved_cppflags="${CPPFLAGS}"
48481 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
48482 if test "${ac_cv_header_zaptel_h+set}" = set; then
48483 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48484 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48485 if test "${ac_cv_header_zaptel_h+set}" = set; then
48486 echo $ECHO_N "(cached) $ECHO_C" >&6
48488 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48489 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48490 else
48491 # Is the header compilable?
48492 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
48493 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
48494 cat >conftest.$ac_ext <<_ACEOF
48495 /* confdefs.h. */
48496 _ACEOF
48497 cat confdefs.h >>conftest.$ac_ext
48498 cat >>conftest.$ac_ext <<_ACEOF
48499 /* end confdefs.h. */
48500 $ac_includes_default
48501 #include <zaptel.h>
48502 _ACEOF
48503 rm -f conftest.$ac_objext
48504 if { (ac_try="$ac_compile"
48505 case "(($ac_try" in
48506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48507 *) ac_try_echo=$ac_try;;
48508 esac
48509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48510 (eval "$ac_compile") 2>conftest.er1
48511 ac_status=$?
48512 grep -v '^ *+' conftest.er1 >conftest.err
48513 rm -f conftest.er1
48514 cat conftest.err >&5
48515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48516 (exit $ac_status); } && {
48517 test -z "$ac_c_werror_flag" ||
48518 test ! -s conftest.err
48519 } && test -s conftest.$ac_objext; then
48520 ac_header_compiler=yes
48521 else
48522 echo "$as_me: failed program was:" >&5
48523 sed 's/^/| /' conftest.$ac_ext >&5
48525 ac_header_compiler=no
48528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48530 echo "${ECHO_T}$ac_header_compiler" >&6; }
48532 # Is the header present?
48533 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
48534 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
48535 cat >conftest.$ac_ext <<_ACEOF
48536 /* confdefs.h. */
48537 _ACEOF
48538 cat confdefs.h >>conftest.$ac_ext
48539 cat >>conftest.$ac_ext <<_ACEOF
48540 /* end confdefs.h. */
48541 #include <zaptel.h>
48542 _ACEOF
48543 if { (ac_try="$ac_cpp conftest.$ac_ext"
48544 case "(($ac_try" in
48545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48546 *) ac_try_echo=$ac_try;;
48547 esac
48548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48550 ac_status=$?
48551 grep -v '^ *+' conftest.er1 >conftest.err
48552 rm -f conftest.er1
48553 cat conftest.err >&5
48554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48555 (exit $ac_status); } >/dev/null && {
48556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48557 test ! -s conftest.err
48558 }; then
48559 ac_header_preproc=yes
48560 else
48561 echo "$as_me: failed program was:" >&5
48562 sed 's/^/| /' conftest.$ac_ext >&5
48564 ac_header_preproc=no
48567 rm -f conftest.err conftest.$ac_ext
48568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48569 echo "${ECHO_T}$ac_header_preproc" >&6; }
48571 # So? What about this header?
48572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48573 yes:no: )
48574 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
48575 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48576 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
48577 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
48578 ac_header_preproc=yes
48580 no:yes:* )
48581 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
48582 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
48583 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
48584 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
48585 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
48586 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
48587 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
48588 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48589 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
48590 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
48591 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
48592 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
48593 ( cat <<\_ASBOX
48594 ## ------------------------------- ##
48595 ## Report this to www.asterisk.org ##
48596 ## ------------------------------- ##
48597 _ASBOX
48598 ) | sed "s/^/$as_me: WARNING: /" >&2
48600 esac
48601 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48602 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48603 if test "${ac_cv_header_zaptel_h+set}" = set; then
48604 echo $ECHO_N "(cached) $ECHO_C" >&6
48605 else
48606 ac_cv_header_zaptel_h=$ac_header_preproc
48608 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48609 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48612 if test $ac_cv_header_zaptel_h = yes; then
48613 ZAPTEL_VLDTMF_HEADER_FOUND=1
48614 else
48615 ZAPTEL_VLDTMF_HEADER_FOUND=0
48619 CPPFLAGS="${saved_cppflags}"
48621 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
48622 ZAPTEL_VLDTMF_LIB=""
48623 ZAPTEL_VLDTMF_INCLUDE=""
48624 else
48625 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48626 ZAPTEL_VLDTMF_LIB=""
48628 PBX_ZAPTEL_VLDTMF=1
48629 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48631 cat >>confdefs.h <<_ACEOF
48632 #define HAVE_ZAPTEL_VLDTMF 1
48633 _ACEOF
48636 cat >>confdefs.h <<_ACEOF
48637 #define HAVE_ZAPTEL_VLDTMF_VERSION 80
48638 _ACEOF
48645 # other case, old tonezone (0.80)
48647 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
48648 pbxlibdir=""
48649 # if --with-TONEZONE=DIR has been specified, use it.
48650 if test "x${TONEZONE_DIR}" != "x"; then
48651 if test -d ${TONEZONE_DIR}/lib; then
48652 pbxlibdir="-L${TONEZONE_DIR}/lib"
48653 else
48654 pbxlibdir="-L${TONEZONE_DIR}"
48657 pbxfuncname="tone_zone_find"
48658 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48659 AST_TONEZONE_FOUND=yes
48660 else
48661 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
48662 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
48663 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
48664 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48665 echo $ECHO_N "(cached) $ECHO_C" >&6
48666 else
48667 ac_check_lib_save_LIBS=$LIBS
48668 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
48669 cat >conftest.$ac_ext <<_ACEOF
48670 /* confdefs.h. */
48671 _ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h. */
48676 /* Override any GCC internal prototype to avoid an error.
48677 Use char because int might match the return type of a GCC
48678 builtin and then its argument prototype would still apply. */
48679 #ifdef __cplusplus
48680 extern "C"
48681 #endif
48682 char ${pbxfuncname} ();
48684 main ()
48686 return ${pbxfuncname} ();
48688 return 0;
48690 _ACEOF
48691 rm -f conftest.$ac_objext conftest$ac_exeext
48692 if { (ac_try="$ac_link"
48693 case "(($ac_try" in
48694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48695 *) ac_try_echo=$ac_try;;
48696 esac
48697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48698 (eval "$ac_link") 2>conftest.er1
48699 ac_status=$?
48700 grep -v '^ *+' conftest.er1 >conftest.err
48701 rm -f conftest.er1
48702 cat conftest.err >&5
48703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48704 (exit $ac_status); } && {
48705 test -z "$ac_c_werror_flag" ||
48706 test ! -s conftest.err
48707 } && test -s conftest$ac_exeext &&
48708 $as_test_x conftest$ac_exeext; then
48709 eval "$as_ac_Lib=yes"
48710 else
48711 echo "$as_me: failed program was:" >&5
48712 sed 's/^/| /' conftest.$ac_ext >&5
48714 eval "$as_ac_Lib=no"
48717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48718 conftest$ac_exeext conftest.$ac_ext
48719 LIBS=$ac_check_lib_save_LIBS
48721 ac_res=`eval echo '${'$as_ac_Lib'}'`
48722 { echo "$as_me:$LINENO: result: $ac_res" >&5
48723 echo "${ECHO_T}$ac_res" >&6; }
48724 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48725 AST_TONEZONE_FOUND=yes
48726 else
48727 AST_TONEZONE_FOUND=no
48732 # now check for the header.
48733 if test "${AST_TONEZONE_FOUND}" = "yes"; then
48734 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
48735 # if --with-TONEZONE=DIR has been specified, use it.
48736 if test "x${TONEZONE_DIR}" != "x"; then
48737 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
48739 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
48740 if test "xzaptel.h" = "x" ; then # no header, assume found
48741 TONEZONE_HEADER_FOUND="1"
48742 else # check for the header
48743 saved_cppflags="${CPPFLAGS}"
48744 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
48745 if test "${ac_cv_header_zaptel_h+set}" = set; then
48746 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48747 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48748 if test "${ac_cv_header_zaptel_h+set}" = set; then
48749 echo $ECHO_N "(cached) $ECHO_C" >&6
48751 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48752 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48753 else
48754 # Is the header compilable?
48755 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
48756 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
48757 cat >conftest.$ac_ext <<_ACEOF
48758 /* confdefs.h. */
48759 _ACEOF
48760 cat confdefs.h >>conftest.$ac_ext
48761 cat >>conftest.$ac_ext <<_ACEOF
48762 /* end confdefs.h. */
48763 $ac_includes_default
48764 #include <zaptel.h>
48765 _ACEOF
48766 rm -f conftest.$ac_objext
48767 if { (ac_try="$ac_compile"
48768 case "(($ac_try" in
48769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48770 *) ac_try_echo=$ac_try;;
48771 esac
48772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48773 (eval "$ac_compile") 2>conftest.er1
48774 ac_status=$?
48775 grep -v '^ *+' conftest.er1 >conftest.err
48776 rm -f conftest.er1
48777 cat conftest.err >&5
48778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779 (exit $ac_status); } && {
48780 test -z "$ac_c_werror_flag" ||
48781 test ! -s conftest.err
48782 } && test -s conftest.$ac_objext; then
48783 ac_header_compiler=yes
48784 else
48785 echo "$as_me: failed program was:" >&5
48786 sed 's/^/| /' conftest.$ac_ext >&5
48788 ac_header_compiler=no
48791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48793 echo "${ECHO_T}$ac_header_compiler" >&6; }
48795 # Is the header present?
48796 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
48797 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
48798 cat >conftest.$ac_ext <<_ACEOF
48799 /* confdefs.h. */
48800 _ACEOF
48801 cat confdefs.h >>conftest.$ac_ext
48802 cat >>conftest.$ac_ext <<_ACEOF
48803 /* end confdefs.h. */
48804 #include <zaptel.h>
48805 _ACEOF
48806 if { (ac_try="$ac_cpp conftest.$ac_ext"
48807 case "(($ac_try" in
48808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48809 *) ac_try_echo=$ac_try;;
48810 esac
48811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48813 ac_status=$?
48814 grep -v '^ *+' conftest.er1 >conftest.err
48815 rm -f conftest.er1
48816 cat conftest.err >&5
48817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48818 (exit $ac_status); } >/dev/null && {
48819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48820 test ! -s conftest.err
48821 }; then
48822 ac_header_preproc=yes
48823 else
48824 echo "$as_me: failed program was:" >&5
48825 sed 's/^/| /' conftest.$ac_ext >&5
48827 ac_header_preproc=no
48830 rm -f conftest.err conftest.$ac_ext
48831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48832 echo "${ECHO_T}$ac_header_preproc" >&6; }
48834 # So? What about this header?
48835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48836 yes:no: )
48837 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
48838 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48839 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
48840 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
48841 ac_header_preproc=yes
48843 no:yes:* )
48844 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
48845 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
48846 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
48847 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
48848 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
48849 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
48850 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
48851 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48852 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
48853 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
48854 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
48855 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
48856 ( cat <<\_ASBOX
48857 ## ------------------------------- ##
48858 ## Report this to www.asterisk.org ##
48859 ## ------------------------------- ##
48860 _ASBOX
48861 ) | sed "s/^/$as_me: WARNING: /" >&2
48863 esac
48864 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48865 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48866 if test "${ac_cv_header_zaptel_h+set}" = set; then
48867 echo $ECHO_N "(cached) $ECHO_C" >&6
48868 else
48869 ac_cv_header_zaptel_h=$ac_header_preproc
48871 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48872 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48875 if test $ac_cv_header_zaptel_h = yes; then
48876 TONEZONE_HEADER_FOUND=1
48877 else
48878 TONEZONE_HEADER_FOUND=0
48882 CPPFLAGS="${saved_cppflags}"
48884 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
48885 TONEZONE_LIB=""
48886 TONEZONE_INCLUDE=""
48887 else
48888 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48889 TONEZONE_LIB=""
48891 PBX_TONEZONE=1
48892 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48894 cat >>confdefs.h <<_ACEOF
48895 #define HAVE_TONEZONE 1
48896 _ACEOF
48899 cat >>confdefs.h <<_ACEOF
48900 #define HAVE_TONEZONE_VERSION 80
48901 _ACEOF
48908 esac
48910 EDITLINE_LIB=""
48911 if test "x$TERMCAP_LIB" != "x" ; then
48912 EDITLINE_LIB="$TERMCAP_LIB"
48913 elif test "x$TINFO_LIB" != "x" ; then
48914 EDITLINE_LIB="$TINFO_LIB"
48915 elif test "x$CURSES_LIB" != "x" ; then
48916 EDITLINE_LIB="$CURSES_LIB"
48917 elif test "x$NCURSES_LIB" != "x" ; then
48918 EDITLINE_LIB="$NCURSES_LIB"
48919 else
48920 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
48921 echo "$as_me: error: *** termcap support not found" >&2;}
48922 { (exit 1); exit 1; }; }
48926 if test "${ac_cv_header_h323_h+set}" = set; then
48927 { echo "$as_me:$LINENO: checking for h323.h" >&5
48928 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
48929 if test "${ac_cv_header_h323_h+set}" = set; then
48930 echo $ECHO_N "(cached) $ECHO_C" >&6
48932 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
48933 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
48934 else
48935 # Is the header compilable?
48936 { echo "$as_me:$LINENO: checking h323.h usability" >&5
48937 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
48938 cat >conftest.$ac_ext <<_ACEOF
48939 /* confdefs.h. */
48940 _ACEOF
48941 cat confdefs.h >>conftest.$ac_ext
48942 cat >>conftest.$ac_ext <<_ACEOF
48943 /* end confdefs.h. */
48944 $ac_includes_default
48945 #include <h323.h>
48946 _ACEOF
48947 rm -f conftest.$ac_objext
48948 if { (ac_try="$ac_compile"
48949 case "(($ac_try" in
48950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48951 *) ac_try_echo=$ac_try;;
48952 esac
48953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48954 (eval "$ac_compile") 2>conftest.er1
48955 ac_status=$?
48956 grep -v '^ *+' conftest.er1 >conftest.err
48957 rm -f conftest.er1
48958 cat conftest.err >&5
48959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48960 (exit $ac_status); } && {
48961 test -z "$ac_c_werror_flag" ||
48962 test ! -s conftest.err
48963 } && test -s conftest.$ac_objext; then
48964 ac_header_compiler=yes
48965 else
48966 echo "$as_me: failed program was:" >&5
48967 sed 's/^/| /' conftest.$ac_ext >&5
48969 ac_header_compiler=no
48972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48974 echo "${ECHO_T}$ac_header_compiler" >&6; }
48976 # Is the header present?
48977 { echo "$as_me:$LINENO: checking h323.h presence" >&5
48978 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
48979 cat >conftest.$ac_ext <<_ACEOF
48980 /* confdefs.h. */
48981 _ACEOF
48982 cat confdefs.h >>conftest.$ac_ext
48983 cat >>conftest.$ac_ext <<_ACEOF
48984 /* end confdefs.h. */
48985 #include <h323.h>
48986 _ACEOF
48987 if { (ac_try="$ac_cpp conftest.$ac_ext"
48988 case "(($ac_try" in
48989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48990 *) ac_try_echo=$ac_try;;
48991 esac
48992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48994 ac_status=$?
48995 grep -v '^ *+' conftest.er1 >conftest.err
48996 rm -f conftest.er1
48997 cat conftest.err >&5
48998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999 (exit $ac_status); } >/dev/null && {
49000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49001 test ! -s conftest.err
49002 }; then
49003 ac_header_preproc=yes
49004 else
49005 echo "$as_me: failed program was:" >&5
49006 sed 's/^/| /' conftest.$ac_ext >&5
49008 ac_header_preproc=no
49011 rm -f conftest.err conftest.$ac_ext
49012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49013 echo "${ECHO_T}$ac_header_preproc" >&6; }
49015 # So? What about this header?
49016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49017 yes:no: )
49018 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
49019 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49020 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
49021 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
49022 ac_header_preproc=yes
49024 no:yes:* )
49025 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
49026 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
49027 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
49028 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
49029 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
49030 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
49031 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
49032 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
49033 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
49034 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
49035 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
49036 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
49037 ( cat <<\_ASBOX
49038 ## ------------------------------- ##
49039 ## Report this to www.asterisk.org ##
49040 ## ------------------------------- ##
49041 _ASBOX
49042 ) | sed "s/^/$as_me: WARNING: /" >&2
49044 esac
49045 { echo "$as_me:$LINENO: checking for h323.h" >&5
49046 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
49047 if test "${ac_cv_header_h323_h+set}" = set; then
49048 echo $ECHO_N "(cached) $ECHO_C" >&6
49049 else
49050 ac_cv_header_h323_h=$ac_header_preproc
49052 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
49053 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
49056 if test $ac_cv_header_h323_h = yes; then
49057 PBX_H323=1
49058 else
49059 PBX_H323=0
49065 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
49066 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
49067 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
49068 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
49069 echo $ECHO_N "(cached) $ECHO_C" >&6
49071 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
49072 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
49073 else
49074 # Is the header compilable?
49075 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
49076 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
49077 cat >conftest.$ac_ext <<_ACEOF
49078 /* confdefs.h. */
49079 _ACEOF
49080 cat confdefs.h >>conftest.$ac_ext
49081 cat >>conftest.$ac_ext <<_ACEOF
49082 /* end confdefs.h. */
49083 $ac_includes_default
49084 #include <linux/compiler.h>
49085 _ACEOF
49086 rm -f conftest.$ac_objext
49087 if { (ac_try="$ac_compile"
49088 case "(($ac_try" in
49089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49090 *) ac_try_echo=$ac_try;;
49091 esac
49092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49093 (eval "$ac_compile") 2>conftest.er1
49094 ac_status=$?
49095 grep -v '^ *+' conftest.er1 >conftest.err
49096 rm -f conftest.er1
49097 cat conftest.err >&5
49098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099 (exit $ac_status); } && {
49100 test -z "$ac_c_werror_flag" ||
49101 test ! -s conftest.err
49102 } && test -s conftest.$ac_objext; then
49103 ac_header_compiler=yes
49104 else
49105 echo "$as_me: failed program was:" >&5
49106 sed 's/^/| /' conftest.$ac_ext >&5
49108 ac_header_compiler=no
49111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49113 echo "${ECHO_T}$ac_header_compiler" >&6; }
49115 # Is the header present?
49116 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
49117 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
49118 cat >conftest.$ac_ext <<_ACEOF
49119 /* confdefs.h. */
49120 _ACEOF
49121 cat confdefs.h >>conftest.$ac_ext
49122 cat >>conftest.$ac_ext <<_ACEOF
49123 /* end confdefs.h. */
49124 #include <linux/compiler.h>
49125 _ACEOF
49126 if { (ac_try="$ac_cpp conftest.$ac_ext"
49127 case "(($ac_try" in
49128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49129 *) ac_try_echo=$ac_try;;
49130 esac
49131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49133 ac_status=$?
49134 grep -v '^ *+' conftest.er1 >conftest.err
49135 rm -f conftest.er1
49136 cat conftest.err >&5
49137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49138 (exit $ac_status); } >/dev/null && {
49139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49140 test ! -s conftest.err
49141 }; then
49142 ac_header_preproc=yes
49143 else
49144 echo "$as_me: failed program was:" >&5
49145 sed 's/^/| /' conftest.$ac_ext >&5
49147 ac_header_preproc=no
49150 rm -f conftest.err conftest.$ac_ext
49151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49152 echo "${ECHO_T}$ac_header_preproc" >&6; }
49154 # So? What about this header?
49155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49156 yes:no: )
49157 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
49158 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49159 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
49160 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
49161 ac_header_preproc=yes
49163 no:yes:* )
49164 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
49165 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
49166 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
49167 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
49168 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
49169 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
49170 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
49171 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
49172 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
49173 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
49174 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
49175 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
49176 ( cat <<\_ASBOX
49177 ## ------------------------------- ##
49178 ## Report this to www.asterisk.org ##
49179 ## ------------------------------- ##
49180 _ASBOX
49181 ) | sed "s/^/$as_me: WARNING: /" >&2
49183 esac
49184 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
49185 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
49186 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
49187 echo $ECHO_N "(cached) $ECHO_C" >&6
49188 else
49189 ac_cv_header_linux_compiler_h=$ac_header_preproc
49191 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
49192 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
49195 if test $ac_cv_header_linux_compiler_h = yes; then
49197 cat >>confdefs.h <<_ACEOF
49198 #define HAVE_LINUX_COMPILER_H 1
49199 _ACEOF
49205 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
49206 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
49207 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
49208 echo $ECHO_N "(cached) $ECHO_C" >&6
49209 else
49210 cat >conftest.$ac_ext <<_ACEOF
49211 /* confdefs.h. */
49212 _ACEOF
49213 cat confdefs.h >>conftest.$ac_ext
49214 cat >>conftest.$ac_ext <<_ACEOF
49215 /* end confdefs.h. */
49217 #include <linux/version.h>
49218 #ifdef HAVE_LINUX_COMPILER_H
49219 #include <linux/compiler.h>
49220 #endif
49223 #include <linux/ixjuser.h>
49224 _ACEOF
49225 rm -f conftest.$ac_objext
49226 if { (ac_try="$ac_compile"
49227 case "(($ac_try" in
49228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49229 *) ac_try_echo=$ac_try;;
49230 esac
49231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49232 (eval "$ac_compile") 2>conftest.er1
49233 ac_status=$?
49234 grep -v '^ *+' conftest.er1 >conftest.err
49235 rm -f conftest.er1
49236 cat conftest.err >&5
49237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49238 (exit $ac_status); } && {
49239 test -z "$ac_c_werror_flag" ||
49240 test ! -s conftest.err
49241 } && test -s conftest.$ac_objext; then
49242 ac_cv_header_linux_ixjuser_h=yes
49243 else
49244 echo "$as_me: failed program was:" >&5
49245 sed 's/^/| /' conftest.$ac_ext >&5
49247 ac_cv_header_linux_ixjuser_h=no
49250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49252 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
49253 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
49254 if test $ac_cv_header_linux_ixjuser_h = yes; then
49255 PBX_IXJUSER=1
49256 else
49257 PBX_IXJUSER=0
49264 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
49265 PBX_SDL=0
49266 if test -n "$ac_tool_prefix"; then
49267 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
49268 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
49269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49271 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
49272 echo $ECHO_N "(cached) $ECHO_C" >&6
49273 else
49274 if test -n "$CONFIG_SDL"; then
49275 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
49276 else
49277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49278 for as_dir in $PATH
49280 IFS=$as_save_IFS
49281 test -z "$as_dir" && as_dir=.
49282 for ac_exec_ext in '' $ac_executable_extensions; do
49283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49284 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
49285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49286 break 2
49288 done
49289 done
49290 IFS=$as_save_IFS
49294 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
49295 if test -n "$CONFIG_SDL"; then
49296 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
49297 echo "${ECHO_T}$CONFIG_SDL" >&6; }
49298 else
49299 { echo "$as_me:$LINENO: result: no" >&5
49300 echo "${ECHO_T}no" >&6; }
49305 if test -z "$ac_cv_prog_CONFIG_SDL"; then
49306 ac_ct_CONFIG_SDL=$CONFIG_SDL
49307 # Extract the first word of "sdl-config", so it can be a program name with args.
49308 set dummy sdl-config; ac_word=$2
49309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49311 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
49312 echo $ECHO_N "(cached) $ECHO_C" >&6
49313 else
49314 if test -n "$ac_ct_CONFIG_SDL"; then
49315 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
49316 else
49317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49318 for as_dir in $PATH
49320 IFS=$as_save_IFS
49321 test -z "$as_dir" && as_dir=.
49322 for ac_exec_ext in '' $ac_executable_extensions; do
49323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49324 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
49325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49326 break 2
49328 done
49329 done
49330 IFS=$as_save_IFS
49334 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
49335 if test -n "$ac_ct_CONFIG_SDL"; then
49336 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
49337 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
49338 else
49339 { echo "$as_me:$LINENO: result: no" >&5
49340 echo "${ECHO_T}no" >&6; }
49343 if test "x$ac_ct_CONFIG_SDL" = x; then
49344 CONFIG_SDL="No"
49345 else
49346 case $cross_compiling:$ac_tool_warned in
49347 yes:)
49348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49349 whose name does not start with the host triplet. If you think this
49350 configuration is useful to you, please write to autoconf@gnu.org." >&5
49351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49352 whose name does not start with the host triplet. If you think this
49353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49354 ac_tool_warned=yes ;;
49355 esac
49356 CONFIG_SDL=$ac_ct_CONFIG_SDL
49358 else
49359 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
49362 if test ! "x${CONFIG_SDL}" = xNo; then
49363 if test x"" = x ; then A=--cflags ; else A="" ; fi
49364 SDL_INCLUDE=$(${CONFIG_SDL} $A)
49365 if test x"" = x ; then A=--libs ; else A="" ; fi
49366 SDL_LIB=$(${CONFIG_SDL} $A)
49367 if test x"" != x ; then
49368 saved_cppflags="${CPPFLAGS}"
49369 if test "x${SDL_DIR}" != "x"; then
49370 SDL_INCLUDE="-I${SDL_DIR}/include"
49372 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
49374 saved_ldflags="${LDFLAGS}"
49375 LDFLAGS="${SDL_LIB}"
49377 cat >conftest.$ac_ext <<_ACEOF
49378 /* confdefs.h. */
49379 _ACEOF
49380 cat confdefs.h >>conftest.$ac_ext
49381 cat >>conftest.$ac_ext <<_ACEOF
49382 /* end confdefs.h. */
49385 main ()
49390 return 0;
49392 _ACEOF
49393 rm -f conftest.$ac_objext conftest$ac_exeext
49394 if { (ac_try="$ac_link"
49395 case "(($ac_try" in
49396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49397 *) ac_try_echo=$ac_try;;
49398 esac
49399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49400 (eval "$ac_link") 2>conftest.er1
49401 ac_status=$?
49402 grep -v '^ *+' conftest.er1 >conftest.err
49403 rm -f conftest.er1
49404 cat conftest.err >&5
49405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49406 (exit $ac_status); } && {
49407 test -z "$ac_c_werror_flag" ||
49408 test ! -s conftest.err
49409 } && test -s conftest$ac_exeext &&
49410 $as_test_x conftest$ac_exeext; then
49411 PBX_SDL=1
49413 cat >>confdefs.h <<\_ACEOF
49414 #define HAVE_SDL 1
49415 _ACEOF
49418 else
49419 echo "$as_me: failed program was:" >&5
49420 sed 's/^/| /' conftest.$ac_ext >&5
49426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49427 conftest$ac_exeext conftest.$ac_ext
49428 CPPFLAGS="${saved_cppflags}"
49429 LDFLAGS="${saved_ldflags}"
49430 else
49431 PBX_SDL=1
49433 cat >>confdefs.h <<\_ACEOF
49434 #define HAVE_SDL 1
49435 _ACEOF
49442 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
49443 pbxlibdir=""
49444 # if --with-SDL_IMAGE=DIR has been specified, use it.
49445 if test "x${SDL_IMAGE_DIR}" != "x"; then
49446 if test -d ${SDL_IMAGE_DIR}/lib; then
49447 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
49448 else
49449 pbxlibdir="-L${SDL_IMAGE_DIR}"
49452 pbxfuncname="IMG_Load"
49453 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49454 AST_SDL_IMAGE_FOUND=yes
49455 else
49456 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
49457 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
49458 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
49459 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49460 echo $ECHO_N "(cached) $ECHO_C" >&6
49461 else
49462 ac_check_lib_save_LIBS=$LIBS
49463 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
49464 cat >conftest.$ac_ext <<_ACEOF
49465 /* confdefs.h. */
49466 _ACEOF
49467 cat confdefs.h >>conftest.$ac_ext
49468 cat >>conftest.$ac_ext <<_ACEOF
49469 /* end confdefs.h. */
49471 /* Override any GCC internal prototype to avoid an error.
49472 Use char because int might match the return type of a GCC
49473 builtin and then its argument prototype would still apply. */
49474 #ifdef __cplusplus
49475 extern "C"
49476 #endif
49477 char ${pbxfuncname} ();
49479 main ()
49481 return ${pbxfuncname} ();
49483 return 0;
49485 _ACEOF
49486 rm -f conftest.$ac_objext conftest$ac_exeext
49487 if { (ac_try="$ac_link"
49488 case "(($ac_try" in
49489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49490 *) ac_try_echo=$ac_try;;
49491 esac
49492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49493 (eval "$ac_link") 2>conftest.er1
49494 ac_status=$?
49495 grep -v '^ *+' conftest.er1 >conftest.err
49496 rm -f conftest.er1
49497 cat conftest.err >&5
49498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49499 (exit $ac_status); } && {
49500 test -z "$ac_c_werror_flag" ||
49501 test ! -s conftest.err
49502 } && test -s conftest$ac_exeext &&
49503 $as_test_x conftest$ac_exeext; then
49504 eval "$as_ac_Lib=yes"
49505 else
49506 echo "$as_me: failed program was:" >&5
49507 sed 's/^/| /' conftest.$ac_ext >&5
49509 eval "$as_ac_Lib=no"
49512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49513 conftest$ac_exeext conftest.$ac_ext
49514 LIBS=$ac_check_lib_save_LIBS
49516 ac_res=`eval echo '${'$as_ac_Lib'}'`
49517 { echo "$as_me:$LINENO: result: $ac_res" >&5
49518 echo "${ECHO_T}$ac_res" >&6; }
49519 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49520 AST_SDL_IMAGE_FOUND=yes
49521 else
49522 AST_SDL_IMAGE_FOUND=no
49527 # now check for the header.
49528 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
49529 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
49530 # if --with-SDL_IMAGE=DIR has been specified, use it.
49531 if test "x${SDL_IMAGE_DIR}" != "x"; then
49532 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
49534 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
49535 if test "xSDL_image.h" = "x" ; then # no header, assume found
49536 SDL_IMAGE_HEADER_FOUND="1"
49537 else # check for the header
49538 saved_cppflags="${CPPFLAGS}"
49539 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
49540 if test "${ac_cv_header_SDL_image_h+set}" = set; then
49541 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
49542 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
49543 if test "${ac_cv_header_SDL_image_h+set}" = set; then
49544 echo $ECHO_N "(cached) $ECHO_C" >&6
49546 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
49547 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
49548 else
49549 # Is the header compilable?
49550 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
49551 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
49552 cat >conftest.$ac_ext <<_ACEOF
49553 /* confdefs.h. */
49554 _ACEOF
49555 cat confdefs.h >>conftest.$ac_ext
49556 cat >>conftest.$ac_ext <<_ACEOF
49557 /* end confdefs.h. */
49558 $ac_includes_default
49559 #include <SDL_image.h>
49560 _ACEOF
49561 rm -f conftest.$ac_objext
49562 if { (ac_try="$ac_compile"
49563 case "(($ac_try" in
49564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49565 *) ac_try_echo=$ac_try;;
49566 esac
49567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49568 (eval "$ac_compile") 2>conftest.er1
49569 ac_status=$?
49570 grep -v '^ *+' conftest.er1 >conftest.err
49571 rm -f conftest.er1
49572 cat conftest.err >&5
49573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49574 (exit $ac_status); } && {
49575 test -z "$ac_c_werror_flag" ||
49576 test ! -s conftest.err
49577 } && test -s conftest.$ac_objext; then
49578 ac_header_compiler=yes
49579 else
49580 echo "$as_me: failed program was:" >&5
49581 sed 's/^/| /' conftest.$ac_ext >&5
49583 ac_header_compiler=no
49586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49588 echo "${ECHO_T}$ac_header_compiler" >&6; }
49590 # Is the header present?
49591 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
49592 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
49593 cat >conftest.$ac_ext <<_ACEOF
49594 /* confdefs.h. */
49595 _ACEOF
49596 cat confdefs.h >>conftest.$ac_ext
49597 cat >>conftest.$ac_ext <<_ACEOF
49598 /* end confdefs.h. */
49599 #include <SDL_image.h>
49600 _ACEOF
49601 if { (ac_try="$ac_cpp conftest.$ac_ext"
49602 case "(($ac_try" in
49603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49604 *) ac_try_echo=$ac_try;;
49605 esac
49606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49608 ac_status=$?
49609 grep -v '^ *+' conftest.er1 >conftest.err
49610 rm -f conftest.er1
49611 cat conftest.err >&5
49612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49613 (exit $ac_status); } >/dev/null && {
49614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49615 test ! -s conftest.err
49616 }; then
49617 ac_header_preproc=yes
49618 else
49619 echo "$as_me: failed program was:" >&5
49620 sed 's/^/| /' conftest.$ac_ext >&5
49622 ac_header_preproc=no
49625 rm -f conftest.err conftest.$ac_ext
49626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49627 echo "${ECHO_T}$ac_header_preproc" >&6; }
49629 # So? What about this header?
49630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49631 yes:no: )
49632 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
49633 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49634 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
49635 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
49636 ac_header_preproc=yes
49638 no:yes:* )
49639 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
49640 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
49641 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
49642 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
49643 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
49644 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
49645 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
49646 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
49647 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
49648 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
49649 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
49650 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
49651 ( cat <<\_ASBOX
49652 ## ------------------------------- ##
49653 ## Report this to www.asterisk.org ##
49654 ## ------------------------------- ##
49655 _ASBOX
49656 ) | sed "s/^/$as_me: WARNING: /" >&2
49658 esac
49659 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
49660 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
49661 if test "${ac_cv_header_SDL_image_h+set}" = set; then
49662 echo $ECHO_N "(cached) $ECHO_C" >&6
49663 else
49664 ac_cv_header_SDL_image_h=$ac_header_preproc
49666 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
49667 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
49670 if test $ac_cv_header_SDL_image_h = yes; then
49671 SDL_IMAGE_HEADER_FOUND=1
49672 else
49673 SDL_IMAGE_HEADER_FOUND=0
49677 CPPFLAGS="${saved_cppflags}"
49679 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
49680 SDL_IMAGE_LIB=""
49681 SDL_IMAGE_INCLUDE=""
49682 else
49683 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49684 SDL_IMAGE_LIB=""
49686 PBX_SDL_IMAGE=1
49687 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49689 cat >>confdefs.h <<_ACEOF
49690 #define HAVE_SDL_IMAGE 1
49691 _ACEOF
49694 cat >>confdefs.h <<_ACEOF
49695 #define HAVE_SDL_IMAGE_VERSION
49696 _ACEOF
49703 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
49704 pbxlibdir=""
49705 # if --with-FFMPEG=DIR has been specified, use it.
49706 if test "x${FFMPEG_DIR}" != "x"; then
49707 if test -d ${FFMPEG_DIR}/lib; then
49708 pbxlibdir="-L${FFMPEG_DIR}/lib"
49709 else
49710 pbxlibdir="-L${FFMPEG_DIR}"
49713 pbxfuncname="sws_getContext"
49714 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49715 AST_FFMPEG_FOUND=yes
49716 else
49717 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
49718 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
49719 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
49720 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49721 echo $ECHO_N "(cached) $ECHO_C" >&6
49722 else
49723 ac_check_lib_save_LIBS=$LIBS
49724 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
49725 cat >conftest.$ac_ext <<_ACEOF
49726 /* confdefs.h. */
49727 _ACEOF
49728 cat confdefs.h >>conftest.$ac_ext
49729 cat >>conftest.$ac_ext <<_ACEOF
49730 /* end confdefs.h. */
49732 /* Override any GCC internal prototype to avoid an error.
49733 Use char because int might match the return type of a GCC
49734 builtin and then its argument prototype would still apply. */
49735 #ifdef __cplusplus
49736 extern "C"
49737 #endif
49738 char ${pbxfuncname} ();
49740 main ()
49742 return ${pbxfuncname} ();
49744 return 0;
49746 _ACEOF
49747 rm -f conftest.$ac_objext conftest$ac_exeext
49748 if { (ac_try="$ac_link"
49749 case "(($ac_try" in
49750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49751 *) ac_try_echo=$ac_try;;
49752 esac
49753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49754 (eval "$ac_link") 2>conftest.er1
49755 ac_status=$?
49756 grep -v '^ *+' conftest.er1 >conftest.err
49757 rm -f conftest.er1
49758 cat conftest.err >&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); } && {
49761 test -z "$ac_c_werror_flag" ||
49762 test ! -s conftest.err
49763 } && test -s conftest$ac_exeext &&
49764 $as_test_x conftest$ac_exeext; then
49765 eval "$as_ac_Lib=yes"
49766 else
49767 echo "$as_me: failed program was:" >&5
49768 sed 's/^/| /' conftest.$ac_ext >&5
49770 eval "$as_ac_Lib=no"
49773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49774 conftest$ac_exeext conftest.$ac_ext
49775 LIBS=$ac_check_lib_save_LIBS
49777 ac_res=`eval echo '${'$as_ac_Lib'}'`
49778 { echo "$as_me:$LINENO: result: $ac_res" >&5
49779 echo "${ECHO_T}$ac_res" >&6; }
49780 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49781 AST_FFMPEG_FOUND=yes
49782 else
49783 AST_FFMPEG_FOUND=no
49788 # now check for the header.
49789 if test "${AST_FFMPEG_FOUND}" = "yes"; then
49790 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
49791 # if --with-FFMPEG=DIR has been specified, use it.
49792 if test "x${FFMPEG_DIR}" != "x"; then
49793 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
49795 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
49796 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
49797 FFMPEG_HEADER_FOUND="1"
49798 else # check for the header
49799 saved_cppflags="${CPPFLAGS}"
49800 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
49801 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49802 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
49803 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
49804 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49805 echo $ECHO_N "(cached) $ECHO_C" >&6
49807 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
49808 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
49809 else
49810 # Is the header compilable?
49811 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
49812 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
49813 cat >conftest.$ac_ext <<_ACEOF
49814 /* confdefs.h. */
49815 _ACEOF
49816 cat confdefs.h >>conftest.$ac_ext
49817 cat >>conftest.$ac_ext <<_ACEOF
49818 /* end confdefs.h. */
49819 $ac_includes_default
49820 #include <ffmpeg/avcodec.h>
49821 _ACEOF
49822 rm -f conftest.$ac_objext
49823 if { (ac_try="$ac_compile"
49824 case "(($ac_try" in
49825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49826 *) ac_try_echo=$ac_try;;
49827 esac
49828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49829 (eval "$ac_compile") 2>conftest.er1
49830 ac_status=$?
49831 grep -v '^ *+' conftest.er1 >conftest.err
49832 rm -f conftest.er1
49833 cat conftest.err >&5
49834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49835 (exit $ac_status); } && {
49836 test -z "$ac_c_werror_flag" ||
49837 test ! -s conftest.err
49838 } && test -s conftest.$ac_objext; then
49839 ac_header_compiler=yes
49840 else
49841 echo "$as_me: failed program was:" >&5
49842 sed 's/^/| /' conftest.$ac_ext >&5
49844 ac_header_compiler=no
49847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49849 echo "${ECHO_T}$ac_header_compiler" >&6; }
49851 # Is the header present?
49852 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
49853 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
49854 cat >conftest.$ac_ext <<_ACEOF
49855 /* confdefs.h. */
49856 _ACEOF
49857 cat confdefs.h >>conftest.$ac_ext
49858 cat >>conftest.$ac_ext <<_ACEOF
49859 /* end confdefs.h. */
49860 #include <ffmpeg/avcodec.h>
49861 _ACEOF
49862 if { (ac_try="$ac_cpp conftest.$ac_ext"
49863 case "(($ac_try" in
49864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49865 *) ac_try_echo=$ac_try;;
49866 esac
49867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49869 ac_status=$?
49870 grep -v '^ *+' conftest.er1 >conftest.err
49871 rm -f conftest.er1
49872 cat conftest.err >&5
49873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49874 (exit $ac_status); } >/dev/null && {
49875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49876 test ! -s conftest.err
49877 }; then
49878 ac_header_preproc=yes
49879 else
49880 echo "$as_me: failed program was:" >&5
49881 sed 's/^/| /' conftest.$ac_ext >&5
49883 ac_header_preproc=no
49886 rm -f conftest.err conftest.$ac_ext
49887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49888 echo "${ECHO_T}$ac_header_preproc" >&6; }
49890 # So? What about this header?
49891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49892 yes:no: )
49893 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
49894 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49895 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
49896 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
49897 ac_header_preproc=yes
49899 no:yes:* )
49900 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
49901 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
49902 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
49903 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
49904 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
49905 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
49906 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
49907 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
49908 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
49909 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
49910 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
49911 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
49912 ( cat <<\_ASBOX
49913 ## ------------------------------- ##
49914 ## Report this to www.asterisk.org ##
49915 ## ------------------------------- ##
49916 _ASBOX
49917 ) | sed "s/^/$as_me: WARNING: /" >&2
49919 esac
49920 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
49921 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
49922 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49923 echo $ECHO_N "(cached) $ECHO_C" >&6
49924 else
49925 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
49927 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
49928 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
49931 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
49932 FFMPEG_HEADER_FOUND=1
49933 else
49934 FFMPEG_HEADER_FOUND=0
49938 CPPFLAGS="${saved_cppflags}"
49940 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
49941 FFMPEG_LIB=""
49942 FFMPEG_INCLUDE=""
49943 else
49944 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49945 FFMPEG_LIB=""
49947 PBX_FFMPEG=1
49948 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49950 cat >>confdefs.h <<_ACEOF
49951 #define HAVE_FFMPEG 1
49952 _ACEOF
49955 cat >>confdefs.h <<_ACEOF
49956 #define HAVE_FFMPEG_VERSION
49957 _ACEOF
49964 # possible places for video4linux version 1
49965 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
49966 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
49967 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
49968 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
49969 echo $ECHO_N "(cached) $ECHO_C" >&6
49971 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
49972 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
49973 else
49974 # Is the header compilable?
49975 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
49976 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
49977 cat >conftest.$ac_ext <<_ACEOF
49978 /* confdefs.h. */
49979 _ACEOF
49980 cat confdefs.h >>conftest.$ac_ext
49981 cat >>conftest.$ac_ext <<_ACEOF
49982 /* end confdefs.h. */
49983 $ac_includes_default
49984 #include <linux/videodev.h>
49985 _ACEOF
49986 rm -f conftest.$ac_objext
49987 if { (ac_try="$ac_compile"
49988 case "(($ac_try" in
49989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49990 *) ac_try_echo=$ac_try;;
49991 esac
49992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49993 (eval "$ac_compile") 2>conftest.er1
49994 ac_status=$?
49995 grep -v '^ *+' conftest.er1 >conftest.err
49996 rm -f conftest.er1
49997 cat conftest.err >&5
49998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49999 (exit $ac_status); } && {
50000 test -z "$ac_c_werror_flag" ||
50001 test ! -s conftest.err
50002 } && test -s conftest.$ac_objext; then
50003 ac_header_compiler=yes
50004 else
50005 echo "$as_me: failed program was:" >&5
50006 sed 's/^/| /' conftest.$ac_ext >&5
50008 ac_header_compiler=no
50011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50013 echo "${ECHO_T}$ac_header_compiler" >&6; }
50015 # Is the header present?
50016 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
50017 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
50018 cat >conftest.$ac_ext <<_ACEOF
50019 /* confdefs.h. */
50020 _ACEOF
50021 cat confdefs.h >>conftest.$ac_ext
50022 cat >>conftest.$ac_ext <<_ACEOF
50023 /* end confdefs.h. */
50024 #include <linux/videodev.h>
50025 _ACEOF
50026 if { (ac_try="$ac_cpp conftest.$ac_ext"
50027 case "(($ac_try" in
50028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50029 *) ac_try_echo=$ac_try;;
50030 esac
50031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50033 ac_status=$?
50034 grep -v '^ *+' conftest.er1 >conftest.err
50035 rm -f conftest.er1
50036 cat conftest.err >&5
50037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50038 (exit $ac_status); } >/dev/null && {
50039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50040 test ! -s conftest.err
50041 }; then
50042 ac_header_preproc=yes
50043 else
50044 echo "$as_me: failed program was:" >&5
50045 sed 's/^/| /' conftest.$ac_ext >&5
50047 ac_header_preproc=no
50050 rm -f conftest.err conftest.$ac_ext
50051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50052 echo "${ECHO_T}$ac_header_preproc" >&6; }
50054 # So? What about this header?
50055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50056 yes:no: )
50057 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
50058 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50059 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
50060 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
50061 ac_header_preproc=yes
50063 no:yes:* )
50064 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
50065 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
50066 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
50067 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
50068 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
50069 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
50070 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
50071 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
50072 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
50073 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
50074 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
50075 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
50076 ( cat <<\_ASBOX
50077 ## ------------------------------- ##
50078 ## Report this to www.asterisk.org ##
50079 ## ------------------------------- ##
50080 _ASBOX
50081 ) | sed "s/^/$as_me: WARNING: /" >&2
50083 esac
50084 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
50085 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
50086 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
50087 echo $ECHO_N "(cached) $ECHO_C" >&6
50088 else
50089 ac_cv_header_linux_videodev_h=$ac_header_preproc
50091 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
50092 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
50095 if test $ac_cv_header_linux_videodev_h = yes; then
50097 cat >>confdefs.h <<_ACEOF
50098 #define HAVE_VIDEODEV_H 1
50099 _ACEOF
50105 # possible places for X11
50107 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
50108 pbxlibdir=""
50109 # if --with-X11=DIR has been specified, use it.
50110 if test "x${X11_DIR}" != "x"; then
50111 if test -d ${X11_DIR}/lib; then
50112 pbxlibdir="-L${X11_DIR}/lib"
50113 else
50114 pbxlibdir="-L${X11_DIR}"
50117 pbxfuncname="XOpenDisplay"
50118 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
50119 AST_X11_FOUND=yes
50120 else
50121 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
50122 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
50123 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
50124 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50125 echo $ECHO_N "(cached) $ECHO_C" >&6
50126 else
50127 ac_check_lib_save_LIBS=$LIBS
50128 LIBS="-lX11 ${pbxlibdir} $LIBS"
50129 cat >conftest.$ac_ext <<_ACEOF
50130 /* confdefs.h. */
50131 _ACEOF
50132 cat confdefs.h >>conftest.$ac_ext
50133 cat >>conftest.$ac_ext <<_ACEOF
50134 /* end confdefs.h. */
50136 /* Override any GCC internal prototype to avoid an error.
50137 Use char because int might match the return type of a GCC
50138 builtin and then its argument prototype would still apply. */
50139 #ifdef __cplusplus
50140 extern "C"
50141 #endif
50142 char ${pbxfuncname} ();
50144 main ()
50146 return ${pbxfuncname} ();
50148 return 0;
50150 _ACEOF
50151 rm -f conftest.$ac_objext conftest$ac_exeext
50152 if { (ac_try="$ac_link"
50153 case "(($ac_try" in
50154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50155 *) ac_try_echo=$ac_try;;
50156 esac
50157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50158 (eval "$ac_link") 2>conftest.er1
50159 ac_status=$?
50160 grep -v '^ *+' conftest.er1 >conftest.err
50161 rm -f conftest.er1
50162 cat conftest.err >&5
50163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50164 (exit $ac_status); } && {
50165 test -z "$ac_c_werror_flag" ||
50166 test ! -s conftest.err
50167 } && test -s conftest$ac_exeext &&
50168 $as_test_x conftest$ac_exeext; then
50169 eval "$as_ac_Lib=yes"
50170 else
50171 echo "$as_me: failed program was:" >&5
50172 sed 's/^/| /' conftest.$ac_ext >&5
50174 eval "$as_ac_Lib=no"
50177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50178 conftest$ac_exeext conftest.$ac_ext
50179 LIBS=$ac_check_lib_save_LIBS
50181 ac_res=`eval echo '${'$as_ac_Lib'}'`
50182 { echo "$as_me:$LINENO: result: $ac_res" >&5
50183 echo "${ECHO_T}$ac_res" >&6; }
50184 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
50185 AST_X11_FOUND=yes
50186 else
50187 AST_X11_FOUND=no
50192 # now check for the header.
50193 if test "${AST_X11_FOUND}" = "yes"; then
50194 X11_LIB="${pbxlibdir} -lX11 "
50195 # if --with-X11=DIR has been specified, use it.
50196 if test "x${X11_DIR}" != "x"; then
50197 X11_INCLUDE="-I${X11_DIR}/include"
50199 X11_INCLUDE="${X11_INCLUDE} "
50200 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
50201 X11_HEADER_FOUND="1"
50202 else # check for the header
50203 saved_cppflags="${CPPFLAGS}"
50204 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
50205 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50206 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
50207 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
50208 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50209 echo $ECHO_N "(cached) $ECHO_C" >&6
50211 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
50212 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
50213 else
50214 # Is the header compilable?
50215 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
50216 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
50217 cat >conftest.$ac_ext <<_ACEOF
50218 /* confdefs.h. */
50219 _ACEOF
50220 cat confdefs.h >>conftest.$ac_ext
50221 cat >>conftest.$ac_ext <<_ACEOF
50222 /* end confdefs.h. */
50223 $ac_includes_default
50224 #include <X11/Xlib.h>
50225 _ACEOF
50226 rm -f conftest.$ac_objext
50227 if { (ac_try="$ac_compile"
50228 case "(($ac_try" in
50229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50230 *) ac_try_echo=$ac_try;;
50231 esac
50232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50233 (eval "$ac_compile") 2>conftest.er1
50234 ac_status=$?
50235 grep -v '^ *+' conftest.er1 >conftest.err
50236 rm -f conftest.er1
50237 cat conftest.err >&5
50238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50239 (exit $ac_status); } && {
50240 test -z "$ac_c_werror_flag" ||
50241 test ! -s conftest.err
50242 } && test -s conftest.$ac_objext; then
50243 ac_header_compiler=yes
50244 else
50245 echo "$as_me: failed program was:" >&5
50246 sed 's/^/| /' conftest.$ac_ext >&5
50248 ac_header_compiler=no
50251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50253 echo "${ECHO_T}$ac_header_compiler" >&6; }
50255 # Is the header present?
50256 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
50257 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
50258 cat >conftest.$ac_ext <<_ACEOF
50259 /* confdefs.h. */
50260 _ACEOF
50261 cat confdefs.h >>conftest.$ac_ext
50262 cat >>conftest.$ac_ext <<_ACEOF
50263 /* end confdefs.h. */
50264 #include <X11/Xlib.h>
50265 _ACEOF
50266 if { (ac_try="$ac_cpp conftest.$ac_ext"
50267 case "(($ac_try" in
50268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50269 *) ac_try_echo=$ac_try;;
50270 esac
50271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50273 ac_status=$?
50274 grep -v '^ *+' conftest.er1 >conftest.err
50275 rm -f conftest.er1
50276 cat conftest.err >&5
50277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50278 (exit $ac_status); } >/dev/null && {
50279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50280 test ! -s conftest.err
50281 }; then
50282 ac_header_preproc=yes
50283 else
50284 echo "$as_me: failed program was:" >&5
50285 sed 's/^/| /' conftest.$ac_ext >&5
50287 ac_header_preproc=no
50290 rm -f conftest.err conftest.$ac_ext
50291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50292 echo "${ECHO_T}$ac_header_preproc" >&6; }
50294 # So? What about this header?
50295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50296 yes:no: )
50297 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
50298 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50299 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
50300 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
50301 ac_header_preproc=yes
50303 no:yes:* )
50304 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
50305 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
50306 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
50307 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
50308 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
50309 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
50310 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
50311 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
50312 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
50313 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
50314 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
50315 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
50316 ( cat <<\_ASBOX
50317 ## ------------------------------- ##
50318 ## Report this to www.asterisk.org ##
50319 ## ------------------------------- ##
50320 _ASBOX
50321 ) | sed "s/^/$as_me: WARNING: /" >&2
50323 esac
50324 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
50325 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
50326 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50327 echo $ECHO_N "(cached) $ECHO_C" >&6
50328 else
50329 ac_cv_header_X11_Xlib_h=$ac_header_preproc
50331 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
50332 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
50335 if test $ac_cv_header_X11_Xlib_h = yes; then
50336 X11_HEADER_FOUND=1
50337 else
50338 X11_HEADER_FOUND=0
50342 CPPFLAGS="${saved_cppflags}"
50344 if test "x${X11_HEADER_FOUND}" = "x0" ; then
50345 X11_LIB=""
50346 X11_INCLUDE=""
50347 else
50348 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
50349 X11_LIB=""
50351 PBX_X11=1
50352 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
50354 cat >>confdefs.h <<_ACEOF
50355 #define HAVE_X11 1
50356 _ACEOF
50359 cat >>confdefs.h <<_ACEOF
50360 #define HAVE_X11_VERSION standard_path
50361 _ACEOF
50368 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
50369 pbxlibdir=""
50370 # if --with-X11=DIR has been specified, use it.
50371 if test "x${X11_DIR}" != "x"; then
50372 if test -d ${X11_DIR}/lib; then
50373 pbxlibdir="-L${X11_DIR}/lib"
50374 else
50375 pbxlibdir="-L${X11_DIR}"
50378 pbxfuncname="XOpenDisplay"
50379 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
50380 AST_X11_FOUND=yes
50381 else
50382 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
50383 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
50384 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
50385 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
50386 echo $ECHO_N "(cached) $ECHO_C" >&6
50387 else
50388 ac_check_lib_save_LIBS=$LIBS
50389 LIBS="-lX11 ${pbxlibdir} $LIBS"
50390 cat >conftest.$ac_ext <<_ACEOF
50391 /* confdefs.h. */
50392 _ACEOF
50393 cat confdefs.h >>conftest.$ac_ext
50394 cat >>conftest.$ac_ext <<_ACEOF
50395 /* end confdefs.h. */
50397 /* Override any GCC internal prototype to avoid an error.
50398 Use char because int might match the return type of a GCC
50399 builtin and then its argument prototype would still apply. */
50400 #ifdef __cplusplus
50401 extern "C"
50402 #endif
50403 char ${pbxfuncname} ();
50405 main ()
50407 return ${pbxfuncname} ();
50409 return 0;
50411 _ACEOF
50412 rm -f conftest.$ac_objext conftest$ac_exeext
50413 if { (ac_try="$ac_link"
50414 case "(($ac_try" in
50415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50416 *) ac_try_echo=$ac_try;;
50417 esac
50418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50419 (eval "$ac_link") 2>conftest.er1
50420 ac_status=$?
50421 grep -v '^ *+' conftest.er1 >conftest.err
50422 rm -f conftest.er1
50423 cat conftest.err >&5
50424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425 (exit $ac_status); } && {
50426 test -z "$ac_c_werror_flag" ||
50427 test ! -s conftest.err
50428 } && test -s conftest$ac_exeext &&
50429 $as_test_x conftest$ac_exeext; then
50430 eval "$as_ac_Lib=yes"
50431 else
50432 echo "$as_me: failed program was:" >&5
50433 sed 's/^/| /' conftest.$ac_ext >&5
50435 eval "$as_ac_Lib=no"
50438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50439 conftest$ac_exeext conftest.$ac_ext
50440 LIBS=$ac_check_lib_save_LIBS
50442 ac_res=`eval echo '${'$as_ac_Lib'}'`
50443 { echo "$as_me:$LINENO: result: $ac_res" >&5
50444 echo "${ECHO_T}$ac_res" >&6; }
50445 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
50446 AST_X11_FOUND=yes
50447 else
50448 AST_X11_FOUND=no
50453 # now check for the header.
50454 if test "${AST_X11_FOUND}" = "yes"; then
50455 X11_LIB="${pbxlibdir} -lX11 "
50456 # if --with-X11=DIR has been specified, use it.
50457 if test "x${X11_DIR}" != "x"; then
50458 X11_INCLUDE="-I${X11_DIR}/include"
50460 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
50461 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
50462 X11_HEADER_FOUND="1"
50463 else # check for the header
50464 saved_cppflags="${CPPFLAGS}"
50465 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
50466 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50467 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
50468 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
50469 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50470 echo $ECHO_N "(cached) $ECHO_C" >&6
50472 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
50473 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
50474 else
50475 # Is the header compilable?
50476 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
50477 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
50478 cat >conftest.$ac_ext <<_ACEOF
50479 /* confdefs.h. */
50480 _ACEOF
50481 cat confdefs.h >>conftest.$ac_ext
50482 cat >>conftest.$ac_ext <<_ACEOF
50483 /* end confdefs.h. */
50484 $ac_includes_default
50485 #include <X11/Xlib.h>
50486 _ACEOF
50487 rm -f conftest.$ac_objext
50488 if { (ac_try="$ac_compile"
50489 case "(($ac_try" in
50490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50491 *) ac_try_echo=$ac_try;;
50492 esac
50493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50494 (eval "$ac_compile") 2>conftest.er1
50495 ac_status=$?
50496 grep -v '^ *+' conftest.er1 >conftest.err
50497 rm -f conftest.er1
50498 cat conftest.err >&5
50499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50500 (exit $ac_status); } && {
50501 test -z "$ac_c_werror_flag" ||
50502 test ! -s conftest.err
50503 } && test -s conftest.$ac_objext; then
50504 ac_header_compiler=yes
50505 else
50506 echo "$as_me: failed program was:" >&5
50507 sed 's/^/| /' conftest.$ac_ext >&5
50509 ac_header_compiler=no
50512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50514 echo "${ECHO_T}$ac_header_compiler" >&6; }
50516 # Is the header present?
50517 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
50518 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
50519 cat >conftest.$ac_ext <<_ACEOF
50520 /* confdefs.h. */
50521 _ACEOF
50522 cat confdefs.h >>conftest.$ac_ext
50523 cat >>conftest.$ac_ext <<_ACEOF
50524 /* end confdefs.h. */
50525 #include <X11/Xlib.h>
50526 _ACEOF
50527 if { (ac_try="$ac_cpp conftest.$ac_ext"
50528 case "(($ac_try" in
50529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50530 *) ac_try_echo=$ac_try;;
50531 esac
50532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
50534 ac_status=$?
50535 grep -v '^ *+' conftest.er1 >conftest.err
50536 rm -f conftest.er1
50537 cat conftest.err >&5
50538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50539 (exit $ac_status); } >/dev/null && {
50540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
50541 test ! -s conftest.err
50542 }; then
50543 ac_header_preproc=yes
50544 else
50545 echo "$as_me: failed program was:" >&5
50546 sed 's/^/| /' conftest.$ac_ext >&5
50548 ac_header_preproc=no
50551 rm -f conftest.err conftest.$ac_ext
50552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50553 echo "${ECHO_T}$ac_header_preproc" >&6; }
50555 # So? What about this header?
50556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50557 yes:no: )
50558 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
50559 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50560 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
50561 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
50562 ac_header_preproc=yes
50564 no:yes:* )
50565 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
50566 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
50567 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
50568 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
50569 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
50570 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
50571 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
50572 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
50573 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
50574 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
50575 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
50576 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
50577 ( cat <<\_ASBOX
50578 ## ------------------------------- ##
50579 ## Report this to www.asterisk.org ##
50580 ## ------------------------------- ##
50581 _ASBOX
50582 ) | sed "s/^/$as_me: WARNING: /" >&2
50584 esac
50585 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
50586 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
50587 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
50588 echo $ECHO_N "(cached) $ECHO_C" >&6
50589 else
50590 ac_cv_header_X11_Xlib_h=$ac_header_preproc
50592 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
50593 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
50596 if test $ac_cv_header_X11_Xlib_h = yes; then
50597 X11_HEADER_FOUND=1
50598 else
50599 X11_HEADER_FOUND=0
50603 CPPFLAGS="${saved_cppflags}"
50605 if test "x${X11_HEADER_FOUND}" = "x0" ; then
50606 X11_LIB=""
50607 X11_INCLUDE=""
50608 else
50609 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
50610 X11_LIB=""
50612 PBX_X11=1
50613 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
50615 cat >>confdefs.h <<_ACEOF
50616 #define HAVE_X11 1
50617 _ACEOF
50620 cat >>confdefs.h <<_ACEOF
50621 #define HAVE_X11_VERSION X11R6
50622 _ACEOF
50629 if test "${cross_compiling}" = "no";
50630 then
50631 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
50632 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
50633 if test "${ac_cv_file__sbin_launchd+set}" = set; then
50634 echo $ECHO_N "(cached) $ECHO_C" >&6
50635 else
50636 test "$cross_compiling" = yes &&
50637 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
50638 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
50639 { (exit 1); exit 1; }; }
50640 if test -r "/sbin/launchd"; then
50641 ac_cv_file__sbin_launchd=yes
50642 else
50643 ac_cv_file__sbin_launchd=no
50646 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
50647 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
50648 if test $ac_cv_file__sbin_launchd = yes; then
50650 cat >>confdefs.h <<\_ACEOF
50651 #define HAVE_SBIN_LAUNCHD 1
50652 _ACEOF
50658 PBX_GTK=0
50660 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
50661 PBX_GTK=0
50662 if test -n "$ac_tool_prefix"; then
50663 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
50664 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
50665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50667 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
50668 echo $ECHO_N "(cached) $ECHO_C" >&6
50669 else
50670 if test -n "$CONFIG_GTK"; then
50671 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
50672 else
50673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50674 for as_dir in $PATH
50676 IFS=$as_save_IFS
50677 test -z "$as_dir" && as_dir=.
50678 for ac_exec_ext in '' $ac_executable_extensions; do
50679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50680 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
50681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50682 break 2
50684 done
50685 done
50686 IFS=$as_save_IFS
50690 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
50691 if test -n "$CONFIG_GTK"; then
50692 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
50693 echo "${ECHO_T}$CONFIG_GTK" >&6; }
50694 else
50695 { echo "$as_me:$LINENO: result: no" >&5
50696 echo "${ECHO_T}no" >&6; }
50701 if test -z "$ac_cv_prog_CONFIG_GTK"; then
50702 ac_ct_CONFIG_GTK=$CONFIG_GTK
50703 # Extract the first word of "gtk-config", so it can be a program name with args.
50704 set dummy gtk-config; ac_word=$2
50705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50707 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
50708 echo $ECHO_N "(cached) $ECHO_C" >&6
50709 else
50710 if test -n "$ac_ct_CONFIG_GTK"; then
50711 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
50712 else
50713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50714 for as_dir in $PATH
50716 IFS=$as_save_IFS
50717 test -z "$as_dir" && as_dir=.
50718 for ac_exec_ext in '' $ac_executable_extensions; do
50719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50720 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
50721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50722 break 2
50724 done
50725 done
50726 IFS=$as_save_IFS
50730 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
50731 if test -n "$ac_ct_CONFIG_GTK"; then
50732 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
50733 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
50734 else
50735 { echo "$as_me:$LINENO: result: no" >&5
50736 echo "${ECHO_T}no" >&6; }
50739 if test "x$ac_ct_CONFIG_GTK" = x; then
50740 CONFIG_GTK="No"
50741 else
50742 case $cross_compiling:$ac_tool_warned in
50743 yes:)
50744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50745 whose name does not start with the host triplet. If you think this
50746 configuration is useful to you, please write to autoconf@gnu.org." >&5
50747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50748 whose name does not start with the host triplet. If you think this
50749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50750 ac_tool_warned=yes ;;
50751 esac
50752 CONFIG_GTK=$ac_ct_CONFIG_GTK
50754 else
50755 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
50758 if test ! "x${CONFIG_GTK}" = xNo; then
50759 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
50760 GTK_INCLUDE=$(${CONFIG_GTK} $A)
50761 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
50762 GTK_LIB=$(${CONFIG_GTK} $A)
50763 if test x"" != x ; then
50764 saved_cppflags="${CPPFLAGS}"
50765 if test "x${GTK_DIR}" != "x"; then
50766 GTK_INCLUDE="-I${GTK_DIR}/include"
50768 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
50770 saved_ldflags="${LDFLAGS}"
50771 LDFLAGS="${GTK_LIB}"
50773 cat >conftest.$ac_ext <<_ACEOF
50774 /* confdefs.h. */
50775 _ACEOF
50776 cat confdefs.h >>conftest.$ac_ext
50777 cat >>conftest.$ac_ext <<_ACEOF
50778 /* end confdefs.h. */
50781 main ()
50786 return 0;
50788 _ACEOF
50789 rm -f conftest.$ac_objext conftest$ac_exeext
50790 if { (ac_try="$ac_link"
50791 case "(($ac_try" in
50792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50793 *) ac_try_echo=$ac_try;;
50794 esac
50795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50796 (eval "$ac_link") 2>conftest.er1
50797 ac_status=$?
50798 grep -v '^ *+' conftest.er1 >conftest.err
50799 rm -f conftest.er1
50800 cat conftest.err >&5
50801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50802 (exit $ac_status); } && {
50803 test -z "$ac_c_werror_flag" ||
50804 test ! -s conftest.err
50805 } && test -s conftest$ac_exeext &&
50806 $as_test_x conftest$ac_exeext; then
50807 PBX_GTK=1
50809 cat >>confdefs.h <<\_ACEOF
50810 #define HAVE_GTK 1
50811 _ACEOF
50814 else
50815 echo "$as_me: failed program was:" >&5
50816 sed 's/^/| /' conftest.$ac_ext >&5
50822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50823 conftest$ac_exeext conftest.$ac_ext
50824 CPPFLAGS="${saved_cppflags}"
50825 LDFLAGS="${saved_ldflags}"
50826 else
50827 PBX_GTK=1
50829 cat >>confdefs.h <<\_ACEOF
50830 #define HAVE_GTK 1
50831 _ACEOF
50838 PBX_GTK2=0
50839 if test -n "$ac_tool_prefix"; then
50840 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
50841 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
50842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50844 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
50845 echo $ECHO_N "(cached) $ECHO_C" >&6
50846 else
50847 if test -n "$PKGCONFIG"; then
50848 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
50849 else
50850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50851 for as_dir in $PATH
50853 IFS=$as_save_IFS
50854 test -z "$as_dir" && as_dir=.
50855 for ac_exec_ext in '' $ac_executable_extensions; do
50856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50857 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
50858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50859 break 2
50861 done
50862 done
50863 IFS=$as_save_IFS
50867 PKGCONFIG=$ac_cv_prog_PKGCONFIG
50868 if test -n "$PKGCONFIG"; then
50869 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
50870 echo "${ECHO_T}$PKGCONFIG" >&6; }
50871 else
50872 { echo "$as_me:$LINENO: result: no" >&5
50873 echo "${ECHO_T}no" >&6; }
50878 if test -z "$ac_cv_prog_PKGCONFIG"; then
50879 ac_ct_PKGCONFIG=$PKGCONFIG
50880 # Extract the first word of "pkg-config", so it can be a program name with args.
50881 set dummy pkg-config; ac_word=$2
50882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50884 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
50885 echo $ECHO_N "(cached) $ECHO_C" >&6
50886 else
50887 if test -n "$ac_ct_PKGCONFIG"; then
50888 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
50889 else
50890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50891 for as_dir in $PATH
50893 IFS=$as_save_IFS
50894 test -z "$as_dir" && as_dir=.
50895 for ac_exec_ext in '' $ac_executable_extensions; do
50896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50897 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
50898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50899 break 2
50901 done
50902 done
50903 IFS=$as_save_IFS
50907 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
50908 if test -n "$ac_ct_PKGCONFIG"; then
50909 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
50910 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
50911 else
50912 { echo "$as_me:$LINENO: result: no" >&5
50913 echo "${ECHO_T}no" >&6; }
50916 if test "x$ac_ct_PKGCONFIG" = x; then
50917 PKGCONFIG="No"
50918 else
50919 case $cross_compiling:$ac_tool_warned in
50920 yes:)
50921 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50922 whose name does not start with the host triplet. If you think this
50923 configuration is useful to you, please write to autoconf@gnu.org." >&5
50924 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50925 whose name does not start with the host triplet. If you think this
50926 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50927 ac_tool_warned=yes ;;
50928 esac
50929 PKGCONFIG=$ac_ct_PKGCONFIG
50931 else
50932 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
50935 if test ! "x${PKGCONFIG}" = xNo; then
50936 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
50937 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
50938 PBX_GTK2=1
50940 cat >>confdefs.h <<\_ACEOF
50941 #define HAVE_GTK2 1
50942 _ACEOF
50949 if test "${USE_CURL}" != "no"; then
50950 if test -n "$ac_tool_prefix"; then
50951 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
50952 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
50953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50955 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
50956 echo $ECHO_N "(cached) $ECHO_C" >&6
50957 else
50958 case $CURL_CONFIG in
50959 [\\/]* | ?:[\\/]*)
50960 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
50963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50964 for as_dir in $PATH
50966 IFS=$as_save_IFS
50967 test -z "$as_dir" && as_dir=.
50968 for ac_exec_ext in '' $ac_executable_extensions; do
50969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50970 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50972 break 2
50974 done
50975 done
50976 IFS=$as_save_IFS
50979 esac
50981 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
50982 if test -n "$CURL_CONFIG"; then
50983 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
50984 echo "${ECHO_T}$CURL_CONFIG" >&6; }
50985 else
50986 { echo "$as_me:$LINENO: result: no" >&5
50987 echo "${ECHO_T}no" >&6; }
50992 if test -z "$ac_cv_path_CURL_CONFIG"; then
50993 ac_pt_CURL_CONFIG=$CURL_CONFIG
50994 # Extract the first word of "curl-config", so it can be a program name with args.
50995 set dummy curl-config; ac_word=$2
50996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50998 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
50999 echo $ECHO_N "(cached) $ECHO_C" >&6
51000 else
51001 case $ac_pt_CURL_CONFIG in
51002 [\\/]* | ?:[\\/]*)
51003 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
51006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51007 for as_dir in $PATH
51009 IFS=$as_save_IFS
51010 test -z "$as_dir" && as_dir=.
51011 for ac_exec_ext in '' $ac_executable_extensions; do
51012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51013 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51015 break 2
51017 done
51018 done
51019 IFS=$as_save_IFS
51022 esac
51024 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
51025 if test -n "$ac_pt_CURL_CONFIG"; then
51026 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
51027 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
51028 else
51029 { echo "$as_me:$LINENO: result: no" >&5
51030 echo "${ECHO_T}no" >&6; }
51033 if test "x$ac_pt_CURL_CONFIG" = x; then
51034 CURL_CONFIG="No"
51035 else
51036 case $cross_compiling:$ac_tool_warned in
51037 yes:)
51038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51039 whose name does not start with the host triplet. If you think this
51040 configuration is useful to you, please write to autoconf@gnu.org." >&5
51041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51042 whose name does not start with the host triplet. If you think this
51043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51044 ac_tool_warned=yes ;;
51045 esac
51046 CURL_CONFIG=$ac_pt_CURL_CONFIG
51048 else
51049 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
51052 if test ! x"${CURL_CONFIG}" = xNo; then
51053 # check for version
51054 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
51055 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
51056 CURL_LIB=$(${CURL_CONFIG} --libs)
51058 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
51059 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
51060 saved_cppflags="${CPPFLAGS}"
51061 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
51062 cat >conftest.$ac_ext <<_ACEOF
51063 /* confdefs.h. */
51064 _ACEOF
51065 cat confdefs.h >>conftest.$ac_ext
51066 cat >>conftest.$ac_ext <<_ACEOF
51067 /* end confdefs.h. */
51068 #include <curl/curl.h>
51070 main ()
51072 curl_version();
51074 return 0;
51077 _ACEOF
51078 rm -f conftest.$ac_objext
51079 if { (ac_try="$ac_compile"
51080 case "(($ac_try" in
51081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51082 *) ac_try_echo=$ac_try;;
51083 esac
51084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51085 (eval "$ac_compile") 2>conftest.er1
51086 ac_status=$?
51087 grep -v '^ *+' conftest.er1 >conftest.err
51088 rm -f conftest.er1
51089 cat conftest.err >&5
51090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51091 (exit $ac_status); } && {
51092 test -z "$ac_c_werror_flag" ||
51093 test ! -s conftest.err
51094 } && test -s conftest.$ac_objext; then
51096 { echo "$as_me:$LINENO: result: yes" >&5
51097 echo "${ECHO_T}yes" >&6; }
51098 ac_cv_curl_h="yes"
51100 else
51101 echo "$as_me: failed program was:" >&5
51102 sed 's/^/| /' conftest.$ac_ext >&5
51105 { echo "$as_me:$LINENO: result: no" >&5
51106 echo "${ECHO_T}no" >&6; }
51107 ac_cv_curl_h="no"
51112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51113 CPPFLAGS="${saved_cppflags}"
51114 if test "${ac_cv_curl_h}" = "yes"; then
51115 PBX_CURL=1
51117 cat >>confdefs.h <<\_ACEOF
51118 #define HAVE_CURL 1
51119 _ACEOF
51126 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
51129 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
51130 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
51131 err=0;
51132 for i in ${ac_mandatory_list}; do
51133 eval "a=\${PBX_$i}"
51134 if test "x${a}" = "x1" ; then continue; fi
51135 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
51136 echo "${ECHO_T}fail" >&6; } ; fi
51137 { echo "$as_me:$LINENO: result: " >&5
51138 echo "${ECHO_T}" >&6; }
51139 eval "a=\${${i}_OPTION}"
51140 { echo "$as_me:$LINENO: ***" >&5
51141 echo "$as_me: ***" >&6;}
51142 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
51143 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
51144 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
51145 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
51146 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
51147 echo "$as_me: *** including --without-${a}." >&6;}
51148 err=1
51149 done
51150 if test $err = 1 ; then exit 1; fi
51151 { echo "$as_me:$LINENO: result: ok" >&5
51152 echo "${ECHO_T}ok" >&6; }
51155 cat >confcache <<\_ACEOF
51156 # This file is a shell script that caches the results of configure
51157 # tests run on this system so they can be shared between configure
51158 # scripts and configure runs, see configure's option --config-cache.
51159 # It is not useful on other systems. If it contains results you don't
51160 # want to keep, you may remove or edit it.
51162 # config.status only pays attention to the cache file if you give it
51163 # the --recheck option to rerun configure.
51165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51167 # following values.
51169 _ACEOF
51171 # The following way of writing the cache mishandles newlines in values,
51172 # but we know of no workaround that is simple, portable, and efficient.
51173 # So, we kill variables containing newlines.
51174 # Ultrix sh set writes to stderr and can't be redirected directly,
51175 # and sets the high bit in the cache file unless we assign to the vars.
51177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51178 eval ac_val=\$$ac_var
51179 case $ac_val in #(
51180 *${as_nl}*)
51181 case $ac_var in #(
51182 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51183 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51184 esac
51185 case $ac_var in #(
51186 _ | IFS | as_nl) ;; #(
51187 *) $as_unset $ac_var ;;
51188 esac ;;
51189 esac
51190 done
51192 (set) 2>&1 |
51193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
51194 *${as_nl}ac_space=\ *)
51195 # `set' does not quote correctly, so add quotes (double-quote
51196 # substitution turns \\\\ into \\, and sed turns \\ into \).
51197 sed -n \
51198 "s/'/'\\\\''/g;
51199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51200 ;; #(
51202 # `set' quotes correctly as required by POSIX, so do not add quotes.
51203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51205 esac |
51206 sort
51208 sed '
51209 /^ac_cv_env_/b end
51210 t clear
51211 :clear
51212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51213 t end
51214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51215 :end' >>confcache
51216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51217 if test -w "$cache_file"; then
51218 test "x$cache_file" != "x/dev/null" &&
51219 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51220 echo "$as_me: updating cache $cache_file" >&6;}
51221 cat confcache >$cache_file
51222 else
51223 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51224 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51227 rm -f confcache
51229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51230 # Let make expand exec_prefix.
51231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51233 DEFS=-DHAVE_CONFIG_H
51235 ac_libobjs=
51236 ac_ltlibobjs=
51237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51238 # 1. Remove the extension, and $U if already installed.
51239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51240 ac_i=`echo "$ac_i" | sed "$ac_script"`
51241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
51242 # will be set to the directory where LIBOBJS objects are built.
51243 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51244 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51245 done
51246 LIBOBJS=$ac_libobjs
51248 LTLIBOBJS=$ac_ltlibobjs
51252 : ${CONFIG_STATUS=./config.status}
51253 ac_clean_files_save=$ac_clean_files
51254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51255 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51256 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51257 cat >$CONFIG_STATUS <<_ACEOF
51258 #! $SHELL
51259 # Generated by $as_me.
51260 # Run this file to recreate the current configuration.
51261 # Compiler output produced by configure, useful for debugging
51262 # configure, is in config.log if it exists.
51264 debug=false
51265 ac_cs_recheck=false
51266 ac_cs_silent=false
51267 SHELL=\${CONFIG_SHELL-$SHELL}
51268 _ACEOF
51270 cat >>$CONFIG_STATUS <<\_ACEOF
51271 ## --------------------- ##
51272 ## M4sh Initialization. ##
51273 ## --------------------- ##
51275 # Be more Bourne compatible
51276 DUALCASE=1; export DUALCASE # for MKS sh
51277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51278 emulate sh
51279 NULLCMD=:
51280 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51281 # is contrary to our usage. Disable this feature.
51282 alias -g '${1+"$@"}'='"$@"'
51283 setopt NO_GLOB_SUBST
51284 else
51285 case `(set -o) 2>/dev/null` in
51286 *posix*) set -o posix ;;
51287 esac
51294 # PATH needs CR
51295 # Avoid depending upon Character Ranges.
51296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51299 as_cr_digits='0123456789'
51300 as_cr_alnum=$as_cr_Letters$as_cr_digits
51302 # The user is always right.
51303 if test "${PATH_SEPARATOR+set}" != set; then
51304 echo "#! /bin/sh" >conf$$.sh
51305 echo "exit 0" >>conf$$.sh
51306 chmod +x conf$$.sh
51307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51308 PATH_SEPARATOR=';'
51309 else
51310 PATH_SEPARATOR=:
51312 rm -f conf$$.sh
51315 # Support unset when possible.
51316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51317 as_unset=unset
51318 else
51319 as_unset=false
51323 # IFS
51324 # We need space, tab and new line, in precisely that order. Quoting is
51325 # there to prevent editors from complaining about space-tab.
51326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51327 # splitting by setting IFS to empty value.)
51328 as_nl='
51330 IFS=" "" $as_nl"
51332 # Find who we are. Look in the path if we contain no directory separator.
51333 case $0 in
51334 *[\\/]* ) as_myself=$0 ;;
51335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51336 for as_dir in $PATH
51338 IFS=$as_save_IFS
51339 test -z "$as_dir" && as_dir=.
51340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51341 done
51342 IFS=$as_save_IFS
51345 esac
51346 # We did not find ourselves, most probably we were run as `sh COMMAND'
51347 # in which case we are not to be found in the path.
51348 if test "x$as_myself" = x; then
51349 as_myself=$0
51351 if test ! -f "$as_myself"; then
51352 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51353 { (exit 1); exit 1; }
51356 # Work around bugs in pre-3.0 UWIN ksh.
51357 for as_var in ENV MAIL MAILPATH
51358 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51359 done
51360 PS1='$ '
51361 PS2='> '
51362 PS4='+ '
51364 # NLS nuisances.
51365 for as_var in \
51366 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51367 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51368 LC_TELEPHONE LC_TIME
51370 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51371 eval $as_var=C; export $as_var
51372 else
51373 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51375 done
51377 # Required to use basename.
51378 if expr a : '\(a\)' >/dev/null 2>&1 &&
51379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
51380 as_expr=expr
51381 else
51382 as_expr=false
51385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51386 as_basename=basename
51387 else
51388 as_basename=false
51392 # Name of the executable.
51393 as_me=`$as_basename -- "$0" ||
51394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51395 X"$0" : 'X\(//\)$' \| \
51396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51397 echo X/"$0" |
51398 sed '/^.*\/\([^/][^/]*\)\/*$/{
51399 s//\1/
51402 /^X\/\(\/\/\)$/{
51403 s//\1/
51406 /^X\/\(\/\).*/{
51407 s//\1/
51410 s/.*/./; q'`
51412 # CDPATH.
51413 $as_unset CDPATH
51417 as_lineno_1=$LINENO
51418 as_lineno_2=$LINENO
51419 test "x$as_lineno_1" != "x$as_lineno_2" &&
51420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51423 # uniformly replaced by the line number. The first 'sed' inserts a
51424 # line-number line after each line using $LINENO; the second 'sed'
51425 # does the real work. The second script uses 'N' to pair each
51426 # line-number line with the line containing $LINENO, and appends
51427 # trailing '-' during substitution so that $LINENO is not a special
51428 # case at line end.
51429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51430 # scripts with optimization help from Paolo Bonzini. Blame Lee
51431 # E. McMahon (1931-1989) for sed's syntax. :-)
51432 sed -n '
51434 /[$]LINENO/=
51435 ' <$as_myself |
51436 sed '
51437 s/[$]LINENO.*/&-/
51438 t lineno
51440 :lineno
51442 :loop
51443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51444 t loop
51445 s/-\n.*//
51446 ' >$as_me.lineno &&
51447 chmod +x "$as_me.lineno" ||
51448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51449 { (exit 1); exit 1; }; }
51451 # Don't try to exec as it changes $[0], causing all sort of problems
51452 # (the dirname of $[0] is not the place where we might find the
51453 # original and so on. Autoconf is especially sensitive to this).
51454 . "./$as_me.lineno"
51455 # Exit status is that of the last command.
51456 exit
51460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51461 as_dirname=dirname
51462 else
51463 as_dirname=false
51466 ECHO_C= ECHO_N= ECHO_T=
51467 case `echo -n x` in
51468 -n*)
51469 case `echo 'x\c'` in
51470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
51471 *) ECHO_C='\c';;
51472 esac;;
51474 ECHO_N='-n';;
51475 esac
51477 if expr a : '\(a\)' >/dev/null 2>&1 &&
51478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
51479 as_expr=expr
51480 else
51481 as_expr=false
51484 rm -f conf$$ conf$$.exe conf$$.file
51485 if test -d conf$$.dir; then
51486 rm -f conf$$.dir/conf$$.file
51487 else
51488 rm -f conf$$.dir
51489 mkdir conf$$.dir
51491 echo >conf$$.file
51492 if ln -s conf$$.file conf$$ 2>/dev/null; then
51493 as_ln_s='ln -s'
51494 # ... but there are two gotchas:
51495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51497 # In both cases, we have to default to `cp -p'.
51498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51499 as_ln_s='cp -p'
51500 elif ln conf$$.file conf$$ 2>/dev/null; then
51501 as_ln_s=ln
51502 else
51503 as_ln_s='cp -p'
51505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51506 rmdir conf$$.dir 2>/dev/null
51508 if mkdir -p . 2>/dev/null; then
51509 as_mkdir_p=:
51510 else
51511 test -d ./-p && rmdir ./-p
51512 as_mkdir_p=false
51515 if test -x / >/dev/null 2>&1; then
51516 as_test_x='test -x'
51517 else
51518 if ls -dL / >/dev/null 2>&1; then
51519 as_ls_L_option=L
51520 else
51521 as_ls_L_option=
51523 as_test_x='
51524 eval sh -c '\''
51525 if test -d "$1"; then
51526 test -d "$1/.";
51527 else
51528 case $1 in
51529 -*)set "./$1";;
51530 esac;
51531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51532 ???[sx]*):;;*)false;;esac;fi
51533 '\'' sh
51536 as_executable_p=$as_test_x
51538 # Sed expression to map a string onto a valid CPP name.
51539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51541 # Sed expression to map a string onto a valid variable name.
51542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51545 exec 6>&1
51547 # Save the log message, to keep $[0] and so on meaningful, and to
51548 # report actual input values of CONFIG_FILES etc. instead of their
51549 # values after options handling.
51550 ac_log="
51551 This file was extended by asterisk $as_me 1.6, which was
51552 generated by GNU Autoconf 2.61. Invocation command line was
51554 CONFIG_FILES = $CONFIG_FILES
51555 CONFIG_HEADERS = $CONFIG_HEADERS
51556 CONFIG_LINKS = $CONFIG_LINKS
51557 CONFIG_COMMANDS = $CONFIG_COMMANDS
51558 $ $0 $@
51560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51563 _ACEOF
51565 cat >>$CONFIG_STATUS <<_ACEOF
51566 # Files that config.status was made for.
51567 config_files="$ac_config_files"
51568 config_headers="$ac_config_headers"
51570 _ACEOF
51572 cat >>$CONFIG_STATUS <<\_ACEOF
51573 ac_cs_usage="\
51574 \`$as_me' instantiates files from templates according to the
51575 current configuration.
51577 Usage: $0 [OPTIONS] [FILE]...
51579 -h, --help print this help, then exit
51580 -V, --version print version number and configuration settings, then exit
51581 -q, --quiet do not print progress messages
51582 -d, --debug don't remove temporary files
51583 --recheck update $as_me by reconfiguring in the same conditions
51584 --file=FILE[:TEMPLATE]
51585 instantiate the configuration file FILE
51586 --header=FILE[:TEMPLATE]
51587 instantiate the configuration header FILE
51589 Configuration files:
51590 $config_files
51592 Configuration headers:
51593 $config_headers
51595 Report bugs to <bug-autoconf@gnu.org>."
51597 _ACEOF
51598 cat >>$CONFIG_STATUS <<_ACEOF
51599 ac_cs_version="\\
51600 asterisk config.status 1.6
51601 configured by $0, generated by GNU Autoconf 2.61,
51602 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51604 Copyright (C) 2006 Free Software Foundation, Inc.
51605 This config.status script is free software; the Free Software Foundation
51606 gives unlimited permission to copy, distribute and modify it."
51608 ac_pwd='$ac_pwd'
51609 srcdir='$srcdir'
51610 INSTALL='$INSTALL'
51611 _ACEOF
51613 cat >>$CONFIG_STATUS <<\_ACEOF
51614 # If no file are specified by the user, then we need to provide default
51615 # value. By we need to know if files were specified by the user.
51616 ac_need_defaults=:
51617 while test $# != 0
51619 case $1 in
51620 --*=*)
51621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
51622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51623 ac_shift=:
51626 ac_option=$1
51627 ac_optarg=$2
51628 ac_shift=shift
51630 esac
51632 case $ac_option in
51633 # Handling of the options.
51634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51635 ac_cs_recheck=: ;;
51636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51637 echo "$ac_cs_version"; exit ;;
51638 --debug | --debu | --deb | --de | --d | -d )
51639 debug=: ;;
51640 --file | --fil | --fi | --f )
51641 $ac_shift
51642 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51643 ac_need_defaults=false;;
51644 --header | --heade | --head | --hea )
51645 $ac_shift
51646 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51647 ac_need_defaults=false;;
51648 --he | --h)
51649 # Conflict between --help and --header
51650 { echo "$as_me: error: ambiguous option: $1
51651 Try \`$0 --help' for more information." >&2
51652 { (exit 1); exit 1; }; };;
51653 --help | --hel | -h )
51654 echo "$ac_cs_usage"; exit ;;
51655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51656 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51657 ac_cs_silent=: ;;
51659 # This is an error.
51660 -*) { echo "$as_me: error: unrecognized option: $1
51661 Try \`$0 --help' for more information." >&2
51662 { (exit 1); exit 1; }; } ;;
51664 *) ac_config_targets="$ac_config_targets $1"
51665 ac_need_defaults=false ;;
51667 esac
51668 shift
51669 done
51671 ac_configure_extra_args=
51673 if $ac_cs_silent; then
51674 exec 6>/dev/null
51675 ac_configure_extra_args="$ac_configure_extra_args --silent"
51678 _ACEOF
51679 cat >>$CONFIG_STATUS <<_ACEOF
51680 if \$ac_cs_recheck; then
51681 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51682 CONFIG_SHELL=$SHELL
51683 export CONFIG_SHELL
51684 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51687 _ACEOF
51688 cat >>$CONFIG_STATUS <<\_ACEOF
51689 exec 5>>config.log
51691 echo
51692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51693 ## Running $as_me. ##
51694 _ASBOX
51695 echo "$ac_log"
51696 } >&5
51698 _ACEOF
51699 cat >>$CONFIG_STATUS <<_ACEOF
51700 _ACEOF
51702 cat >>$CONFIG_STATUS <<\_ACEOF
51704 # Handling of arguments.
51705 for ac_config_target in $ac_config_targets
51707 case $ac_config_target in
51708 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
51709 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
51710 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
51711 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
51713 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51714 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51715 { (exit 1); exit 1; }; };;
51716 esac
51717 done
51720 # If the user did not use the arguments to specify the items to instantiate,
51721 # then the envvar interface is used. Set only those that are not.
51722 # We use the long form for the default assignment because of an extremely
51723 # bizarre bug on SunOS 4.1.3.
51724 if $ac_need_defaults; then
51725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51729 # Have a temporary directory for convenience. Make it in the build tree
51730 # simply because there is no reason against having it here, and in addition,
51731 # creating and moving files from /tmp can sometimes cause problems.
51732 # Hook for its removal unless debugging.
51733 # Note that there is a small window in which the directory will not be cleaned:
51734 # after its creation but before its name has been assigned to `$tmp'.
51735 $debug ||
51737 tmp=
51738 trap 'exit_status=$?
51739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51741 trap '{ (exit 1); exit 1; }' 1 2 13 15
51743 # Create a (secure) tmp directory for tmp files.
51746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51747 test -n "$tmp" && test -d "$tmp"
51748 } ||
51750 tmp=./conf$$-$RANDOM
51751 (umask 077 && mkdir "$tmp")
51752 } ||
51754 echo "$me: cannot create a temporary directory in ." >&2
51755 { (exit 1); exit 1; }
51759 # Set up the sed scripts for CONFIG_FILES section.
51762 # No need to generate the scripts if there are no CONFIG_FILES.
51763 # This happens for instance when ./config.status config.h
51764 if test -n "$CONFIG_FILES"; then
51766 _ACEOF
51770 ac_delim='%!_!# '
51771 for ac_last_try in false false false false false :; do
51772 cat >conf$$subs.sed <<_ACEOF
51773 SHELL!$SHELL$ac_delim
51774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51780 exec_prefix!$exec_prefix$ac_delim
51781 prefix!$prefix$ac_delim
51782 program_transform_name!$program_transform_name$ac_delim
51783 bindir!$bindir$ac_delim
51784 sbindir!$sbindir$ac_delim
51785 libexecdir!$libexecdir$ac_delim
51786 datarootdir!$datarootdir$ac_delim
51787 datadir!$datadir$ac_delim
51788 sysconfdir!$sysconfdir$ac_delim
51789 sharedstatedir!$sharedstatedir$ac_delim
51790 localstatedir!$localstatedir$ac_delim
51791 includedir!$includedir$ac_delim
51792 oldincludedir!$oldincludedir$ac_delim
51793 docdir!$docdir$ac_delim
51794 infodir!$infodir$ac_delim
51795 htmldir!$htmldir$ac_delim
51796 dvidir!$dvidir$ac_delim
51797 pdfdir!$pdfdir$ac_delim
51798 psdir!$psdir$ac_delim
51799 libdir!$libdir$ac_delim
51800 localedir!$localedir$ac_delim
51801 mandir!$mandir$ac_delim
51802 DEFS!$DEFS$ac_delim
51803 ECHO_C!$ECHO_C$ac_delim
51804 ECHO_N!$ECHO_N$ac_delim
51805 ECHO_T!$ECHO_T$ac_delim
51806 LIBS!$LIBS$ac_delim
51807 build_alias!$build_alias$ac_delim
51808 host_alias!$host_alias$ac_delim
51809 target_alias!$target_alias$ac_delim
51810 build!$build$ac_delim
51811 build_cpu!$build_cpu$ac_delim
51812 build_vendor!$build_vendor$ac_delim
51813 build_os!$build_os$ac_delim
51814 host!$host$ac_delim
51815 host_cpu!$host_cpu$ac_delim
51816 host_vendor!$host_vendor$ac_delim
51817 host_os!$host_os$ac_delim
51818 CC!$CC$ac_delim
51819 CFLAGS!$CFLAGS$ac_delim
51820 LDFLAGS!$LDFLAGS$ac_delim
51821 CPPFLAGS!$CPPFLAGS$ac_delim
51822 ac_ct_CC!$ac_ct_CC$ac_delim
51823 EXEEXT!$EXEEXT$ac_delim
51824 OBJEXT!$OBJEXT$ac_delim
51825 CPP!$CPP$ac_delim
51826 GREP!$GREP$ac_delim
51827 EGREP!$EGREP$ac_delim
51828 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
51829 BUILD_CPU!$BUILD_CPU$ac_delim
51830 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
51831 BUILD_OS!$BUILD_OS$ac_delim
51832 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
51833 HOST_CPU!$HOST_CPU$ac_delim
51834 HOST_VENDOR!$HOST_VENDOR$ac_delim
51835 HOST_OS!$HOST_OS$ac_delim
51836 OSARCH!$OSARCH$ac_delim
51837 WINARCH!$WINARCH$ac_delim
51838 UNAME!$UNAME$ac_delim
51839 PBX_OSREV!$PBX_OSREV$ac_delim
51840 CXX!$CXX$ac_delim
51841 LD!$LD$ac_delim
51842 RANLIB!$RANLIB$ac_delim
51843 CXXFLAGS!$CXXFLAGS$ac_delim
51844 ac_ct_CXX!$ac_ct_CXX$ac_delim
51845 CXXCPP!$CXXCPP$ac_delim
51846 SED!$SED$ac_delim
51847 AWK!$AWK$ac_delim
51848 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51849 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51850 INSTALL_DATA!$INSTALL_DATA$ac_delim
51851 LN_S!$LN_S$ac_delim
51852 GNU_MAKE!$GNU_MAKE$ac_delim
51853 STRIP!$STRIP$ac_delim
51854 AR!$AR$ac_delim
51855 GNU_LD!$GNU_LD$ac_delim
51856 FIND!$FIND$ac_delim
51857 COMPRESS!$COMPRESS$ac_delim
51858 BASENAME!$BASENAME$ac_delim
51859 ID!$ID$ac_delim
51860 DIRNAME!$DIRNAME$ac_delim
51861 LN!$LN$ac_delim
51862 DOT!$DOT$ac_delim
51863 WGET!$WGET$ac_delim
51864 RUBBER!$RUBBER$ac_delim
51865 KPATHSEA!$KPATHSEA$ac_delim
51866 FETCH!$FETCH$ac_delim
51867 DOWNLOAD!$DOWNLOAD$ac_delim
51868 SOXMIX!$SOXMIX$ac_delim
51869 acx_pthread_config!$acx_pthread_config$ac_delim
51870 _ACEOF
51872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51873 break
51874 elif $ac_last_try; then
51875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51877 { (exit 1); exit 1; }; }
51878 else
51879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51881 done
51883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51884 if test -n "$ac_eof"; then
51885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51886 ac_eof=`expr $ac_eof + 1`
51889 cat >>$CONFIG_STATUS <<_ACEOF
51890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51892 _ACEOF
51893 sed '
51894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51895 s/^/s,@/; s/!/@,|#_!!_#|/
51898 s/'"$ac_delim"'$/,g/; t
51899 s/$/\\/; p
51900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51901 ' >>$CONFIG_STATUS <conf$$subs.sed
51902 rm -f conf$$subs.sed
51903 cat >>$CONFIG_STATUS <<_ACEOF
51904 CEOF$ac_eof
51905 _ACEOF
51908 ac_delim='%!_!# '
51909 for ac_last_try in false false false false false :; do
51910 cat >conf$$subs.sed <<_ACEOF
51911 PTHREAD_CC!$PTHREAD_CC$ac_delim
51912 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
51913 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
51914 AST_DEVMODE!$AST_DEVMODE$ac_delim
51915 ALSA_LIB!$ALSA_LIB$ac_delim
51916 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
51917 ALSA_DIR!$ALSA_DIR$ac_delim
51918 PBX_ALSA!$PBX_ALSA$ac_delim
51919 BKTR_LIB!$BKTR_LIB$ac_delim
51920 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
51921 BKTR_DIR!$BKTR_DIR$ac_delim
51922 PBX_BKTR!$PBX_BKTR$ac_delim
51923 CAP_LIB!$CAP_LIB$ac_delim
51924 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
51925 CAP_DIR!$CAP_DIR$ac_delim
51926 PBX_CAP!$PBX_CAP$ac_delim
51927 CURL_LIB!$CURL_LIB$ac_delim
51928 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
51929 CURL_DIR!$CURL_DIR$ac_delim
51930 PBX_CURL!$PBX_CURL$ac_delim
51931 CURSES_LIB!$CURSES_LIB$ac_delim
51932 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
51933 CURSES_DIR!$CURSES_DIR$ac_delim
51934 PBX_CURSES!$PBX_CURSES$ac_delim
51935 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
51936 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
51937 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
51938 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
51939 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
51940 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
51941 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
51942 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
51943 GSM_LIB!$GSM_LIB$ac_delim
51944 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
51945 GSM_DIR!$GSM_DIR$ac_delim
51946 PBX_GSM!$PBX_GSM$ac_delim
51947 GTK_LIB!$GTK_LIB$ac_delim
51948 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
51949 GTK_DIR!$GTK_DIR$ac_delim
51950 PBX_GTK!$PBX_GTK$ac_delim
51951 GTK2_LIB!$GTK2_LIB$ac_delim
51952 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
51953 GTK2_DIR!$GTK2_DIR$ac_delim
51954 PBX_GTK2!$PBX_GTK2$ac_delim
51955 GMIME_LIB!$GMIME_LIB$ac_delim
51956 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
51957 GMIME_DIR!$GMIME_DIR$ac_delim
51958 PBX_GMIME!$PBX_GMIME$ac_delim
51959 ICONV_LIB!$ICONV_LIB$ac_delim
51960 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
51961 ICONV_DIR!$ICONV_DIR$ac_delim
51962 PBX_ICONV!$PBX_ICONV$ac_delim
51963 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
51964 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
51965 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
51966 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
51967 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
51968 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
51969 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
51970 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
51971 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
51972 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
51973 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
51974 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
51975 JACK_LIB!$JACK_LIB$ac_delim
51976 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
51977 JACK_DIR!$JACK_DIR$ac_delim
51978 PBX_JACK!$PBX_JACK$ac_delim
51979 LDAP_LIB!$LDAP_LIB$ac_delim
51980 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
51981 LDAP_DIR!$LDAP_DIR$ac_delim
51982 PBX_LDAP!$PBX_LDAP$ac_delim
51983 LTDL_LIB!$LTDL_LIB$ac_delim
51984 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
51985 LTDL_DIR!$LTDL_DIR$ac_delim
51986 PBX_LTDL!$PBX_LTDL$ac_delim
51987 LUA_LIB!$LUA_LIB$ac_delim
51988 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
51989 LUA_DIR!$LUA_DIR$ac_delim
51990 PBX_LUA!$PBX_LUA$ac_delim
51991 MISDN_LIB!$MISDN_LIB$ac_delim
51992 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
51993 MISDN_DIR!$MISDN_DIR$ac_delim
51994 PBX_MISDN!$PBX_MISDN$ac_delim
51995 NBS_LIB!$NBS_LIB$ac_delim
51996 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
51997 NBS_DIR!$NBS_DIR$ac_delim
51998 PBX_NBS!$PBX_NBS$ac_delim
51999 NCURSES_LIB!$NCURSES_LIB$ac_delim
52000 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
52001 NCURSES_DIR!$NCURSES_DIR$ac_delim
52002 PBX_NCURSES!$PBX_NCURSES$ac_delim
52003 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
52004 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
52005 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
52006 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
52007 NEWT_LIB!$NEWT_LIB$ac_delim
52008 _ACEOF
52010 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52011 break
52012 elif $ac_last_try; then
52013 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52014 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52015 { (exit 1); exit 1; }; }
52016 else
52017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52019 done
52021 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52022 if test -n "$ac_eof"; then
52023 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52024 ac_eof=`expr $ac_eof + 1`
52027 cat >>$CONFIG_STATUS <<_ACEOF
52028 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52030 _ACEOF
52031 sed '
52032 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52033 s/^/s,@/; s/!/@,|#_!!_#|/
52036 s/'"$ac_delim"'$/,g/; t
52037 s/$/\\/; p
52038 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52039 ' >>$CONFIG_STATUS <conf$$subs.sed
52040 rm -f conf$$subs.sed
52041 cat >>$CONFIG_STATUS <<_ACEOF
52042 CEOF$ac_eof
52043 _ACEOF
52046 ac_delim='%!_!# '
52047 for ac_last_try in false false false false false :; do
52048 cat >conf$$subs.sed <<_ACEOF
52049 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
52050 NEWT_DIR!$NEWT_DIR$ac_delim
52051 PBX_NEWT!$PBX_NEWT$ac_delim
52052 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
52053 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
52054 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
52055 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
52056 OGG_LIB!$OGG_LIB$ac_delim
52057 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
52058 OGG_DIR!$OGG_DIR$ac_delim
52059 PBX_OGG!$PBX_OGG$ac_delim
52060 OSPTK_LIB!$OSPTK_LIB$ac_delim
52061 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
52062 OSPTK_DIR!$OSPTK_DIR$ac_delim
52063 PBX_OSPTK!$PBX_OSPTK$ac_delim
52064 OSS_LIB!$OSS_LIB$ac_delim
52065 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
52066 OSS_DIR!$OSS_DIR$ac_delim
52067 PBX_OSS!$PBX_OSS$ac_delim
52068 PGSQL_LIB!$PGSQL_LIB$ac_delim
52069 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
52070 PGSQL_DIR!$PGSQL_DIR$ac_delim
52071 PBX_PGSQL!$PBX_PGSQL$ac_delim
52072 POPT_LIB!$POPT_LIB$ac_delim
52073 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
52074 POPT_DIR!$POPT_DIR$ac_delim
52075 PBX_POPT!$PBX_POPT$ac_delim
52076 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
52077 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
52078 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
52079 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
52080 PRI_LIB!$PRI_LIB$ac_delim
52081 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
52082 PRI_DIR!$PRI_DIR$ac_delim
52083 PBX_PRI!$PBX_PRI$ac_delim
52084 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
52085 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
52086 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
52087 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
52088 SS7_LIB!$SS7_LIB$ac_delim
52089 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
52090 SS7_DIR!$SS7_DIR$ac_delim
52091 PBX_SS7!$PBX_SS7$ac_delim
52092 PWLIB_LIB!$PWLIB_LIB$ac_delim
52093 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
52094 PWLIB_DIR!$PWLIB_DIR$ac_delim
52095 PBX_PWLIB!$PBX_PWLIB$ac_delim
52096 OPENH323_LIB!$OPENH323_LIB$ac_delim
52097 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
52098 OPENH323_DIR!$OPENH323_DIR$ac_delim
52099 PBX_OPENH323!$PBX_OPENH323$ac_delim
52100 RADIUS_LIB!$RADIUS_LIB$ac_delim
52101 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
52102 RADIUS_DIR!$RADIUS_DIR$ac_delim
52103 PBX_RADIUS!$PBX_RADIUS$ac_delim
52104 SDL_LIB!$SDL_LIB$ac_delim
52105 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
52106 SDL_DIR!$SDL_DIR$ac_delim
52107 PBX_SDL!$PBX_SDL$ac_delim
52108 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
52109 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
52110 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
52111 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
52112 SACLM_LIB!$SACLM_LIB$ac_delim
52113 SACLM_INCLUDE!$SACLM_INCLUDE$ac_delim
52114 SACLM_DIR!$SACLM_DIR$ac_delim
52115 PBX_SACLM!$PBX_SACLM$ac_delim
52116 SAEVT_LIB!$SAEVT_LIB$ac_delim
52117 SAEVT_INCLUDE!$SAEVT_INCLUDE$ac_delim
52118 SAEVT_DIR!$SAEVT_DIR$ac_delim
52119 PBX_SAEVT!$PBX_SAEVT$ac_delim
52120 SPEEX_LIB!$SPEEX_LIB$ac_delim
52121 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
52122 SPEEX_DIR!$SPEEX_DIR$ac_delim
52123 PBX_SPEEX!$PBX_SPEEX$ac_delim
52124 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
52125 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
52126 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
52127 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
52128 SQLITE_LIB!$SQLITE_LIB$ac_delim
52129 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
52130 SQLITE_DIR!$SQLITE_DIR$ac_delim
52131 PBX_SQLITE!$PBX_SQLITE$ac_delim
52132 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
52133 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
52134 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
52135 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
52136 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
52137 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
52138 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
52139 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
52140 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
52141 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
52142 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
52143 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
52144 FREETDS_LIB!$FREETDS_LIB$ac_delim
52145 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
52146 _ACEOF
52148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52149 break
52150 elif $ac_last_try; then
52151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52153 { (exit 1); exit 1; }; }
52154 else
52155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52157 done
52159 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52160 if test -n "$ac_eof"; then
52161 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52162 ac_eof=`expr $ac_eof + 1`
52165 cat >>$CONFIG_STATUS <<_ACEOF
52166 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52168 _ACEOF
52169 sed '
52170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52171 s/^/s,@/; s/!/@,|#_!!_#|/
52174 s/'"$ac_delim"'$/,g/; t
52175 s/$/\\/; p
52176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52177 ' >>$CONFIG_STATUS <conf$$subs.sed
52178 rm -f conf$$subs.sed
52179 cat >>$CONFIG_STATUS <<_ACEOF
52180 CEOF$ac_eof
52181 _ACEOF
52184 ac_delim='%!_!# '
52185 for ac_last_try in false false false false false :; do
52186 cat >conf$$subs.sed <<_ACEOF
52187 FREETDS_DIR!$FREETDS_DIR$ac_delim
52188 PBX_FREETDS!$PBX_FREETDS$ac_delim
52189 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
52190 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
52191 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
52192 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
52193 TINFO_LIB!$TINFO_LIB$ac_delim
52194 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
52195 TINFO_DIR!$TINFO_DIR$ac_delim
52196 PBX_TINFO!$PBX_TINFO$ac_delim
52197 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
52198 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
52199 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
52200 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
52201 USB_LIB!$USB_LIB$ac_delim
52202 USB_INCLUDE!$USB_INCLUDE$ac_delim
52203 USB_DIR!$USB_DIR$ac_delim
52204 PBX_USB!$PBX_USB$ac_delim
52205 VORBIS_LIB!$VORBIS_LIB$ac_delim
52206 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
52207 VORBIS_DIR!$VORBIS_DIR$ac_delim
52208 PBX_VORBIS!$PBX_VORBIS$ac_delim
52209 VPB_LIB!$VPB_LIB$ac_delim
52210 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
52211 VPB_DIR!$VPB_DIR$ac_delim
52212 PBX_VPB!$PBX_VPB$ac_delim
52213 X11_LIB!$X11_LIB$ac_delim
52214 X11_INCLUDE!$X11_INCLUDE$ac_delim
52215 X11_DIR!$X11_DIR$ac_delim
52216 PBX_X11!$PBX_X11$ac_delim
52217 ZLIB_LIB!$ZLIB_LIB$ac_delim
52218 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
52219 ZLIB_DIR!$ZLIB_DIR$ac_delim
52220 PBX_ZLIB!$PBX_ZLIB$ac_delim
52221 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
52222 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
52223 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
52224 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
52225 ALLOCA!$ALLOCA$ac_delim
52226 LIBOBJS!$LIBOBJS$ac_delim
52227 POW_LIB!$POW_LIB$ac_delim
52228 HAS_POLL!$HAS_POLL$ac_delim
52229 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
52230 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
52231 GC_CFLAGS!$GC_CFLAGS$ac_delim
52232 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
52233 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
52234 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
52235 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
52236 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
52237 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
52238 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
52239 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
52240 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
52241 PG_CONFIG!$PG_CONFIG$ac_delim
52242 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
52243 PWLIBDIR!$PWLIBDIR$ac_delim
52244 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
52245 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
52246 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
52247 OPENH323DIR!$OPENH323DIR$ac_delim
52248 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
52249 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
52250 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
52251 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
52252 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
52253 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
52254 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
52255 PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim
52256 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
52257 PBX_ZAPTEL_HWGAIN!$PBX_ZAPTEL_HWGAIN$ac_delim
52258 PBX_ZAPTEL_NEONMWI!$PBX_ZAPTEL_NEONMWI$ac_delim
52259 PBX_ZAPTEL_SIG_MTP2!$PBX_ZAPTEL_SIG_MTP2$ac_delim
52260 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
52261 PBX_H323!$PBX_H323$ac_delim
52262 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
52263 CONFIG_SDL!$CONFIG_SDL$ac_delim
52264 CONFIG_GTK!$CONFIG_GTK$ac_delim
52265 PKGCONFIG!$PKGCONFIG$ac_delim
52266 CURL_CONFIG!$CURL_CONFIG$ac_delim
52267 LTLIBOBJS!$LTLIBOBJS$ac_delim
52268 _ACEOF
52270 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
52271 break
52272 elif $ac_last_try; then
52273 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52274 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52275 { (exit 1); exit 1; }; }
52276 else
52277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52279 done
52281 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52282 if test -n "$ac_eof"; then
52283 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52284 ac_eof=`expr $ac_eof + 1`
52287 cat >>$CONFIG_STATUS <<_ACEOF
52288 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52290 _ACEOF
52291 sed '
52292 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52293 s/^/s,@/; s/!/@,|#_!!_#|/
52296 s/'"$ac_delim"'$/,g/; t
52297 s/$/\\/; p
52298 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52299 ' >>$CONFIG_STATUS <conf$$subs.sed
52300 rm -f conf$$subs.sed
52301 cat >>$CONFIG_STATUS <<_ACEOF
52302 :end
52303 s/|#_!!_#|//g
52304 CEOF$ac_eof
52305 _ACEOF
52308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52310 # trailing colons and then remove the whole line if VPATH becomes empty
52311 # (actually we leave an empty line to preserve line numbers).
52312 if test "x$srcdir" = x.; then
52313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52314 s/:*\$(srcdir):*/:/
52315 s/:*\${srcdir}:*/:/
52316 s/:*@srcdir@:*/:/
52317 s/^\([^=]*=[ ]*\):*/\1/
52318 s/:*$//
52319 s/^[^=]*=[ ]*$//
52323 cat >>$CONFIG_STATUS <<\_ACEOF
52324 fi # test -n "$CONFIG_FILES"
52327 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
52329 case $ac_tag in
52330 :[FHLC]) ac_mode=$ac_tag; continue;;
52331 esac
52332 case $ac_mode$ac_tag in
52333 :[FHL]*:*);;
52334 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52335 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52336 { (exit 1); exit 1; }; };;
52337 :[FH]-) ac_tag=-:-;;
52338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52339 esac
52340 ac_save_IFS=$IFS
52341 IFS=:
52342 set x $ac_tag
52343 IFS=$ac_save_IFS
52344 shift
52345 ac_file=$1
52346 shift
52348 case $ac_mode in
52349 :L) ac_source=$1;;
52350 :[FH])
52351 ac_file_inputs=
52352 for ac_f
52354 case $ac_f in
52355 -) ac_f="$tmp/stdin";;
52356 *) # Look for the file first in the build tree, then in the source tree
52357 # (if the path is not absolute). The absolute path cannot be DOS-style,
52358 # because $ac_f cannot contain `:'.
52359 test -f "$ac_f" ||
52360 case $ac_f in
52361 [\\/$]*) false;;
52362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52363 esac ||
52364 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52365 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52366 { (exit 1); exit 1; }; };;
52367 esac
52368 ac_file_inputs="$ac_file_inputs $ac_f"
52369 done
52371 # Let's still pretend it is `configure' which instantiates (i.e., don't
52372 # use $as_me), people would be surprised to read:
52373 # /* config.h. Generated by config.status. */
52374 configure_input="Generated from "`IFS=:
52375 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52376 if test x"$ac_file" != x-; then
52377 configure_input="$ac_file. $configure_input"
52378 { echo "$as_me:$LINENO: creating $ac_file" >&5
52379 echo "$as_me: creating $ac_file" >&6;}
52382 case $ac_tag in
52383 *:-:* | *:-) cat >"$tmp/stdin";;
52384 esac
52386 esac
52388 ac_dir=`$as_dirname -- "$ac_file" ||
52389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52390 X"$ac_file" : 'X\(//\)[^/]' \| \
52391 X"$ac_file" : 'X\(//\)$' \| \
52392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52393 echo X"$ac_file" |
52394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52395 s//\1/
52398 /^X\(\/\/\)[^/].*/{
52399 s//\1/
52402 /^X\(\/\/\)$/{
52403 s//\1/
52406 /^X\(\/\).*/{
52407 s//\1/
52410 s/.*/./; q'`
52411 { as_dir="$ac_dir"
52412 case $as_dir in #(
52413 -*) as_dir=./$as_dir;;
52414 esac
52415 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52416 as_dirs=
52417 while :; do
52418 case $as_dir in #(
52419 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52420 *) as_qdir=$as_dir;;
52421 esac
52422 as_dirs="'$as_qdir' $as_dirs"
52423 as_dir=`$as_dirname -- "$as_dir" ||
52424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52425 X"$as_dir" : 'X\(//\)[^/]' \| \
52426 X"$as_dir" : 'X\(//\)$' \| \
52427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52428 echo X"$as_dir" |
52429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52430 s//\1/
52433 /^X\(\/\/\)[^/].*/{
52434 s//\1/
52437 /^X\(\/\/\)$/{
52438 s//\1/
52441 /^X\(\/\).*/{
52442 s//\1/
52445 s/.*/./; q'`
52446 test -d "$as_dir" && break
52447 done
52448 test -z "$as_dirs" || eval "mkdir $as_dirs"
52449 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52450 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52451 { (exit 1); exit 1; }; }; }
52452 ac_builddir=.
52454 case "$ac_dir" in
52455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52458 # A ".." for each directory in $ac_dir_suffix.
52459 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52460 case $ac_top_builddir_sub in
52461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52463 esac ;;
52464 esac
52465 ac_abs_top_builddir=$ac_pwd
52466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52467 # for backward compatibility:
52468 ac_top_builddir=$ac_top_build_prefix
52470 case $srcdir in
52471 .) # We are building in place.
52472 ac_srcdir=.
52473 ac_top_srcdir=$ac_top_builddir_sub
52474 ac_abs_top_srcdir=$ac_pwd ;;
52475 [\\/]* | ?:[\\/]* ) # Absolute name.
52476 ac_srcdir=$srcdir$ac_dir_suffix;
52477 ac_top_srcdir=$srcdir
52478 ac_abs_top_srcdir=$srcdir ;;
52479 *) # Relative name.
52480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52481 ac_top_srcdir=$ac_top_build_prefix$srcdir
52482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52483 esac
52484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52487 case $ac_mode in
52490 # CONFIG_FILE
52493 case $INSTALL in
52494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52496 esac
52497 _ACEOF
52499 cat >>$CONFIG_STATUS <<\_ACEOF
52500 # If the template does not know about datarootdir, expand it.
52501 # FIXME: This hack should be removed a few years after 2.60.
52502 ac_datarootdir_hack=; ac_datarootdir_seen=
52504 case `sed -n '/datarootdir/ {
52508 /@datadir@/p
52509 /@docdir@/p
52510 /@infodir@/p
52511 /@localedir@/p
52512 /@mandir@/p
52513 ' $ac_file_inputs` in
52514 *datarootdir*) ac_datarootdir_seen=yes;;
52515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52516 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52517 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52518 _ACEOF
52519 cat >>$CONFIG_STATUS <<_ACEOF
52520 ac_datarootdir_hack='
52521 s&@datadir@&$datadir&g
52522 s&@docdir@&$docdir&g
52523 s&@infodir@&$infodir&g
52524 s&@localedir@&$localedir&g
52525 s&@mandir@&$mandir&g
52526 s&\\\${datarootdir}&$datarootdir&g' ;;
52527 esac
52528 _ACEOF
52530 # Neutralize VPATH when `$srcdir' = `.'.
52531 # Shell code in configure.ac might set extrasub.
52532 # FIXME: do we really want to maintain this feature?
52533 cat >>$CONFIG_STATUS <<_ACEOF
52534 sed "$ac_vpsub
52535 $extrasub
52536 _ACEOF
52537 cat >>$CONFIG_STATUS <<\_ACEOF
52539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52540 s&@configure_input@&$configure_input&;t t
52541 s&@top_builddir@&$ac_top_builddir_sub&;t t
52542 s&@srcdir@&$ac_srcdir&;t t
52543 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52544 s&@top_srcdir@&$ac_top_srcdir&;t t
52545 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52546 s&@builddir@&$ac_builddir&;t t
52547 s&@abs_builddir@&$ac_abs_builddir&;t t
52548 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52549 s&@INSTALL@&$ac_INSTALL&;t t
52550 $ac_datarootdir_hack
52551 " $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
52553 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52554 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52556 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52557 which seems to be undefined. Please make sure it is defined." >&5
52558 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52559 which seems to be undefined. Please make sure it is defined." >&2;}
52561 rm -f "$tmp/stdin"
52562 case $ac_file in
52563 -) cat "$tmp/out"; rm -f "$tmp/out";;
52564 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52565 esac
52569 # CONFIG_HEADER
52571 _ACEOF
52573 # Transform confdefs.h into a sed script `conftest.defines', that
52574 # substitutes the proper values into config.h.in to produce config.h.
52575 rm -f conftest.defines conftest.tail
52576 # First, append a space to every undef/define line, to ease matching.
52577 echo 's/$/ /' >conftest.defines
52578 # Then, protect against being on the right side of a sed subst, or in
52579 # an unquoted here document, in config.status. If some macros were
52580 # called several times there might be several #defines for the same
52581 # symbol, which is useless. But do not sort them, since the last
52582 # AC_DEFINE must be honored.
52583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52584 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52585 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52586 # PARAMS is the parameter list in the macro definition--in most cases, it's
52587 # just an empty string.
52588 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
52589 ac_dB='\\)[ (].*,\\1define\\2'
52590 ac_dC=' '
52591 ac_dD=' ,'
52593 uniq confdefs.h |
52594 sed -n '
52595 t rset
52596 :rset
52597 s/^[ ]*#[ ]*define[ ][ ]*//
52598 t ok
52601 s/[\\&,]/\\&/g
52602 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52603 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52604 ' >>conftest.defines
52606 # Remove the space that was appended to ease matching.
52607 # Then replace #undef with comments. This is necessary, for
52608 # example, in the case of _POSIX_SOURCE, which is predefined and required
52609 # on some systems where configure will not decide to define it.
52610 # (The regexp can be short, since the line contains either #define or #undef.)
52611 echo 's/ $//
52612 s,^[ #]*u.*,/* & */,' >>conftest.defines
52614 # Break up conftest.defines:
52615 ac_max_sed_lines=50
52617 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52618 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52619 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52620 # et cetera.
52621 ac_in='$ac_file_inputs'
52622 ac_out='"$tmp/out1"'
52623 ac_nxt='"$tmp/out2"'
52625 while :
52627 # Write a here document:
52628 cat >>$CONFIG_STATUS <<_ACEOF
52629 # First, check the format of the line:
52630 cat >"\$tmp/defines.sed" <<\\CEOF
52631 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
52632 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
52634 :def
52635 _ACEOF
52636 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52637 echo 'CEOF
52638 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52639 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52640 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52641 grep . conftest.tail >/dev/null || break
52642 rm -f conftest.defines
52643 mv conftest.tail conftest.defines
52644 done
52645 rm -f conftest.defines conftest.tail
52647 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52648 cat >>$CONFIG_STATUS <<\_ACEOF
52649 if test x"$ac_file" != x-; then
52650 echo "/* $configure_input */" >"$tmp/config.h"
52651 cat "$ac_result" >>"$tmp/config.h"
52652 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52653 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52654 echo "$as_me: $ac_file is unchanged" >&6;}
52655 else
52656 rm -f $ac_file
52657 mv "$tmp/config.h" $ac_file
52659 else
52660 echo "/* $configure_input */"
52661 cat "$ac_result"
52663 rm -f "$tmp/out12"
52667 esac
52669 done # for ac_tag
52672 { (exit 0); exit 0; }
52673 _ACEOF
52674 chmod +x $CONFIG_STATUS
52675 ac_clean_files=$ac_clean_files_save
52678 # configure is writing to config.log, and then calls config.status.
52679 # config.status does its own redirection, appending to config.log.
52680 # Unfortunately, on DOS this fails, as config.log is still kept open
52681 # by configure, so config.status won't be able to write to it; its
52682 # output is simply discarded. So we exec the FD to /dev/null,
52683 # effectively closing config.log, so it can be properly (re)opened and
52684 # appended to by config.status. When coming back to configure, we
52685 # need to make the FD available again.
52686 if test "$no_create" != yes; then
52687 ac_cs_success=:
52688 ac_config_status_args=
52689 test "$silent" = yes &&
52690 ac_config_status_args="$ac_config_status_args --quiet"
52691 exec 5>/dev/null
52692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52693 exec 5>>config.log
52694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52695 # would make configure fail if this is the last instruction.
52696 $ac_cs_success || { (exit 1); exit 1; }
52700 if test "x${silent}" != "xyes" ; then
52701 echo
52702 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
52703 echo " .\$7\$7.. .7\$\$7:. "
52704 echo " .\$\$:. ,\$7.7 "
52705 echo " .\$7. 7\$\$\$\$ .\$\$77 "
52706 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
52707 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
52708 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
52709 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
52710 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
52711 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
52712 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
52713 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
52714 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
52715 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
52716 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
52717 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
52718 echo " \$\$\$\$\$ \$\$\$ "
52719 echo " \$\$\$\$7. \$\$ (TM) "
52720 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
52721 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
52722 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
52723 echo
52726 { echo "$as_me:$LINENO: Package configured for: " >&5
52727 echo "$as_me: Package configured for: " >&6;}
52728 { echo "$as_me:$LINENO: OS type : $host_os" >&5
52729 echo "$as_me: OS type : $host_os" >&6;}
52730 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
52731 echo "$as_me: Host CPU : $host_cpu" >&6;}
52732 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
52733 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
52734 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
52735 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
52736 if test "${cross_compiling}" = "yes"; then
52737 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
52738 echo "$as_me: Cross Compilation = YES" >&6;}