Minor formatting change to test a mantis change ...
[asterisk-bristuff.git] / configure
blobb3df9637f8c722a0604f7613e7c142a2a38b562a
1 #! /bin/sh
2 # From configure.ac Revision: 119795 .
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 SPEEX_LIB
880 SPEEX_INCLUDE
881 SPEEX_DIR
882 PBX_SPEEX
883 SPEEXDSP_LIB
884 SPEEXDSP_INCLUDE
885 SPEEXDSP_DIR
886 PBX_SPEEXDSP
887 SQLITE_LIB
888 SQLITE_INCLUDE
889 SQLITE_DIR
890 PBX_SQLITE
891 SQLITE3_LIB
892 SQLITE3_INCLUDE
893 SQLITE3_DIR
894 PBX_SQLITE3
895 SUPPSERV_LIB
896 SUPPSERV_INCLUDE
897 SUPPSERV_DIR
898 PBX_SUPPSERV
899 OPENSSL_LIB
900 OPENSSL_INCLUDE
901 OPENSSL_DIR
902 PBX_OPENSSL
903 FREETDS_LIB
904 FREETDS_INCLUDE
905 FREETDS_DIR
906 PBX_FREETDS
907 TERMCAP_LIB
908 TERMCAP_INCLUDE
909 TERMCAP_DIR
910 PBX_TERMCAP
911 TINFO_LIB
912 TINFO_INCLUDE
913 TINFO_DIR
914 PBX_TINFO
915 TONEZONE_LIB
916 TONEZONE_INCLUDE
917 TONEZONE_DIR
918 PBX_TONEZONE
919 USB_LIB
920 USB_INCLUDE
921 USB_DIR
922 PBX_USB
923 VORBIS_LIB
924 VORBIS_INCLUDE
925 VORBIS_DIR
926 PBX_VORBIS
927 VPB_LIB
928 VPB_INCLUDE
929 VPB_DIR
930 PBX_VPB
931 X11_LIB
932 X11_INCLUDE
933 X11_DIR
934 PBX_X11
935 ZLIB_LIB
936 ZLIB_INCLUDE
937 ZLIB_DIR
938 PBX_ZLIB
939 ZAPTEL_LIB
940 ZAPTEL_INCLUDE
941 ZAPTEL_DIR
942 PBX_ZAPTEL
943 ALLOCA
944 LIBOBJS
945 POW_LIB
946 HAS_POLL
947 PBX_PTHREAD_RWLOCK_INITIALIZER
948 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
949 GC_CFLAGS
950 GC_LDFLAGS
951 AST_DECLARATION_AFTER_STATEMENT
952 AST_NO_STRICT_OVERFLOW
953 PBX_RTLD_NOLOAD
954 PBX_IP_MTU_DISCOVER
955 GSM_INTERNAL
956 PBX_MISDN_FAC_RESULT
957 PBX_MISDN_FAC_ERROR
958 CONFIG_NETSNMP
959 PG_CONFIG
960 PTLIB_CONFIG
961 PWLIBDIR
962 PWLIB_INCDIR
963 PWLIB_LIBDIR
964 PWLIB_PLATFORM
965 OPENH323DIR
966 OPENH323_INCDIR
967 OPENH323_LIBDIR
968 OPENH323_SUFFIX
969 OPENH323_BUILD
970 PBX_SPEEX_PREPROCESS
971 CONFIG_GMIME
972 PBX_ZAPTEL_VLDTMF
973 PBX_ZAPTEL_ECHOCANPARAMS
974 PBX_ZAPTEL_TRANSCODE
975 PBX_ZAPTEL_HWGAIN
976 PBX_ZAPTEL_NEONMWI
977 PBX_ZAPTEL_SIG_MTP2
978 EDITLINE_LIB
979 PBX_H323
980 PBX_IXJUSER
981 CONFIG_SDL
982 CONFIG_GTK
983 PKGCONFIG
984 CURL_CONFIG
985 LTLIBOBJS'
986 ac_subst_files=''
987 ac_precious_vars='build_alias
988 host_alias
989 target_alias
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
997 CXXFLAGS
999 CXXCPP'
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1008 exec_prefix=NONE
1009 no_create=
1010 no_recursion=
1011 prefix=NONE
1012 program_prefix=NONE
1013 program_suffix=NONE
1014 program_transform_name=s,x,x,
1015 silent=
1016 site=
1017 srcdir=
1018 verbose=
1019 x_includes=NONE
1020 x_libraries=NONE
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1040 htmldir='${docdir}'
1041 dvidir='${docdir}'
1042 pdfdir='${docdir}'
1043 psdir='${docdir}'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1048 ac_prev=
1049 ac_dashdash=
1050 for ac_option
1052 # If the previous option needs an argument, assign it.
1053 if test -n "$ac_prev"; then
1054 eval $ac_prev=\$ac_option
1055 ac_prev=
1056 continue
1059 case $ac_option in
1060 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061 *) ac_optarg=yes ;;
1062 esac
1064 # Accept the important Cygnus configure options, so we can diagnose typos.
1066 case $ac_dashdash$ac_option in
1068 ac_dashdash=yes ;;
1070 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 ac_prev=bindir ;;
1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073 bindir=$ac_optarg ;;
1075 -build | --build | --buil | --bui | --bu)
1076 ac_prev=build_alias ;;
1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078 build_alias=$ac_optarg ;;
1080 -cache-file | --cache-file | --cache-fil | --cache-fi \
1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082 ac_prev=cache_file ;;
1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085 cache_file=$ac_optarg ;;
1087 --config-cache | -C)
1088 cache_file=config.cache ;;
1090 -datadir | --datadir | --datadi | --datad)
1091 ac_prev=datadir ;;
1092 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093 datadir=$ac_optarg ;;
1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096 | --dataroo | --dataro | --datar)
1097 ac_prev=datarootdir ;;
1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100 datarootdir=$ac_optarg ;;
1102 -disable-* | --disable-*)
1103 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1109 eval enable_$ac_feature=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1128 eval enable_$ac_feature=\$ac_optarg ;;
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 ac_prev=sbindir ;;
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 | --sbi=* | --sb=*)
1277 sbindir=$ac_optarg ;;
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1282 | --sha | --sh)
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 | --sha=* | --sh=*)
1288 sharedstatedir=$ac_optarg ;;
1290 -site | --site | --sit)
1291 ac_prev=site ;;
1292 -site=* | --site=* | --sit=*)
1293 site=$ac_optarg ;;
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 ac_prev=srcdir ;;
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 verbose=yes ;;
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1318 -with-* | --with-*)
1319 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid package name: $ac_package" >&2
1323 { (exit 1); exit 1; }; }
1324 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1325 eval with_$ac_package=\$ac_optarg ;;
1327 -without-* | --without-*)
1328 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 { echo "$as_me: error: invalid package name: $ac_package" >&2
1332 { (exit 1); exit 1; }; }
1333 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1334 eval with_$ac_package=no ;;
1336 --x)
1337 # Obsolete; use --with-x.
1338 with_x=yes ;;
1340 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341 | --x-incl | --x-inc | --x-in | --x-i)
1342 ac_prev=x_includes ;;
1343 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345 x_includes=$ac_optarg ;;
1347 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349 ac_prev=x_libraries ;;
1350 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352 x_libraries=$ac_optarg ;;
1354 -*) { echo "$as_me: error: unrecognized option: $ac_option
1355 Try \`$0 --help' for more information." >&2
1356 { (exit 1); exit 1; }; }
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1363 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1364 { (exit 1); exit 1; }; }
1365 eval $ac_envvar=\$ac_optarg
1366 export $ac_envvar ;;
1369 # FIXME: should be removed in autoconf 3.0.
1370 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1371 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1373 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376 esac
1377 done
1379 if test -n "$ac_prev"; then
1380 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381 { echo "$as_me: error: missing argument to $ac_option" >&2
1382 { (exit 1); exit 1; }; }
1385 # Be sure to have absolute directory names.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1397 { (exit 1); exit 1; }; }
1398 done
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421 test "$silent" = yes && exec 6>/dev/null
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 { echo "$as_me: error: Working directory cannot be determined" >&2
1428 { (exit 1); exit 1; }; }
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 { echo "$as_me: error: pwd does not report name of working directory" >&2
1431 { (exit 1); exit 1; }; }
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$0" ||
1439 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$0" : 'X\(//\)[^/]' \| \
1441 X"$0" : 'X\(//\)$' \| \
1442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1443 echo X"$0" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1452 /^X\(\/\/\)$/{
1453 s//\1/
1456 /^X\(\/\).*/{
1457 s//\1/
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1465 else
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1471 { (exit 1); exit 1; }; }
1473 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 ac_abs_confdir=`(
1475 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1476 { (exit 1); exit 1; }; }
1477 pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 srcdir=.
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_env_${ac_var}_value=\$${ac_var}
1491 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1496 # Report the --help message.
1498 if test "$ac_init_help" = "long"; then
1499 # Omit some internal or obsolete options to make the list less imposing.
1500 # This message is too long to be a string in the A/UX 3.1 sh.
1501 cat <<_ACEOF
1502 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE. See below for descriptions of some of the useful variables.
1509 Defaults for the options are specified in brackets.
1511 Configuration:
1512 -h, --help display this help and exit
1513 --help=short display options specific to this package
1514 --help=recursive display the short help of all the included packages
1515 -V, --version display version information and exit
1516 -q, --quiet, --silent do not print \`checking...' messages
1517 --cache-file=FILE cache test results in FILE [disabled]
1518 -C, --config-cache alias for \`--cache-file=config.cache'
1519 -n, --no-create do not create output files
1520 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522 Installation directories:
1523 --prefix=PREFIX install architecture-independent files in PREFIX
1524 [$ac_default_prefix]
1525 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 [PREFIX]
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1533 For better control, use the options below.
1535 Fine tuning of the installation directories:
1536 --bindir=DIR user executables [EPREFIX/bin]
1537 --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 --libexecdir=DIR program executables [EPREFIX/libexec]
1539 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 --libdir=DIR object code libraries [EPREFIX/lib]
1543 --includedir=DIR C header files [PREFIX/include]
1544 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 --infodir=DIR info documentation [DATAROOTDIR/info]
1548 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 --mandir=DIR man documentation [DATAROOTDIR/man]
1550 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1551 --htmldir=DIR html documentation [DOCDIR]
1552 --dvidir=DIR dvi documentation [DOCDIR]
1553 --pdfdir=DIR pdf documentation [DOCDIR]
1554 --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 _ACEOF
1565 if test -n "$ac_init_help"; then
1566 case $ac_init_help in
1567 short | recursive ) echo "Configuration of asterisk 1.6:";;
1568 esac
1569 cat <<\_ACEOF
1571 Optional Features:
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-dev-mode Turn on developer mode
1575 --disable-largefile omit support for large files
1577 Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1582 --with-execinfo=PATH use Stack Backtrace support files in PATH
1583 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1584 --with-curl=PATH use cURL files in PATH
1585 --with-curses=PATH use curses files in PATH
1586 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1587 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1588 --with-gsm=PATH use External GSM library files in PATH , use
1589 'internal' GSM otherwise
1590 --with-gtk=PATH use gtk libraries files in PATH
1591 --with-gtk2=PATH use gtk2 libraries files in PATH
1592 --with-gmime=PATH use GMime library files in PATH
1593 --with-iconv=PATH use Iconv Library files in PATH
1594 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1595 --with-imap=PATH use UW IMAP Toolkit files in PATH
1596 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1597 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1598 --with-ldap=PATH use OpenLDAP files in PATH
1599 --with-ltdl=PATH use libtool files in PATH
1600 --with-lua=PATH use Lua files in PATH
1601 --with-misdn=PATH use mISDN User Library files in PATH
1602 --with-nbs=PATH use Network Broadcast Sound files in PATH
1603 --with-ncurses=PATH use ncurses files in PATH
1604 --with-netsnmp=PATH use Net-SNMP files in PATH
1605 --with-newt=PATH use newt files in PATH
1606 --with-odbc=PATH use unixODBC files in PATH
1607 --with-ogg=PATH use OGG files in PATH
1608 --with-osptk=PATH use OSP Toolkit files in PATH
1609 --with-oss=PATH use Open Sound System files in PATH
1610 --with-postgres=PATH use PostgreSQL files in PATH
1611 --with-popt=PATH use popt files in PATH
1612 --with-portaudio=PATH use PortAudio files in PATH
1613 --with-pri=PATH use ISDN PRI files in PATH
1614 --with-spandsp=PATH use SPANDSP files in PATH
1615 --with-ss7=PATH use ISDN SS7 files in PATH
1616 --with-pwlib=PATH use PWlib files in PATH
1617 --with-h323=PATH use OpenH323 files in PATH
1618 --with-radius=PATH use Radius Client files in PATH
1619 --with-sdl=PATH use Sdl files in PATH
1620 --with-SDL_image=PATH use Sdl Image library files in PATH
1621 --with-speex=PATH use Speex files in PATH
1622 --with-speexdsp=PATH use Speexdsp files in PATH
1623 --with-sqlite=PATH use SQLite files in PATH
1624 --with-sqlite3=PATH use SQLite files in PATH
1625 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1626 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1627 PATH
1628 --with-tds=PATH use FreeTDS files in PATH
1629 --with-termcap=PATH use Termcap files in PATH
1630 --with-tinfo=PATH use Term Info files in PATH
1631 --with-tonezone=PATH use tonezone files in PATH
1632 --with-usb=PATH use usb files in PATH
1633 --with-vorbis=PATH use Vorbis files in PATH
1634 --with-vpb=PATH use Voicetronix API files in PATH
1635 --with-x11=PATH use X11 support files in PATH
1636 --with-z=PATH use zlib files in PATH
1637 --with-zaptel=PATH use Zaptel files in PATH
1639 Some influential environment variables:
1640 CC C compiler command
1641 CFLAGS C compiler flags
1642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1643 nonstandard directory <lib dir>
1644 LIBS libraries to pass to the linker, e.g. -l<library>
1645 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1646 you have headers in a nonstandard directory <include dir>
1647 CPP C preprocessor
1648 CXX C++ compiler command
1649 CXXFLAGS C++ compiler flags
1650 CXXCPP C++ preprocessor
1652 Use these variables to override the choices made by `configure' or to help
1653 it to find libraries and programs with nonstandard names/locations.
1655 Report bugs to <www.asterisk.org>.
1656 _ACEOF
1657 ac_status=$?
1660 if test "$ac_init_help" = "recursive"; then
1661 # If there are subdirs, report their specific --help.
1662 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663 test -d "$ac_dir" || continue
1664 ac_builddir=.
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1682 case $srcdir in
1683 .) # We are building in place.
1684 ac_srcdir=.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 asterisk configure 1.6
1717 generated by GNU Autoconf 2.61
1719 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1720 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1724 "Asterisk"
1725 _ACEOF
1726 exit
1728 cat >config.log <<_ACEOF
1729 This file contains any messages produced by compilers while
1730 running configure, to aid debugging if configure makes a mistake.
1732 It was created by asterisk $as_me 1.6, which was
1733 generated by GNU Autoconf 2.61. Invocation command line was
1735 $ $0 $@
1737 _ACEOF
1738 exec 5>>config.log
1740 cat <<_ASUNAME
1741 ## --------- ##
1742 ## Platform. ##
1743 ## --------- ##
1745 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1746 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1747 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1748 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1749 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1751 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1752 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1754 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1755 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1756 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1757 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1758 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1759 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1760 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1762 _ASUNAME
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 echo "PATH: $as_dir"
1770 done
1771 IFS=$as_save_IFS
1773 } >&5
1775 cat >&5 <<_ACEOF
1778 ## ----------- ##
1779 ## Core tests. ##
1780 ## ----------- ##
1782 _ACEOF
1785 # Keep a trace of the command line.
1786 # Strip out --no-create and --no-recursion so they do not pile up.
1787 # Strip out --silent because we don't want to record it for future runs.
1788 # Also quote any args containing shell meta-characters.
1789 # Make two passes to allow for proper duplicate-argument suppression.
1790 ac_configure_args=
1791 ac_configure_args0=
1792 ac_configure_args1=
1793 ac_must_keep_next=false
1794 for ac_pass in 1 2
1796 for ac_arg
1798 case $ac_arg in
1799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801 | -silent | --silent | --silen | --sile | --sil)
1802 continue ;;
1803 *\'*)
1804 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805 esac
1806 case $ac_pass in
1807 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1809 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1810 if test $ac_must_keep_next = true; then
1811 ac_must_keep_next=false # Got value, back to normal.
1812 else
1813 case $ac_arg in
1814 *=* | --config-cache | -C | -disable-* | --disable-* \
1815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817 | -with-* | --with-* | -without-* | --without-* | --x)
1818 case "$ac_configure_args0 " in
1819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820 esac
1822 -* ) ac_must_keep_next=true ;;
1823 esac
1825 ac_configure_args="$ac_configure_args '$ac_arg'"
1827 esac
1828 done
1829 done
1830 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1831 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1833 # When interrupted or exit'd, cleanup temporary files, and complete
1834 # config.log. We remove comments because anyway the quotes in there
1835 # would cause problems or look ugly.
1836 # WARNING: Use '\'' to represent an apostrophe within the trap.
1837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838 trap 'exit_status=$?
1839 # Save into config.log some information that might help in debugging.
1841 echo
1843 cat <<\_ASBOX
1844 ## ---------------- ##
1845 ## Cache variables. ##
1846 ## ---------------- ##
1847 _ASBOX
1848 echo
1849 # The following way of writing the cache mishandles newlines in values,
1851 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in #(
1854 *${as_nl}*)
1855 case $ac_var in #(
1856 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1857 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1858 esac
1859 case $ac_var in #(
1860 _ | IFS | as_nl) ;; #(
1861 *) $as_unset $ac_var ;;
1862 esac ;;
1863 esac
1864 done
1865 (set) 2>&1 |
1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1867 *${as_nl}ac_space=\ *)
1868 sed -n \
1869 "s/'\''/'\''\\\\'\'''\''/g;
1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1871 ;; #(
1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875 esac |
1876 sort
1878 echo
1880 cat <<\_ASBOX
1881 ## ----------------- ##
1882 ## Output variables. ##
1883 ## ----------------- ##
1884 _ASBOX
1885 echo
1886 for ac_var in $ac_subst_vars
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1896 if test -n "$ac_subst_files"; then
1897 cat <<\_ASBOX
1898 ## ------------------- ##
1899 ## File substitutions. ##
1900 ## ------------------- ##
1901 _ASBOX
1902 echo
1903 for ac_var in $ac_subst_files
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 echo "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1914 if test -s confdefs.h; then
1915 cat <<\_ASBOX
1916 ## ----------- ##
1917 ## confdefs.h. ##
1918 ## ----------- ##
1919 _ASBOX
1920 echo
1921 cat confdefs.h
1922 echo
1924 test "$ac_signal" != 0 &&
1925 echo "$as_me: caught signal $ac_signal"
1926 echo "$as_me: exit $exit_status"
1927 } >&5
1928 rm -f core *.core core.conftest.* &&
1929 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930 exit $exit_status
1932 for ac_signal in 1 2 13 15; do
1933 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1934 done
1935 ac_signal=0
1937 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1938 rm -f -r conftest* confdefs.h
1940 # Predefined preprocessor variables.
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_NAME "$PACKAGE_NAME"
1944 _ACEOF
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949 _ACEOF
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1954 _ACEOF
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964 _ACEOF
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 set x "$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1973 else
1974 set x "$ac_default_prefix/share/config.site" \
1975 "$ac_default_prefix/etc/config.site"
1977 shift
1978 for ac_site_file
1980 if test -r "$ac_site_file"; then
1981 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1982 echo "$as_me: loading site script $ac_site_file" >&6;}
1983 sed 's/^/| /' "$ac_site_file" >&5
1984 . "$ac_site_file"
1986 done
1988 if test -r "$cache_file"; then
1989 # Some versions of bash will fail to source /dev/null (special
1990 # files actually), so we avoid doing that.
1991 if test -f "$cache_file"; then
1992 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1993 echo "$as_me: loading cache $cache_file" >&6;}
1994 case $cache_file in
1995 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1996 *) . "./$cache_file";;
1997 esac
1999 else
2000 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2001 echo "$as_me: creating cache $cache_file" >&6;}
2002 >$cache_file
2005 ac_header_list="$ac_header_list utime.h"
2006 # Check that the precious variables saved in the cache have kept the same
2007 # value.
2008 ac_cache_corrupted=false
2009 for ac_var in $ac_precious_vars; do
2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011 eval ac_new_set=\$ac_env_${ac_var}_set
2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013 eval ac_new_val=\$ac_env_${ac_var}_value
2014 case $ac_old_set,$ac_new_set in
2015 set,)
2016 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2017 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2018 ac_cache_corrupted=: ;;
2019 ,set)
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2023 ,);;
2025 if test "x$ac_old_val" != "x$ac_new_val"; then
2026 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2029 echo "$as_me: former value: $ac_old_val" >&2;}
2030 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2031 echo "$as_me: current value: $ac_new_val" >&2;}
2032 ac_cache_corrupted=:
2033 fi;;
2034 esac
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2037 case $ac_new_val in
2038 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2040 esac
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044 esac
2046 done
2047 if $ac_cache_corrupted; then
2048 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052 { (exit 1); exit 1; }; }
2079 ac_ext=c
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087 # cross-compile macros
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 ac_build_alias=$build_alias
2131 test "x$ac_build_alias" = x &&
2132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x &&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2150 esac
2151 build=$ac_cv_build
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_build
2154 shift
2155 build_cpu=$1
2156 build_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 build_os=$*
2161 IFS=$ac_save_IFS
2162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test "x$host_alias" = x; then
2171 ac_cv_host=$ac_cv_build
2172 else
2173 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 case $ac_cv_host in
2183 *-*-*) ;;
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2187 esac
2188 host=$ac_cv_host
2189 ac_save_IFS=$IFS; IFS='-'
2190 set x $ac_cv_host
2191 shift
2192 host_cpu=$1
2193 host_vendor=$2
2194 shift; shift
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2197 host_os=$*
2198 IFS=$ac_save_IFS
2199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 # check existence of the package
2206 # specify output header file
2207 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2214 cat >>confdefs.h <<\_ACEOF
2215 #define _GNU_SOURCE 1
2216 _ACEOF
2219 ac_ext=c
2220 ac_cpp='$CPP $CPPFLAGS'
2221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2246 done
2247 done
2248 IFS=$as_save_IFS
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2263 if test -z "$ac_cv_prog_CC"; then
2264 ac_ct_CC=$CC
2265 # Extract the first word of "gcc", so it can be a program name with args.
2266 set dummy gcc; ac_word=$2
2267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_ac_ct_CC="gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2288 IFS=$as_save_IFS
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6; }
2296 else
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2301 if test "x$ac_ct_CC" = x; then
2302 CC=""
2303 else
2304 case $cross_compiling:$ac_tool_warned in
2305 yes:)
2306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2307 whose name does not start with the host triplet. If you think this
2308 configuration is useful to you, please write to autoconf@gnu.org." >&5
2309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2310 whose name does not start with the host triplet. If you think this
2311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2312 ac_tool_warned=yes ;;
2313 esac
2314 CC=$ac_ct_CC
2316 else
2317 CC="$ac_cv_prog_CC"
2320 if test -z "$CC"; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}cc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}cc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2345 IFS=$as_save_IFS
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2361 if test -z "$CC"; then
2362 # Extract the first word of "cc", so it can be a program name with args.
2363 set dummy cc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 ac_prog_rejected=no
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2381 ac_prog_rejected=yes
2382 continue
2384 ac_cv_prog_CC="cc"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 break 2
2388 done
2389 done
2390 IFS=$as_save_IFS
2392 if test $ac_prog_rejected = yes; then
2393 # We found a bogon in the path, so make sure we never use it.
2394 set dummy $ac_cv_prog_CC
2395 shift
2396 if test $# != 0; then
2397 # We chose a different compiler from the bogus one.
2398 # However, it has the same basename, so the bogon will be chosen
2399 # first if we set CC to just the basename; use the full file name.
2400 shift
2401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2406 CC=$ac_cv_prog_CC
2407 if test -n "$CC"; then
2408 { echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6; }
2410 else
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 for ac_prog in cl.exe
2421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2444 IFS=$as_save_IFS
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450 { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2452 else
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2458 test -n "$CC" && break
2459 done
2461 if test -z "$CC"; then
2462 ac_ct_CC=$CC
2463 for ac_prog in cl.exe
2465 # Extract the first word of "$ac_prog", so it can be a program name with args.
2466 set dummy $ac_prog; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 if test -n "$ac_ct_CC"; then
2473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_ac_ct_CC="$ac_prog"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2486 done
2487 done
2488 IFS=$as_save_IFS
2492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2493 if test -n "$ac_ct_CC"; then
2494 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2495 echo "${ECHO_T}$ac_ct_CC" >&6; }
2496 else
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2502 test -n "$ac_ct_CC" && break
2503 done
2505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet. If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518 CC=$ac_ct_CC
2525 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: no acceptable C compiler found in \$PATH
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2531 # Provide some information about the compiler.
2532 echo "$as_me:$LINENO: checking for C compiler version" >&5
2533 ac_compiler=`set X $ac_compile; echo $2`
2534 { (ac_try="$ac_compiler --version >&5"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler --version >&5") 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2565 cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2573 main ()
2577 return 0;
2579 _ACEOF
2580 ac_clean_files_save=$ac_clean_files
2581 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2582 # Try to create an executable without -o first, disregard a.out.
2583 # It will help us diagnose broken compilers, and finding out an intuition
2584 # of exeext.
2585 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2586 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2587 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2589 # List of possible output files, starting from the most likely.
2590 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2591 # only as a last resort. b.out is created by i960 compilers.
2592 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2594 # The IRIX 6 linker writes into existing files which may not be
2595 # executable, retaining their permissions. Remove them first so a
2596 # subsequent execution test works.
2597 ac_rmfiles=
2598 for ac_file in $ac_files
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2602 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2603 esac
2604 done
2605 rm -f $ac_rmfiles
2607 if { (ac_try="$ac_link_default"
2608 case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_link_default") 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; then
2617 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2618 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2619 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2620 # so that the user can short-circuit this test for compilers unknown to
2621 # Autoconf.
2622 for ac_file in $ac_files ''
2624 test -f "$ac_file" || continue
2625 case $ac_file in
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2628 [ab].out )
2629 # We found the default executable, but exeext='' is most
2630 # certainly right.
2631 break;;
2632 *.* )
2633 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2634 then :; else
2635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637 # We set ac_cv_exeext here because the later test for it is not
2638 # safe: cross compilers may not add the suffix if given an `-o'
2639 # argument, so we may need to know it at that point already.
2640 # Even if this section looks crufty: it has the advantage of
2641 # actually working.
2642 break;;
2644 break;;
2645 esac
2646 done
2647 test "$ac_cv_exeext" = no && ac_cv_exeext=
2649 else
2650 ac_file=''
2653 { echo "$as_me:$LINENO: result: $ac_file" >&5
2654 echo "${ECHO_T}$ac_file" >&6; }
2655 if test -z "$ac_file"; then
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663 { (exit 77); exit 77; }; }
2666 ac_exeext=$ac_cv_exeext
2668 # Check that the compiler produces executables we can run. If not, either
2669 # the compiler is broken, or we cross compile.
2670 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2671 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2672 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673 # If not cross compiling, check that we can run a simple program.
2674 if test "$cross_compiling" != yes; then
2675 if { ac_try='./$ac_file'
2676 { (case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_try") 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 cross_compiling=no
2686 else
2687 if test "$cross_compiling" = maybe; then
2688 cross_compiling=yes
2689 else
2690 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2691 If you meant to cross compile, use \`--host'.
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: cannot run C compiled programs.
2694 If you meant to cross compile, use \`--host'.
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2700 { echo "$as_me:$LINENO: result: yes" >&5
2701 echo "${ECHO_T}yes" >&6; }
2703 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2704 ac_clean_files=$ac_clean_files_save
2705 # Check that the compiler produces executables we can run. If not, either
2706 # the compiler is broken, or we cross compile.
2707 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2708 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2709 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2710 echo "${ECHO_T}$cross_compiling" >&6; }
2712 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2713 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2714 if { (ac_try="$ac_link"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_link") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; then
2724 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2725 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2726 # work properly (i.e., refer to `conftest.exe'), while it won't with
2727 # `rm'.
2728 for ac_file in conftest.exe conftest conftest.*; do
2729 test -f "$ac_file" || continue
2730 case $ac_file in
2731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2732 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733 break;;
2734 * ) break;;
2735 esac
2736 done
2737 else
2738 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2741 See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
2745 rm -f conftest$ac_cv_exeext
2746 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2747 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749 rm -f conftest.$ac_ext
2750 EXEEXT=$ac_cv_exeext
2751 ac_exeext=$EXEEXT
2752 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2753 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2754 if test "${ac_cv_objext+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 main ()
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.o conftest.obj
2773 if { (ac_try="$ac_compile"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_compile") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 for ac_file in conftest.o conftest.obj conftest.*; do
2784 test -f "$ac_file" || continue;
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2788 break;;
2789 esac
2790 done
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2798 See \`config.log' for more details." >&2;}
2799 { (exit 1); exit 1; }; }
2802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2805 echo "${ECHO_T}$ac_cv_objext" >&6; }
2806 OBJEXT=$ac_cv_objext
2807 ac_objext=$OBJEXT
2808 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2809 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2810 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h. */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 main ()
2823 #ifndef __GNUC__
2824 choke me
2825 #endif
2828 return 0;
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 ac_compiler_gnu=yes
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 ac_compiler_gnu=no
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2862 GCC=`test $ac_compiler_gnu = yes && echo yes`
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_cc_g+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 ac_save_c_werror_flag=$ac_c_werror_flag
2871 ac_c_werror_flag=yes
2872 ac_cv_prog_cc_g=no
2873 CFLAGS="-g"
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2882 main ()
2886 return 0;
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2906 ac_cv_prog_cc_g=yes
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 CFLAGS=""
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2920 main ()
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } && {
2941 test -z "$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 } && test -s conftest.$ac_objext; then
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 ac_c_werror_flag=$ac_save_c_werror_flag
2950 CFLAGS="-g"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2959 main ()
2963 return 0;
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && {
2980 test -z "$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 } && test -s conftest.$ac_objext; then
2983 ac_cv_prog_cc_g=yes
2984 else
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_c_werror_flag=$ac_save_c_werror_flag
3000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3002 if test "$ac_test_CFLAGS" = set; then
3003 CFLAGS=$ac_save_CFLAGS
3004 elif test $ac_cv_prog_cc_g = yes; then
3005 if test "$GCC" = yes; then
3006 CFLAGS="-g -O2"
3007 else
3008 CFLAGS="-g"
3010 else
3011 if test "$GCC" = yes; then
3012 CFLAGS="-O2"
3013 else
3014 CFLAGS=
3017 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3018 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_cc_c89+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 ac_cv_prog_cc_c89=no
3023 ac_save_CC=$CC
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <stdarg.h>
3031 #include <stdio.h>
3032 #include <sys/types.h>
3033 #include <sys/stat.h>
3034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3035 struct buf { int x; };
3036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3037 static char *e (p, i)
3038 char **p;
3039 int i;
3041 return p[i];
3043 static char *f (char * (*g) (char **, int), char **p, ...)
3045 char *s;
3046 va_list v;
3047 va_start (v,p);
3048 s = g (p, va_arg (v,int));
3049 va_end (v);
3050 return s;
3053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3054 function prototypes and stuff, but not '\xHH' hex character constants.
3055 These don't provoke an error unfortunately, instead are silently treated
3056 as 'x'. The following induces an error, until -std is added to get
3057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3058 array size at least. It's necessary to write '\x00'==0 to get something
3059 that's true only with -std. */
3060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3063 inside strings and character constants. */
3064 #define FOO(x) 'x'
3065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3067 int test (int i, double x);
3068 struct s1 {int (*f) (int a);};
3069 struct s2 {int (*f) (double a);};
3070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3071 int argc;
3072 char **argv;
3074 main ()
3076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3078 return 0;
3080 _ACEOF
3081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084 CC="$ac_save_CC $ac_arg"
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3102 ac_cv_prog_cc_c89=$ac_arg
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3110 rm -f core conftest.err conftest.$ac_objext
3111 test "x$ac_cv_prog_cc_c89" != "xno" && break
3112 done
3113 rm -f conftest.$ac_ext
3114 CC=$ac_save_CC
3117 # AC_CACHE_VAL
3118 case "x$ac_cv_prog_cc_c89" in
3120 { echo "$as_me:$LINENO: result: none needed" >&5
3121 echo "${ECHO_T}none needed" >&6; } ;;
3122 xno)
3123 { echo "$as_me:$LINENO: result: unsupported" >&5
3124 echo "${ECHO_T}unsupported" >&6; } ;;
3126 CC="$CC $ac_cv_prog_cc_c89"
3127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3129 esac
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3145 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3146 # On Suns, sometimes $CPP names a directory.
3147 if test -n "$CPP" && test -d "$CPP"; then
3148 CPP=
3150 if test -z "$CPP"; then
3151 if test "${ac_cv_prog_CPP+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 # Double quotes because CPP needs to be expanded
3155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3157 ac_preproc_ok=false
3158 for ac_c_preproc_warn_flag in '' yes
3160 # Use a header file that comes with gcc, so configuring glibc
3161 # with a fresh cross-compiler works.
3162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163 # <limits.h> exists even on freestanding compilers.
3164 # On the NeXT, cc -E runs the code through the compiler's parser,
3165 # not just through cpp. "Syntax error" is here to catch this case.
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #ifdef __STDC__
3173 # include <limits.h>
3174 #else
3175 # include <assert.h>
3176 #endif
3177 Syntax error
3178 _ACEOF
3179 if { (ac_try="$ac_cpp conftest.$ac_ext"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } >/dev/null && {
3192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 }; then
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 # Broken: fails on valid input.
3201 continue
3204 rm -f conftest.err conftest.$ac_ext
3206 # OK, works on sane cases. Now check whether nonexistent headers
3207 # can be detected and how.
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <ac_nonexistent.h>
3215 _ACEOF
3216 if { (ac_try="$ac_cpp conftest.$ac_ext"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null && {
3229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3230 test ! -s conftest.err
3231 }; then
3232 # Broken: success on invalid input.
3233 continue
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 # Passes both tests.
3239 ac_preproc_ok=:
3240 break
3243 rm -f conftest.err conftest.$ac_ext
3245 done
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.$ac_ext
3248 if $ac_preproc_ok; then
3249 break
3252 done
3253 ac_cv_prog_CPP=$CPP
3256 CPP=$ac_cv_prog_CPP
3257 else
3258 ac_cv_prog_CPP=$CPP
3260 { echo "$as_me:$LINENO: result: $CPP" >&5
3261 echo "${ECHO_T}$CPP" >&6; }
3262 ac_preproc_ok=false
3263 for ac_c_preproc_warn_flag in '' yes
3265 # Use a header file that comes with gcc, so configuring glibc
3266 # with a fresh cross-compiler works.
3267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3268 # <limits.h> exists even on freestanding compilers.
3269 # On the NeXT, cc -E runs the code through the compiler's parser,
3270 # not just through cpp. "Syntax error" is here to catch this case.
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #ifdef __STDC__
3278 # include <limits.h>
3279 #else
3280 # include <assert.h>
3281 #endif
3282 Syntax error
3283 _ACEOF
3284 if { (ac_try="$ac_cpp conftest.$ac_ext"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null && {
3297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 }; then
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 # Broken: fails on valid input.
3306 continue
3309 rm -f conftest.err conftest.$ac_ext
3311 # OK, works on sane cases. Now check whether nonexistent headers
3312 # can be detected and how.
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <ac_nonexistent.h>
3320 _ACEOF
3321 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null && {
3334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 }; then
3337 # Broken: success on invalid input.
3338 continue
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Passes both tests.
3344 ac_preproc_ok=:
3345 break
3348 rm -f conftest.err conftest.$ac_ext
3350 done
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3355 else
3356 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&5
3358 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3359 See \`config.log' for more details." >&2;}
3360 { (exit 1); exit 1; }; }
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3371 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3372 if test "${ac_cv_path_GREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 # Extract the first word of "grep ggrep" to use in msg output
3376 if test -z "$GREP"; then
3377 set dummy grep ggrep; ac_prog_name=$2
3378 if test "${ac_cv_path_GREP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 ac_path_GREP_found=false
3382 # Loop through the user's path and test for each of PROGNAME-LIST
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_prog in grep ggrep; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3391 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3392 # Check for GNU ac_path_GREP and select it if it is found.
3393 # Check for GNU $ac_path_GREP
3394 case `"$ac_path_GREP" --version 2>&1` in
3395 *GNU*)
3396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3398 ac_count=0
3399 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3400 while :
3402 cat "conftest.in" "conftest.in" >"conftest.tmp"
3403 mv "conftest.tmp" "conftest.in"
3404 cp "conftest.in" "conftest.nl"
3405 echo 'GREP' >> "conftest.nl"
3406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408 ac_count=`expr $ac_count + 1`
3409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3410 # Best one so far, save it but keep looking for a better one
3411 ac_cv_path_GREP="$ac_path_GREP"
3412 ac_path_GREP_max=$ac_count
3414 # 10*(2^10) chars as input seems more than enough
3415 test $ac_count -gt 10 && break
3416 done
3417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3418 esac
3421 $ac_path_GREP_found && break 3
3422 done
3423 done
3425 done
3426 IFS=$as_save_IFS
3431 GREP="$ac_cv_path_GREP"
3432 if test -z "$GREP"; then
3433 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3434 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3435 { (exit 1); exit 1; }; }
3438 else
3439 ac_cv_path_GREP=$GREP
3444 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3445 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3446 GREP="$ac_cv_path_GREP"
3449 { echo "$as_me:$LINENO: checking for egrep" >&5
3450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3451 if test "${ac_cv_path_EGREP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3455 then ac_cv_path_EGREP="$GREP -E"
3456 else
3457 # Extract the first word of "egrep" to use in msg output
3458 if test -z "$EGREP"; then
3459 set dummy egrep; ac_prog_name=$2
3460 if test "${ac_cv_path_EGREP+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 ac_path_EGREP_found=false
3464 # Loop through the user's path and test for each of PROGNAME-LIST
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_prog in egrep; do
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3473 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3474 # Check for GNU ac_path_EGREP and select it if it is found.
3475 # Check for GNU $ac_path_EGREP
3476 case `"$ac_path_EGREP" --version 2>&1` in
3477 *GNU*)
3478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3480 ac_count=0
3481 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3482 while :
3484 cat "conftest.in" "conftest.in" >"conftest.tmp"
3485 mv "conftest.tmp" "conftest.in"
3486 cp "conftest.in" "conftest.nl"
3487 echo 'EGREP' >> "conftest.nl"
3488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3490 ac_count=`expr $ac_count + 1`
3491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3492 # Best one so far, save it but keep looking for a better one
3493 ac_cv_path_EGREP="$ac_path_EGREP"
3494 ac_path_EGREP_max=$ac_count
3496 # 10*(2^10) chars as input seems more than enough
3497 test $ac_count -gt 10 && break
3498 done
3499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3500 esac
3503 $ac_path_EGREP_found && break 3
3504 done
3505 done
3507 done
3508 IFS=$as_save_IFS
3513 EGREP="$ac_cv_path_EGREP"
3514 if test -z "$EGREP"; then
3515 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3516 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3517 { (exit 1); exit 1; }; }
3520 else
3521 ac_cv_path_EGREP=$EGREP
3527 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3528 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3529 EGREP="$ac_cv_path_EGREP"
3533 { echo "$as_me:$LINENO: checking for AIX" >&5
3534 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #ifdef _AIX
3543 #endif
3545 _ACEOF
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547 $EGREP "yes" >/dev/null 2>&1; then
3548 { echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6; }
3550 cat >>confdefs.h <<\_ACEOF
3551 #define _ALL_SOURCE 1
3552 _ACEOF
3554 else
3555 { echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6; }
3558 rm -f conftest*
3561 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3562 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3563 if test "${ac_cv_header_stdc+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <stdlib.h>
3573 #include <stdarg.h>
3574 #include <string.h>
3575 #include <float.h>
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3602 ac_cv_header_stdc=yes
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_cv_header_stdc=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 if test $ac_cv_header_stdc = yes; then
3613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #include <string.h>
3622 _ACEOF
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 $EGREP "memchr" >/dev/null 2>&1; then
3626 else
3627 ac_cv_header_stdc=no
3629 rm -f conftest*
3633 if test $ac_cv_header_stdc = yes; then
3634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <stdlib.h>
3643 _ACEOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "free" >/dev/null 2>&1; then
3647 else
3648 ac_cv_header_stdc=no
3650 rm -f conftest*
3654 if test $ac_cv_header_stdc = yes; then
3655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3656 if test "$cross_compiling" = yes; then
3658 else
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <ctype.h>
3666 #include <stdlib.h>
3667 #if ((' ' & 0x0FF) == 0x020)
3668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3670 #else
3671 # define ISLOWER(c) \
3672 (('a' <= (c) && (c) <= 'i') \
3673 || ('j' <= (c) && (c) <= 'r') \
3674 || ('s' <= (c) && (c) <= 'z'))
3675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3676 #endif
3678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3680 main ()
3682 int i;
3683 for (i = 0; i < 256; i++)
3684 if (XOR (islower (i), ISLOWER (i))
3685 || toupper (i) != TOUPPER (i))
3686 return 2;
3687 return 0;
3689 _ACEOF
3690 rm -f conftest$ac_exeext
3691 if { (ac_try="$ac_link"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_link") 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3701 { (case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3711 else
3712 echo "$as_me: program exited with status $ac_status" >&5
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ( exit $ac_status )
3717 ac_cv_header_stdc=no
3719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3726 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3727 if test $ac_cv_header_stdc = yes; then
3729 cat >>confdefs.h <<\_ACEOF
3730 #define STDC_HEADERS 1
3731 _ACEOF
3735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3746 inttypes.h stdint.h unistd.h
3748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 $ac_includes_default
3762 #include <$ac_header>
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771 (eval "$ac_compile") 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && {
3778 test -z "$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3780 } && test -s conftest.$ac_objext; then
3781 eval "$as_ac_Header=yes"
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 eval "$as_ac_Header=no"
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_res=`eval echo '${'$as_ac_Header'}'`
3792 { echo "$as_me:$LINENO: result: $ac_res" >&5
3793 echo "${ECHO_T}$ac_res" >&6; }
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797 _ACEOF
3801 done
3804 if test "${ac_cv_header_minix_config_h+set}" = set; then
3805 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3806 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3807 if test "${ac_cv_header_minix_config_h+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3811 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3812 else
3813 # Is the header compilable?
3814 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3815 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 $ac_includes_default
3823 #include <minix/config.h>
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3842 ac_header_compiler=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_header_compiler=no
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3852 echo "${ECHO_T}$ac_header_compiler" >&6; }
3854 # Is the header present?
3855 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3856 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <minix/config.h>
3864 _ACEOF
3865 if { (ac_try="$ac_cpp conftest.$ac_ext"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null && {
3878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 }; then
3881 ac_header_preproc=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_header_preproc=no
3889 rm -f conftest.err conftest.$ac_ext
3890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3891 echo "${ECHO_T}$ac_header_preproc" >&6; }
3893 # So? What about this header?
3894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3895 yes:no: )
3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3897 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3899 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3900 ac_header_preproc=yes
3902 no:yes:* )
3903 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3904 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3906 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3908 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3910 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3912 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3914 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3915 ( cat <<\_ASBOX
3916 ## ------------------------------- ##
3917 ## Report this to www.asterisk.org ##
3918 ## ------------------------------- ##
3919 _ASBOX
3920 ) | sed "s/^/$as_me: WARNING: /" >&2
3922 esac
3923 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3924 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3925 if test "${ac_cv_header_minix_config_h+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 ac_cv_header_minix_config_h=$ac_header_preproc
3930 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3931 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3934 if test $ac_cv_header_minix_config_h = yes; then
3935 MINIX=yes
3936 else
3937 MINIX=
3941 if test "$MINIX" = yes; then
3943 cat >>confdefs.h <<\_ACEOF
3944 #define _POSIX_SOURCE 1
3945 _ACEOF
3948 cat >>confdefs.h <<\_ACEOF
3949 #define _POSIX_1_SOURCE 2
3950 _ACEOF
3953 cat >>confdefs.h <<\_ACEOF
3954 #define _MINIX 1
3955 _ACEOF
3969 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # define __EXTENSIONS__ 1
3982 $ac_includes_default
3984 main ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_safe_to_define___extensions__=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 ac_cv_safe_to_define___extensions__=no
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4019 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4020 test $ac_cv_safe_to_define___extensions__ = yes &&
4021 cat >>confdefs.h <<\_ACEOF
4022 #define __EXTENSIONS__ 1
4023 _ACEOF
4025 cat >>confdefs.h <<\_ACEOF
4026 #define _POSIX_PTHREAD_SEMANTICS 1
4027 _ACEOF
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _TANDEM_SOURCE 1
4031 _ACEOF
4033 # note- does not work on FreeBSD
4035 case "${host_os}" in
4036 freebsd*)
4037 ac_default_prefix=/usr/local
4038 CPPFLAGS=-I/usr/local/include
4039 LDFLAGS=-L/usr/local/lib
4043 ac_default_prefix=/usr
4044 if test ${sysconfdir} = '${prefix}/etc'; then
4045 sysconfdir=/etc
4047 if test ${mandir} = '${prefix}/man'; then
4048 mandir=/usr/share/man
4051 esac
4053 if test ${localstatedir} = '${prefix}/var'; then
4054 localstatedir=/var
4057 BUILD_PLATFORM=${build}
4058 BUILD_CPU=${build_cpu}
4059 BUILD_VENDOR=${build_vendor}
4060 BUILD_OS=${build_os}
4067 HOST_PLATFORM=${host}
4068 HOST_CPU=${host_cpu}
4069 HOST_VENDOR=${host_vendor}
4070 HOST_OS=${host_os}
4077 WINARCH=0
4079 case "${host_os}" in
4080 freebsd*)
4081 OSARCH=FreeBSD
4083 netbsd*)
4084 OSARCH=NetBSD
4086 openbsd*)
4087 OSARCH=OpenBSD
4089 solaris*)
4090 OSARCH=SunOS
4092 mingw32)
4093 OSARCH=mingw32
4094 WINARCH=1
4096 cygwin)
4097 OSARCH=cygwin
4098 WINARCH=1
4101 OSARCH=${host_os}
4103 esac
4108 # check for uname
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}uname; ac_word=$2
4112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4114 if test "${ac_cv_path_UNAME+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 case $UNAME in
4118 [\\/]* | ?:[\\/]*)
4119 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4133 done
4134 done
4135 IFS=$as_save_IFS
4138 esac
4140 UNAME=$ac_cv_path_UNAME
4141 if test -n "$UNAME"; then
4142 { echo "$as_me:$LINENO: result: $UNAME" >&5
4143 echo "${ECHO_T}$UNAME" >&6; }
4144 else
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4151 if test -z "$ac_cv_path_UNAME"; then
4152 ac_pt_UNAME=$UNAME
4153 # Extract the first word of "uname", so it can be a program name with args.
4154 set dummy uname; ac_word=$2
4155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4157 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 case $ac_pt_UNAME in
4161 [\\/]* | ?:[\\/]*)
4162 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4178 IFS=$as_save_IFS
4181 esac
4183 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4184 if test -n "$ac_pt_UNAME"; then
4185 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4186 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4187 else
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4192 if test "x$ac_pt_UNAME" = x; then
4193 UNAME="No"
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196 yes:)
4197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4198 whose name does not start with the host triplet. If you think this
4199 configuration is useful to you, please write to autoconf@gnu.org." >&5
4200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4201 whose name does not start with the host triplet. If you think this
4202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4203 ac_tool_warned=yes ;;
4204 esac
4205 UNAME=$ac_pt_UNAME
4207 else
4208 UNAME="$ac_cv_path_UNAME"
4211 if test ! x"${UNAME}" = xNo; then
4212 PBX_OSREV=$(${UNAME} -r)
4222 # cross-compile checks
4223 if test "${cross_compiling}" = "yes";
4224 then
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC="$CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 CC=$ac_cv_prog_CC
4254 if test -n "$CC"; then
4255 { echo "$as_me:$LINENO: result: $CC" >&5
4256 echo "${ECHO_T}$CC" >&6; }
4257 else
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4264 if test -z "$ac_cv_prog_CC"; then
4265 ac_ct_CC=$CC
4266 # Extract the first word of "gcc", so it can be a program name with args.
4267 set dummy gcc; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 if test -n "$ac_ct_CC"; then
4274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_ac_ct_CC="gcc"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294 if test -n "$ac_ct_CC"; then
4295 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4296 echo "${ECHO_T}$ac_ct_CC" >&6; }
4297 else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4302 if test "x$ac_ct_CC" = x; then
4303 CC=":"
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet. If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet. If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315 CC=$ac_ct_CC
4317 else
4318 CC="$ac_cv_prog_CC"
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}g++; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_prog_CXX+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$CXX"; then
4330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 CXX=$ac_cv_prog_CXX
4350 if test -n "$CXX"; then
4351 { echo "$as_me:$LINENO: result: $CXX" >&5
4352 echo "${ECHO_T}$CXX" >&6; }
4353 else
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4360 if test -z "$ac_cv_prog_CXX"; then
4361 ac_ct_CXX=$CXX
4362 # Extract the first word of "g++", so it can be a program name with args.
4363 set dummy g++; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 if test -n "$ac_ct_CXX"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CXX="g++"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390 if test -n "$ac_ct_CXX"; then
4391 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4392 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4393 else
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4398 if test "x$ac_ct_CXX" = x; then
4399 CXX=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4404 whose name does not start with the host triplet. If you think this
4405 configuration is useful to you, please write to autoconf@gnu.org." >&5
4406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4407 whose name does not start with the host triplet. If you think this
4408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 CXX=$ac_ct_CXX
4413 else
4414 CXX="$ac_cv_prog_CXX"
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}ld; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_LD+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 if test -n "$LD"; then
4426 ac_cv_prog_LD="$LD" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_LD="${ac_tool_prefix}ld"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 LD=$ac_cv_prog_LD
4446 if test -n "$LD"; then
4447 { echo "$as_me:$LINENO: result: $LD" >&5
4448 echo "${ECHO_T}$LD" >&6; }
4449 else
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_LD"; then
4457 ac_ct_LD=$LD
4458 # Extract the first word of "ld", so it can be a program name with args.
4459 set dummy ld; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test -n "$ac_ct_LD"; then
4466 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_LD="ld"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4486 if test -n "$ac_ct_LD"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4488 echo "${ECHO_T}$ac_ct_LD" >&6; }
4489 else
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_LD" = x; then
4495 LD=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 LD=$ac_ct_LD
4509 else
4510 LD="$ac_cv_prog_LD"
4513 if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_RANLIB+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 if test -n "$RANLIB"; then
4522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 RANLIB=$ac_cv_prog_RANLIB
4542 if test -n "$RANLIB"; then
4543 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4544 echo "${ECHO_T}$RANLIB" >&6; }
4545 else
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4552 if test -z "$ac_cv_prog_RANLIB"; then
4553 ac_ct_RANLIB=$RANLIB
4554 # Extract the first word of "ranlib", so it can be a program name with args.
4555 set dummy ranlib; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 if test -n "$ac_ct_RANLIB"; then
4562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_ac_ct_RANLIB="ranlib"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4582 if test -n "$ac_ct_RANLIB"; then
4583 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4584 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4585 else
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4590 if test "x$ac_ct_RANLIB" = x; then
4591 RANLIB=":"
4592 else
4593 case $cross_compiling:$ac_tool_warned in
4594 yes:)
4595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4596 whose name does not start with the host triplet. If you think this
4597 configuration is useful to you, please write to autoconf@gnu.org." >&5
4598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4599 whose name does not start with the host triplet. If you think this
4600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603 RANLIB=$ac_ct_RANLIB
4605 else
4606 RANLIB="$ac_cv_prog_RANLIB"
4611 # Checks for programs.
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4656 if test -z "$ac_cv_prog_CC"; then
4657 ac_ct_CC=$CC
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="gcc"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4688 echo "${ECHO_T}$ac_ct_CC" >&6; }
4689 else
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4700 whose name does not start with the host triplet. If you think this
4701 configuration is useful to you, please write to autoconf@gnu.org." >&5
4702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4703 whose name does not start with the host triplet. If you think this
4704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4705 ac_tool_warned=yes ;;
4706 esac
4707 CC=$ac_ct_CC
4709 else
4710 CC="$ac_cv_prog_CC"
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}cc; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_prog_CC+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_CC="${ac_tool_prefix}cc"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 CC=$ac_cv_prog_CC
4743 if test -n "$CC"; then
4744 { echo "$as_me:$LINENO: result: $CC" >&5
4745 echo "${ECHO_T}$CC" >&6; }
4746 else
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4754 if test -z "$CC"; then
4755 # Extract the first word of "cc", so it can be a program name with args.
4756 set dummy cc; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_prog_CC+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test -n "$CC"; then
4763 ac_cv_prog_CC="$CC" # Let the user override the test.
4764 else
4765 ac_prog_rejected=no
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4774 ac_prog_rejected=yes
4775 continue
4777 ac_cv_prog_CC="cc"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4781 done
4782 done
4783 IFS=$as_save_IFS
4785 if test $ac_prog_rejected = yes; then
4786 # We found a bogon in the path, so make sure we never use it.
4787 set dummy $ac_cv_prog_CC
4788 shift
4789 if test $# != 0; then
4790 # We chose a different compiler from the bogus one.
4791 # However, it has the same basename, so the bogon will be chosen
4792 # first if we set CC to just the basename; use the full file name.
4793 shift
4794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4799 CC=$ac_cv_prog_CC
4800 if test -n "$CC"; then
4801 { echo "$as_me:$LINENO: result: $CC" >&5
4802 echo "${ECHO_T}$CC" >&6; }
4803 else
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4810 if test -z "$CC"; then
4811 if test -n "$ac_tool_prefix"; then
4812 for ac_prog in cl.exe
4814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_CC+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 CC=$ac_cv_prog_CC
4842 if test -n "$CC"; then
4843 { echo "$as_me:$LINENO: result: $CC" >&5
4844 echo "${ECHO_T}$CC" >&6; }
4845 else
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4851 test -n "$CC" && break
4852 done
4854 if test -z "$CC"; then
4855 ac_ct_CC=$CC
4856 for ac_prog in cl.exe
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_CC="$ac_prog"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4889 else
4890 { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4895 test -n "$ac_ct_CC" && break
4896 done
4898 if test "x$ac_ct_CC" = x; then
4899 CC=""
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4904 whose name does not start with the host triplet. If you think this
4905 configuration is useful to you, please write to autoconf@gnu.org." >&5
4906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4907 whose name does not start with the host triplet. If you think this
4908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 CC=$ac_ct_CC
4918 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: no acceptable C compiler found in \$PATH
4921 See \`config.log' for more details." >&2;}
4922 { (exit 1); exit 1; }; }
4924 # Provide some information about the compiler.
4925 echo "$as_me:$LINENO: checking for C compiler version" >&5
4926 ac_compiler=`set X $ac_compile; echo $2`
4927 { (ac_try="$ac_compiler --version >&5"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compiler --version >&5") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }
4937 { (ac_try="$ac_compiler -v >&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 -v >&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); }
4958 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4959 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4960 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4971 main ()
4973 #ifndef __GNUC__
4974 choke me
4975 #endif
4978 return 0;
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_compile") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest.$ac_objext; then
4998 ac_compiler_gnu=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_compiler_gnu=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5012 GCC=`test $ac_compiler_gnu = yes && echo yes`
5013 ac_test_CFLAGS=${CFLAGS+set}
5014 ac_save_CFLAGS=$CFLAGS
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5017 if test "${ac_cv_prog_cc_g+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5022 ac_cv_prog_cc_g=no
5023 CFLAGS="-g"
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5032 main ()
5036 return 0;
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (ac_try="$ac_compile"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_compile") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && {
5053 test -z "$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 } && test -s conftest.$ac_objext; then
5056 ac_cv_prog_cc_g=yes
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 CFLAGS=""
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5070 main ()
5074 return 0;
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest.$ac_objext; then
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_c_werror_flag=$ac_save_c_werror_flag
5100 CFLAGS="-g"
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5109 main ()
5113 return 0;
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133 ac_cv_prog_cc_g=yes
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_c_werror_flag=$ac_save_c_werror_flag
5150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5151 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5152 if test "$ac_test_CFLAGS" = set; then
5153 CFLAGS=$ac_save_CFLAGS
5154 elif test $ac_cv_prog_cc_g = yes; then
5155 if test "$GCC" = yes; then
5156 CFLAGS="-g -O2"
5157 else
5158 CFLAGS="-g"
5160 else
5161 if test "$GCC" = yes; then
5162 CFLAGS="-O2"
5163 else
5164 CFLAGS=
5167 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5168 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5169 if test "${ac_cv_prog_cc_c89+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 ac_cv_prog_cc_c89=no
5173 ac_save_CC=$CC
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <stdarg.h>
5181 #include <stdio.h>
5182 #include <sys/types.h>
5183 #include <sys/stat.h>
5184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5185 struct buf { int x; };
5186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5187 static char *e (p, i)
5188 char **p;
5189 int i;
5191 return p[i];
5193 static char *f (char * (*g) (char **, int), char **p, ...)
5195 char *s;
5196 va_list v;
5197 va_start (v,p);
5198 s = g (p, va_arg (v,int));
5199 va_end (v);
5200 return s;
5203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5204 function prototypes and stuff, but not '\xHH' hex character constants.
5205 These don't provoke an error unfortunately, instead are silently treated
5206 as 'x'. The following induces an error, until -std is added to get
5207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5208 array size at least. It's necessary to write '\x00'==0 to get something
5209 that's true only with -std. */
5210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5213 inside strings and character constants. */
5214 #define FOO(x) 'x'
5215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5217 int test (int i, double x);
5218 struct s1 {int (*f) (int a);};
5219 struct s2 {int (*f) (double a);};
5220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5221 int argc;
5222 char **argv;
5224 main ()
5226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5228 return 0;
5230 _ACEOF
5231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5234 CC="$ac_save_CC $ac_arg"
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5252 ac_cv_prog_cc_c89=$ac_arg
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5260 rm -f core conftest.err conftest.$ac_objext
5261 test "x$ac_cv_prog_cc_c89" != "xno" && break
5262 done
5263 rm -f conftest.$ac_ext
5264 CC=$ac_save_CC
5267 # AC_CACHE_VAL
5268 case "x$ac_cv_prog_cc_c89" in
5270 { echo "$as_me:$LINENO: result: none needed" >&5
5271 echo "${ECHO_T}none needed" >&6; } ;;
5272 xno)
5273 { echo "$as_me:$LINENO: result: unsupported" >&5
5274 echo "${ECHO_T}unsupported" >&6; } ;;
5276 CC="$CC $ac_cv_prog_cc_c89"
5277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5278 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5279 esac
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288 ac_ext=cpp
5289 ac_cpp='$CXXCPP $CPPFLAGS'
5290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5293 if test -z "$CXX"; then
5294 if test -n "$CCC"; then
5295 CXX=$CCC
5296 else
5297 if test -n "$ac_tool_prefix"; then
5298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304 if test "${ac_cv_prog_CXX+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$CXX"; then
5308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5327 CXX=$ac_cv_prog_CXX
5328 if test -n "$CXX"; then
5329 { echo "$as_me:$LINENO: result: $CXX" >&5
5330 echo "${ECHO_T}$CXX" >&6; }
5331 else
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 test -n "$CXX" && break
5338 done
5340 if test -z "$CXX"; then
5341 ac_ct_CXX=$CXX
5342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 if test -n "$ac_ct_CXX"; then
5352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_prog_ac_ct_CXX="$ac_prog"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5371 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5372 if test -n "$ac_ct_CXX"; then
5373 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5374 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5375 else
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5381 test -n "$ac_ct_CXX" && break
5382 done
5384 if test "x$ac_ct_CXX" = x; then
5385 CXX="g++"
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388 yes:)
5389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet. If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&5
5392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5393 whose name does not start with the host triplet. If you think this
5394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 CXX=$ac_ct_CXX
5403 # Provide some information about the compiler.
5404 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5405 ac_compiler=`set X $ac_compile; echo $2`
5406 { (ac_try="$ac_compiler --version >&5"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compiler --version >&5") 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }
5416 { (ac_try="$ac_compiler -v >&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 -v >&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); }
5437 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5438 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5439 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5450 main ()
5452 #ifndef __GNUC__
5453 choke me
5454 #endif
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_cxx_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5477 ac_compiler_gnu=yes
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_compiler_gnu=no
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5489 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5491 GXX=`test $ac_compiler_gnu = yes && echo yes`
5492 ac_test_CXXFLAGS=${CXXFLAGS+set}
5493 ac_save_CXXFLAGS=$CXXFLAGS
5494 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5495 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_cxx_g+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5500 ac_cxx_werror_flag=yes
5501 ac_cv_prog_cxx_g=no
5502 CXXFLAGS="-g"
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5511 main ()
5515 return 0;
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_cxx_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 ac_cv_prog_cxx_g=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 CXXFLAGS=""
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5549 main ()
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_cxx_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5579 CXXFLAGS="-g"
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5588 main ()
5592 return 0;
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_compile") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_cxx_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest.$ac_objext; then
5612 ac_cv_prog_cxx_g=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5629 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5630 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5631 if test "$ac_test_CXXFLAGS" = set; then
5632 CXXFLAGS=$ac_save_CXXFLAGS
5633 elif test $ac_cv_prog_cxx_g = yes; then
5634 if test "$GXX" = yes; then
5635 CXXFLAGS="-g -O2"
5636 else
5637 CXXFLAGS="-g"
5639 else
5640 if test "$GXX" = yes; then
5641 CXXFLAGS="-O2"
5642 else
5643 CXXFLAGS=
5646 ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 ac_ext=c
5653 ac_cpp='$CPP $CPPFLAGS'
5654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5657 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5659 # On Suns, sometimes $CPP names a directory.
5660 if test -n "$CPP" && test -d "$CPP"; then
5661 CPP=
5663 if test -z "$CPP"; then
5664 if test "${ac_cv_prog_CPP+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 # Double quotes because CPP needs to be expanded
5668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5670 ac_preproc_ok=false
5671 for ac_c_preproc_warn_flag in '' yes
5673 # Use a header file that comes with gcc, so configuring glibc
5674 # with a fresh cross-compiler works.
5675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5676 # <limits.h> exists even on freestanding compilers.
5677 # On the NeXT, cc -E runs the code through the compiler's parser,
5678 # not just through cpp. "Syntax error" is here to catch this case.
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #ifdef __STDC__
5686 # include <limits.h>
5687 #else
5688 # include <assert.h>
5689 #endif
5690 Syntax error
5691 _ACEOF
5692 if { (ac_try="$ac_cpp conftest.$ac_ext"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } >/dev/null && {
5705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 }; then
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 # Broken: fails on valid input.
5714 continue
5717 rm -f conftest.err conftest.$ac_ext
5719 # OK, works on sane cases. Now check whether nonexistent headers
5720 # can be detected and how.
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #include <ac_nonexistent.h>
5728 _ACEOF
5729 if { (ac_try="$ac_cpp conftest.$ac_ext"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null && {
5742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5743 test ! -s conftest.err
5744 }; then
5745 # Broken: success on invalid input.
5746 continue
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 # Passes both tests.
5752 ac_preproc_ok=:
5753 break
5756 rm -f conftest.err conftest.$ac_ext
5758 done
5759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760 rm -f conftest.err conftest.$ac_ext
5761 if $ac_preproc_ok; then
5762 break
5765 done
5766 ac_cv_prog_CPP=$CPP
5769 CPP=$ac_cv_prog_CPP
5770 else
5771 ac_cv_prog_CPP=$CPP
5773 { echo "$as_me:$LINENO: result: $CPP" >&5
5774 echo "${ECHO_T}$CPP" >&6; }
5775 ac_preproc_ok=false
5776 for ac_c_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #ifdef __STDC__
5791 # include <limits.h>
5792 #else
5793 # include <assert.h>
5794 #endif
5795 Syntax error
5796 _ACEOF
5797 if { (ac_try="$ac_cpp conftest.$ac_ext"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5804 ac_status=$?
5805 grep -v '^ *+' conftest.er1 >conftest.err
5806 rm -f conftest.er1
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } >/dev/null && {
5810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 }; then
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 # Broken: fails on valid input.
5819 continue
5822 rm -f conftest.err conftest.$ac_ext
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <ac_nonexistent.h>
5833 _ACEOF
5834 if { (ac_try="$ac_cpp conftest.$ac_ext"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev/null && {
5847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 }; then
5850 # Broken: success on invalid input.
5851 continue
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 # Passes both tests.
5857 ac_preproc_ok=:
5858 break
5861 rm -f conftest.err conftest.$ac_ext
5863 done
5864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5865 rm -f conftest.err conftest.$ac_ext
5866 if $ac_preproc_ok; then
5868 else
5869 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5870 See \`config.log' for more details." >&5
5871 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5872 See \`config.log' for more details." >&2;}
5873 { (exit 1); exit 1; }; }
5876 ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882 ac_ext=cpp
5883 ac_cpp='$CXXCPP $CPPFLAGS'
5884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5887 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5888 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5889 if test -z "$CXXCPP"; then
5890 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 # Double quotes because CXXCPP needs to be expanded
5894 for CXXCPP in "$CXX -E" "/lib/cpp"
5896 ac_preproc_ok=false
5897 for ac_cxx_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #ifdef __STDC__
5912 # include <limits.h>
5913 #else
5914 # include <assert.h>
5915 #endif
5916 Syntax error
5917 _ACEOF
5918 if { (ac_try="$ac_cpp conftest.$ac_ext"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932 test ! -s conftest.err
5933 }; then
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 # Broken: fails on valid input.
5940 continue
5943 rm -f conftest.err conftest.$ac_ext
5945 # OK, works on sane cases. Now check whether nonexistent headers
5946 # can be detected and how.
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <ac_nonexistent.h>
5954 _ACEOF
5955 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5970 }; then
5971 # Broken: success on invalid input.
5972 continue
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5982 rm -f conftest.err conftest.$ac_ext
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then
5988 break
5991 done
5992 ac_cv_prog_CXXCPP=$CXXCPP
5995 CXXCPP=$ac_cv_prog_CXXCPP
5996 else
5997 ac_cv_prog_CXXCPP=$CXXCPP
5999 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6000 echo "${ECHO_T}$CXXCPP" >&6; }
6001 ac_preproc_ok=false
6002 for ac_cxx_preproc_warn_flag in '' yes
6004 # Use a header file that comes with gcc, so configuring glibc
6005 # with a fresh cross-compiler works.
6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007 # <limits.h> exists even on freestanding compilers.
6008 # On the NeXT, cc -E runs the code through the compiler's parser,
6009 # not just through cpp. "Syntax error" is here to catch this case.
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #ifdef __STDC__
6017 # include <limits.h>
6018 #else
6019 # include <assert.h>
6020 #endif
6021 Syntax error
6022 _ACEOF
6023 if { (ac_try="$ac_cpp conftest.$ac_ext"
6024 case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev/null && {
6036 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6037 test ! -s conftest.err
6038 }; then
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 # Broken: fails on valid input.
6045 continue
6048 rm -f conftest.err conftest.$ac_ext
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6059 _ACEOF
6060 if { (ac_try="$ac_cpp conftest.$ac_ext"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev/null && {
6073 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6074 test ! -s conftest.err
6075 }; then
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6087 rm -f conftest.err conftest.$ac_ext
6089 done
6090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6091 rm -f conftest.err conftest.$ac_ext
6092 if $ac_preproc_ok; then
6094 else
6095 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6109 # the developers regenerating the configure script don't have to install libtool.
6110 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6111 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6112 if test "${ac_cv_path_SED+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6116 for ac_i in 1 2 3 4 5 6 7; do
6117 ac_script="$ac_script$as_nl$ac_script"
6118 done
6119 echo "$ac_script" | sed 99q >conftest.sed
6120 $as_unset ac_script || ac_script=
6121 # Extract the first word of "sed gsed" to use in msg output
6122 if test -z "$SED"; then
6123 set dummy sed gsed; ac_prog_name=$2
6124 if test "${ac_cv_path_SED+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 ac_path_SED_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in sed gsed; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6137 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6138 # Check for GNU ac_path_SED and select it if it is found.
6139 # Check for GNU $ac_path_SED
6140 case `"$ac_path_SED" --version 2>&1` in
6141 *GNU*)
6142 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6144 ac_count=0
6145 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6146 while :
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 echo '' >> "conftest.nl"
6152 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 ac_count=`expr $ac_count + 1`
6155 if test $ac_count -gt ${ac_path_SED_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_SED="$ac_path_SED"
6158 ac_path_SED_max=$ac_count
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6162 done
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6167 $ac_path_SED_found && break 3
6168 done
6169 done
6171 done
6172 IFS=$as_save_IFS
6177 SED="$ac_cv_path_SED"
6178 if test -z "$SED"; then
6179 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6180 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6181 { (exit 1); exit 1; }; }
6184 else
6185 ac_cv_path_SED=$SED
6189 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6190 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6191 SED="$ac_cv_path_SED"
6192 rm -f conftest.sed
6194 { echo "$as_me:$LINENO: checking for egrep" >&5
6195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_egrep+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6200 then ac_cv_prog_egrep='grep -E'
6201 else ac_cv_prog_egrep='egrep'
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6205 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6206 EGREP=$ac_cv_prog_egrep
6210 # Check whether --with-gnu-ld was given.
6211 if test "${with_gnu_ld+set}" = set; then
6212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6213 else
6214 with_gnu_ld=no
6217 ac_prog=ld
6218 if test "$GCC" = yes; then
6219 # Check if gcc -print-prog-name=ld gives a path.
6220 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6221 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6222 case $host in
6223 *-*-mingw*)
6224 # gcc leaves a trailing carriage return which upsets mingw
6225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6228 esac
6229 case $ac_prog in
6230 # Accept absolute paths.
6231 [\\/]* | ?:[\\/]*)
6232 re_direlt='/[^/][^/]*/\.\./'
6233 # Canonicalize the pathname of ld
6234 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6235 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6236 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6237 done
6238 test -z "$LD" && LD="$ac_prog"
6241 # If it fails, then pretend we aren't using GCC.
6242 ac_prog=ld
6245 # If it is relative, then search for the first ld in PATH.
6246 with_gnu_ld=unknown
6248 esac
6249 elif test "$with_gnu_ld" = yes; then
6250 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6251 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6252 else
6253 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6254 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6256 if test "${lt_cv_path_LD+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 if test -z "$LD"; then
6260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6261 for ac_dir in $PATH; do
6262 IFS="$lt_save_ifs"
6263 test -z "$ac_dir" && ac_dir=.
6264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6265 lt_cv_path_LD="$ac_dir/$ac_prog"
6266 # Check to see if the program is GNU ld. I'd rather use --version,
6267 # but apparently some variants of GNU ld only accept -v.
6268 # Break only if it was the GNU/non-GNU ld that we prefer.
6269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6270 *GNU* | *'with BFD'*)
6271 test "$with_gnu_ld" != no && break
6274 test "$with_gnu_ld" != yes && break
6276 esac
6278 done
6279 IFS="$lt_save_ifs"
6280 else
6281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6285 LD="$lt_cv_path_LD"
6286 if test -n "$LD"; then
6287 { echo "$as_me:$LINENO: result: $LD" >&5
6288 echo "${ECHO_T}$LD" >&6; }
6289 else
6290 { echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6; }
6293 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6294 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6295 { (exit 1); exit 1; }; }
6296 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6297 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6298 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6302 case `$LD -v 2>&1 </dev/null` in
6303 *GNU* | *'with BFD'*)
6304 lt_cv_prog_gnu_ld=yes
6307 lt_cv_prog_gnu_ld=no
6309 esac
6311 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6312 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6313 with_gnu_ld=$lt_cv_prog_gnu_ld
6315 # note, does not work on FreeBSD
6316 for ac_prog in gawk mawk nawk awk
6318 # Extract the first word of "$ac_prog", so it can be a program name with args.
6319 set dummy $ac_prog; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_prog_AWK+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 if test -n "$AWK"; then
6326 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_AWK="$ac_prog"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6339 done
6340 done
6341 IFS=$as_save_IFS
6345 AWK=$ac_cv_prog_AWK
6346 if test -n "$AWK"; then
6347 { echo "$as_me:$LINENO: result: $AWK" >&5
6348 echo "${ECHO_T}$AWK" >&6; }
6349 else
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6355 test -n "$AWK" && break
6356 done
6358 # Find a good install program. We prefer a C program (faster),
6359 # so one script is as good as another. But avoid the broken or
6360 # incompatible versions:
6361 # SysV /etc/install, /usr/sbin/install
6362 # SunOS /usr/etc/install
6363 # IRIX /sbin/install
6364 # AIX /bin/install
6365 # AmigaOS /C/install, which installs bootblocks on floppy discs
6366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6369 # OS/2's system install, which has a completely different semantic
6370 # ./install, which can be erroneously created by make from ./install.sh.
6371 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6372 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6373 if test -z "$INSTALL"; then
6374 if test "${ac_cv_path_install+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 # Account for people who put trailing slashes in PATH elements.
6383 case $as_dir/ in
6384 ./ | .// | /cC/* | \
6385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6387 /usr/ucb/* ) ;;
6389 # OSF1 and SCO ODT 3.0 have their own names for install.
6390 # Don't use installbsd from OSF since it installs stuff as root
6391 # by default.
6392 for ac_prog in ginstall scoinst install; do
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6395 if test $ac_prog = install &&
6396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6397 # AIX install. It has an incompatible calling convention.
6399 elif test $ac_prog = install &&
6400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6401 # program-specific install script used by HP pwplus--don't use.
6403 else
6404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6405 break 3
6408 done
6409 done
6411 esac
6412 done
6413 IFS=$as_save_IFS
6417 if test "${ac_cv_path_install+set}" = set; then
6418 INSTALL=$ac_cv_path_install
6419 else
6420 # As a last resort, use the slow shell script. Don't cache a
6421 # value for INSTALL within a source directory, because that will
6422 # break other packages using the cache if that directory is
6423 # removed, or if the value is a relative name.
6424 INSTALL=$ac_install_sh
6427 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6428 echo "${ECHO_T}$INSTALL" >&6; }
6430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6431 # It thinks the first close brace ends the variable substitution.
6432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6438 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6439 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6440 LN_S=$as_ln_s
6441 if test "$LN_S" = "ln -s"; then
6442 { echo "$as_me:$LINENO: result: yes" >&5
6443 echo "${ECHO_T}yes" >&6; }
6444 else
6445 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6446 echo "${ECHO_T}no, using $LN_S" >&6; }
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_prog_RANLIB+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 if test -n "$RANLIB"; then
6458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6471 done
6472 done
6473 IFS=$as_save_IFS
6477 RANLIB=$ac_cv_prog_RANLIB
6478 if test -n "$RANLIB"; then
6479 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6480 echo "${ECHO_T}$RANLIB" >&6; }
6481 else
6482 { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6488 if test -z "$ac_cv_prog_RANLIB"; then
6489 ac_ct_RANLIB=$RANLIB
6490 # Extract the first word of "ranlib", so it can be a program name with args.
6491 set dummy ranlib; ac_word=$2
6492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6494 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 if test -n "$ac_ct_RANLIB"; then
6498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_RANLIB="ranlib"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6511 done
6512 done
6513 IFS=$as_save_IFS
6517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6518 if test -n "$ac_ct_RANLIB"; then
6519 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6520 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6521 else
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6526 if test "x$ac_ct_RANLIB" = x; then
6527 RANLIB=":"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet. If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&5
6534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6535 whose name does not start with the host triplet. If you think this
6536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539 RANLIB=$ac_ct_RANLIB
6541 else
6542 RANLIB="$ac_cv_prog_RANLIB"
6545 { echo "$as_me:$LINENO: checking for GNU make" >&5
6546 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6547 if test "${GNU_MAKE+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 GNU_MAKE='Not Found' ;
6551 GNU_MAKE_VERSION_MAJOR=0 ;
6552 GNU_MAKE_VERSION_MINOR=0 ;
6553 for a in make gmake gnumake ; do
6554 if test -z "$a" ; then continue ; fi ;
6555 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6556 GNU_MAKE=$a ;
6557 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6558 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6559 break;
6561 done ;
6564 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6565 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6566 if test "x$GNU_MAKE" = "xNot Found" ; then
6567 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6568 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6569 { (exit 1); exit 1; }; }
6570 exit 1
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}strip; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_path_STRIP+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 case $STRIP in
6584 [\\/]* | ?:[\\/]*)
6585 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6604 esac
6606 STRIP=$ac_cv_path_STRIP
6607 if test -n "$STRIP"; then
6608 { echo "$as_me:$LINENO: result: $STRIP" >&5
6609 echo "${ECHO_T}$STRIP" >&6; }
6610 else
6611 { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6617 if test -z "$ac_cv_path_STRIP"; then
6618 ac_pt_STRIP=$STRIP
6619 # Extract the first word of "strip", so it can be a program name with args.
6620 set dummy strip; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 case $ac_pt_STRIP in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6647 esac
6649 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6650 if test -n "$ac_pt_STRIP"; then
6651 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6652 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6658 if test "x$ac_pt_STRIP" = x; then
6659 STRIP=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6664 whose name does not start with the host triplet. If you think this
6665 configuration is useful to you, please write to autoconf@gnu.org." >&5
6666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671 STRIP=$ac_pt_STRIP
6673 else
6674 STRIP="$ac_cv_path_STRIP"
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}ar; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_AR+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 case $AR in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6706 esac
6708 AR=$ac_cv_path_AR
6709 if test -n "$AR"; then
6710 { echo "$as_me:$LINENO: result: $AR" >&5
6711 echo "${ECHO_T}$AR" >&6; }
6712 else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6719 if test -z "$ac_cv_path_AR"; then
6720 ac_pt_AR=$AR
6721 # Extract the first word of "ar", so it can be a program name with args.
6722 set dummy ar; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 case $ac_pt_AR in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6749 esac
6751 ac_pt_AR=$ac_cv_path_ac_pt_AR
6752 if test -n "$ac_pt_AR"; then
6753 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6754 echo "${ECHO_T}$ac_pt_AR" >&6; }
6755 else
6756 { echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6; }
6760 if test "x$ac_pt_AR" = x; then
6761 AR=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764 yes:)
6765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&5
6768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6769 whose name does not start with the host triplet. If you think this
6770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773 AR=$ac_pt_AR
6775 else
6776 AR="$ac_cv_path_AR"
6780 GNU_LD=0
6781 if test "x$with_gnu_ld" = "xyes" ; then
6782 GNU_LD=1
6786 # Extract the first word of "grep", so it can be a program name with args.
6787 set dummy grep; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_GREP+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 case $GREP in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6813 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6815 esac
6817 GREP=$ac_cv_path_GREP
6818 if test -n "$GREP"; then
6819 { echo "$as_me:$LINENO: result: $GREP" >&5
6820 echo "${ECHO_T}$GREP" >&6; }
6821 else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 # Extract the first word of "find", so it can be a program name with args.
6828 set dummy find; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_FIND+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 case $FIND in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6850 done
6851 done
6852 IFS=$as_save_IFS
6854 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6856 esac
6858 FIND=$ac_cv_path_FIND
6859 if test -n "$FIND"; then
6860 { echo "$as_me:$LINENO: result: $FIND" >&5
6861 echo "${ECHO_T}$FIND" >&6; }
6862 else
6863 { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6868 # Extract the first word of "compress", so it can be a program name with args.
6869 set dummy compress; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_COMPRESS+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 case $COMPRESS in
6876 [\\/]* | ?:[\\/]*)
6877 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6895 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6897 esac
6899 COMPRESS=$ac_cv_path_COMPRESS
6900 if test -n "$COMPRESS"; then
6901 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6902 echo "${ECHO_T}$COMPRESS" >&6; }
6903 else
6904 { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6909 # Extract the first word of "basename", so it can be a program name with args.
6910 set dummy basename; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_BASENAME+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 case $BASENAME in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6932 done
6933 done
6934 IFS=$as_save_IFS
6936 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6938 esac
6940 BASENAME=$ac_cv_path_BASENAME
6941 if test -n "$BASENAME"; then
6942 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6943 echo "${ECHO_T}$BASENAME" >&6; }
6944 else
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6950 # Extract the first word of "id", so it can be a program name with args.
6951 set dummy id; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_ID+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 case $ID in
6958 [\\/]* | ?:[\\/]*)
6959 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6977 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6979 esac
6981 ID=$ac_cv_path_ID
6982 if test -n "$ID"; then
6983 { echo "$as_me:$LINENO: result: $ID" >&5
6984 echo "${ECHO_T}$ID" >&6; }
6985 else
6986 { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6991 # Extract the first word of "dirname", so it can be a program name with args.
6992 set dummy dirname; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_path_DIRNAME+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 case $DIRNAME in
6999 [\\/]* | ?:[\\/]*)
7000 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7014 done
7015 done
7016 IFS=$as_save_IFS
7018 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7020 esac
7022 DIRNAME=$ac_cv_path_DIRNAME
7023 if test -n "$DIRNAME"; then
7024 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7025 echo "${ECHO_T}$DIRNAME" >&6; }
7026 else
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7032 # Extract the first word of "sh", so it can be a program name with args.
7033 set dummy sh; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_path_SHELL+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 case $SHELL in
7040 [\\/]* | ?:[\\/]*)
7041 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7055 done
7056 done
7057 IFS=$as_save_IFS
7059 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7061 esac
7063 SHELL=$ac_cv_path_SHELL
7064 if test -n "$SHELL"; then
7065 { echo "$as_me:$LINENO: result: $SHELL" >&5
7066 echo "${ECHO_T}$SHELL" >&6; }
7067 else
7068 { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7073 # Extract the first word of "ln", so it can be a program name with args.
7074 set dummy ln; ac_word=$2
7075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7077 if test "${ac_cv_path_LN+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080 case $LN in
7081 [\\/]* | ?:[\\/]*)
7082 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7096 done
7097 done
7098 IFS=$as_save_IFS
7100 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7102 esac
7104 LN=$ac_cv_path_LN
7105 if test -n "$LN"; then
7106 { echo "$as_me:$LINENO: result: $LN" >&5
7107 echo "${ECHO_T}$LN" >&6; }
7108 else
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7114 # Extract the first word of "dot", so it can be a program name with args.
7115 set dummy dot; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_DOT+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 case $DOT in
7122 [\\/]* | ?:[\\/]*)
7123 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7141 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7143 esac
7145 DOT=$ac_cv_path_DOT
7146 if test -n "$DOT"; then
7147 { echo "$as_me:$LINENO: result: $DOT" >&5
7148 echo "${ECHO_T}$DOT" >&6; }
7149 else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7155 # Extract the first word of "wget", so it can be a program name with args.
7156 set dummy wget; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_path_WGET+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 case $WGET in
7163 [\\/]* | ?:[\\/]*)
7164 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7178 done
7179 done
7180 IFS=$as_save_IFS
7182 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7184 esac
7186 WGET=$ac_cv_path_WGET
7187 if test -n "$WGET"; then
7188 { echo "$as_me:$LINENO: result: $WGET" >&5
7189 echo "${ECHO_T}$WGET" >&6; }
7190 else
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7196 # Extract the first word of "rubber", so it can be a program name with args.
7197 set dummy rubber; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_path_RUBBER+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 case $RUBBER in
7204 [\\/]* | ?:[\\/]*)
7205 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7219 done
7220 done
7221 IFS=$as_save_IFS
7223 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7225 esac
7227 RUBBER=$ac_cv_path_RUBBER
7228 if test -n "$RUBBER"; then
7229 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7230 echo "${ECHO_T}$RUBBER" >&6; }
7231 else
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7237 # Extract the first word of "kpsewhich", so it can be a program name with args.
7238 set dummy kpsewhich; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 case $KPATHSEA in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7260 done
7261 done
7262 IFS=$as_save_IFS
7264 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7266 esac
7268 KPATHSEA=$ac_cv_path_KPATHSEA
7269 if test -n "$KPATHSEA"; then
7270 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7271 echo "${ECHO_T}$KPATHSEA" >&6; }
7272 else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 if test "${WGET}" != ":" ; then
7279 DOWNLOAD=${WGET}
7280 else
7281 # Extract the first word of "fetch", so it can be a program name with args.
7282 set dummy fetch; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_FETCH+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 case $FETCH in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7304 done
7305 done
7306 IFS=$as_save_IFS
7308 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7310 esac
7312 FETCH=$ac_cv_path_FETCH
7313 if test -n "$FETCH"; then
7314 { echo "$as_me:$LINENO: result: $FETCH" >&5
7315 echo "${ECHO_T}$FETCH" >&6; }
7316 else
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7322 DOWNLOAD=${FETCH}
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 if test -n "$SOXMIX"; then
7335 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7348 done
7349 done
7350 IFS=$as_save_IFS
7354 SOXMIX=$ac_cv_prog_SOXMIX
7355 if test -n "$SOXMIX"; then
7356 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7357 echo "${ECHO_T}$SOXMIX" >&6; }
7358 else
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7365 if test -z "$ac_cv_prog_SOXMIX"; then
7366 ac_ct_SOXMIX=$SOXMIX
7367 # Extract the first word of "soxmix", so it can be a program name with args.
7368 set dummy soxmix; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 if test -n "$ac_ct_SOXMIX"; then
7375 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7388 done
7389 done
7390 IFS=$as_save_IFS
7394 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7395 if test -n "$ac_ct_SOXMIX"; then
7396 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7397 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7398 else
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7403 if test "x$ac_ct_SOXMIX" = x; then
7404 SOXMIX=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7409 whose name does not start with the host triplet. If you think this
7410 configuration is useful to you, please write to autoconf@gnu.org." >&5
7411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7412 whose name does not start with the host triplet. If you think this
7413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416 SOXMIX=$ac_ct_SOXMIX
7418 else
7419 SOXMIX="$ac_cv_prog_SOXMIX"
7422 if test "${SOXMIX}" != ":" ; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_SOXMIX 1
7426 _ACEOF
7433 ac_ext=c
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 acx_pthread_ok=no
7441 # We used to check for pthread.h first, but this fails if pthread.h
7442 # requires special compiler flags (e.g. on True64 or Sequent).
7443 # It gets checked for in the link test anyway.
7445 # First of all, check if the user has set any of the PTHREAD_LIBS,
7446 # etcetera environment variables, and if threads linking works using
7447 # them:
7448 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7449 save_CFLAGS="$CFLAGS"
7450 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7451 save_LIBS="$LIBS"
7452 LIBS="$PTHREAD_LIBS $LIBS"
7453 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7454 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465 #ifdef __cplusplus
7466 extern "C"
7467 #endif
7468 char pthread_join ();
7470 main ()
7472 return pthread_join ();
7474 return 0;
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (ac_try="$ac_link"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_link") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest$ac_exeext &&
7494 $as_test_x conftest$ac_exeext; then
7495 acx_pthread_ok=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7504 conftest$ac_exeext conftest.$ac_ext
7505 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7506 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7507 if test x"$acx_pthread_ok" = xno; then
7508 PTHREAD_LIBS=""
7509 PTHREAD_CFLAGS=""
7511 LIBS="$save_LIBS"
7512 CFLAGS="$save_CFLAGS"
7515 # We must check for the threads library under a number of different
7516 # names; the ordering is very important because some systems
7517 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7518 # libraries is broken (non-POSIX).
7520 # Create a list of thread flags to try. Items starting with a "-" are
7521 # C compiler flags, and other items are library names, except for "none"
7522 # which indicates that we try without any flags at all, and "pthread-config"
7523 # which is a program returning the flags for the Pth emulation library.
7525 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7527 # The ordering *is* (sometimes) important. Some notes on the
7528 # individual items follow:
7530 # pthreads: AIX (must check this before -lpthread)
7531 # none: in case threads are in libc; should be tried before -Kthread and
7532 # other compiler flags to prevent continual compiler warnings
7533 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7534 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7535 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7536 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7537 # -pthreads: Solaris/gcc
7538 # -mthreads: Mingw32/gcc, Lynx/gcc
7539 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7540 # doesn't hurt to check since this sometimes defines pthreads too;
7541 # also defines -D_REENTRANT)
7542 # ... -mt is also the pthreads flag for HP/aCC
7543 # pthread: Linux, etcetera
7544 # --thread-safe: KAI C++
7545 # pthread-config: use pthread-config program (for GNU Pth library)
7547 case "${host_cpu}-${host_os}" in
7548 *solaris*)
7550 # On Solaris (at least, for some versions), libc contains stubbed
7551 # (non-functional) versions of the pthreads routines, so link-based
7552 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7553 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7554 # a function called by this macro, so we could check for that, but
7555 # who knows whether they'll stub that too in a future libc.) So,
7556 # we'll just look for -pthreads and -lpthread first:
7558 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7560 esac
7562 if test x"$acx_pthread_ok" = xno; then
7563 for flag in $acx_pthread_flags; do
7565 case $flag in
7566 none)
7567 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7568 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7572 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7573 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7574 PTHREAD_CFLAGS="$flag"
7577 pthread-config)
7578 # Extract the first word of "pthread-config", so it can be a program name with args.
7579 set dummy pthread-config; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 if test -n "$acx_pthread_config"; then
7586 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_acx_pthread_config="yes"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7603 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7606 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7607 if test -n "$acx_pthread_config"; then
7608 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7609 echo "${ECHO_T}$acx_pthread_config" >&6; }
7610 else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 if test x"$acx_pthread_config" = xno; then continue; fi
7617 PTHREAD_CFLAGS="`pthread-config --cflags`"
7618 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7622 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7623 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7624 PTHREAD_LIBS="-l$flag"
7626 esac
7628 save_LIBS="$LIBS"
7629 save_CFLAGS="$CFLAGS"
7630 LIBS="$PTHREAD_LIBS $LIBS"
7631 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7633 # Check for various functions. We must include pthread.h,
7634 # since some functions may be macros. (On the Sequent, we
7635 # need a special flag -Kthread to make this header compile.)
7636 # We check for pthread_join because it is in -lpthread on IRIX
7637 # while pthread_create is in libc. We check for pthread_attr_init
7638 # due to DEC craziness with -lpthreads. We check for
7639 # pthread_cleanup_push because it is one of the few pthread
7640 # functions on Solaris that doesn't have a non-functional libc stub.
7641 # We try pthread_create on general principles.
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <pthread.h>
7650 main ()
7652 pthread_t th; pthread_join(th, 0);
7653 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7654 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 acx_pthread_ok=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext conftest.$ac_ext
7688 LIBS="$save_LIBS"
7689 CFLAGS="$save_CFLAGS"
7691 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7692 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7693 if test "x$acx_pthread_ok" = xyes; then
7694 break;
7697 PTHREAD_LIBS=""
7698 PTHREAD_CFLAGS=""
7699 done
7702 # Various other checks:
7703 if test "x$acx_pthread_ok" = xyes; then
7704 save_LIBS="$LIBS"
7705 LIBS="$PTHREAD_LIBS $LIBS"
7706 save_CFLAGS="$CFLAGS"
7707 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7709 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7710 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7711 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7712 attr_name=unknown
7713 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 #include <pthread.h>
7722 main ()
7724 int attr=$attr; return attr;
7726 return 0;
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_link") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest$ac_exeext &&
7746 $as_test_x conftest$ac_exeext; then
7747 attr_name=$attr; break
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7756 conftest$ac_exeext conftest.$ac_ext
7757 done
7758 { echo "$as_me:$LINENO: result: $attr_name" >&5
7759 echo "${ECHO_T}$attr_name" >&6; }
7760 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7762 cat >>confdefs.h <<_ACEOF
7763 #define PTHREAD_CREATE_JOINABLE $attr_name
7764 _ACEOF
7768 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7769 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7770 flag=no
7771 case "${host_cpu}-${host_os}" in
7772 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7773 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7774 esac
7775 { echo "$as_me:$LINENO: result: ${flag}" >&5
7776 echo "${ECHO_T}${flag}" >&6; }
7777 if test "x$flag" != xno; then
7778 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7781 LIBS="$save_LIBS"
7782 CFLAGS="$save_CFLAGS"
7784 # More AIX lossage: must compile with xlc_r or cc_r
7785 if test x"$GCC" != xyes; then
7786 for ac_prog in xlc_r cc_r
7788 # Extract the first word of "$ac_prog", so it can be a program name with args.
7789 set dummy $ac_prog; ac_word=$2
7790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7792 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795 if test -n "$PTHREAD_CC"; then
7796 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_prog_PTHREAD_CC="$ac_prog"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7816 if test -n "$PTHREAD_CC"; then
7817 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7818 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7819 else
7820 { echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6; }
7825 test -n "$PTHREAD_CC" && break
7826 done
7827 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7829 else
7830 PTHREAD_CC=$CC
7832 else
7833 PTHREAD_CC="$CC"
7840 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7841 if test x"$acx_pthread_ok" = xyes; then
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_PTHREAD 1
7845 _ACEOF
7848 else
7849 acx_pthread_ok=no
7852 ac_ext=c
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 ac_ext=c
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 # Check whether --enable-dev-mode was given.
7868 if test "${enable_dev_mode+set}" = set; then
7869 enableval=$enable_dev_mode; case "${enableval}" in
7870 y|ye|yes) AST_DEVMODE=yes ;;
7871 n|no) AST_DEVMODE=no ;;
7872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7873 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7874 { (exit 1); exit 1; }; } ;;
7875 esac
7880 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7881 # various packages.
7882 # $1 is the prefix for the variables in makeopts and autoconfig.h
7883 # $2 is the short comment, $4 is the long comment
7884 # $3 is the name used in --with- or --without- flags for configure.
7886 # Package option names should be in alphabetical order
7887 # by the --with option name (the third field),
7888 # to make things easier for the users.
7891 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7892 ALSA_OPTION="asound"
7894 # Check whether --with-asound was given.
7895 if test "${with_asound+set}" = set; then
7896 withval=$with_asound;
7897 case ${withval} in
7898 n|no)
7899 USE_ALSA=no
7901 y|ye|yes)
7902 ac_mandatory_list="${ac_mandatory_list} ALSA"
7905 ALSA_DIR="${withval}"
7906 ac_mandatory_list="${ac_mandatory_list} ALSA"
7908 esac
7912 PBX_ALSA=0
7919 # BKTR is used for backtrace support on platforms that do not
7920 # have it natively.
7922 BKTR_DESCRIP="Stack Backtrace support"
7923 BKTR_OPTION="execinfo"
7925 # Check whether --with-execinfo was given.
7926 if test "${with_execinfo+set}" = set; then
7927 withval=$with_execinfo;
7928 case ${withval} in
7929 n|no)
7930 USE_BKTR=no
7932 y|ye|yes)
7933 ac_mandatory_list="${ac_mandatory_list} BKTR"
7936 BKTR_DIR="${withval}"
7937 ac_mandatory_list="${ac_mandatory_list} BKTR"
7939 esac
7943 PBX_BKTR=0
7950 CAP_DESCRIP="POSIX 1.e capabilities"
7951 CAP_OPTION="cap"
7953 # Check whether --with-cap was given.
7954 if test "${with_cap+set}" = set; then
7955 withval=$with_cap;
7956 case ${withval} in
7957 n|no)
7958 USE_CAP=no
7960 y|ye|yes)
7961 ac_mandatory_list="${ac_mandatory_list} CAP"
7964 CAP_DIR="${withval}"
7965 ac_mandatory_list="${ac_mandatory_list} CAP"
7967 esac
7971 PBX_CAP=0
7978 CURL_DESCRIP="cURL"
7979 CURL_OPTION="curl"
7981 # Check whether --with-curl was given.
7982 if test "${with_curl+set}" = set; then
7983 withval=$with_curl;
7984 case ${withval} in
7985 n|no)
7986 USE_CURL=no
7988 y|ye|yes)
7989 ac_mandatory_list="${ac_mandatory_list} CURL"
7992 CURL_DIR="${withval}"
7993 ac_mandatory_list="${ac_mandatory_list} CURL"
7995 esac
7999 PBX_CURL=0
8006 CURSES_DESCRIP="curses"
8007 CURSES_OPTION="curses"
8009 # Check whether --with-curses was given.
8010 if test "${with_curses+set}" = set; then
8011 withval=$with_curses;
8012 case ${withval} in
8013 n|no)
8014 USE_CURSES=no
8016 y|ye|yes)
8017 ac_mandatory_list="${ac_mandatory_list} CURSES"
8020 CURSES_DIR="${withval}"
8021 ac_mandatory_list="${ac_mandatory_list} CURSES"
8023 esac
8027 PBX_CURSES=0
8034 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8035 CRYPTO_OPTION="crypto"
8037 # Check whether --with-crypto was given.
8038 if test "${with_crypto+set}" = set; then
8039 withval=$with_crypto;
8040 case ${withval} in
8041 n|no)
8042 USE_CRYPTO=no
8044 y|ye|yes)
8045 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8048 CRYPTO_DIR="${withval}"
8049 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8051 esac
8055 PBX_CRYPTO=0
8062 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8063 FFMPEG_OPTION="avcodec"
8065 # Check whether --with-avcodec was given.
8066 if test "${with_avcodec+set}" = set; then
8067 withval=$with_avcodec;
8068 case ${withval} in
8069 n|no)
8070 USE_FFMPEG=no
8072 y|ye|yes)
8073 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8076 FFMPEG_DIR="${withval}"
8077 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8079 esac
8083 PBX_FFMPEG=0
8090 GSM_DESCRIP="External GSM library"
8091 GSM_OPTION="gsm"
8093 # Check whether --with-gsm was given.
8094 if test "${with_gsm+set}" = set; then
8095 withval=$with_gsm;
8096 case ${withval} in
8097 n|no)
8098 USE_GSM=no
8100 y|ye|yes)
8101 ac_mandatory_list="${ac_mandatory_list} GSM"
8104 GSM_DIR="${withval}"
8105 ac_mandatory_list="${ac_mandatory_list} GSM"
8107 esac
8111 PBX_GSM=0
8118 GTK_DESCRIP="gtk libraries"
8119 GTK_OPTION="gtk"
8121 # Check whether --with-gtk was given.
8122 if test "${with_gtk+set}" = set; then
8123 withval=$with_gtk;
8124 case ${withval} in
8125 n|no)
8126 USE_GTK=no
8128 y|ye|yes)
8129 ac_mandatory_list="${ac_mandatory_list} GTK"
8132 GTK_DIR="${withval}"
8133 ac_mandatory_list="${ac_mandatory_list} GTK"
8135 esac
8139 PBX_GTK=0
8146 GTK2_DESCRIP="gtk2 libraries"
8147 GTK2_OPTION="gtk2"
8149 # Check whether --with-gtk2 was given.
8150 if test "${with_gtk2+set}" = set; then
8151 withval=$with_gtk2;
8152 case ${withval} in
8153 n|no)
8154 USE_GTK2=no
8156 y|ye|yes)
8157 ac_mandatory_list="${ac_mandatory_list} GTK2"
8160 GTK2_DIR="${withval}"
8161 ac_mandatory_list="${ac_mandatory_list} GTK2"
8163 esac
8167 PBX_GTK2=0
8174 GMIME_DESCRIP="GMime library"
8175 GMIME_OPTION="gmime"
8177 # Check whether --with-gmime was given.
8178 if test "${with_gmime+set}" = set; then
8179 withval=$with_gmime;
8180 case ${withval} in
8181 n|no)
8182 USE_GMIME=no
8184 y|ye|yes)
8185 ac_mandatory_list="${ac_mandatory_list} GMIME"
8188 GMIME_DIR="${withval}"
8189 ac_mandatory_list="${ac_mandatory_list} GMIME"
8191 esac
8195 PBX_GMIME=0
8202 ICONV_DESCRIP="Iconv Library"
8203 ICONV_OPTION="iconv"
8205 # Check whether --with-iconv was given.
8206 if test "${with_iconv+set}" = set; then
8207 withval=$with_iconv;
8208 case ${withval} in
8209 n|no)
8210 USE_ICONV=no
8212 y|ye|yes)
8213 ac_mandatory_list="${ac_mandatory_list} ICONV"
8216 ICONV_DIR="${withval}"
8217 ac_mandatory_list="${ac_mandatory_list} ICONV"
8219 esac
8223 PBX_ICONV=0
8230 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8231 IKSEMEL_OPTION="iksemel"
8233 # Check whether --with-iksemel was given.
8234 if test "${with_iksemel+set}" = set; then
8235 withval=$with_iksemel;
8236 case ${withval} in
8237 n|no)
8238 USE_IKSEMEL=no
8240 y|ye|yes)
8241 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8244 IKSEMEL_DIR="${withval}"
8245 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8247 esac
8251 PBX_IKSEMEL=0
8258 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8259 IMAP_TK_OPTION="imap"
8261 # Check whether --with-imap was given.
8262 if test "${with_imap+set}" = set; then
8263 withval=$with_imap;
8264 case ${withval} in
8265 n|no)
8266 USE_IMAP_TK=no
8268 y|ye|yes)
8269 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8272 IMAP_TK_DIR="${withval}"
8273 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8275 esac
8279 PBX_IMAP_TK=0
8286 ISDNNET_DESCRIP="ISDN4Linux Library"
8287 ISDNNET_OPTION="isdnnet"
8289 # Check whether --with-isdnnet was given.
8290 if test "${with_isdnnet+set}" = set; then
8291 withval=$with_isdnnet;
8292 case ${withval} in
8293 n|no)
8294 USE_ISDNNET=no
8296 y|ye|yes)
8297 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8300 ISDNNET_DIR="${withval}"
8301 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8303 esac
8307 PBX_ISDNNET=0
8314 JACK_DESCRIP="Jack Audio Connection Kit"
8315 JACK_OPTION="jack"
8317 # Check whether --with-jack was given.
8318 if test "${with_jack+set}" = set; then
8319 withval=$with_jack;
8320 case ${withval} in
8321 n|no)
8322 USE_JACK=no
8324 y|ye|yes)
8325 ac_mandatory_list="${ac_mandatory_list} JACK"
8328 JACK_DIR="${withval}"
8329 ac_mandatory_list="${ac_mandatory_list} JACK"
8331 esac
8335 PBX_JACK=0
8342 LDAP_DESCRIP="OpenLDAP"
8343 LDAP_OPTION="ldap"
8345 # Check whether --with-ldap was given.
8346 if test "${with_ldap+set}" = set; then
8347 withval=$with_ldap;
8348 case ${withval} in
8349 n|no)
8350 USE_LDAP=no
8352 y|ye|yes)
8353 ac_mandatory_list="${ac_mandatory_list} LDAP"
8356 LDAP_DIR="${withval}"
8357 ac_mandatory_list="${ac_mandatory_list} LDAP"
8359 esac
8363 PBX_LDAP=0
8370 LTDL_DESCRIP="libtool"
8371 LTDL_OPTION="ltdl"
8373 # Check whether --with-ltdl was given.
8374 if test "${with_ltdl+set}" = set; then
8375 withval=$with_ltdl;
8376 case ${withval} in
8377 n|no)
8378 USE_LTDL=no
8380 y|ye|yes)
8381 ac_mandatory_list="${ac_mandatory_list} LTDL"
8384 LTDL_DIR="${withval}"
8385 ac_mandatory_list="${ac_mandatory_list} LTDL"
8387 esac
8391 PBX_LTDL=0
8398 LUA_DESCRIP="Lua"
8399 LUA_OPTION="lua"
8401 # Check whether --with-lua was given.
8402 if test "${with_lua+set}" = set; then
8403 withval=$with_lua;
8404 case ${withval} in
8405 n|no)
8406 USE_LUA=no
8408 y|ye|yes)
8409 ac_mandatory_list="${ac_mandatory_list} LUA"
8412 LUA_DIR="${withval}"
8413 ac_mandatory_list="${ac_mandatory_list} LUA"
8415 esac
8419 PBX_LUA=0
8426 MISDN_DESCRIP="mISDN User Library"
8427 MISDN_OPTION="misdn"
8429 # Check whether --with-misdn was given.
8430 if test "${with_misdn+set}" = set; then
8431 withval=$with_misdn;
8432 case ${withval} in
8433 n|no)
8434 USE_MISDN=no
8436 y|ye|yes)
8437 ac_mandatory_list="${ac_mandatory_list} MISDN"
8440 MISDN_DIR="${withval}"
8441 ac_mandatory_list="${ac_mandatory_list} MISDN"
8443 esac
8447 PBX_MISDN=0
8454 NBS_DESCRIP="Network Broadcast Sound"
8455 NBS_OPTION="nbs"
8457 # Check whether --with-nbs was given.
8458 if test "${with_nbs+set}" = set; then
8459 withval=$with_nbs;
8460 case ${withval} in
8461 n|no)
8462 USE_NBS=no
8464 y|ye|yes)
8465 ac_mandatory_list="${ac_mandatory_list} NBS"
8468 NBS_DIR="${withval}"
8469 ac_mandatory_list="${ac_mandatory_list} NBS"
8471 esac
8475 PBX_NBS=0
8482 NCURSES_DESCRIP="ncurses"
8483 NCURSES_OPTION="ncurses"
8485 # Check whether --with-ncurses was given.
8486 if test "${with_ncurses+set}" = set; then
8487 withval=$with_ncurses;
8488 case ${withval} in
8489 n|no)
8490 USE_NCURSES=no
8492 y|ye|yes)
8493 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8496 NCURSES_DIR="${withval}"
8497 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8499 esac
8503 PBX_NCURSES=0
8510 NETSNMP_DESCRIP="Net-SNMP"
8511 NETSNMP_OPTION="netsnmp"
8513 # Check whether --with-netsnmp was given.
8514 if test "${with_netsnmp+set}" = set; then
8515 withval=$with_netsnmp;
8516 case ${withval} in
8517 n|no)
8518 USE_NETSNMP=no
8520 y|ye|yes)
8521 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8524 NETSNMP_DIR="${withval}"
8525 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8527 esac
8531 PBX_NETSNMP=0
8538 NEWT_DESCRIP="newt"
8539 NEWT_OPTION="newt"
8541 # Check whether --with-newt was given.
8542 if test "${with_newt+set}" = set; then
8543 withval=$with_newt;
8544 case ${withval} in
8545 n|no)
8546 USE_NEWT=no
8548 y|ye|yes)
8549 ac_mandatory_list="${ac_mandatory_list} NEWT"
8552 NEWT_DIR="${withval}"
8553 ac_mandatory_list="${ac_mandatory_list} NEWT"
8555 esac
8559 PBX_NEWT=0
8566 UNIXODBC_DESCRIP="unixODBC"
8567 UNIXODBC_OPTION="odbc"
8569 # Check whether --with-odbc was given.
8570 if test "${with_odbc+set}" = set; then
8571 withval=$with_odbc;
8572 case ${withval} in
8573 n|no)
8574 USE_UNIXODBC=no
8576 y|ye|yes)
8577 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8580 UNIXODBC_DIR="${withval}"
8581 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8583 esac
8587 PBX_UNIXODBC=0
8594 OGG_DESCRIP="OGG"
8595 OGG_OPTION="ogg"
8597 # Check whether --with-ogg was given.
8598 if test "${with_ogg+set}" = set; then
8599 withval=$with_ogg;
8600 case ${withval} in
8601 n|no)
8602 USE_OGG=no
8604 y|ye|yes)
8605 ac_mandatory_list="${ac_mandatory_list} OGG"
8608 OGG_DIR="${withval}"
8609 ac_mandatory_list="${ac_mandatory_list} OGG"
8611 esac
8615 PBX_OGG=0
8622 OSPTK_DESCRIP="OSP Toolkit"
8623 OSPTK_OPTION="osptk"
8625 # Check whether --with-osptk was given.
8626 if test "${with_osptk+set}" = set; then
8627 withval=$with_osptk;
8628 case ${withval} in
8629 n|no)
8630 USE_OSPTK=no
8632 y|ye|yes)
8633 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8636 OSPTK_DIR="${withval}"
8637 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8639 esac
8643 PBX_OSPTK=0
8650 OSS_DESCRIP="Open Sound System"
8651 OSS_OPTION="oss"
8653 # Check whether --with-oss was given.
8654 if test "${with_oss+set}" = set; then
8655 withval=$with_oss;
8656 case ${withval} in
8657 n|no)
8658 USE_OSS=no
8660 y|ye|yes)
8661 ac_mandatory_list="${ac_mandatory_list} OSS"
8664 OSS_DIR="${withval}"
8665 ac_mandatory_list="${ac_mandatory_list} OSS"
8667 esac
8671 PBX_OSS=0
8678 PGSQL_DESCRIP="PostgreSQL"
8679 PGSQL_OPTION="postgres"
8681 # Check whether --with-postgres was given.
8682 if test "${with_postgres+set}" = set; then
8683 withval=$with_postgres;
8684 case ${withval} in
8685 n|no)
8686 USE_PGSQL=no
8688 y|ye|yes)
8689 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8692 PGSQL_DIR="${withval}"
8693 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8695 esac
8699 PBX_PGSQL=0
8706 POPT_DESCRIP="popt"
8707 POPT_OPTION="popt"
8709 # Check whether --with-popt was given.
8710 if test "${with_popt+set}" = set; then
8711 withval=$with_popt;
8712 case ${withval} in
8713 n|no)
8714 USE_POPT=no
8716 y|ye|yes)
8717 ac_mandatory_list="${ac_mandatory_list} POPT"
8720 POPT_DIR="${withval}"
8721 ac_mandatory_list="${ac_mandatory_list} POPT"
8723 esac
8727 PBX_POPT=0
8734 PORTAUDIO_DESCRIP="PortAudio"
8735 PORTAUDIO_OPTION="portaudio"
8737 # Check whether --with-portaudio was given.
8738 if test "${with_portaudio+set}" = set; then
8739 withval=$with_portaudio;
8740 case ${withval} in
8741 n|no)
8742 USE_PORTAUDIO=no
8744 y|ye|yes)
8745 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8748 PORTAUDIO_DIR="${withval}"
8749 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8751 esac
8755 PBX_PORTAUDIO=0
8762 PRI_DESCRIP="ISDN PRI"
8763 PRI_OPTION="pri"
8765 # Check whether --with-pri was given.
8766 if test "${with_pri+set}" = set; then
8767 withval=$with_pri;
8768 case ${withval} in
8769 n|no)
8770 USE_PRI=no
8772 y|ye|yes)
8773 ac_mandatory_list="${ac_mandatory_list} PRI"
8776 PRI_DIR="${withval}"
8777 ac_mandatory_list="${ac_mandatory_list} PRI"
8779 esac
8783 PBX_PRI=0
8790 SPANDSP_DESCRIP="SPANDSP"
8791 SPANDSP_OPTION="spandsp"
8793 # Check whether --with-spandsp was given.
8794 if test "${with_spandsp+set}" = set; then
8795 withval=$with_spandsp;
8796 case ${withval} in
8797 n|no)
8798 USE_SPANDSP=no
8800 y|ye|yes)
8801 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8804 SPANDSP_DIR="${withval}"
8805 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8807 esac
8811 PBX_SPANDSP=0
8818 SS7_DESCRIP="ISDN SS7"
8819 SS7_OPTION="ss7"
8821 # Check whether --with-ss7 was given.
8822 if test "${with_ss7+set}" = set; then
8823 withval=$with_ss7;
8824 case ${withval} in
8825 n|no)
8826 USE_SS7=no
8828 y|ye|yes)
8829 ac_mandatory_list="${ac_mandatory_list} SS7"
8832 SS7_DIR="${withval}"
8833 ac_mandatory_list="${ac_mandatory_list} SS7"
8835 esac
8839 PBX_SS7=0
8846 PWLIB_DESCRIP="PWlib"
8847 PWLIB_OPTION="pwlib"
8849 # Check whether --with-pwlib was given.
8850 if test "${with_pwlib+set}" = set; then
8851 withval=$with_pwlib;
8852 case ${withval} in
8853 n|no)
8854 USE_PWLIB=no
8856 y|ye|yes)
8857 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8860 PWLIB_DIR="${withval}"
8861 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8863 esac
8867 PBX_PWLIB=0
8874 OPENH323_DESCRIP="OpenH323"
8875 OPENH323_OPTION="h323"
8877 # Check whether --with-h323 was given.
8878 if test "${with_h323+set}" = set; then
8879 withval=$with_h323;
8880 case ${withval} in
8881 n|no)
8882 USE_OPENH323=no
8884 y|ye|yes)
8885 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8888 OPENH323_DIR="${withval}"
8889 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8891 esac
8895 PBX_OPENH323=0
8902 RADIUS_DESCRIP="Radius Client"
8903 RADIUS_OPTION="radius"
8905 # Check whether --with-radius was given.
8906 if test "${with_radius+set}" = set; then
8907 withval=$with_radius;
8908 case ${withval} in
8909 n|no)
8910 USE_RADIUS=no
8912 y|ye|yes)
8913 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8916 RADIUS_DIR="${withval}"
8917 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8919 esac
8923 PBX_RADIUS=0
8930 SDL_DESCRIP="Sdl"
8931 SDL_OPTION="sdl"
8933 # Check whether --with-sdl was given.
8934 if test "${with_sdl+set}" = set; then
8935 withval=$with_sdl;
8936 case ${withval} in
8937 n|no)
8938 USE_SDL=no
8940 y|ye|yes)
8941 ac_mandatory_list="${ac_mandatory_list} SDL"
8944 SDL_DIR="${withval}"
8945 ac_mandatory_list="${ac_mandatory_list} SDL"
8947 esac
8951 PBX_SDL=0
8958 SDL_IMAGE_DESCRIP="Sdl Image library"
8959 SDL_IMAGE_OPTION="SDL_image"
8961 # Check whether --with-SDL_image was given.
8962 if test "${with_SDL_image+set}" = set; then
8963 withval=$with_SDL_image;
8964 case ${withval} in
8965 n|no)
8966 USE_SDL_IMAGE=no
8968 y|ye|yes)
8969 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8972 SDL_IMAGE_DIR="${withval}"
8973 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8975 esac
8979 PBX_SDL_IMAGE=0
8986 SPEEX_DESCRIP="Speex"
8987 SPEEX_OPTION="speex"
8989 # Check whether --with-speex was given.
8990 if test "${with_speex+set}" = set; then
8991 withval=$with_speex;
8992 case ${withval} in
8993 n|no)
8994 USE_SPEEX=no
8996 y|ye|yes)
8997 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9000 SPEEX_DIR="${withval}"
9001 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9003 esac
9007 PBX_SPEEX=0
9014 SPEEXDSP_DESCRIP="Speexdsp"
9015 SPEEXDSP_OPTION="speexdsp"
9017 # Check whether --with-speexdsp was given.
9018 if test "${with_speexdsp+set}" = set; then
9019 withval=$with_speexdsp;
9020 case ${withval} in
9021 n|no)
9022 USE_SPEEXDSP=no
9024 y|ye|yes)
9025 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9028 SPEEXDSP_DIR="${withval}"
9029 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9031 esac
9035 PBX_SPEEXDSP=0
9042 SQLITE_DESCRIP="SQLite"
9043 SQLITE_OPTION="sqlite"
9045 # Check whether --with-sqlite was given.
9046 if test "${with_sqlite+set}" = set; then
9047 withval=$with_sqlite;
9048 case ${withval} in
9049 n|no)
9050 USE_SQLITE=no
9052 y|ye|yes)
9053 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9056 SQLITE_DIR="${withval}"
9057 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9059 esac
9063 PBX_SQLITE=0
9070 SQLITE3_DESCRIP="SQLite"
9071 SQLITE3_OPTION="sqlite3"
9073 # Check whether --with-sqlite3 was given.
9074 if test "${with_sqlite3+set}" = set; then
9075 withval=$with_sqlite3;
9076 case ${withval} in
9077 n|no)
9078 USE_SQLITE3=no
9080 y|ye|yes)
9081 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9084 SQLITE3_DIR="${withval}"
9085 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9087 esac
9091 PBX_SQLITE3=0
9098 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9099 SUPPSERV_OPTION="suppserv"
9101 # Check whether --with-suppserv was given.
9102 if test "${with_suppserv+set}" = set; then
9103 withval=$with_suppserv;
9104 case ${withval} in
9105 n|no)
9106 USE_SUPPSERV=no
9108 y|ye|yes)
9109 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9112 SUPPSERV_DIR="${withval}"
9113 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9115 esac
9119 PBX_SUPPSERV=0
9126 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9127 OPENSSL_OPTION="ssl"
9129 # Check whether --with-ssl was given.
9130 if test "${with_ssl+set}" = set; then
9131 withval=$with_ssl;
9132 case ${withval} in
9133 n|no)
9134 USE_OPENSSL=no
9136 y|ye|yes)
9137 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9140 OPENSSL_DIR="${withval}"
9141 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9143 esac
9147 PBX_OPENSSL=0
9154 FREETDS_DESCRIP="FreeTDS"
9155 FREETDS_OPTION="tds"
9157 # Check whether --with-tds was given.
9158 if test "${with_tds+set}" = set; then
9159 withval=$with_tds;
9160 case ${withval} in
9161 n|no)
9162 USE_FREETDS=no
9164 y|ye|yes)
9165 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9168 FREETDS_DIR="${withval}"
9169 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9171 esac
9175 PBX_FREETDS=0
9182 TERMCAP_DESCRIP="Termcap"
9183 TERMCAP_OPTION="termcap"
9185 # Check whether --with-termcap was given.
9186 if test "${with_termcap+set}" = set; then
9187 withval=$with_termcap;
9188 case ${withval} in
9189 n|no)
9190 USE_TERMCAP=no
9192 y|ye|yes)
9193 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9196 TERMCAP_DIR="${withval}"
9197 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9199 esac
9203 PBX_TERMCAP=0
9210 TINFO_DESCRIP="Term Info"
9211 TINFO_OPTION="tinfo"
9213 # Check whether --with-tinfo was given.
9214 if test "${with_tinfo+set}" = set; then
9215 withval=$with_tinfo;
9216 case ${withval} in
9217 n|no)
9218 USE_TINFO=no
9220 y|ye|yes)
9221 ac_mandatory_list="${ac_mandatory_list} TINFO"
9224 TINFO_DIR="${withval}"
9225 ac_mandatory_list="${ac_mandatory_list} TINFO"
9227 esac
9231 PBX_TINFO=0
9238 TONEZONE_DESCRIP="tonezone"
9239 TONEZONE_OPTION="tonezone"
9241 # Check whether --with-tonezone was given.
9242 if test "${with_tonezone+set}" = set; then
9243 withval=$with_tonezone;
9244 case ${withval} in
9245 n|no)
9246 USE_TONEZONE=no
9248 y|ye|yes)
9249 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9252 TONEZONE_DIR="${withval}"
9253 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9255 esac
9259 PBX_TONEZONE=0
9266 USB_DESCRIP="usb"
9267 USB_OPTION="usb"
9269 # Check whether --with-usb was given.
9270 if test "${with_usb+set}" = set; then
9271 withval=$with_usb;
9272 case ${withval} in
9273 n|no)
9274 USE_USB=no
9276 y|ye|yes)
9277 ac_mandatory_list="${ac_mandatory_list} USB"
9280 USB_DIR="${withval}"
9281 ac_mandatory_list="${ac_mandatory_list} USB"
9283 esac
9287 PBX_USB=0
9294 VORBIS_DESCRIP="Vorbis"
9295 VORBIS_OPTION="vorbis"
9297 # Check whether --with-vorbis was given.
9298 if test "${with_vorbis+set}" = set; then
9299 withval=$with_vorbis;
9300 case ${withval} in
9301 n|no)
9302 USE_VORBIS=no
9304 y|ye|yes)
9305 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9308 VORBIS_DIR="${withval}"
9309 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9311 esac
9315 PBX_VORBIS=0
9322 VPB_DESCRIP="Voicetronix API"
9323 VPB_OPTION="vpb"
9325 # Check whether --with-vpb was given.
9326 if test "${with_vpb+set}" = set; then
9327 withval=$with_vpb;
9328 case ${withval} in
9329 n|no)
9330 USE_VPB=no
9332 y|ye|yes)
9333 ac_mandatory_list="${ac_mandatory_list} VPB"
9336 VPB_DIR="${withval}"
9337 ac_mandatory_list="${ac_mandatory_list} VPB"
9339 esac
9343 PBX_VPB=0
9350 X11_DESCRIP="X11 support"
9351 X11_OPTION="x11"
9353 # Check whether --with-x11 was given.
9354 if test "${with_x11+set}" = set; then
9355 withval=$with_x11;
9356 case ${withval} in
9357 n|no)
9358 USE_X11=no
9360 y|ye|yes)
9361 ac_mandatory_list="${ac_mandatory_list} X11"
9364 X11_DIR="${withval}"
9365 ac_mandatory_list="${ac_mandatory_list} X11"
9367 esac
9371 PBX_X11=0
9378 ZLIB_DESCRIP="zlib"
9379 ZLIB_OPTION="z"
9381 # Check whether --with-z was given.
9382 if test "${with_z+set}" = set; then
9383 withval=$with_z;
9384 case ${withval} in
9385 n|no)
9386 USE_ZLIB=no
9388 y|ye|yes)
9389 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9392 ZLIB_DIR="${withval}"
9393 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9395 esac
9399 PBX_ZLIB=0
9406 ZAPTEL_DESCRIP="Zaptel"
9407 ZAPTEL_OPTION="zaptel"
9409 # Check whether --with-zaptel was given.
9410 if test "${with_zaptel+set}" = set; then
9411 withval=$with_zaptel;
9412 case ${withval} in
9413 n|no)
9414 USE_ZAPTEL=no
9416 y|ye|yes)
9417 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9420 ZAPTEL_DIR="${withval}"
9421 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9423 esac
9427 PBX_ZAPTEL=0
9434 # check for basic system features and functionality before
9435 # checking for package libraries
9437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9438 # for constant arguments. Useless!
9439 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9440 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9441 if test "${ac_cv_working_alloca_h+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 #include <alloca.h>
9452 main ()
9454 char *p = (char *) alloca (2 * sizeof (int));
9455 if (p) return 0;
9457 return 0;
9459 _ACEOF
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (ac_try="$ac_link"
9462 case "(($ac_try" in
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9465 esac
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467 (eval "$ac_link") 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } && {
9474 test -z "$ac_c_werror_flag" ||
9475 test ! -s conftest.err
9476 } && test -s conftest$ac_exeext &&
9477 $as_test_x conftest$ac_exeext; then
9478 ac_cv_working_alloca_h=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_cv_working_alloca_h=no
9486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9487 conftest$ac_exeext conftest.$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9490 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9491 if test $ac_cv_working_alloca_h = yes; then
9493 cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_ALLOCA_H 1
9495 _ACEOF
9499 { echo "$as_me:$LINENO: checking for alloca" >&5
9500 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9501 if test "${ac_cv_func_alloca_works+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 #ifdef __GNUC__
9511 # define alloca __builtin_alloca
9512 #else
9513 # ifdef _MSC_VER
9514 # include <malloc.h>
9515 # define alloca _alloca
9516 # else
9517 # ifdef HAVE_ALLOCA_H
9518 # include <alloca.h>
9519 # else
9520 # ifdef _AIX
9521 #pragma alloca
9522 # else
9523 # ifndef alloca /* predefined by HP cc +Olibcalls */
9524 char *alloca ();
9525 # endif
9526 # endif
9527 # endif
9528 # endif
9529 #endif
9532 main ()
9534 char *p = (char *) alloca (1);
9535 if (p) return 0;
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (ac_try="$ac_link"
9542 case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext &&
9557 $as_test_x conftest$ac_exeext; then
9558 ac_cv_func_alloca_works=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_cv_func_alloca_works=no
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9570 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9572 if test $ac_cv_func_alloca_works = yes; then
9574 cat >>confdefs.h <<\_ACEOF
9575 #define HAVE_ALLOCA 1
9576 _ACEOF
9578 else
9579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9580 # that cause trouble. Some versions do not even contain alloca or
9581 # contain a buggy version. If you still want to use their alloca,
9582 # use ar to extract alloca.o from them instead of compiling alloca.c.
9584 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9586 cat >>confdefs.h <<\_ACEOF
9587 #define C_ALLOCA 1
9588 _ACEOF
9591 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9592 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9593 if test "${ac_cv_os_cray+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 #if defined CRAY && ! defined CRAY2
9603 webecray
9604 #else
9605 wenotbecray
9606 #endif
9608 _ACEOF
9609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9610 $EGREP "webecray" >/dev/null 2>&1; then
9611 ac_cv_os_cray=yes
9612 else
9613 ac_cv_os_cray=no
9615 rm -f conftest*
9618 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9619 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9620 if test $ac_cv_os_cray = yes; then
9621 for ac_func in _getb67 GETB67 getb67; do
9622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define $ac_func innocuous_$ac_func
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char $ac_func (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9649 #undef $ac_func
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char $ac_func ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_$ac_func || defined __stub___$ac_func
9662 choke me
9663 #endif
9666 main ()
9668 return $ac_func ();
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 eval "$as_ac_var=yes"
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 eval "$as_ac_var=no"
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9702 ac_res=`eval echo '${'$as_ac_var'}'`
9703 { echo "$as_me:$LINENO: result: $ac_res" >&5
9704 echo "${ECHO_T}$ac_res" >&6; }
9705 if test `eval echo '${'$as_ac_var'}'` = yes; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define CRAY_STACKSEG_END $ac_func
9709 _ACEOF
9711 break
9714 done
9717 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9718 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9719 if test "${ac_cv_c_stack_direction+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 if test "$cross_compiling" = yes; then
9723 ac_cv_c_stack_direction=0
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 $ac_includes_default
9733 find_stack_direction ()
9735 static char *addr = 0;
9736 auto char dummy;
9737 if (addr == 0)
9739 addr = &dummy;
9740 return find_stack_direction ();
9742 else
9743 return (&dummy > addr) ? 1 : -1;
9747 main ()
9749 return find_stack_direction () < 0;
9751 _ACEOF
9752 rm -f conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_c_stack_direction=1
9773 else
9774 echo "$as_me: program exited with status $ac_status" >&5
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ( exit $ac_status )
9779 ac_cv_c_stack_direction=-1
9781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9786 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9787 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9789 cat >>confdefs.h <<_ACEOF
9790 #define STACK_DIRECTION $ac_cv_c_stack_direction
9791 _ACEOF
9801 ac_header_dirent=no
9802 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9803 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9804 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9805 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <sys/types.h>
9816 #include <$ac_hdr>
9819 main ()
9821 if ((DIR *) 0)
9822 return 0;
9824 return 0;
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest.$ac_objext; then
9844 eval "$as_ac_Header=yes"
9845 else
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 eval "$as_ac_Header=no"
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 ac_res=`eval echo '${'$as_ac_Header'}'`
9855 { echo "$as_me:$LINENO: result: $ac_res" >&5
9856 echo "${ECHO_T}$ac_res" >&6; }
9857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9858 cat >>confdefs.h <<_ACEOF
9859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9860 _ACEOF
9862 ac_header_dirent=$ac_hdr; break
9865 done
9866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9867 if test $ac_header_dirent = dirent.h; then
9868 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9870 if test "${ac_cv_search_opendir+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 ac_func_search_save_LIBS=$LIBS
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char opendir ();
9889 main ()
9891 return opendir ();
9893 return 0;
9895 _ACEOF
9896 for ac_lib in '' dir; do
9897 if test -z "$ac_lib"; then
9898 ac_res="none required"
9899 else
9900 ac_res=-l$ac_lib
9901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && {
9917 test -z "$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9919 } && test -s conftest$ac_exeext &&
9920 $as_test_x conftest$ac_exeext; then
9921 ac_cv_search_opendir=$ac_res
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9930 conftest$ac_exeext
9931 if test "${ac_cv_search_opendir+set}" = set; then
9932 break
9934 done
9935 if test "${ac_cv_search_opendir+set}" = set; then
9937 else
9938 ac_cv_search_opendir=no
9940 rm conftest.$ac_ext
9941 LIBS=$ac_func_search_save_LIBS
9943 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9944 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9945 ac_res=$ac_cv_search_opendir
9946 if test "$ac_res" != no; then
9947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9951 else
9952 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9953 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9954 if test "${ac_cv_search_opendir+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 ac_func_search_save_LIBS=$LIBS
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char opendir ();
9973 main ()
9975 return opendir ();
9977 return 0;
9979 _ACEOF
9980 for ac_lib in '' x; do
9981 if test -z "$ac_lib"; then
9982 ac_res="none required"
9983 else
9984 ac_res=-l$ac_lib
9985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9989 case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest$ac_exeext &&
10004 $as_test_x conftest$ac_exeext; then
10005 ac_cv_search_opendir=$ac_res
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext
10015 if test "${ac_cv_search_opendir+set}" = set; then
10016 break
10018 done
10019 if test "${ac_cv_search_opendir+set}" = set; then
10021 else
10022 ac_cv_search_opendir=no
10024 rm conftest.$ac_ext
10025 LIBS=$ac_func_search_save_LIBS
10027 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10028 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10029 ac_res=$ac_cv_search_opendir
10030 if test "$ac_res" != no; then
10031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10037 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10039 if test "${ac_cv_header_stdc+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <stdlib.h>
10049 #include <stdarg.h>
10050 #include <string.h>
10051 #include <float.h>
10054 main ()
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.$ac_objext; then
10078 ac_cv_header_stdc=yes
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_header_stdc=no
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 if test $ac_cv_header_stdc = yes; then
10089 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 #include <string.h>
10098 _ACEOF
10099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10100 $EGREP "memchr" >/dev/null 2>&1; then
10102 else
10103 ac_cv_header_stdc=no
10105 rm -f conftest*
10109 if test $ac_cv_header_stdc = yes; then
10110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <stdlib.h>
10119 _ACEOF
10120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10121 $EGREP "free" >/dev/null 2>&1; then
10123 else
10124 ac_cv_header_stdc=no
10126 rm -f conftest*
10130 if test $ac_cv_header_stdc = yes; then
10131 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10132 if test "$cross_compiling" = yes; then
10134 else
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <ctype.h>
10142 #include <stdlib.h>
10143 #if ((' ' & 0x0FF) == 0x020)
10144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10146 #else
10147 # define ISLOWER(c) \
10148 (('a' <= (c) && (c) <= 'i') \
10149 || ('j' <= (c) && (c) <= 'r') \
10150 || ('s' <= (c) && (c) <= 'z'))
10151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10152 #endif
10154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10156 main ()
10158 int i;
10159 for (i = 0; i < 256; i++)
10160 if (XOR (islower (i), ISLOWER (i))
10161 || toupper (i) != TOUPPER (i))
10162 return 2;
10163 return 0;
10165 _ACEOF
10166 rm -f conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10177 { (case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_try") 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10187 else
10188 echo "$as_me: program exited with status $ac_status" >&5
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ( exit $ac_status )
10193 ac_cv_header_stdc=no
10195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10201 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10202 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10203 if test $ac_cv_header_stdc = yes; then
10205 cat >>confdefs.h <<\_ACEOF
10206 #define STDC_HEADERS 1
10207 _ACEOF
10211 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10212 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10213 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <sys/types.h>
10223 #include <sys/wait.h>
10224 #ifndef WEXITSTATUS
10225 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10226 #endif
10227 #ifndef WIFEXITED
10228 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10229 #endif
10232 main ()
10234 int s;
10235 wait (&s);
10236 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10238 return 0;
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest.$ac_objext; then
10258 ac_cv_header_sys_wait_h=yes
10259 else
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_header_sys_wait_h=no
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10269 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10270 if test $ac_cv_header_sys_wait_h = yes; then
10272 cat >>confdefs.h <<\_ACEOF
10273 #define HAVE_SYS_WAIT_H 1
10274 _ACEOF
10302 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
10304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_res=`eval echo '${'$as_ac_Header'}'`
10312 { echo "$as_me:$LINENO: result: $ac_res" >&5
10313 echo "${ECHO_T}$ac_res" >&6; }
10314 else
10315 # Is the header compilable?
10316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 #include <$ac_header>
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (ac_try="$ac_compile"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_compile") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest.$ac_objext; then
10344 ac_header_compiler=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_header_compiler=no
10352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10354 echo "${ECHO_T}$ac_header_compiler" >&6; }
10356 # Is the header present?
10357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <$ac_header>
10366 _ACEOF
10367 if { (ac_try="$ac_cpp conftest.$ac_ext"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } >/dev/null && {
10380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 }; then
10383 ac_header_preproc=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_header_preproc=no
10391 rm -f conftest.err conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10393 echo "${ECHO_T}$ac_header_preproc" >&6; }
10395 # So? What about this header?
10396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10397 yes:no: )
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10402 ac_header_preproc=yes
10404 no:yes:* )
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10417 ( cat <<\_ASBOX
10418 ## ------------------------------- ##
10419 ## Report this to www.asterisk.org ##
10420 ## ------------------------------- ##
10421 _ASBOX
10422 ) | sed "s/^/$as_me: WARNING: /" >&2
10424 esac
10425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 eval "$as_ac_Header=\$ac_header_preproc"
10432 ac_res=`eval echo '${'$as_ac_Header'}'`
10433 { echo "$as_me:$LINENO: result: $ac_res" >&5
10434 echo "${ECHO_T}$ac_res" >&6; }
10437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10440 _ACEOF
10444 done
10449 for ac_header in winsock.h winsock2.h
10451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 ac_res=`eval echo '${'$as_ac_Header'}'`
10459 { echo "$as_me:$LINENO: result: $ac_res" >&5
10460 echo "${ECHO_T}$ac_res" >&6; }
10461 else
10462 # Is the header compilable?
10463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 #include <$ac_header>
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (ac_try="$ac_compile"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_compile") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && {
10488 test -z "$ac_c_werror_flag" ||
10489 test ! -s conftest.err
10490 } && test -s conftest.$ac_objext; then
10491 ac_header_compiler=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_header_compiler=no
10499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10501 echo "${ECHO_T}$ac_header_compiler" >&6; }
10503 # Is the header present?
10504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 #include <$ac_header>
10513 _ACEOF
10514 if { (ac_try="$ac_cpp conftest.$ac_ext"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } >/dev/null && {
10527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 }; then
10530 ac_header_preproc=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ac_header_preproc=no
10538 rm -f conftest.err conftest.$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10540 echo "${ECHO_T}$ac_header_preproc" >&6; }
10542 # So? What about this header?
10543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10544 yes:no: )
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10549 ac_header_preproc=yes
10551 no:yes:* )
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10564 ( cat <<\_ASBOX
10565 ## ------------------------------- ##
10566 ## Report this to www.asterisk.org ##
10567 ## ------------------------------- ##
10568 _ASBOX
10569 ) | sed "s/^/$as_me: WARNING: /" >&2
10571 esac
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 eval "$as_ac_Header=\$ac_header_preproc"
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 _ACEOF
10591 done
10594 # Check whether --enable-largefile was given.
10595 if test "${enable_largefile+set}" = set; then
10596 enableval=$enable_largefile;
10599 if test "$enable_largefile" != no; then
10601 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10602 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10603 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 ac_cv_sys_largefile_CC=no
10607 if test "$GCC" != yes; then
10608 ac_save_CC=$CC
10609 while :; do
10610 # IRIX 6.2 and later do not support large files by default,
10611 # so use the C compiler's -n32 option if that helps.
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <sys/types.h>
10619 /* Check that off_t can represent 2**63 - 1 correctly.
10620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10621 since some C++ compilers masquerading as C compilers
10622 incorrectly reject 9223372036854775807. */
10623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10625 && LARGE_OFF_T % 2147483647 == 1)
10626 ? 1 : -1];
10628 main ()
10632 return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest.$ac_objext; then
10652 break
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10660 rm -f core conftest.err conftest.$ac_objext
10661 CC="$CC -n32"
10662 rm -f conftest.$ac_objext
10663 if { (ac_try="$ac_compile"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_compile") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest.$ac_objext; then
10679 ac_cv_sys_largefile_CC=' -n32'; break
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10687 rm -f core conftest.err conftest.$ac_objext
10688 break
10689 done
10690 CC=$ac_save_CC
10691 rm -f conftest.$ac_ext
10694 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10695 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10696 if test "$ac_cv_sys_largefile_CC" != no; then
10697 CC=$CC$ac_cv_sys_largefile_CC
10700 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10701 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 while :; do
10706 cat >conftest.$ac_ext <<_ACEOF
10707 /* confdefs.h. */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 #include <sys/types.h>
10713 /* Check that off_t can represent 2**63 - 1 correctly.
10714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10715 since some C++ compilers masquerading as C compilers
10716 incorrectly reject 9223372036854775807. */
10717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10719 && LARGE_OFF_T % 2147483647 == 1)
10720 ? 1 : -1];
10722 main ()
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10746 ac_cv_sys_file_offset_bits=no; break
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #define _FILE_OFFSET_BITS 64
10762 #include <sys/types.h>
10763 /* Check that off_t can represent 2**63 - 1 correctly.
10764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10765 since some C++ compilers masquerading as C compilers
10766 incorrectly reject 9223372036854775807. */
10767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10769 && LARGE_OFF_T % 2147483647 == 1)
10770 ? 1 : -1];
10772 main ()
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_cv_sys_file_offset_bits=64; break
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 ac_cv_sys_file_offset_bits=unknown
10806 break
10807 done
10809 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10810 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10811 case $ac_cv_sys_file_offset_bits in #(
10812 no | unknown) ;;
10814 cat >>confdefs.h <<_ACEOF
10815 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10816 _ACEOF
10818 esac
10819 rm -f conftest*
10820 if test $ac_cv_sys_file_offset_bits = unknown; then
10821 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10822 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10823 if test "${ac_cv_sys_large_files+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 while :; do
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 #include <sys/types.h>
10834 /* Check that off_t can represent 2**63 - 1 correctly.
10835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10836 since some C++ compilers masquerading as C compilers
10837 incorrectly reject 9223372036854775807. */
10838 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10840 && LARGE_OFF_T % 2147483647 == 1)
10841 ? 1 : -1];
10843 main ()
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10867 ac_cv_sys_large_files=no; break
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #define _LARGE_FILES 1
10883 #include <sys/types.h>
10884 /* Check that off_t can represent 2**63 - 1 correctly.
10885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10886 since some C++ compilers masquerading as C compilers
10887 incorrectly reject 9223372036854775807. */
10888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10890 && LARGE_OFF_T % 2147483647 == 1)
10891 ? 1 : -1];
10893 main ()
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (ac_try="$ac_compile"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest.$ac_objext; then
10917 ac_cv_sys_large_files=1; break
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 ac_cv_sys_large_files=unknown
10927 break
10928 done
10930 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10931 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10932 case $ac_cv_sys_large_files in #(
10933 no | unknown) ;;
10935 cat >>confdefs.h <<_ACEOF
10936 #define _LARGE_FILES $ac_cv_sys_large_files
10937 _ACEOF
10939 esac
10940 rm -f conftest*
10945 # Checks for typedefs, structures, and compiler characteristics.
10946 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10947 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10948 if test "${ac_cv_header_stdbool_h+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10958 #include <stdbool.h>
10959 #ifndef bool
10960 "error: bool is not defined"
10961 #endif
10962 #ifndef false
10963 "error: false is not defined"
10964 #endif
10965 #if false
10966 "error: false is not 0"
10967 #endif
10968 #ifndef true
10969 "error: true is not defined"
10970 #endif
10971 #if true != 1
10972 "error: true is not 1"
10973 #endif
10974 #ifndef __bool_true_false_are_defined
10975 "error: __bool_true_false_are_defined is not defined"
10976 #endif
10978 struct s { _Bool s: 1; _Bool t; } s;
10980 char a[true == 1 ? 1 : -1];
10981 char b[false == 0 ? 1 : -1];
10982 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10983 char d[(bool) 0.5 == true ? 1 : -1];
10984 bool e = &s;
10985 char f[(_Bool) 0.0 == false ? 1 : -1];
10986 char g[true];
10987 char h[sizeof (_Bool)];
10988 char i[sizeof s.t];
10989 enum { j = false, k = true, l = false * true, m = true * 256 };
10990 _Bool n[m];
10991 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10992 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10993 # if defined __xlc__ || defined __GNUC__
10994 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10995 reported by James Lemley on 2005-10-05; see
10996 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10997 This test is not quite right, since xlc is allowed to
10998 reject this program, as the initializer for xlcbug is
10999 not one of the forms that C requires support for.
11000 However, doing the test right would require a runtime
11001 test, and that would make cross-compilation harder.
11002 Let us hope that IBM fixes the xlc bug, and also adds
11003 support for this kind of constant expression. In the
11004 meantime, this test will reject xlc, which is OK, since
11005 our stdbool.h substitute should suffice. We also test
11006 this with GCC, where it should work, to detect more
11007 quickly whether someone messes up the test in the
11008 future. */
11009 char digs[] = "0123456789";
11010 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11011 # endif
11012 /* Catch a bug in an HP-UX C compiler. See
11013 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11014 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11016 _Bool q = true;
11017 _Bool *pq = &q;
11020 main ()
11023 *pq |= q;
11024 *pq |= ! q;
11025 /* Refer to every declared value, to avoid compiler optimizations. */
11026 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11027 + !m + !n + !o + !p + !q + !pq);
11030 return 0;
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_compile") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest.$ac_objext; then
11050 ac_cv_header_stdbool_h=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_cv_header_stdbool_h=no
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11061 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11062 { echo "$as_me:$LINENO: checking for _Bool" >&5
11063 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11064 if test "${ac_cv_type__Bool+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h. */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 $ac_includes_default
11074 typedef _Bool ac__type_new_;
11076 main ()
11078 if ((ac__type_new_ *) 0)
11079 return 0;
11080 if (sizeof (ac__type_new_))
11081 return 0;
11083 return 0;
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_compile") 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest.$ac_objext; then
11103 ac_cv_type__Bool=yes
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_type__Bool=no
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11114 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11115 if test $ac_cv_type__Bool = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE__BOOL 1
11119 _ACEOF
11124 if test $ac_cv_header_stdbool_h = yes; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_STDBOOL_H 1
11128 _ACEOF
11132 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11133 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11134 if test "${ac_cv_c_const+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11145 main ()
11147 /* FIXME: Include the comments suggested by Paul. */
11148 #ifndef __cplusplus
11149 /* Ultrix mips cc rejects this. */
11150 typedef int charset[2];
11151 const charset cs;
11152 /* SunOS 4.1.1 cc rejects this. */
11153 char const *const *pcpcc;
11154 char **ppc;
11155 /* NEC SVR4.0.2 mips cc rejects this. */
11156 struct point {int x, y;};
11157 static struct point const zero = {0,0};
11158 /* AIX XL C 1.02.0.0 rejects this.
11159 It does not let you subtract one const X* pointer from another in
11160 an arm of an if-expression whose if-part is not a constant
11161 expression */
11162 const char *g = "string";
11163 pcpcc = &g + (g ? g-g : 0);
11164 /* HPUX 7.0 cc rejects these. */
11165 ++pcpcc;
11166 ppc = (char**) pcpcc;
11167 pcpcc = (char const *const *) ppc;
11168 { /* SCO 3.2v4 cc rejects this. */
11169 char *t;
11170 char const *s = 0 ? (char *) 0 : (char const *) 0;
11172 *t++ = 0;
11173 if (s) return 0;
11175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11176 int x[] = {25, 17};
11177 const int *foo = &x[0];
11178 ++foo;
11180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11181 typedef const int *iptr;
11182 iptr p = 0;
11183 ++p;
11185 { /* AIX XL C 1.02.0.0 rejects this saying
11186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11187 struct s { int j; const int *ap[3]; };
11188 struct s *b; b->j = 5;
11190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11191 const int foo = 10;
11192 if (!foo) return 0;
11194 return !cs[0] && !zero.x;
11195 #endif
11198 return 0;
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_compile") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_c_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest.$ac_objext; then
11218 ac_cv_c_const=yes
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 ac_cv_c_const=no
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11229 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11230 if test $ac_cv_c_const = no; then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define const
11234 _ACEOF
11238 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11239 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11240 if test "${ac_cv_type_uid_t+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <sys/types.h>
11251 _ACEOF
11252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11253 $EGREP "uid_t" >/dev/null 2>&1; then
11254 ac_cv_type_uid_t=yes
11255 else
11256 ac_cv_type_uid_t=no
11258 rm -f conftest*
11261 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11262 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11263 if test $ac_cv_type_uid_t = no; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define uid_t int
11267 _ACEOF
11270 cat >>confdefs.h <<\_ACEOF
11271 #define gid_t int
11272 _ACEOF
11276 { echo "$as_me:$LINENO: checking for inline" >&5
11277 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11278 if test "${ac_cv_c_inline+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281 ac_cv_c_inline=no
11282 for ac_kw in inline __inline__ __inline; do
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 #ifndef __cplusplus
11290 typedef int foo_t;
11291 static $ac_kw foo_t static_foo () {return 0; }
11292 $ac_kw foo_t foo () {return 0; }
11293 #endif
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (ac_try="$ac_compile"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_compile") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest.$ac_objext; then
11313 ac_cv_c_inline=$ac_kw
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 test "$ac_cv_c_inline" != no && break
11323 done
11326 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11327 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11330 case $ac_cv_c_inline in
11331 inline | yes) ;;
11333 case $ac_cv_c_inline in
11334 no) ac_val=;;
11335 *) ac_val=$ac_cv_c_inline;;
11336 esac
11337 cat >>confdefs.h <<_ACEOF
11338 #ifndef __cplusplus
11339 #define inline $ac_val
11340 #endif
11341 _ACEOF
11343 esac
11345 { echo "$as_me:$LINENO: checking for mode_t" >&5
11346 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11347 if test "${ac_cv_type_mode_t+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 $ac_includes_default
11357 typedef mode_t ac__type_new_;
11359 main ()
11361 if ((ac__type_new_ *) 0)
11362 return 0;
11363 if (sizeof (ac__type_new_))
11364 return 0;
11366 return 0;
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_compile") 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } && {
11383 test -z "$ac_c_werror_flag" ||
11384 test ! -s conftest.err
11385 } && test -s conftest.$ac_objext; then
11386 ac_cv_type_mode_t=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_type_mode_t=no
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11397 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11398 if test $ac_cv_type_mode_t = yes; then
11400 else
11402 cat >>confdefs.h <<_ACEOF
11403 #define mode_t int
11404 _ACEOF
11408 { echo "$as_me:$LINENO: checking for off_t" >&5
11409 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11410 if test "${ac_cv_type_off_t+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11420 typedef off_t ac__type_new_;
11422 main ()
11424 if ((ac__type_new_ *) 0)
11425 return 0;
11426 if (sizeof (ac__type_new_))
11427 return 0;
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_compile") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest.$ac_objext; then
11449 ac_cv_type_off_t=yes
11450 else
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_type_off_t=no
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11460 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11461 if test $ac_cv_type_off_t = yes; then
11463 else
11465 cat >>confdefs.h <<_ACEOF
11466 #define off_t long int
11467 _ACEOF
11471 { echo "$as_me:$LINENO: checking for pid_t" >&5
11472 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11473 if test "${ac_cv_type_pid_t+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 $ac_includes_default
11483 typedef pid_t ac__type_new_;
11485 main ()
11487 if ((ac__type_new_ *) 0)
11488 return 0;
11489 if (sizeof (ac__type_new_))
11490 return 0;
11492 return 0;
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (ac_try="$ac_compile"
11497 case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_compile") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && {
11509 test -z "$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 } && test -s conftest.$ac_objext; then
11512 ac_cv_type_pid_t=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_type_pid_t=no
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11523 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11524 if test $ac_cv_type_pid_t = yes; then
11526 else
11528 cat >>confdefs.h <<_ACEOF
11529 #define pid_t int
11530 _ACEOF
11534 { echo "$as_me:$LINENO: checking for size_t" >&5
11535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11536 if test "${ac_cv_type_size_t+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11546 typedef size_t ac__type_new_;
11548 main ()
11550 if ((ac__type_new_ *) 0)
11551 return 0;
11552 if (sizeof (ac__type_new_))
11553 return 0;
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (ac_try="$ac_compile"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563 esac
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_compile") 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } && {
11572 test -z "$ac_c_werror_flag" ||
11573 test ! -s conftest.err
11574 } && test -s conftest.$ac_objext; then
11575 ac_cv_type_size_t=yes
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_cv_type_size_t=no
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11586 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11587 if test $ac_cv_type_size_t = yes; then
11589 else
11591 cat >>confdefs.h <<_ACEOF
11592 #define size_t unsigned int
11593 _ACEOF
11597 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11598 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11599 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 $ac_includes_default
11610 main ()
11612 static struct stat ac_aggr;
11613 if (ac_aggr.st_blksize)
11614 return 0;
11616 return 0;
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (ac_try="$ac_compile"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624 esac
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_cv_member_struct_stat_st_blksize=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11649 main ()
11651 static struct stat ac_aggr;
11652 if (sizeof ac_aggr.st_blksize)
11653 return 0;
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (ac_try="$ac_compile"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_compile") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } && {
11672 test -z "$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11674 } && test -s conftest.$ac_objext; then
11675 ac_cv_member_struct_stat_st_blksize=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_member_struct_stat_st_blksize=no
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11689 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11690 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11694 _ACEOF
11699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11701 if test "${ac_cv_header_time+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 #include <sys/types.h>
11711 #include <sys/time.h>
11712 #include <time.h>
11715 main ()
11717 if ((struct tm *) 0)
11718 return 0;
11720 return 0;
11722 _ACEOF
11723 rm -f conftest.$ac_objext
11724 if { (ac_try="$ac_compile"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_compile") 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } && {
11737 test -z "$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11739 } && test -s conftest.$ac_objext; then
11740 ac_cv_header_time=yes
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_cv_header_time=no
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11751 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11752 if test $ac_cv_header_time = yes; then
11754 cat >>confdefs.h <<\_ACEOF
11755 #define TIME_WITH_SYS_TIME 1
11756 _ACEOF
11760 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11761 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11762 if test "${ac_cv_struct_tm+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 #include <sys/types.h>
11772 #include <time.h>
11775 main ()
11777 struct tm tm;
11778 int *p = &tm.tm_sec;
11779 return !p;
11781 return 0;
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_cv_struct_tm=time.h
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_struct_tm=sys/time.h
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11812 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11813 if test $ac_cv_struct_tm = sys/time.h; then
11815 cat >>confdefs.h <<\_ACEOF
11816 #define TM_IN_SYS_TIME 1
11817 _ACEOF
11821 { echo "$as_me:$LINENO: checking for working volatile" >&5
11822 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11823 if test "${ac_cv_c_volatile+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11834 main ()
11837 volatile int x;
11838 int * volatile y = (int *) 0;
11839 return !x && !y;
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (ac_try="$ac_compile"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_cv_c_volatile=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_c_volatile=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11872 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11873 if test $ac_cv_c_volatile = no; then
11875 cat >>confdefs.h <<\_ACEOF
11876 #define volatile
11877 _ACEOF
11881 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11882 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11883 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 $ac_includes_default
11893 typedef ptrdiff_t ac__type_new_;
11895 main ()
11897 if ((ac__type_new_ *) 0)
11898 return 0;
11899 if (sizeof (ac__type_new_))
11900 return 0;
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest.$ac_objext; then
11922 ac_cv_type_ptrdiff_t=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_cv_type_ptrdiff_t=no
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11933 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11934 if test $ac_cv_type_ptrdiff_t = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_PTRDIFF_T 1
11938 _ACEOF
11944 # Checks for library functions.
11946 for ac_header in unistd.h
11948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958 else
11959 # Is the header compilable?
11960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
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_header_compiler=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_header_compiler=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998 echo "${ECHO_T}$ac_header_compiler" >&6; }
12000 # Is the header present?
12001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <$ac_header>
12010 _ACEOF
12011 if { (ac_try="$ac_cpp conftest.$ac_ext"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null && {
12024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 }; then
12027 ac_header_preproc=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_preproc=no
12035 rm -f conftest.err conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12037 echo "${ECHO_T}$ac_header_preproc" >&6; }
12039 # So? What about this header?
12040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 yes:no: )
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12046 ac_header_preproc=yes
12048 no:yes:* )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12061 ( cat <<\_ASBOX
12062 ## ------------------------------- ##
12063 ## Report this to www.asterisk.org ##
12064 ## ------------------------------- ##
12065 _ASBOX
12066 ) | sed "s/^/$as_me: WARNING: /" >&2
12068 esac
12069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074 eval "$as_ac_Header=\$ac_header_preproc"
12076 ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 _ACEOF
12088 done
12090 { echo "$as_me:$LINENO: checking for working chown" >&5
12091 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12092 if test "${ac_cv_func_chown_works+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 if test "$cross_compiling" = yes; then
12096 ac_cv_func_chown_works=no
12097 else
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 #include <fcntl.h>
12108 main ()
12110 char *f = "conftest.chown";
12111 struct stat before, after;
12113 if (creat (f, 0600) < 0)
12114 return 1;
12115 if (stat (f, &before) < 0)
12116 return 1;
12117 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12118 return 1;
12119 if (stat (f, &after) < 0)
12120 return 1;
12121 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12124 return 0;
12126 _ACEOF
12127 rm -f conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_chown_works=yes
12148 else
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ( exit $ac_status )
12154 ac_cv_func_chown_works=no
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12160 rm -f conftest.chown
12163 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12164 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12165 if test $ac_cv_func_chown_works = yes; then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_CHOWN 1
12169 _ACEOF
12173 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12174 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12175 if test "${ac_cv_func_closedir_void+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 if test "$cross_compiling" = yes; then
12179 ac_cv_func_closedir_void=yes
12180 else
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 #include <$ac_header_dirent>
12189 #ifndef __cplusplus
12190 int closedir ();
12191 #endif
12194 main ()
12196 return closedir (opendir (".")) != 0;
12198 return 0;
12200 _ACEOF
12201 rm -f conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_func_closedir_void=no
12222 else
12223 echo "$as_me: program exited with status $ac_status" >&5
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ( exit $ac_status )
12228 ac_cv_func_closedir_void=yes
12230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12236 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12237 if test $ac_cv_func_closedir_void = yes; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define CLOSEDIR_VOID 1
12241 _ACEOF
12245 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12246 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12247 if test "${ac_cv_lib_error_at_line+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 #include <error.h>
12258 main ()
12260 error_at_line (0, 0, "", 0, "an error occurred");
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_lib_error_at_line=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_error_at_line=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12294 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12295 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12296 if test $ac_cv_lib_error_at_line = no; then
12297 case " $LIBOBJS " in
12298 *" error.$ac_objext "* ) ;;
12299 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12301 esac
12306 for ac_header in vfork.h
12308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 ac_res=`eval echo '${'$as_ac_Header'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12318 else
12319 # Is the header compilable?
12320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 $ac_includes_default
12329 #include <$ac_header>
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
12348 ac_header_compiler=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_compiler=no
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12358 echo "${ECHO_T}$ac_header_compiler" >&6; }
12360 # Is the header present?
12361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include <$ac_header>
12370 _ACEOF
12371 if { (ac_try="$ac_cpp conftest.$ac_ext"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } >/dev/null && {
12384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12385 test ! -s conftest.err
12386 }; then
12387 ac_header_preproc=yes
12388 else
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12392 ac_header_preproc=no
12395 rm -f conftest.err conftest.$ac_ext
12396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12397 echo "${ECHO_T}$ac_header_preproc" >&6; }
12399 # So? What about this header?
12400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12401 yes:no: )
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12406 ac_header_preproc=yes
12408 no:yes:* )
12409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12421 ( cat <<\_ASBOX
12422 ## ------------------------------- ##
12423 ## Report this to www.asterisk.org ##
12424 ## ------------------------------- ##
12425 _ASBOX
12426 ) | sed "s/^/$as_me: WARNING: /" >&2
12428 esac
12429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434 eval "$as_ac_Header=\$ac_header_preproc"
12436 ac_res=`eval echo '${'$as_ac_Header'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438 echo "${ECHO_T}$ac_res" >&6; }
12441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12442 cat >>confdefs.h <<_ACEOF
12443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12444 _ACEOF
12448 done
12452 for ac_func in fork vfork
12454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12468 #define $ac_func innocuous_$ac_func
12470 /* System header to define __stub macros and hopefully few prototypes,
12471 which can conflict with char $ac_func (); below.
12472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473 <limits.h> exists even on freestanding compilers. */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12481 #undef $ac_func
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char $ac_func ();
12490 /* The GNU C library defines this for functions which it implements
12491 to always fail with ENOSYS. Some functions are actually named
12492 something starting with __ and the normal name is an alias. */
12493 #if defined __stub_$ac_func || defined __stub___$ac_func
12494 choke me
12495 #endif
12498 main ()
12500 return $ac_func ();
12502 return 0;
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510 esac
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_link") 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext &&
12522 $as_test_x conftest$ac_exeext; then
12523 eval "$as_ac_var=yes"
12524 else
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 eval "$as_ac_var=no"
12531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532 conftest$ac_exeext conftest.$ac_ext
12534 ac_res=`eval echo '${'$as_ac_var'}'`
12535 { echo "$as_me:$LINENO: result: $ac_res" >&5
12536 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_var'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12540 _ACEOF
12543 done
12545 if test "x$ac_cv_func_fork" = xyes; then
12546 { echo "$as_me:$LINENO: checking for working fork" >&5
12547 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12548 if test "${ac_cv_func_fork_works+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 if test "$cross_compiling" = yes; then
12552 ac_cv_func_fork_works=cross
12553 else
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 $ac_includes_default
12562 main ()
12565 /* By Ruediger Kuhlmann. */
12566 return fork () < 0;
12569 return 0;
12571 _ACEOF
12572 rm -f conftest$ac_exeext
12573 if { (ac_try="$ac_link"
12574 case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_link") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12583 { (case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_try") 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_func_fork_works=yes
12593 else
12594 echo "$as_me: program exited with status $ac_status" >&5
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ( exit $ac_status )
12599 ac_cv_func_fork_works=no
12601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12606 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12607 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12609 else
12610 ac_cv_func_fork_works=$ac_cv_func_fork
12612 if test "x$ac_cv_func_fork_works" = xcross; then
12613 case $host in
12614 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12615 # Override, as these systems have only a dummy fork() stub
12616 ac_cv_func_fork_works=no
12619 ac_cv_func_fork_works=yes
12621 esac
12622 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12623 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12625 ac_cv_func_vfork_works=$ac_cv_func_vfork
12626 if test "x$ac_cv_func_vfork" = xyes; then
12627 { echo "$as_me:$LINENO: checking for working vfork" >&5
12628 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12629 if test "${ac_cv_func_vfork_works+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 if test "$cross_compiling" = yes; then
12633 ac_cv_func_vfork_works=cross
12634 else
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 /* Thanks to Paul Eggert for this test. */
12642 $ac_includes_default
12643 #include <sys/wait.h>
12644 #ifdef HAVE_VFORK_H
12645 # include <vfork.h>
12646 #endif
12647 /* On some sparc systems, changes by the child to local and incoming
12648 argument registers are propagated back to the parent. The compiler
12649 is told about this with #include <vfork.h>, but some compilers
12650 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12651 static variable whose address is put into a register that is
12652 clobbered by the vfork. */
12653 static void
12654 #ifdef __cplusplus
12655 sparc_address_test (int arg)
12656 # else
12657 sparc_address_test (arg) int arg;
12658 #endif
12660 static pid_t child;
12661 if (!child) {
12662 child = vfork ();
12663 if (child < 0) {
12664 perror ("vfork");
12665 _exit(2);
12667 if (!child) {
12668 arg = getpid();
12669 write(-1, "", 0);
12670 _exit (arg);
12676 main ()
12678 pid_t parent = getpid ();
12679 pid_t child;
12681 sparc_address_test (0);
12683 child = vfork ();
12685 if (child == 0) {
12686 /* Here is another test for sparc vfork register problems. This
12687 test uses lots of local variables, at least as many local
12688 variables as main has allocated so far including compiler
12689 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12690 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12691 reuse the register of parent for one of the local variables,
12692 since it will think that parent can't possibly be used any more
12693 in this routine. Assigning to the local variable will thus
12694 munge parent in the parent process. */
12695 pid_t
12696 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12697 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12698 /* Convince the compiler that p..p7 are live; otherwise, it might
12699 use the same hardware register for all 8 local variables. */
12700 if (p != p1 || p != p2 || p != p3 || p != p4
12701 || p != p5 || p != p6 || p != p7)
12702 _exit(1);
12704 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12705 from child file descriptors. If the child closes a descriptor
12706 before it execs or exits, this munges the parent's descriptor
12707 as well. Test for this by closing stdout in the child. */
12708 _exit(close(fileno(stdout)) != 0);
12709 } else {
12710 int status;
12711 struct stat st;
12713 while (wait(&status) != child)
12715 return (
12716 /* Was there some problem with vforking? */
12717 child < 0
12719 /* Did the child fail? (This shouldn't happen.) */
12720 || status
12722 /* Did the vfork/compiler bug occur? */
12723 || parent != getpid()
12725 /* Did the file descriptor bug occur? */
12726 || fstat(fileno(stdout), &st) != 0
12730 _ACEOF
12731 rm -f conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_func_vfork_works=yes
12752 else
12753 echo "$as_me: program exited with status $ac_status" >&5
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ( exit $ac_status )
12758 ac_cv_func_vfork_works=no
12760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12766 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12769 if test "x$ac_cv_func_fork_works" = xcross; then
12770 ac_cv_func_vfork_works=$ac_cv_func_vfork
12771 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12772 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12775 if test "x$ac_cv_func_vfork_works" = xyes; then
12777 cat >>confdefs.h <<\_ACEOF
12778 #define HAVE_WORKING_VFORK 1
12779 _ACEOF
12781 else
12783 cat >>confdefs.h <<\_ACEOF
12784 #define vfork fork
12785 _ACEOF
12788 if test "x$ac_cv_func_fork_works" = xyes; then
12790 cat >>confdefs.h <<\_ACEOF
12791 #define HAVE_WORKING_FORK 1
12792 _ACEOF
12796 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12797 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12798 if test "${ac_cv_sys_largefile_source+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 while :; do
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 #include <sys/types.h> /* for off_t */
12809 #include <stdio.h>
12811 main ()
12813 int (*fp) (FILE *, off_t, int) = fseeko;
12814 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12816 return 0;
12818 _ACEOF
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (ac_try="$ac_link"
12821 case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12824 esac
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_link") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest$ac_exeext &&
12836 $as_test_x conftest$ac_exeext; then
12837 ac_cv_sys_largefile_source=no; break
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12846 conftest$ac_exeext conftest.$ac_ext
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #define _LARGEFILE_SOURCE 1
12854 #include <sys/types.h> /* for off_t */
12855 #include <stdio.h>
12857 main ()
12859 int (*fp) (FILE *, off_t, int) = fseeko;
12860 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12862 return 0;
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest$ac_exeext &&
12882 $as_test_x conftest$ac_exeext; then
12883 ac_cv_sys_largefile_source=1; break
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12892 conftest$ac_exeext conftest.$ac_ext
12893 ac_cv_sys_largefile_source=unknown
12894 break
12895 done
12897 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12898 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12899 case $ac_cv_sys_largefile_source in #(
12900 no | unknown) ;;
12902 cat >>confdefs.h <<_ACEOF
12903 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12904 _ACEOF
12906 esac
12907 rm -f conftest*
12909 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12910 # in glibc 2.1.3, but that breaks too many other things.
12911 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12912 if test $ac_cv_sys_largefile_source != unknown; then
12914 cat >>confdefs.h <<\_ACEOF
12915 #define HAVE_FSEEKO 1
12916 _ACEOF
12920 if test $ac_cv_c_compiler_gnu = yes; then
12921 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12922 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12923 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 ac_pattern="Autoconf.*'x'"
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 #include <sgtty.h>
12934 Autoconf TIOCGETP
12935 _ACEOF
12936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12937 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12938 ac_cv_prog_gcc_traditional=yes
12939 else
12940 ac_cv_prog_gcc_traditional=no
12942 rm -f conftest*
12945 if test $ac_cv_prog_gcc_traditional = no; then
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 #include <termio.h>
12953 Autoconf TCGETA
12954 _ACEOF
12955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12956 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12957 ac_cv_prog_gcc_traditional=yes
12959 rm -f conftest*
12963 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12964 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12965 if test $ac_cv_prog_gcc_traditional = yes; then
12966 CC="$CC -traditional"
12970 # XXX: these are commented out until we determine whether it matters if our malloc()
12971 # acts exactly like glibc's or not
12972 # AC_FUNC_MALLOC
12973 # AC_FUNC_REALLOC
12974 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12975 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12976 if test "${ac_cv_func_memcmp_working+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 if test "$cross_compiling" = yes; then
12980 ac_cv_func_memcmp_working=no
12981 else
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 $ac_includes_default
12990 main ()
12993 /* Some versions of memcmp are not 8-bit clean. */
12994 char c0 = '\100', c1 = '\200', c2 = '\201';
12995 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12996 return 1;
12998 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12999 or more and with at least one buffer not starting on a 4-byte boundary.
13000 William Lewis provided this test program. */
13002 char foo[21];
13003 char bar[21];
13004 int i;
13005 for (i = 0; i < 4; i++)
13007 char *a = foo + i;
13008 char *b = bar + i;
13009 strcpy (a, "--------01111111");
13010 strcpy (b, "--------10000000");
13011 if (memcmp (a, b, 16) >= 0)
13012 return 1;
13014 return 0;
13018 return 0;
13020 _ACEOF
13021 rm -f conftest$ac_exeext
13022 if { (ac_try="$ac_link"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_link") 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_func_memcmp_working=yes
13042 else
13043 echo "$as_me: program exited with status $ac_status" >&5
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ( exit $ac_status )
13048 ac_cv_func_memcmp_working=no
13050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13055 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13056 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13057 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13058 *" memcmp.$ac_objext "* ) ;;
13059 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13061 esac
13066 for ac_header in stdlib.h unistd.h
13068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_res=`eval echo '${'$as_ac_Header'}'`
13076 { echo "$as_me:$LINENO: result: $ac_res" >&5
13077 echo "${ECHO_T}$ac_res" >&6; }
13078 else
13079 # Is the header compilable?
13080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13089 #include <$ac_header>
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_header_compiler=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ac_header_compiler=no
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13118 echo "${ECHO_T}$ac_header_compiler" >&6; }
13120 # Is the header present?
13121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 #include <$ac_header>
13130 _ACEOF
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null && {
13144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 }; then
13147 ac_header_preproc=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_header_preproc=no
13155 rm -f conftest.err conftest.$ac_ext
13156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13157 echo "${ECHO_T}$ac_header_preproc" >&6; }
13159 # So? What about this header?
13160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13161 yes:no: )
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13166 ac_header_preproc=yes
13168 no:yes:* )
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13181 ( cat <<\_ASBOX
13182 ## ------------------------------- ##
13183 ## Report this to www.asterisk.org ##
13184 ## ------------------------------- ##
13185 _ASBOX
13186 ) | sed "s/^/$as_me: WARNING: /" >&2
13188 esac
13189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194 eval "$as_ac_Header=\$ac_header_preproc"
13196 ac_res=`eval echo '${'$as_ac_Header'}'`
13197 { echo "$as_me:$LINENO: result: $ac_res" >&5
13198 echo "${ECHO_T}$ac_res" >&6; }
13201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13202 cat >>confdefs.h <<_ACEOF
13203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204 _ACEOF
13208 done
13211 for ac_func in getpagesize
13213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13227 #define $ac_func innocuous_$ac_func
13229 /* System header to define __stub macros and hopefully few prototypes,
13230 which can conflict with char $ac_func (); below.
13231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13232 <limits.h> exists even on freestanding compilers. */
13234 #ifdef __STDC__
13235 # include <limits.h>
13236 #else
13237 # include <assert.h>
13238 #endif
13240 #undef $ac_func
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13245 #ifdef __cplusplus
13246 extern "C"
13247 #endif
13248 char $ac_func ();
13249 /* The GNU C library defines this for functions which it implements
13250 to always fail with ENOSYS. Some functions are actually named
13251 something starting with __ and the normal name is an alias. */
13252 #if defined __stub_$ac_func || defined __stub___$ac_func
13253 choke me
13254 #endif
13257 main ()
13259 return $ac_func ();
13261 return 0;
13263 _ACEOF
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest$ac_exeext &&
13281 $as_test_x conftest$ac_exeext; then
13282 eval "$as_ac_var=yes"
13283 else
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 eval "$as_ac_var=no"
13290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13291 conftest$ac_exeext conftest.$ac_ext
13293 ac_res=`eval echo '${'$as_ac_var'}'`
13294 { echo "$as_me:$LINENO: result: $ac_res" >&5
13295 echo "${ECHO_T}$ac_res" >&6; }
13296 if test `eval echo '${'$as_ac_var'}'` = yes; then
13297 cat >>confdefs.h <<_ACEOF
13298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13299 _ACEOF
13302 done
13304 { echo "$as_me:$LINENO: checking for working mmap" >&5
13305 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13306 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 if test "$cross_compiling" = yes; then
13310 ac_cv_func_mmap_fixed_mapped=no
13311 else
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h. */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 $ac_includes_default
13319 /* malloc might have been renamed as rpl_malloc. */
13320 #undef malloc
13322 /* Thanks to Mike Haertel and Jim Avera for this test.
13323 Here is a matrix of mmap possibilities:
13324 mmap private not fixed
13325 mmap private fixed at somewhere currently unmapped
13326 mmap private fixed at somewhere already mapped
13327 mmap shared not fixed
13328 mmap shared fixed at somewhere currently unmapped
13329 mmap shared fixed at somewhere already mapped
13330 For private mappings, we should verify that changes cannot be read()
13331 back from the file, nor mmap's back from the file at a different
13332 address. (There have been systems where private was not correctly
13333 implemented like the infamous i386 svr4.0, and systems where the
13334 VM page cache was not coherent with the file system buffer cache
13335 like early versions of FreeBSD and possibly contemporary NetBSD.)
13336 For shared mappings, we should conversely verify that changes get
13337 propagated back to all the places they're supposed to be.
13339 Grep wants private fixed already mapped.
13340 The main things grep needs to know about mmap are:
13341 * does it exist and is it safe to write into the mmap'd area
13342 * how to use it (BSD variants) */
13344 #include <fcntl.h>
13345 #include <sys/mman.h>
13347 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13348 char *malloc ();
13349 #endif
13351 /* This mess was copied from the GNU getpagesize.h. */
13352 #ifndef HAVE_GETPAGESIZE
13353 /* Assume that all systems that can run configure have sys/param.h. */
13354 # ifndef HAVE_SYS_PARAM_H
13355 # define HAVE_SYS_PARAM_H 1
13356 # endif
13358 # ifdef _SC_PAGESIZE
13359 # define getpagesize() sysconf(_SC_PAGESIZE)
13360 # else /* no _SC_PAGESIZE */
13361 # ifdef HAVE_SYS_PARAM_H
13362 # include <sys/param.h>
13363 # ifdef EXEC_PAGESIZE
13364 # define getpagesize() EXEC_PAGESIZE
13365 # else /* no EXEC_PAGESIZE */
13366 # ifdef NBPG
13367 # define getpagesize() NBPG * CLSIZE
13368 # ifndef CLSIZE
13369 # define CLSIZE 1
13370 # endif /* no CLSIZE */
13371 # else /* no NBPG */
13372 # ifdef NBPC
13373 # define getpagesize() NBPC
13374 # else /* no NBPC */
13375 # ifdef PAGESIZE
13376 # define getpagesize() PAGESIZE
13377 # endif /* PAGESIZE */
13378 # endif /* no NBPC */
13379 # endif /* no NBPG */
13380 # endif /* no EXEC_PAGESIZE */
13381 # else /* no HAVE_SYS_PARAM_H */
13382 # define getpagesize() 8192 /* punt totally */
13383 # endif /* no HAVE_SYS_PARAM_H */
13384 # endif /* no _SC_PAGESIZE */
13386 #endif /* no HAVE_GETPAGESIZE */
13389 main ()
13391 char *data, *data2, *data3;
13392 int i, pagesize;
13393 int fd;
13395 pagesize = getpagesize ();
13397 /* First, make a file with some known garbage in it. */
13398 data = (char *) malloc (pagesize);
13399 if (!data)
13400 return 1;
13401 for (i = 0; i < pagesize; ++i)
13402 *(data + i) = rand ();
13403 umask (0);
13404 fd = creat ("conftest.mmap", 0600);
13405 if (fd < 0)
13406 return 1;
13407 if (write (fd, data, pagesize) != pagesize)
13408 return 1;
13409 close (fd);
13411 /* Next, try to mmap the file at a fixed address which already has
13412 something else allocated at it. If we can, also make sure that
13413 we see the same garbage. */
13414 fd = open ("conftest.mmap", O_RDWR);
13415 if (fd < 0)
13416 return 1;
13417 data2 = (char *) malloc (2 * pagesize);
13418 if (!data2)
13419 return 1;
13420 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13421 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13422 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13423 return 1;
13424 for (i = 0; i < pagesize; ++i)
13425 if (*(data + i) != *(data2 + i))
13426 return 1;
13428 /* Finally, make sure that changes to the mapped area do not
13429 percolate back to the file as seen by read(). (This is a bug on
13430 some variants of i386 svr4.0.) */
13431 for (i = 0; i < pagesize; ++i)
13432 *(data2 + i) = *(data2 + i) + 1;
13433 data3 = (char *) malloc (pagesize);
13434 if (!data3)
13435 return 1;
13436 if (read (fd, data3, pagesize) != pagesize)
13437 return 1;
13438 for (i = 0; i < pagesize; ++i)
13439 if (*(data + i) != *(data3 + i))
13440 return 1;
13441 close (fd);
13442 return 0;
13444 _ACEOF
13445 rm -f conftest$ac_exeext
13446 if { (ac_try="$ac_link"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_link") 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_func_mmap_fixed_mapped=yes
13466 else
13467 echo "$as_me: program exited with status $ac_status" >&5
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ( exit $ac_status )
13472 ac_cv_func_mmap_fixed_mapped=no
13474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13479 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13480 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13481 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13483 cat >>confdefs.h <<\_ACEOF
13484 #define HAVE_MMAP 1
13485 _ACEOF
13488 rm -f conftest.mmap
13492 for ac_header in sys/select.h sys/socket.h
13494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 ac_res=`eval echo '${'$as_ac_Header'}'`
13502 { echo "$as_me:$LINENO: result: $ac_res" >&5
13503 echo "${ECHO_T}$ac_res" >&6; }
13504 else
13505 # Is the header compilable?
13506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13515 #include <$ac_header>
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_header_compiler=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_compiler=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544 echo "${ECHO_T}$ac_header_compiler" >&6; }
13546 # Is the header present?
13547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <$ac_header>
13556 _ACEOF
13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } >/dev/null && {
13570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 }; then
13573 ac_header_preproc=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_header_preproc=no
13581 rm -f conftest.err conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 echo "${ECHO_T}$ac_header_preproc" >&6; }
13585 # So? What about this header?
13586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13587 yes:no: )
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13592 ac_header_preproc=yes
13594 no:yes:* )
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13607 ( cat <<\_ASBOX
13608 ## ------------------------------- ##
13609 ## Report this to www.asterisk.org ##
13610 ## ------------------------------- ##
13611 _ASBOX
13612 ) | sed "s/^/$as_me: WARNING: /" >&2
13614 esac
13615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 eval "$as_ac_Header=\$ac_header_preproc"
13622 ac_res=`eval echo '${'$as_ac_Header'}'`
13623 { echo "$as_me:$LINENO: result: $ac_res" >&5
13624 echo "${ECHO_T}$ac_res" >&6; }
13627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13628 cat >>confdefs.h <<_ACEOF
13629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630 _ACEOF
13634 done
13636 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13637 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13638 if test "${ac_cv_func_select_args+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13642 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13643 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 #ifdef HAVE_SYS_SELECT_H
13652 # include <sys/select.h>
13653 #endif
13654 #ifdef HAVE_SYS_SOCKET_H
13655 # include <sys/socket.h>
13656 #endif
13659 main ()
13661 extern int select ($ac_arg1,
13662 $ac_arg234, $ac_arg234, $ac_arg234,
13663 $ac_arg5);
13665 return 0;
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (ac_try="$ac_compile"
13670 case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13673 esac
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_compile") 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } && {
13682 test -z "$ac_c_werror_flag" ||
13683 test ! -s conftest.err
13684 } && test -s conftest.$ac_objext; then
13685 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13686 else
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 done
13695 done
13696 done
13697 # Provide a safe default value.
13698 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13701 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13702 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13703 ac_save_IFS=$IFS; IFS=','
13704 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13705 IFS=$ac_save_IFS
13706 shift
13708 cat >>confdefs.h <<_ACEOF
13709 #define SELECT_TYPE_ARG1 $1
13710 _ACEOF
13713 cat >>confdefs.h <<_ACEOF
13714 #define SELECT_TYPE_ARG234 ($2)
13715 _ACEOF
13718 cat >>confdefs.h <<_ACEOF
13719 #define SELECT_TYPE_ARG5 ($3)
13720 _ACEOF
13722 rm -f conftest*
13724 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13725 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13726 if test "$ac_cv_prog_cc_c89" != no; then
13727 { echo "$as_me:$LINENO: result: yes" >&5
13728 echo "${ECHO_T}yes" >&6; }
13730 cat >>confdefs.h <<\_ACEOF
13731 #define PROTOTYPES 1
13732 _ACEOF
13735 cat >>confdefs.h <<\_ACEOF
13736 #define __PROTOTYPES 1
13737 _ACEOF
13739 else
13740 { echo "$as_me:$LINENO: result: no" >&5
13741 echo "${ECHO_T}no" >&6; }
13744 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13745 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13746 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 ac_cv_func_setvbuf_reversed=no
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <stdio.h>
13757 # ifdef PROTOTYPES
13758 int (setvbuf) (FILE *, int, char *, size_t);
13759 # endif
13761 main ()
13763 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13765 return 0;
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (ac_try="$ac_link"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest$ac_exeext &&
13785 $as_test_x conftest$ac_exeext; then
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <stdio.h>
13793 # ifdef PROTOTYPES
13794 int (setvbuf) (FILE *, int, char *, size_t);
13795 # endif
13797 main ()
13799 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13801 return 0;
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && {
13818 test -z "$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest$ac_exeext &&
13821 $as_test_x conftest$ac_exeext; then
13822 # It compiles and links either way, so it must not be declared
13823 # with a prototype and most likely this is a K&R C compiler.
13824 # Try running it.
13825 if test "$cross_compiling" = yes; then
13826 : # Assume setvbuf is not reversed when cross-compiling.
13827 else
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13836 main ()
13838 /* This call has the arguments reversed.
13839 A reversed system may check and see that the address of buf
13840 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13841 char buf;
13842 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13843 return 1;
13844 putchar ('\r');
13845 return 0; /* Non-reversed systems SEGV here. */
13847 return 0;
13849 _ACEOF
13850 rm -f conftest$ac_exeext
13851 if { (ac_try="$ac_link"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_func_setvbuf_reversed=yes
13871 else
13872 echo "$as_me: program exited with status $ac_status" >&5
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13881 ac_cv_func_setvbuf_reversed=yes
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13890 conftest$ac_exeext conftest.$ac_ext
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13899 conftest$ac_exeext conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13902 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13903 if test $ac_cv_func_setvbuf_reversed = yes; then
13905 cat >>confdefs.h <<\_ACEOF
13906 #define SETVBUF_REVERSED 1
13907 _ACEOF
13911 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13912 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13913 if test "${ac_cv_type_signal+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <sys/types.h>
13923 #include <signal.h>
13926 main ()
13928 return *(signal (0, 0)) (0) == 1;
13930 return 0;
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
13950 ac_cv_type_signal=int
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_type_signal=void
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13961 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13963 cat >>confdefs.h <<_ACEOF
13964 #define RETSIGTYPE $ac_cv_type_signal
13965 _ACEOF
13968 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13969 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13970 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973 rm -f conftest.sym conftest.file
13974 echo >conftest.file
13975 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13976 if test "$cross_compiling" = yes; then
13977 ac_cv_func_lstat_dereferences_slashed_symlink=no
13978 else
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 $ac_includes_default
13987 main ()
13989 struct stat sbuf;
13990 /* Linux will dereference the symlink and fail.
13991 That is better in the sense that it means we will not
13992 have to compile and use the lstat wrapper. */
13993 return lstat ("conftest.sym/", &sbuf) == 0;
13995 return 0;
13997 _ACEOF
13998 rm -f conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14009 { (case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_try") 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14019 else
14020 echo "$as_me: program exited with status $ac_status" >&5
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ( exit $ac_status )
14025 ac_cv_func_lstat_dereferences_slashed_symlink=no
14027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14031 else
14032 # If the `ln -s' command failed, then we probably don't even
14033 # have an lstat function.
14034 ac_cv_func_lstat_dereferences_slashed_symlink=no
14036 rm -f conftest.sym conftest.file
14039 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14040 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14042 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14044 cat >>confdefs.h <<_ACEOF
14045 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14046 _ACEOF
14049 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14050 case " $LIBOBJS " in
14051 *" lstat.$ac_objext "* ) ;;
14052 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14054 esac
14058 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14059 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14060 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 if test "$cross_compiling" = yes; then
14064 ac_cv_func_stat_empty_string_bug=yes
14065 else
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h. */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 $ac_includes_default
14074 main ()
14076 struct stat sbuf;
14077 return stat ("", &sbuf) == 0;
14079 return 0;
14081 _ACEOF
14082 rm -f conftest$ac_exeext
14083 if { (ac_try="$ac_link"
14084 case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_link") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14093 { (case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_try") 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_cv_func_stat_empty_string_bug=no
14103 else
14104 echo "$as_me: program exited with status $ac_status" >&5
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ( exit $ac_status )
14109 ac_cv_func_stat_empty_string_bug=yes
14111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14117 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14118 if test $ac_cv_func_stat_empty_string_bug = yes; then
14119 case " $LIBOBJS " in
14120 *" stat.$ac_objext "* ) ;;
14121 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14123 esac
14126 cat >>confdefs.h <<_ACEOF
14127 #define HAVE_STAT_EMPTY_STRING_BUG 1
14128 _ACEOF
14132 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14133 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14134 if test "${ac_cv_func_strcoll_works+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 if test "$cross_compiling" = yes; then
14138 ac_cv_func_strcoll_works=no
14139 else
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14148 main ()
14150 return (strcoll ("abc", "def") >= 0 ||
14151 strcoll ("ABC", "DEF") >= 0 ||
14152 strcoll ("123", "456") >= 0)
14154 return 0;
14156 _ACEOF
14157 rm -f conftest$ac_exeext
14158 if { (ac_try="$ac_link"
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_link") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_func_strcoll_works=yes
14178 else
14179 echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ( exit $ac_status )
14184 ac_cv_func_strcoll_works=no
14186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14191 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14192 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14193 if test $ac_cv_func_strcoll_works = yes; then
14195 cat >>confdefs.h <<\_ACEOF
14196 #define HAVE_STRCOLL 1
14197 _ACEOF
14202 for ac_func in strftime
14204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14218 #define $ac_func innocuous_$ac_func
14220 /* System header to define __stub macros and hopefully few prototypes,
14221 which can conflict with char $ac_func (); below.
14222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14223 <limits.h> exists even on freestanding compilers. */
14225 #ifdef __STDC__
14226 # include <limits.h>
14227 #else
14228 # include <assert.h>
14229 #endif
14231 #undef $ac_func
14233 /* Override any GCC internal prototype to avoid an error.
14234 Use char because int might match the return type of a GCC
14235 builtin and then its argument prototype would still apply. */
14236 #ifdef __cplusplus
14237 extern "C"
14238 #endif
14239 char $ac_func ();
14240 /* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243 #if defined __stub_$ac_func || defined __stub___$ac_func
14244 choke me
14245 #endif
14248 main ()
14250 return $ac_func ();
14252 return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14260 esac
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_link") 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } && {
14269 test -z "$ac_c_werror_flag" ||
14270 test ! -s conftest.err
14271 } && test -s conftest$ac_exeext &&
14272 $as_test_x conftest$ac_exeext; then
14273 eval "$as_ac_var=yes"
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 eval "$as_ac_var=no"
14281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14282 conftest$ac_exeext conftest.$ac_ext
14284 ac_res=`eval echo '${'$as_ac_var'}'`
14285 { echo "$as_me:$LINENO: result: $ac_res" >&5
14286 echo "${ECHO_T}$ac_res" >&6; }
14287 if test `eval echo '${'$as_ac_var'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14290 _ACEOF
14292 else
14293 # strftime is in -lintl on SCO UNIX.
14294 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14295 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14296 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 ac_check_lib_save_LIBS=$LIBS
14300 LIBS="-lintl $LIBS"
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14311 #ifdef __cplusplus
14312 extern "C"
14313 #endif
14314 char strftime ();
14316 main ()
14318 return strftime ();
14320 return 0;
14322 _ACEOF
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
14339 } && test -s conftest$ac_exeext &&
14340 $as_test_x conftest$ac_exeext; then
14341 ac_cv_lib_intl_strftime=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_cv_lib_intl_strftime=no
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14350 conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14353 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14354 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14355 if test $ac_cv_lib_intl_strftime = yes; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_STRFTIME 1
14358 _ACEOF
14360 LIBS="-lintl $LIBS"
14364 done
14366 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14367 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14368 if test "${ac_cv_func_strnlen_working+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 if test "$cross_compiling" = yes; then
14372 ac_cv_func_strnlen_working=no
14373 else
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14382 main ()
14385 #define S "foobar"
14386 #define S_LEN (sizeof S - 1)
14388 /* At least one implementation is buggy: that of AIX 4.3 would
14389 give strnlen (S, 1) == 3. */
14391 int i;
14392 for (i = 0; i < S_LEN + 1; ++i)
14394 int expected = i <= S_LEN ? i : S_LEN;
14395 if (strnlen (S, i) != expected)
14396 return 1;
14398 return 0;
14401 return 0;
14403 _ACEOF
14404 rm -f conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_func_strnlen_working=yes
14425 else
14426 echo "$as_me: program exited with status $ac_status" >&5
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ( exit $ac_status )
14431 ac_cv_func_strnlen_working=no
14433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14439 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14440 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14441 *" strnlen.$ac_objext "* ) ;;
14442 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14444 esac
14447 { echo "$as_me:$LINENO: checking for working strtod" >&5
14448 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14449 if test "${ac_cv_func_strtod+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 if test "$cross_compiling" = yes; then
14453 ac_cv_func_strtod=no
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 $ac_includes_default
14463 #ifndef strtod
14464 double strtod ();
14465 #endif
14467 main()
14470 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14471 char *string = " +69";
14472 char *term;
14473 double value;
14474 value = strtod (string, &term);
14475 if (value != 69 || term != (string + 4))
14476 return 1;
14480 /* Under Solaris 2.4, strtod returns the wrong value for the
14481 terminating character under some conditions. */
14482 char *string = "NaN";
14483 char *term;
14484 strtod (string, &term);
14485 if (term != string && *(term - 1) == 0)
14486 return 1;
14488 return 0;
14491 _ACEOF
14492 rm -f conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14503 { (case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_try") 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_func_strtod=yes
14513 else
14514 echo "$as_me: program exited with status $ac_status" >&5
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ( exit $ac_status )
14519 ac_cv_func_strtod=no
14521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14526 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14527 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14528 if test $ac_cv_func_strtod = no; then
14529 case " $LIBOBJS " in
14530 *" strtod.$ac_objext "* ) ;;
14531 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14533 esac
14535 { echo "$as_me:$LINENO: checking for pow" >&5
14536 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14537 if test "${ac_cv_func_pow+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14548 #define pow innocuous_pow
14550 /* System header to define __stub macros and hopefully few prototypes,
14551 which can conflict with char pow (); below.
14552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553 <limits.h> exists even on freestanding compilers. */
14555 #ifdef __STDC__
14556 # include <limits.h>
14557 #else
14558 # include <assert.h>
14559 #endif
14561 #undef pow
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char pow ();
14570 /* The GNU C library defines this for functions which it implements
14571 to always fail with ENOSYS. Some functions are actually named
14572 something starting with __ and the normal name is an alias. */
14573 #if defined __stub_pow || defined __stub___pow
14574 choke me
14575 #endif
14578 main ()
14580 return pow ();
14582 return 0;
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest$ac_exeext &&
14602 $as_test_x conftest$ac_exeext; then
14603 ac_cv_func_pow=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_func_pow=no
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612 conftest$ac_exeext conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14615 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14617 if test $ac_cv_func_pow = no; then
14618 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14619 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14620 if test "${ac_cv_lib_m_pow+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 else
14623 ac_check_lib_save_LIBS=$LIBS
14624 LIBS="-lm $LIBS"
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14632 /* Override any GCC internal prototype to avoid an error.
14633 Use char because int might match the return type of a GCC
14634 builtin and then its argument prototype would still apply. */
14635 #ifdef __cplusplus
14636 extern "C"
14637 #endif
14638 char pow ();
14640 main ()
14642 return pow ();
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest$ac_exeext &&
14664 $as_test_x conftest$ac_exeext; then
14665 ac_cv_lib_m_pow=yes
14666 else
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ac_cv_lib_m_pow=no
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14677 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14678 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14679 if test $ac_cv_lib_m_pow = yes; then
14680 POW_LIB=-lm
14681 else
14682 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14683 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14694 for ac_header in $ac_header_list
14696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 ac_res=`eval echo '${'$as_ac_Header'}'`
14704 { echo "$as_me:$LINENO: result: $ac_res" >&5
14705 echo "${ECHO_T}$ac_res" >&6; }
14706 else
14707 # Is the header compilable?
14708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 $ac_includes_default
14717 #include <$ac_header>
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (ac_try="$ac_compile"
14721 case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_compile") 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && {
14733 test -z "$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14735 } && test -s conftest.$ac_objext; then
14736 ac_header_compiler=yes
14737 else
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14741 ac_header_compiler=no
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14746 echo "${ECHO_T}$ac_header_compiler" >&6; }
14748 # Is the header present?
14749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h. */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 #include <$ac_header>
14758 _ACEOF
14759 if { (ac_try="$ac_cpp conftest.$ac_ext"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } >/dev/null && {
14772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 }; then
14775 ac_header_preproc=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_header_preproc=no
14783 rm -f conftest.err conftest.$ac_ext
14784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14785 echo "${ECHO_T}$ac_header_preproc" >&6; }
14787 # So? What about this header?
14788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14789 yes:no: )
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14794 ac_header_preproc=yes
14796 no:yes:* )
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14809 ( cat <<\_ASBOX
14810 ## ------------------------------- ##
14811 ## Report this to www.asterisk.org ##
14812 ## ------------------------------- ##
14813 _ASBOX
14814 ) | sed "s/^/$as_me: WARNING: /" >&2
14816 esac
14817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 eval "$as_ac_Header=\$ac_header_preproc"
14824 ac_res=`eval echo '${'$as_ac_Header'}'`
14825 { echo "$as_me:$LINENO: result: $ac_res" >&5
14826 echo "${ECHO_T}$ac_res" >&6; }
14829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14830 cat >>confdefs.h <<_ACEOF
14831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14832 _ACEOF
14836 done
14846 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14847 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14848 if test "${ac_cv_func_utime_null+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 rm -f conftest.data; >conftest.data
14852 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14853 if test "$cross_compiling" = yes; then
14854 ac_cv_func_utime_null=no
14855 else
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14863 #ifdef HAVE_UTIME_H
14864 # include <utime.h>
14865 #endif
14867 main ()
14869 struct stat s, t;
14870 return ! (stat ("conftest.data", &s) == 0
14871 && utime ("conftest.data", 0) == 0
14872 && stat ("conftest.data", &t) == 0
14873 && t.st_mtime >= s.st_mtime
14874 && t.st_mtime - s.st_mtime < 120);
14876 return 0;
14878 _ACEOF
14879 rm -f conftest$ac_exeext
14880 if { (ac_try="$ac_link"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_link") 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_func_utime_null=yes
14900 else
14901 echo "$as_me: program exited with status $ac_status" >&5
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ( exit $ac_status )
14906 ac_cv_func_utime_null=no
14908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14914 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14915 if test $ac_cv_func_utime_null = yes; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_UTIME_NULL 1
14919 _ACEOF
14922 rm -f conftest.data
14925 for ac_func in vprintf
14927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14941 #define $ac_func innocuous_$ac_func
14943 /* System header to define __stub macros and hopefully few prototypes,
14944 which can conflict with char $ac_func (); below.
14945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14946 <limits.h> exists even on freestanding compilers. */
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14954 #undef $ac_func
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char $ac_func ();
14963 /* The GNU C library defines this for functions which it implements
14964 to always fail with ENOSYS. Some functions are actually named
14965 something starting with __ and the normal name is an alias. */
14966 #if defined __stub_$ac_func || defined __stub___$ac_func
14967 choke me
14968 #endif
14971 main ()
14973 return $ac_func ();
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext &&
14995 $as_test_x conftest$ac_exeext; then
14996 eval "$as_ac_var=yes"
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 eval "$as_ac_var=no"
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005 conftest$ac_exeext conftest.$ac_ext
15007 ac_res=`eval echo '${'$as_ac_var'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 if test `eval echo '${'$as_ac_var'}'` = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15013 _ACEOF
15015 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15016 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15017 if test "${ac_cv_func__doprnt+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15028 #define _doprnt innocuous__doprnt
15030 /* System header to define __stub macros and hopefully few prototypes,
15031 which can conflict with char _doprnt (); below.
15032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15033 <limits.h> exists even on freestanding compilers. */
15035 #ifdef __STDC__
15036 # include <limits.h>
15037 #else
15038 # include <assert.h>
15039 #endif
15041 #undef _doprnt
15043 /* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15046 #ifdef __cplusplus
15047 extern "C"
15048 #endif
15049 char _doprnt ();
15050 /* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053 #if defined __stub__doprnt || defined __stub____doprnt
15054 choke me
15055 #endif
15058 main ()
15060 return _doprnt ();
15062 return 0;
15064 _ACEOF
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest$ac_exeext &&
15082 $as_test_x conftest$ac_exeext; then
15083 ac_cv_func__doprnt=yes
15084 else
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15088 ac_cv_func__doprnt=no
15091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15092 conftest$ac_exeext conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15095 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15096 if test $ac_cv_func__doprnt = yes; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_DOPRNT 1
15100 _ACEOF
15105 done
15153 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
15155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 else
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15169 #define $ac_func innocuous_$ac_func
15171 /* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char $ac_func (); below.
15173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15174 <limits.h> exists even on freestanding compilers. */
15176 #ifdef __STDC__
15177 # include <limits.h>
15178 #else
15179 # include <assert.h>
15180 #endif
15182 #undef $ac_func
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char $ac_func ();
15191 /* The GNU C library defines this for functions which it implements
15192 to always fail with ENOSYS. Some functions are actually named
15193 something starting with __ and the normal name is an alias. */
15194 #if defined __stub_$ac_func || defined __stub___$ac_func
15195 choke me
15196 #endif
15199 main ()
15201 return $ac_func ();
15203 return 0;
15205 _ACEOF
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (ac_try="$ac_link"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15224 eval "$as_ac_var=yes"
15225 else
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 eval "$as_ac_var=no"
15232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15235 ac_res=`eval echo '${'$as_ac_var'}'`
15236 { echo "$as_me:$LINENO: result: $ac_res" >&5
15237 echo "${ECHO_T}$ac_res" >&6; }
15238 if test `eval echo '${'$as_ac_var'}'` = yes; then
15239 cat >>confdefs.h <<_ACEOF
15240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241 _ACEOF
15244 done
15248 for ac_func in glob
15250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15264 #define $ac_func innocuous_$ac_func
15266 /* System header to define __stub macros and hopefully few prototypes,
15267 which can conflict with char $ac_func (); below.
15268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15269 <limits.h> exists even on freestanding compilers. */
15271 #ifdef __STDC__
15272 # include <limits.h>
15273 #else
15274 # include <assert.h>
15275 #endif
15277 #undef $ac_func
15279 /* Override any GCC internal prototype to avoid an error.
15280 Use char because int might match the return type of a GCC
15281 builtin and then its argument prototype would still apply. */
15282 #ifdef __cplusplus
15283 extern "C"
15284 #endif
15285 char $ac_func ();
15286 /* The GNU C library defines this for functions which it implements
15287 to always fail with ENOSYS. Some functions are actually named
15288 something starting with __ and the normal name is an alias. */
15289 #if defined __stub_$ac_func || defined __stub___$ac_func
15290 choke me
15291 #endif
15294 main ()
15296 return $ac_func ();
15298 return 0;
15300 _ACEOF
15301 rm -f conftest.$ac_objext conftest$ac_exeext
15302 if { (ac_try="$ac_link"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_link") 2>conftest.er1
15309 ac_status=$?
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } && {
15315 test -z "$ac_c_werror_flag" ||
15316 test ! -s conftest.err
15317 } && test -s conftest$ac_exeext &&
15318 $as_test_x conftest$ac_exeext; then
15319 eval "$as_ac_var=yes"
15320 else
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 eval "$as_ac_var=no"
15327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15328 conftest$ac_exeext conftest.$ac_ext
15330 ac_res=`eval echo '${'$as_ac_var'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332 echo "${ECHO_T}$ac_res" >&6; }
15333 if test `eval echo '${'$as_ac_var'}'` = yes; then
15334 cat >>confdefs.h <<_ACEOF
15335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15336 _ACEOF
15339 done
15342 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15343 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <sys/time.h>
15352 main ()
15354 struct timeval *a; timersub(a, a, a);
15356 return 0;
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>conftest.er1
15367 ac_status=$?
15368 grep -v '^ *+' conftest.er1 >conftest.err
15369 rm -f conftest.er1
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } && {
15373 test -z "$ac_c_werror_flag" ||
15374 test ! -s conftest.err
15375 } && test -s conftest$ac_exeext &&
15376 $as_test_x conftest$ac_exeext; then
15377 { echo "$as_me:$LINENO: result: yes" >&5
15378 echo "${ECHO_T}yes" >&6; }
15380 cat >>confdefs.h <<\_ACEOF
15381 #define HAVE_TIMERSUB 1
15382 _ACEOF
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 { echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6; }
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394 conftest$ac_exeext conftest.$ac_ext
15396 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15397 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15398 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15399 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15403 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15404 else
15405 # Is the header compilable?
15406 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15407 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15415 #include <sys/poll.h>
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (ac_try="$ac_compile"
15419 case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && {
15431 test -z "$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 } && test -s conftest.$ac_objext; then
15434 ac_header_compiler=yes
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_header_compiler=no
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15444 echo "${ECHO_T}$ac_header_compiler" >&6; }
15446 # Is the header present?
15447 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15448 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 #include <sys/poll.h>
15456 _ACEOF
15457 if { (ac_try="$ac_cpp conftest.$ac_ext"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null && {
15470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15472 }; then
15473 ac_header_preproc=yes
15474 else
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_header_preproc=no
15481 rm -f conftest.err conftest.$ac_ext
15482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15483 echo "${ECHO_T}$ac_header_preproc" >&6; }
15485 # So? What about this header?
15486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 yes:no: )
15488 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15489 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15491 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15492 ac_header_preproc=yes
15494 no:yes:* )
15495 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15496 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15498 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15500 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15502 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15504 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15506 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15507 ( cat <<\_ASBOX
15508 ## ------------------------------- ##
15509 ## Report this to www.asterisk.org ##
15510 ## ------------------------------- ##
15511 _ASBOX
15512 ) | sed "s/^/$as_me: WARNING: /" >&2
15514 esac
15515 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15516 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15517 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520 ac_cv_header_sys_poll_h=$ac_header_preproc
15522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15523 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15526 if test $ac_cv_header_sys_poll_h = yes; then
15527 HAS_POLL=1
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE_SYS_POLL_H 1
15531 _ACEOF
15538 # https support (in main/http.c) uses funopen on BSD systems,
15539 # fopencookie on linux
15542 for ac_func in funopen fopencookie
15544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h. */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15558 #define $ac_func innocuous_$ac_func
15560 /* System header to define __stub macros and hopefully few prototypes,
15561 which can conflict with char $ac_func (); below.
15562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15563 <limits.h> exists even on freestanding compilers. */
15565 #ifdef __STDC__
15566 # include <limits.h>
15567 #else
15568 # include <assert.h>
15569 #endif
15571 #undef $ac_func
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 char $ac_func ();
15580 /* The GNU C library defines this for functions which it implements
15581 to always fail with ENOSYS. Some functions are actually named
15582 something starting with __ and the normal name is an alias. */
15583 #if defined __stub_$ac_func || defined __stub___$ac_func
15584 choke me
15585 #endif
15588 main ()
15590 return $ac_func ();
15592 return 0;
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_link") 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } && {
15609 test -z "$ac_c_werror_flag" ||
15610 test ! -s conftest.err
15611 } && test -s conftest$ac_exeext &&
15612 $as_test_x conftest$ac_exeext; then
15613 eval "$as_ac_var=yes"
15614 else
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 eval "$as_ac_var=no"
15621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15622 conftest$ac_exeext conftest.$ac_ext
15624 ac_res=`eval echo '${'$as_ac_var'}'`
15625 { echo "$as_me:$LINENO: result: $ac_res" >&5
15626 echo "${ECHO_T}$ac_res" >&6; }
15627 if test `eval echo '${'$as_ac_var'}'` = yes; then
15628 cat >>confdefs.h <<_ACEOF
15629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630 _ACEOF
15633 done
15637 for ac_func in inet_aton
15639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15653 #define $ac_func innocuous_$ac_func
15655 /* System header to define __stub macros and hopefully few prototypes,
15656 which can conflict with char $ac_func (); below.
15657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658 <limits.h> exists even on freestanding compilers. */
15660 #ifdef __STDC__
15661 # include <limits.h>
15662 #else
15663 # include <assert.h>
15664 #endif
15666 #undef $ac_func
15668 /* Override any GCC internal prototype to avoid an error.
15669 Use char because int might match the return type of a GCC
15670 builtin and then its argument prototype would still apply. */
15671 #ifdef __cplusplus
15672 extern "C"
15673 #endif
15674 char $ac_func ();
15675 /* The GNU C library defines this for functions which it implements
15676 to always fail with ENOSYS. Some functions are actually named
15677 something starting with __ and the normal name is an alias. */
15678 #if defined __stub_$ac_func || defined __stub___$ac_func
15679 choke me
15680 #endif
15683 main ()
15685 return $ac_func ();
15687 return 0;
15689 _ACEOF
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (ac_try="$ac_link"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_link") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } && {
15704 test -z "$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15706 } && test -s conftest$ac_exeext &&
15707 $as_test_x conftest$ac_exeext; then
15708 eval "$as_ac_var=yes"
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 eval "$as_ac_var=no"
15716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15717 conftest$ac_exeext conftest.$ac_ext
15719 ac_res=`eval echo '${'$as_ac_var'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15722 if test `eval echo '${'$as_ac_var'}'` = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15725 _ACEOF
15728 done
15731 # check if we have IP_PKTINFO constant defined
15732 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15733 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <netinet/in.h>
15742 main ()
15744 int pi = IP_PKTINFO;
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 { echo "$as_me:$LINENO: result: yes" >&5
15768 echo "${ECHO_T}yes" >&6; }
15770 cat >>confdefs.h <<\_ACEOF
15771 #define HAVE_PKTINFO 1
15772 _ACEOF
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 { echo "$as_me:$LINENO: result: no" >&5
15779 echo "${ECHO_T}no" >&6; }
15783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15784 conftest$ac_exeext conftest.$ac_ext
15786 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15787 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15788 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15789 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792 ac_func_search_save_LIBS=$LIBS
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15800 /* Override any GCC internal prototype to avoid an error.
15801 Use char because int might match the return type of a GCC
15802 builtin and then its argument prototype would still apply. */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 char gethostbyname_r ();
15808 main ()
15810 return gethostbyname_r ();
15812 return 0;
15814 _ACEOF
15815 for ac_lib in '' socket nsl; do
15816 if test -z "$ac_lib"; then
15817 ac_res="none required"
15818 else
15819 ac_res=-l$ac_lib
15820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (ac_try="$ac_link"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_link") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && {
15836 test -z "$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 } && test -s conftest$ac_exeext &&
15839 $as_test_x conftest$ac_exeext; then
15840 ac_cv_search_gethostbyname_r=$ac_res
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15849 conftest$ac_exeext
15850 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15851 break
15853 done
15854 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15856 else
15857 ac_cv_search_gethostbyname_r=no
15859 rm conftest.$ac_ext
15860 LIBS=$ac_func_search_save_LIBS
15862 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15863 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15864 ac_res=$ac_cv_search_gethostbyname_r
15865 if test "$ac_res" != no; then
15866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15871 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15872 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h. */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 #include <stdlib.h>
15880 #include <netdb.h>
15882 main ()
15884 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15886 return 0;
15888 _ACEOF
15889 rm -f conftest.$ac_objext conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_link") 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest$ac_exeext &&
15906 $as_test_x conftest$ac_exeext; then
15907 { echo "$as_me:$LINENO: result: yes" >&5
15908 echo "${ECHO_T}yes" >&6; }
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_GETHOSTBYNAME_R_6 1
15912 _ACEOF
15914 else
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 { echo "$as_me:$LINENO: result: no" >&5
15919 echo "${ECHO_T}no" >&6; }
15923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15924 conftest$ac_exeext conftest.$ac_ext
15926 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15927 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <stdlib.h>
15935 #include <netdb.h>
15937 main ()
15939 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
15941 return 0;
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } && {
15958 test -z "$ac_c_werror_flag" ||
15959 test ! -s conftest.err
15960 } && test -s conftest$ac_exeext &&
15961 $as_test_x conftest$ac_exeext; then
15962 { echo "$as_me:$LINENO: result: yes" >&5
15963 echo "${ECHO_T}yes" >&6; }
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_GETHOSTBYNAME_R_5 1
15967 _ACEOF
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 { echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6; }
15978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15979 conftest$ac_exeext conftest.$ac_ext
15981 if test "${ac_cv_header_byteswap_h+set}" = set; then
15982 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
15983 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
15984 if test "${ac_cv_header_byteswap_h+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
15988 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
15989 else
15990 # Is the header compilable?
15991 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
15992 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 $ac_includes_default
16000 #include <byteswap.h>
16001 _ACEOF
16002 rm -f conftest.$ac_objext
16003 if { (ac_try="$ac_compile"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_compile") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest.$ac_objext; then
16019 ac_header_compiler=yes
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_compiler=no
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16029 echo "${ECHO_T}$ac_header_compiler" >&6; }
16031 # Is the header present?
16032 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16033 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 #include <byteswap.h>
16041 _ACEOF
16042 if { (ac_try="$ac_cpp conftest.$ac_ext"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } >/dev/null && {
16055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16056 test ! -s conftest.err
16057 }; then
16058 ac_header_preproc=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_header_preproc=no
16066 rm -f conftest.err conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16068 echo "${ECHO_T}$ac_header_preproc" >&6; }
16070 # So? What about this header?
16071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16072 yes:no: )
16073 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16074 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16076 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16077 ac_header_preproc=yes
16079 no:yes:* )
16080 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16081 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16082 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16083 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16085 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16087 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16089 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16091 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16092 ( cat <<\_ASBOX
16093 ## ------------------------------- ##
16094 ## Report this to www.asterisk.org ##
16095 ## ------------------------------- ##
16096 _ASBOX
16097 ) | sed "s/^/$as_me: WARNING: /" >&2
16099 esac
16100 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16101 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16102 if test "${ac_cv_header_byteswap_h+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105 ac_cv_header_byteswap_h=$ac_header_preproc
16107 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16108 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16111 if test $ac_cv_header_byteswap_h = yes; then
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_BYTESWAP_H 1
16115 _ACEOF
16121 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16122 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <sys/endian.h>
16131 main ()
16133 int a = 1; int b = __swap16(a);
16135 return 0;
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 { echo "$as_me:$LINENO: result: yes" >&5
16157 echo "${ECHO_T}yes" >&6; }
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_SYS_ENDIAN_SWAP16 1
16161 _ACEOF
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 { echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6; }
16172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16173 conftest$ac_exeext conftest.$ac_ext
16175 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16176 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16177 cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h. */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 #include <sys/endian.h>
16185 main ()
16187 int a = 1; int b = bswap16(a);
16189 return 0;
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_link") 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 } && test -s conftest$ac_exeext &&
16209 $as_test_x conftest$ac_exeext; then
16210 { echo "$as_me:$LINENO: result: yes" >&5
16211 echo "${ECHO_T}yes" >&6; }
16213 cat >>confdefs.h <<\_ACEOF
16214 #define HAVE_SYS_ENDIAN_BSWAP16 1
16215 _ACEOF
16217 else
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 { echo "$as_me:$LINENO: result: no" >&5
16222 echo "${ECHO_T}no" >&6; }
16226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16227 conftest$ac_exeext conftest.$ac_ext
16229 if test "${cross_compiling}" = "no";
16230 then
16231 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16232 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16233 if test "${ac_cv_file__dev_urandom+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236 test "$cross_compiling" = yes &&
16237 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16238 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16239 { (exit 1); exit 1; }; }
16240 if test -r "/dev/urandom"; then
16241 ac_cv_file__dev_urandom=yes
16242 else
16243 ac_cv_file__dev_urandom=no
16246 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16247 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16248 if test $ac_cv_file__dev_urandom = yes; then
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_DEV_URANDOM 1
16252 _ACEOF
16259 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16260 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16261 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16262 saved_cppflags="${CPPFLAGS}"
16263 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16264 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16266 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 #include <pthread.h>
16276 main ()
16278 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16279 int foo = 0;
16280 #else
16281 int foo = bar;
16282 #endif
16286 return 0;
16288 _ACEOF
16289 rm -f conftest.$ac_objext
16290 if { (ac_try="$ac_compile"
16291 case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294 esac
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_compile") 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } && {
16303 test -z "$ac_c_werror_flag" ||
16304 test ! -s conftest.err
16305 } && test -s conftest.$ac_objext; then
16306 { echo "$as_me:$LINENO: result: yes" >&5
16307 echo "${ECHO_T}yes" >&6; }
16308 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16312 _ACEOF
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16317 _ACEOF
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 { echo "$as_me:$LINENO: result: no" >&5
16325 echo "${ECHO_T}no" >&6; }
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 CPPFLAGS="${saved_cppflags}"
16335 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16336 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <pthread.h>
16345 main ()
16347 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16349 return 0;
16351 _ACEOF
16352 rm -f conftest.$ac_objext conftest$ac_exeext
16353 if { (ac_try="$ac_link"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_link") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } && {
16366 test -z "$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 } && test -s conftest$ac_exeext &&
16369 $as_test_x conftest$ac_exeext; then
16370 { echo "$as_me:$LINENO: result: yes" >&5
16371 echo "${ECHO_T}yes" >&6; }
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16375 _ACEOF
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 { echo "$as_me:$LINENO: result: no" >&5
16382 echo "${ECHO_T}no" >&6; }
16386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16387 conftest$ac_exeext conftest.$ac_ext
16389 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16390 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 #include <pthread.h>
16399 main ()
16401 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } && {
16420 test -z "$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16422 } && test -s conftest$ac_exeext &&
16423 $as_test_x conftest$ac_exeext; then
16424 { echo "$as_me:$LINENO: result: yes" >&5
16425 echo "${ECHO_T}yes" >&6; }
16427 cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16429 _ACEOF
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 { echo "$as_me:$LINENO: result: no" >&5
16436 echo "${ECHO_T}no" >&6; }
16440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16441 conftest$ac_exeext conftest.$ac_ext
16444 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16445 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16446 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16447 saved_cppflags="${CPPFLAGS}"
16448 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16449 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16451 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16453 cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 #include <pthread.h>
16461 main ()
16463 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16464 int foo = 0;
16465 #else
16466 int foo = bar;
16467 #endif
16471 return 0;
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_compile") 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } && {
16488 test -z "$ac_c_werror_flag" ||
16489 test ! -s conftest.err
16490 } && test -s conftest.$ac_objext; then
16491 { echo "$as_me:$LINENO: result: yes" >&5
16492 echo "${ECHO_T}yes" >&6; }
16493 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16497 _ACEOF
16500 cat >>confdefs.h <<\_ACEOF
16501 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16502 _ACEOF
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 { echo "$as_me:$LINENO: result: no" >&5
16510 echo "${ECHO_T}no" >&6; }
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 CPPFLAGS="${saved_cppflags}"
16520 #if test "${cross_compiling}" = "no";
16521 #then
16522 #AC_MSG_CHECKING(for working epoll support)
16523 #AC_LINK_IFELSE(
16524 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16525 # if (res < 0)
16526 # return 1;
16527 # close (res);
16528 # return 0;]),
16529 #AC_MSG_RESULT(yes)
16530 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16531 #AC_MSG_RESULT(no)
16535 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16536 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16545 main ()
16547 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16549 return 0;
16551 _ACEOF
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_link") 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && {
16566 test -z "$ac_c_werror_flag" ||
16567 test ! -s conftest.err
16568 } && test -s conftest$ac_exeext &&
16569 $as_test_x conftest$ac_exeext; then
16570 { echo "$as_me:$LINENO: result: yes" >&5
16571 echo "${ECHO_T}yes" >&6; }
16573 cat >>confdefs.h <<\_ACEOF
16574 #define HAVE_GCC_ATOMICS 1
16575 _ACEOF
16577 else
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 { echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6; }
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16591 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16592 saved_CFLAGS="$CFLAGS"
16593 CFLAGS="$CFLAGS -Werror"
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 static void __attribute__((pure)) *test(void *muffin, ...) {}
16602 main ()
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest.$ac_objext; then
16626 { echo "$as_me:$LINENO: result: yes" >&5
16627 echo "${ECHO_T}yes" >&6; }
16629 cat >>confdefs.h <<_ACEOF
16630 #define HAVE_ATTRIBUTE_pure 1
16631 _ACEOF
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 { echo "$as_me:$LINENO: result: no" >&5
16638 echo "${ECHO_T}no" >&6; }
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16643 CFLAGS="$saved_CFLAGS"
16646 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16647 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16648 saved_CFLAGS="$CFLAGS"
16649 CFLAGS="$CFLAGS -Werror"
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16658 main ()
16662 return 0;
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (ac_try="$ac_compile"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_compile") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && {
16679 test -z "$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16681 } && test -s conftest.$ac_objext; then
16682 { echo "$as_me:$LINENO: result: yes" >&5
16683 echo "${ECHO_T}yes" >&6; }
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_ATTRIBUTE_malloc 1
16687 _ACEOF
16689 else
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 { echo "$as_me:$LINENO: result: no" >&5
16694 echo "${ECHO_T}no" >&6; }
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 CFLAGS="$saved_CFLAGS"
16702 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16703 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16704 saved_CFLAGS="$CFLAGS"
16705 CFLAGS="$CFLAGS -Werror"
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 static void __attribute__((const)) *test(void *muffin, ...) {}
16714 main ()
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && {
16735 test -z "$ac_c_werror_flag" ||
16736 test ! -s conftest.err
16737 } && test -s conftest.$ac_objext; then
16738 { echo "$as_me:$LINENO: result: yes" >&5
16739 echo "${ECHO_T}yes" >&6; }
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_ATTRIBUTE_const 1
16743 _ACEOF
16745 else
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { echo "$as_me:$LINENO: result: no" >&5
16750 echo "${ECHO_T}no" >&6; }
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 CFLAGS="$saved_CFLAGS"
16758 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16759 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16760 saved_CFLAGS="$CFLAGS"
16761 CFLAGS="$CFLAGS -Werror"
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 static void __attribute__((unused)) *test(void *muffin, ...) {}
16770 main ()
16774 return 0;
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_compile") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest.$ac_objext; then
16794 { echo "$as_me:$LINENO: result: yes" >&5
16795 echo "${ECHO_T}yes" >&6; }
16797 cat >>confdefs.h <<_ACEOF
16798 #define HAVE_ATTRIBUTE_unused 1
16799 _ACEOF
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 { echo "$as_me:$LINENO: result: no" >&5
16806 echo "${ECHO_T}no" >&6; }
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 CFLAGS="$saved_CFLAGS"
16814 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16815 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16816 saved_CFLAGS="$CFLAGS"
16817 CFLAGS="$CFLAGS -Werror"
16818 cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h. */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16826 main ()
16830 return 0;
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_compile") 2>conftest.er1
16841 ac_status=$?
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } && {
16847 test -z "$ac_c_werror_flag" ||
16848 test ! -s conftest.err
16849 } && test -s conftest.$ac_objext; then
16850 { echo "$as_me:$LINENO: result: yes" >&5
16851 echo "${ECHO_T}yes" >&6; }
16853 cat >>confdefs.h <<_ACEOF
16854 #define HAVE_ATTRIBUTE_always_inline 1
16855 _ACEOF
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 { echo "$as_me:$LINENO: result: no" >&5
16862 echo "${ECHO_T}no" >&6; }
16865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16867 CFLAGS="$saved_CFLAGS"
16870 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16871 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16872 saved_CFLAGS="$CFLAGS"
16873 CFLAGS="$CFLAGS -Werror"
16874 cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h. */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h. */
16880 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16882 main ()
16886 return 0;
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (ac_try="$ac_compile"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_compile") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_c_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest.$ac_objext; then
16906 { echo "$as_me:$LINENO: result: yes" >&5
16907 echo "${ECHO_T}yes" >&6; }
16909 cat >>confdefs.h <<_ACEOF
16910 #define HAVE_ATTRIBUTE_deprecated 1
16911 _ACEOF
16913 else
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 { echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6; }
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 CFLAGS="$saved_CFLAGS"
16926 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16927 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16928 saved_CFLAGS="$CFLAGS"
16929 CFLAGS="$CFLAGS -Werror"
16930 cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h. */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
16938 main ()
16942 return 0;
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16962 { echo "$as_me:$LINENO: result: yes" >&5
16963 echo "${ECHO_T}yes" >&6; }
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_ATTRIBUTE_sentinel 1
16967 _ACEOF
16969 else
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 { echo "$as_me:$LINENO: result: no" >&5
16974 echo "${ECHO_T}no" >&6; }
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 CFLAGS="$saved_CFLAGS"
16982 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
16983 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
16984 saved_CFLAGS="${CFLAGS}"
16985 CFLAGS="${CFLAGS} -ffunction-sections"
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16994 main ()
16996 int x = 1;
16998 return 0;
17000 _ACEOF
17001 rm -f conftest.$ac_objext
17002 if { (ac_try="$ac_compile"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_compile") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } && {
17015 test -z "$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17017 } && test -s conftest.$ac_objext; then
17018 { echo "$as_me:$LINENO: result: yes" >&5
17019 echo "${ECHO_T}yes" >&6; }
17020 saved_LDFLAGS="${LDFLAGS}"
17021 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17022 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17023 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17032 main ()
17034 int x = 1;
17036 return 0;
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest$ac_exeext &&
17056 $as_test_x conftest$ac_exeext; then
17057 { echo "$as_me:$LINENO: result: yes" >&5
17058 echo "${ECHO_T}yes" >&6; }
17059 GC_CFLAGS="-ffunction-sections"
17060 GC_LDFLAGS="-Wl,--gc-sections"
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 { echo "$as_me:$LINENO: result: no" >&5
17066 echo "${ECHO_T}no" >&6; }
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LDFLAGS="${saved_LDFLAGS}"
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 { echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6; }
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 CFLAGS="${saved_CFLAGS}"
17087 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17088 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17089 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17090 { echo "$as_me:$LINENO: result: yes" >&5
17091 echo "${ECHO_T}yes" >&6; }
17092 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17093 else
17094 { echo "$as_me:$LINENO: result: no" >&5
17095 echo "${ECHO_T}no" >&6; }
17096 AST_DECLARATION_AFTER_STATEMENT=
17100 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17101 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17102 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17103 { echo "$as_me:$LINENO: result: yes" >&5
17104 echo "${ECHO_T}yes" >&6; }
17105 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17106 else
17107 { echo "$as_me:$LINENO: result: no" >&5
17108 echo "${ECHO_T}no" >&6; }
17109 AST_NO_STRICT_OVERFLOW=
17113 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17114 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 #include <sys/sysinfo.h>
17123 main ()
17125 struct sysinfo sys_info; int uptime = sys_info.uptime
17127 return 0;
17129 _ACEOF
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135 esac
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && {
17144 test -z "$ac_c_werror_flag" ||
17145 test ! -s conftest.err
17146 } && test -s conftest$ac_exeext &&
17147 $as_test_x conftest$ac_exeext; then
17148 { echo "$as_me:$LINENO: result: yes" >&5
17149 echo "${ECHO_T}yes" >&6; }
17151 cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_SYSINFO 1
17153 _ACEOF
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 { echo "$as_me:$LINENO: result: no" >&5
17160 echo "${ECHO_T}no" >&6; }
17164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17165 conftest$ac_exeext conftest.$ac_ext
17167 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17168 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17169 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172 ac_func_search_save_LIBS=$LIBS
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h. */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char res_9_ninit ();
17188 main ()
17190 return res_9_ninit ();
17192 return 0;
17194 _ACEOF
17195 for ac_lib in '' resolv; do
17196 if test -z "$ac_lib"; then
17197 ac_res="none required"
17198 else
17199 ac_res=-l$ac_lib
17200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17220 ac_cv_search_res_9_ninit=$ac_res
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext
17230 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17231 break
17233 done
17234 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17236 else
17237 ac_cv_search_res_9_ninit=no
17239 rm conftest.$ac_ext
17240 LIBS=$ac_func_search_save_LIBS
17242 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17243 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17244 ac_res=$ac_cv_search_res_9_ninit
17245 if test "$ac_res" != no; then
17246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17250 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17251 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h. */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17259 #ifdef HAVE_SYS_SOCKET_H
17260 #include <sys/socket.h>
17261 #endif
17262 #ifdef HAVE_NETINET_IN_H
17263 #include <netinet/in.h>
17264 #endif
17265 #ifdef HAVE_ARPA_NAMESER_H
17266 #include <arpa/nameser.h>
17267 #endif
17268 #include <resolv.h>
17270 main ()
17272 int foo = res_ninit(NULL);
17274 return 0;
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_link") 2>conftest.er1
17285 ac_status=$?
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } && {
17291 test -z "$ac_c_werror_flag" ||
17292 test ! -s conftest.err
17293 } && test -s conftest$ac_exeext &&
17294 $as_test_x conftest$ac_exeext; then
17295 { echo "$as_me:$LINENO: result: yes" >&5
17296 echo "${ECHO_T}yes" >&6; }
17298 cat >>confdefs.h <<\_ACEOF
17299 #define HAVE_RES_NINIT 1
17300 _ACEOF
17302 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17303 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17304 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 ac_func_search_save_LIBS=$LIBS
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char res_9_ndestroy ();
17323 main ()
17325 return res_9_ndestroy ();
17327 return 0;
17329 _ACEOF
17330 for ac_lib in '' resolv; do
17331 if test -z "$ac_lib"; then
17332 ac_res="none required"
17333 else
17334 ac_res=-l$ac_lib
17335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (ac_try="$ac_link"
17339 case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_link") 2>conftest.er1
17345 ac_status=$?
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest$ac_exeext &&
17354 $as_test_x conftest$ac_exeext; then
17355 ac_cv_search_res_9_ndestroy=$ac_res
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext
17365 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17366 break
17368 done
17369 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17371 else
17372 ac_cv_search_res_9_ndestroy=no
17374 rm conftest.$ac_ext
17375 LIBS=$ac_func_search_save_LIBS
17377 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17378 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17379 ac_res=$ac_cv_search_res_9_ndestroy
17380 if test "$ac_res" != no; then
17381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17385 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17386 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 #ifdef HAVE_SYS_SOCKET_H
17395 #include <sys/socket.h>
17396 #endif
17397 #ifdef HAVE_NETINET_IN_H
17398 #include <netinet/in.h>
17399 #endif
17400 #ifdef HAVE_ARPA_NAMESER_H
17401 #include <arpa/nameser.h>
17402 #endif
17403 #include <resolv.h>
17405 main ()
17407 res_ndestroy(NULL);
17409 return 0;
17411 _ACEOF
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (ac_try="$ac_link"
17414 case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_link") 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest$ac_exeext &&
17429 $as_test_x conftest$ac_exeext; then
17430 { echo "$as_me:$LINENO: result: yes" >&5
17431 echo "${ECHO_T}yes" >&6; }
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_RES_NDESTROY 1
17435 _ACEOF
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 { echo "$as_me:$LINENO: result: no" >&5
17442 echo "${ECHO_T}no" >&6; }
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447 conftest$ac_exeext conftest.$ac_ext
17448 else
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17458 conftest$ac_exeext conftest.$ac_ext
17461 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17462 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17463 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17464 saved_cppflags="${CPPFLAGS}"
17465 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17466 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17468 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17470 cat >conftest.$ac_ext <<_ACEOF
17471 /* confdefs.h. */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17476 #include <dlfcn.h>
17478 main ()
17480 #if defined(RTLD_NOLOAD)
17481 int foo = 0;
17482 #else
17483 int foo = bar;
17484 #endif
17488 return 0;
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_compile") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest.$ac_objext; then
17508 { echo "$as_me:$LINENO: result: yes" >&5
17509 echo "${ECHO_T}yes" >&6; }
17510 PBX_RTLD_NOLOAD=1
17512 cat >>confdefs.h <<\_ACEOF
17513 #define HAVE_RTLD_NOLOAD 1
17514 _ACEOF
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_RTLD_NOLOAD_VERSION
17519 _ACEOF
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 { echo "$as_me:$LINENO: result: no" >&5
17527 echo "${ECHO_T}no" >&6; }
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532 CPPFLAGS="${saved_cppflags}"
17538 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17539 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17540 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17541 saved_cppflags="${CPPFLAGS}"
17542 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17543 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17545 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include <netinet/in.h>
17555 main ()
17557 #if defined(IP_MTU_DISCOVER)
17558 int foo = 0;
17559 #else
17560 int foo = bar;
17561 #endif
17565 return 0;
17567 _ACEOF
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 { echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6; }
17587 PBX_IP_MTU_DISCOVER=1
17589 cat >>confdefs.h <<\_ACEOF
17590 #define HAVE_IP_MTU_DISCOVER 1
17591 _ACEOF
17594 cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_IP_MTU_DISCOVER_VERSION
17596 _ACEOF
17599 else
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 { echo "$as_me:$LINENO: result: no" >&5
17604 echo "${ECHO_T}no" >&6; }
17608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17609 CPPFLAGS="${saved_cppflags}"
17614 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17615 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17616 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17617 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17621 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17622 else
17623 # Is the header compilable?
17624 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17625 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17626 cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h. */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 $ac_includes_default
17633 #include <libkern/OSAtomic.h>
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (ac_try="$ac_compile"
17637 case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_compile") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } && {
17649 test -z "$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 } && test -s conftest.$ac_objext; then
17652 ac_header_compiler=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_header_compiler=no
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17662 echo "${ECHO_T}$ac_header_compiler" >&6; }
17664 # Is the header present?
17665 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17666 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 #include <libkern/OSAtomic.h>
17674 _ACEOF
17675 if { (ac_try="$ac_cpp conftest.$ac_ext"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } >/dev/null && {
17688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 }; then
17691 ac_header_preproc=yes
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_header_preproc=no
17699 rm -f conftest.err conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17701 echo "${ECHO_T}$ac_header_preproc" >&6; }
17703 # So? What about this header?
17704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17705 yes:no: )
17706 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17707 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17709 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17710 ac_header_preproc=yes
17712 no:yes:* )
17713 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17714 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17715 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17716 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17717 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17718 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17720 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17722 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17724 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17725 ( cat <<\_ASBOX
17726 ## ------------------------------- ##
17727 ## Report this to www.asterisk.org ##
17728 ## ------------------------------- ##
17729 _ASBOX
17730 ) | sed "s/^/$as_me: WARNING: /" >&2
17732 esac
17733 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17734 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17735 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17740 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17741 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17744 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define HAVE_OSX_ATOMICS 1
17748 _ACEOF
17754 { echo "$as_me:$LINENO: checking for int" >&5
17755 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17756 if test "${ac_cv_type_int+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 $ac_includes_default
17766 typedef int ac__type_new_;
17768 main ()
17770 if ((ac__type_new_ *) 0)
17771 return 0;
17772 if (sizeof (ac__type_new_))
17773 return 0;
17775 return 0;
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_compile") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest.$ac_objext; then
17795 ac_cv_type_int=yes
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_type_int=no
17803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17806 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17808 # The cast to long int works around a bug in the HP C Compiler
17809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17811 # This bug is HP SR number 8606223364.
17812 { echo "$as_me:$LINENO: checking size of int" >&5
17813 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17814 if test "${ac_cv_sizeof_int+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 if test "$cross_compiling" = yes; then
17818 # Depending upon the size, compute the lo and hi bounds.
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 $ac_includes_default
17826 typedef int ac__type_sizeof_;
17828 main ()
17830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17831 test_array [0] = 0
17834 return 0;
17836 _ACEOF
17837 rm -f conftest.$ac_objext
17838 if { (ac_try="$ac_compile"
17839 case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_compile") 2>conftest.er1
17845 ac_status=$?
17846 grep -v '^ *+' conftest.er1 >conftest.err
17847 rm -f conftest.er1
17848 cat conftest.err >&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && {
17851 test -z "$ac_c_werror_flag" ||
17852 test ! -s conftest.err
17853 } && test -s conftest.$ac_objext; then
17854 ac_lo=0 ac_mid=0
17855 while :; do
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 $ac_includes_default
17863 typedef int ac__type_sizeof_;
17865 main ()
17867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17868 test_array [0] = 0
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (ac_try="$ac_compile"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_compile") 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } && {
17888 test -z "$ac_c_werror_flag" ||
17889 test ! -s conftest.err
17890 } && test -s conftest.$ac_objext; then
17891 ac_hi=$ac_mid; break
17892 else
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_lo=`expr $ac_mid + 1`
17897 if test $ac_lo -le $ac_mid; then
17898 ac_lo= ac_hi=
17899 break
17901 ac_mid=`expr 2 '*' $ac_mid + 1`
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 done
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h. */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17917 typedef int ac__type_sizeof_;
17919 main ()
17921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17922 test_array [0] = 0
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (ac_try="$ac_compile"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_compile") 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest.$ac_objext; then
17945 ac_hi=-1 ac_mid=-1
17946 while :; do
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 $ac_includes_default
17954 typedef int ac__type_sizeof_;
17956 main ()
17958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17959 test_array [0] = 0
17962 return 0;
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (ac_try="$ac_compile"
17967 case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_compile") 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest.$ac_objext; then
17982 ac_lo=$ac_mid; break
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_hi=`expr '(' $ac_mid ')' - 1`
17988 if test $ac_mid -le $ac_hi; then
17989 ac_lo= ac_hi=
17990 break
17992 ac_mid=`expr 2 '*' $ac_mid`
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 done
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_lo= ac_hi=
18004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008 # Binary search between lo and hi bounds.
18009 while test "x$ac_lo" != "x$ac_hi"; do
18010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 $ac_includes_default
18018 typedef int ac__type_sizeof_;
18020 main ()
18022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18023 test_array [0] = 0
18026 return 0;
18028 _ACEOF
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_compile") 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest.$ac_objext; then
18046 ac_hi=$ac_mid
18047 else
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_lo=`expr '(' $ac_mid ')' + 1`
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 done
18056 case $ac_lo in
18057 ?*) ac_cv_sizeof_int=$ac_lo;;
18058 '') if test "$ac_cv_type_int" = yes; then
18059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18060 See \`config.log' for more details." >&5
18061 echo "$as_me: error: cannot compute sizeof (int)
18062 See \`config.log' for more details." >&2;}
18063 { (exit 77); exit 77; }; }
18064 else
18065 ac_cv_sizeof_int=0
18066 fi ;;
18067 esac
18068 else
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 $ac_includes_default
18076 typedef int ac__type_sizeof_;
18077 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18078 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18079 #include <stdio.h>
18080 #include <stdlib.h>
18082 main ()
18085 FILE *f = fopen ("conftest.val", "w");
18086 if (! f)
18087 return 1;
18088 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18090 long int i = longval ();
18091 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18092 return 1;
18093 fprintf (f, "%ld\n", i);
18095 else
18097 unsigned long int i = ulongval ();
18098 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18099 return 1;
18100 fprintf (f, "%lu\n", i);
18102 return ferror (f) || fclose (f) != 0;
18105 return 0;
18107 _ACEOF
18108 rm -f conftest$ac_exeext
18109 if { (ac_try="$ac_link"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_link") 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_sizeof_int=`cat conftest.val`
18129 else
18130 echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 ( exit $ac_status )
18135 if test "$ac_cv_type_int" = yes; then
18136 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18137 See \`config.log' for more details." >&5
18138 echo "$as_me: error: cannot compute sizeof (int)
18139 See \`config.log' for more details." >&2;}
18140 { (exit 77); exit 77; }; }
18141 else
18142 ac_cv_sizeof_int=0
18145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18147 rm -f conftest.val
18149 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18150 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18154 cat >>confdefs.h <<_ACEOF
18155 #define SIZEOF_INT $ac_cv_sizeof_int
18156 _ACEOF
18160 # do the package library checks now
18163 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18164 pbxlibdir=""
18165 # if --with-ALSA=DIR has been specified, use it.
18166 if test "x${ALSA_DIR}" != "x"; then
18167 if test -d ${ALSA_DIR}/lib; then
18168 pbxlibdir="-L${ALSA_DIR}/lib"
18169 else
18170 pbxlibdir="-L${ALSA_DIR}"
18173 pbxfuncname="snd_spcm_init"
18174 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18175 AST_ALSA_FOUND=yes
18176 else
18177 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18178 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18179 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18180 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183 ac_check_lib_save_LIBS=$LIBS
18184 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char ${pbxfuncname} ();
18200 main ()
18202 return ${pbxfuncname} ();
18204 return 0;
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && {
18221 test -z "$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18223 } && test -s conftest$ac_exeext &&
18224 $as_test_x conftest$ac_exeext; then
18225 eval "$as_ac_Lib=yes"
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 eval "$as_ac_Lib=no"
18233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18234 conftest$ac_exeext conftest.$ac_ext
18235 LIBS=$ac_check_lib_save_LIBS
18237 ac_res=`eval echo '${'$as_ac_Lib'}'`
18238 { echo "$as_me:$LINENO: result: $ac_res" >&5
18239 echo "${ECHO_T}$ac_res" >&6; }
18240 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18241 AST_ALSA_FOUND=yes
18242 else
18243 AST_ALSA_FOUND=no
18248 # now check for the header.
18249 if test "${AST_ALSA_FOUND}" = "yes"; then
18250 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18251 # if --with-ALSA=DIR has been specified, use it.
18252 if test "x${ALSA_DIR}" != "x"; then
18253 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18255 ALSA_INCLUDE="${ALSA_INCLUDE} "
18256 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18257 ALSA_HEADER_FOUND="1"
18258 else # check for the header
18259 saved_cppflags="${CPPFLAGS}"
18260 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
18261 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18262 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18263 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18264 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18268 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18269 else
18270 # Is the header compilable?
18271 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18272 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18280 #include <alsa/asoundlib.h>
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (ac_try="$ac_compile"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_compile") 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } && {
18296 test -z "$ac_c_werror_flag" ||
18297 test ! -s conftest.err
18298 } && test -s conftest.$ac_objext; then
18299 ac_header_compiler=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_compiler=no
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6; }
18311 # Is the header present?
18312 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18313 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h. */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 #include <alsa/asoundlib.h>
18321 _ACEOF
18322 if { (ac_try="$ac_cpp conftest.$ac_ext"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } >/dev/null && {
18335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18336 test ! -s conftest.err
18337 }; then
18338 ac_header_preproc=yes
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_header_preproc=no
18346 rm -f conftest.err conftest.$ac_ext
18347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6; }
18350 # So? What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352 yes:no: )
18353 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18354 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18356 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18357 ac_header_preproc=yes
18359 no:yes:* )
18360 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18361 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18363 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18365 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18367 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18369 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18371 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18372 ( cat <<\_ASBOX
18373 ## ------------------------------- ##
18374 ## Report this to www.asterisk.org ##
18375 ## ------------------------------- ##
18376 _ASBOX
18377 ) | sed "s/^/$as_me: WARNING: /" >&2
18379 esac
18380 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18381 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18382 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 else
18385 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18387 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18388 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18391 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18392 ALSA_HEADER_FOUND=1
18393 else
18394 ALSA_HEADER_FOUND=0
18398 CPPFLAGS="${saved_cppflags}"
18400 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18401 ALSA_LIB=""
18402 ALSA_INCLUDE=""
18403 else
18404 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18405 ALSA_LIB=""
18407 PBX_ALSA=1
18408 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_ALSA 1
18412 _ACEOF
18415 cat >>confdefs.h <<_ACEOF
18416 #define HAVE_ALSA_VERSION
18417 _ACEOF
18425 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18426 pbxlibdir=""
18427 # if --with-CURSES=DIR has been specified, use it.
18428 if test "x${CURSES_DIR}" != "x"; then
18429 if test -d ${CURSES_DIR}/lib; then
18430 pbxlibdir="-L${CURSES_DIR}/lib"
18431 else
18432 pbxlibdir="-L${CURSES_DIR}"
18435 pbxfuncname="initscr"
18436 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18437 AST_CURSES_FOUND=yes
18438 else
18439 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18440 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18441 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18442 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445 ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-lcurses ${pbxlibdir} $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18454 /* Override any GCC internal prototype to avoid an error.
18455 Use char because int might match the return type of a GCC
18456 builtin and then its argument prototype would still apply. */
18457 #ifdef __cplusplus
18458 extern "C"
18459 #endif
18460 char ${pbxfuncname} ();
18462 main ()
18464 return ${pbxfuncname} ();
18466 return 0;
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_link") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest$ac_exeext &&
18486 $as_test_x conftest$ac_exeext; then
18487 eval "$as_ac_Lib=yes"
18488 else
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 eval "$as_ac_Lib=no"
18495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18496 conftest$ac_exeext conftest.$ac_ext
18497 LIBS=$ac_check_lib_save_LIBS
18499 ac_res=`eval echo '${'$as_ac_Lib'}'`
18500 { echo "$as_me:$LINENO: result: $ac_res" >&5
18501 echo "${ECHO_T}$ac_res" >&6; }
18502 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18503 AST_CURSES_FOUND=yes
18504 else
18505 AST_CURSES_FOUND=no
18510 # now check for the header.
18511 if test "${AST_CURSES_FOUND}" = "yes"; then
18512 CURSES_LIB="${pbxlibdir} -lcurses "
18513 # if --with-CURSES=DIR has been specified, use it.
18514 if test "x${CURSES_DIR}" != "x"; then
18515 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18517 CURSES_INCLUDE="${CURSES_INCLUDE} "
18518 if test "xcurses.h" = "x" ; then # no header, assume found
18519 CURSES_HEADER_FOUND="1"
18520 else # check for the header
18521 saved_cppflags="${CPPFLAGS}"
18522 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18523 if test "${ac_cv_header_curses_h+set}" = set; then
18524 { echo "$as_me:$LINENO: checking for curses.h" >&5
18525 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18526 if test "${ac_cv_header_curses_h+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18531 else
18532 # Is the header compilable?
18533 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18534 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 $ac_includes_default
18542 #include <curses.h>
18543 _ACEOF
18544 rm -f conftest.$ac_objext
18545 if { (ac_try="$ac_compile"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_compile") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } && {
18558 test -z "$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 } && test -s conftest.$ac_objext; then
18561 ac_header_compiler=yes
18562 else
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_header_compiler=no
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18571 echo "${ECHO_T}$ac_header_compiler" >&6; }
18573 # Is the header present?
18574 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18575 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include <curses.h>
18583 _ACEOF
18584 if { (ac_try="$ac_cpp conftest.$ac_ext"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } >/dev/null && {
18597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 }; then
18600 ac_header_preproc=yes
18601 else
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 ac_header_preproc=no
18608 rm -f conftest.err conftest.$ac_ext
18609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18610 echo "${ECHO_T}$ac_header_preproc" >&6; }
18612 # So? What about this header?
18613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18614 yes:no: )
18615 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18616 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18618 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18619 ac_header_preproc=yes
18621 no:yes:* )
18622 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18623 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18624 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18625 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18627 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18629 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18631 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18633 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18634 ( cat <<\_ASBOX
18635 ## ------------------------------- ##
18636 ## Report this to www.asterisk.org ##
18637 ## ------------------------------- ##
18638 _ASBOX
18639 ) | sed "s/^/$as_me: WARNING: /" >&2
18641 esac
18642 { echo "$as_me:$LINENO: checking for curses.h" >&5
18643 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18644 if test "${ac_cv_header_curses_h+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647 ac_cv_header_curses_h=$ac_header_preproc
18649 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18650 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18653 if test $ac_cv_header_curses_h = yes; then
18654 CURSES_HEADER_FOUND=1
18655 else
18656 CURSES_HEADER_FOUND=0
18660 CPPFLAGS="${saved_cppflags}"
18662 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18663 CURSES_LIB=""
18664 CURSES_INCLUDE=""
18665 else
18666 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18667 CURSES_LIB=""
18669 PBX_CURSES=1
18670 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18672 cat >>confdefs.h <<_ACEOF
18673 #define HAVE_CURSES 1
18674 _ACEOF
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_CURSES_VERSION
18679 _ACEOF
18686 if test "x${host_os}" = "xlinux-gnu" ; then
18688 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18689 pbxlibdir=""
18690 # if --with-CAP=DIR has been specified, use it.
18691 if test "x${CAP_DIR}" != "x"; then
18692 if test -d ${CAP_DIR}/lib; then
18693 pbxlibdir="-L${CAP_DIR}/lib"
18694 else
18695 pbxlibdir="-L${CAP_DIR}"
18698 pbxfuncname="cap_from_text"
18699 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18700 AST_CAP_FOUND=yes
18701 else
18702 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18703 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18704 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18705 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708 ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lcap ${pbxlibdir} $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char ${pbxfuncname} ();
18725 main ()
18727 return ${pbxfuncname} ();
18729 return 0;
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest$ac_exeext &&
18749 $as_test_x conftest$ac_exeext; then
18750 eval "$as_ac_Lib=yes"
18751 else
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 eval "$as_ac_Lib=no"
18758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18759 conftest$ac_exeext conftest.$ac_ext
18760 LIBS=$ac_check_lib_save_LIBS
18762 ac_res=`eval echo '${'$as_ac_Lib'}'`
18763 { echo "$as_me:$LINENO: result: $ac_res" >&5
18764 echo "${ECHO_T}$ac_res" >&6; }
18765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18766 AST_CAP_FOUND=yes
18767 else
18768 AST_CAP_FOUND=no
18773 # now check for the header.
18774 if test "${AST_CAP_FOUND}" = "yes"; then
18775 CAP_LIB="${pbxlibdir} -lcap "
18776 # if --with-CAP=DIR has been specified, use it.
18777 if test "x${CAP_DIR}" != "x"; then
18778 CAP_INCLUDE="-I${CAP_DIR}/include"
18780 CAP_INCLUDE="${CAP_INCLUDE} "
18781 if test "xsys/capability.h" = "x" ; then # no header, assume found
18782 CAP_HEADER_FOUND="1"
18783 else # check for the header
18784 saved_cppflags="${CPPFLAGS}"
18785 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18786 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18787 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18788 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18789 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18793 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18794 else
18795 # Is the header compilable?
18796 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18797 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 $ac_includes_default
18805 #include <sys/capability.h>
18806 _ACEOF
18807 rm -f conftest.$ac_objext
18808 if { (ac_try="$ac_compile"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_compile") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest.$ac_objext; then
18824 ac_header_compiler=yes
18825 else
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_header_compiler=no
18832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18834 echo "${ECHO_T}$ac_header_compiler" >&6; }
18836 # Is the header present?
18837 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18838 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 #include <sys/capability.h>
18846 _ACEOF
18847 if { (ac_try="$ac_cpp conftest.$ac_ext"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } >/dev/null && {
18860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 }; then
18863 ac_header_preproc=yes
18864 else
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_preproc=no
18871 rm -f conftest.err conftest.$ac_ext
18872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18873 echo "${ECHO_T}$ac_header_preproc" >&6; }
18875 # So? What about this header?
18876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18877 yes:no: )
18878 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18879 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18881 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18882 ac_header_preproc=yes
18884 no:yes:* )
18885 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18886 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18888 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18890 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18891 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18892 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18893 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18894 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18896 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18897 ( cat <<\_ASBOX
18898 ## ------------------------------- ##
18899 ## Report this to www.asterisk.org ##
18900 ## ------------------------------- ##
18901 _ASBOX
18902 ) | sed "s/^/$as_me: WARNING: /" >&2
18904 esac
18905 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18906 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18907 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910 ac_cv_header_sys_capability_h=$ac_header_preproc
18912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18913 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18916 if test $ac_cv_header_sys_capability_h = yes; then
18917 CAP_HEADER_FOUND=1
18918 else
18919 CAP_HEADER_FOUND=0
18923 CPPFLAGS="${saved_cppflags}"
18925 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
18926 CAP_LIB=""
18927 CAP_INCLUDE=""
18928 else
18929 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18930 CAP_LIB=""
18932 PBX_CAP=1
18933 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_CAP 1
18937 _ACEOF
18940 cat >>confdefs.h <<_ACEOF
18941 #define HAVE_CAP_VERSION
18942 _ACEOF
18950 # BSD might not have exp2, and/or log2
18952 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
18953 pbxlibdir=""
18954 # if --with-EXP2L=DIR has been specified, use it.
18955 if test "x${EXP2L_DIR}" != "x"; then
18956 if test -d ${EXP2L_DIR}/lib; then
18957 pbxlibdir="-L${EXP2L_DIR}/lib"
18958 else
18959 pbxlibdir="-L${EXP2L_DIR}"
18962 pbxfuncname="exp2l"
18963 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18964 AST_EXP2L_FOUND=yes
18965 else
18966 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
18967 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
18968 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
18969 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972 ac_check_lib_save_LIBS=$LIBS
18973 LIBS="-lm ${pbxlibdir} $LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char ${pbxfuncname} ();
18989 main ()
18991 return ${pbxfuncname} ();
18993 return 0;
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext &&
19013 $as_test_x conftest$ac_exeext; then
19014 eval "$as_ac_Lib=yes"
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 eval "$as_ac_Lib=no"
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 ac_res=`eval echo '${'$as_ac_Lib'}'`
19027 { echo "$as_me:$LINENO: result: $ac_res" >&5
19028 echo "${ECHO_T}$ac_res" >&6; }
19029 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19030 AST_EXP2L_FOUND=yes
19031 else
19032 AST_EXP2L_FOUND=no
19037 # now check for the header.
19038 if test "${AST_EXP2L_FOUND}" = "yes"; then
19039 EXP2L_LIB="${pbxlibdir} -lm "
19040 # if --with-EXP2L=DIR has been specified, use it.
19041 if test "x${EXP2L_DIR}" != "x"; then
19042 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19044 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19045 if test "x" = "x" ; then # no header, assume found
19046 EXP2L_HEADER_FOUND="1"
19047 else # check for the header
19048 saved_cppflags="${CPPFLAGS}"
19049 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
19050 if test "${ac_cv_header_+set}" = set; then
19051 { echo "$as_me:$LINENO: checking for " >&5
19052 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19053 if test "${ac_cv_header_+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19057 echo "${ECHO_T}$ac_cv_header_" >&6; }
19058 else
19059 # Is the header compilable?
19060 { echo "$as_me:$LINENO: checking usability" >&5
19061 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 $ac_includes_default
19069 #include <>
19070 _ACEOF
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_compile") 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest.$ac_objext; then
19088 ac_header_compiler=yes
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_header_compiler=no
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19098 echo "${ECHO_T}$ac_header_compiler" >&6; }
19100 # Is the header present?
19101 { echo "$as_me:$LINENO: checking presence" >&5
19102 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <>
19110 _ACEOF
19111 if { (ac_try="$ac_cpp conftest.$ac_ext"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19118 ac_status=$?
19119 grep -v '^ *+' conftest.er1 >conftest.err
19120 rm -f conftest.er1
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } >/dev/null && {
19124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19125 test ! -s conftest.err
19126 }; then
19127 ac_header_preproc=yes
19128 else
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ac_header_preproc=no
19135 rm -f conftest.err conftest.$ac_ext
19136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19137 echo "${ECHO_T}$ac_header_preproc" >&6; }
19139 # So? What about this header?
19140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19141 yes:no: )
19142 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19143 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19145 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19146 ac_header_preproc=yes
19148 no:yes:* )
19149 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19150 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19151 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19152 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19153 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19154 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19155 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19156 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19157 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19158 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19160 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19161 ( cat <<\_ASBOX
19162 ## ------------------------------- ##
19163 ## Report this to www.asterisk.org ##
19164 ## ------------------------------- ##
19165 _ASBOX
19166 ) | sed "s/^/$as_me: WARNING: /" >&2
19168 esac
19169 { echo "$as_me:$LINENO: checking for " >&5
19170 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19171 if test "${ac_cv_header_+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174 ac_cv_header_=$ac_header_preproc
19176 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19177 echo "${ECHO_T}$ac_cv_header_" >&6; }
19180 if test $ac_cv_header_ = yes; then
19181 EXP2L_HEADER_FOUND=1
19182 else
19183 EXP2L_HEADER_FOUND=0
19187 CPPFLAGS="${saved_cppflags}"
19189 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19190 EXP2L_LIB=""
19191 EXP2L_INCLUDE=""
19192 else
19193 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19194 EXP2L_LIB=""
19196 PBX_EXP2L=1
19197 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19199 cat >>confdefs.h <<_ACEOF
19200 #define HAVE_EXP2L 1
19201 _ACEOF
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_EXP2L_VERSION
19206 _ACEOF
19213 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19214 pbxlibdir=""
19215 # if --with-LOG2L=DIR has been specified, use it.
19216 if test "x${LOG2L_DIR}" != "x"; then
19217 if test -d ${LOG2L_DIR}/lib; then
19218 pbxlibdir="-L${LOG2L_DIR}/lib"
19219 else
19220 pbxlibdir="-L${LOG2L_DIR}"
19223 pbxfuncname="log2l"
19224 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19225 AST_LOG2L_FOUND=yes
19226 else
19227 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19228 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19229 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19230 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233 ac_check_lib_save_LIBS=$LIBS
19234 LIBS="-lm ${pbxlibdir} $LIBS"
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h. */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char ${pbxfuncname} ();
19250 main ()
19252 return ${pbxfuncname} ();
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext conftest$ac_exeext
19258 if { (ac_try="$ac_link"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_link") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest$ac_exeext &&
19274 $as_test_x conftest$ac_exeext; then
19275 eval "$as_ac_Lib=yes"
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 eval "$as_ac_Lib=no"
19283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19284 conftest$ac_exeext conftest.$ac_ext
19285 LIBS=$ac_check_lib_save_LIBS
19287 ac_res=`eval echo '${'$as_ac_Lib'}'`
19288 { echo "$as_me:$LINENO: result: $ac_res" >&5
19289 echo "${ECHO_T}$ac_res" >&6; }
19290 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19291 AST_LOG2L_FOUND=yes
19292 else
19293 AST_LOG2L_FOUND=no
19298 # now check for the header.
19299 if test "${AST_LOG2L_FOUND}" = "yes"; then
19300 LOG2L_LIB="${pbxlibdir} -lm "
19301 # if --with-LOG2L=DIR has been specified, use it.
19302 if test "x${LOG2L_DIR}" != "x"; then
19303 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19305 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19306 if test "x" = "x" ; then # no header, assume found
19307 LOG2L_HEADER_FOUND="1"
19308 else # check for the header
19309 saved_cppflags="${CPPFLAGS}"
19310 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19311 if test "${ac_cv_header_+set}" = set; then
19312 { echo "$as_me:$LINENO: checking for " >&5
19313 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19314 if test "${ac_cv_header_+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19318 echo "${ECHO_T}$ac_cv_header_" >&6; }
19319 else
19320 # Is the header compilable?
19321 { echo "$as_me:$LINENO: checking usability" >&5
19322 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 $ac_includes_default
19330 #include <>
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (ac_try="$ac_compile"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest.$ac_objext; then
19349 ac_header_compiler=yes
19350 else
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_header_compiler=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19359 echo "${ECHO_T}$ac_header_compiler" >&6; }
19361 # Is the header present?
19362 { echo "$as_me:$LINENO: checking presence" >&5
19363 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h. */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <>
19371 _ACEOF
19372 if { (ac_try="$ac_cpp conftest.$ac_ext"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } >/dev/null && {
19385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19386 test ! -s conftest.err
19387 }; then
19388 ac_header_preproc=yes
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_header_preproc=no
19396 rm -f conftest.err conftest.$ac_ext
19397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19398 echo "${ECHO_T}$ac_header_preproc" >&6; }
19400 # So? What about this header?
19401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19402 yes:no: )
19403 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19404 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19406 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19407 ac_header_preproc=yes
19409 no:yes:* )
19410 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19411 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19412 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19413 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19414 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19415 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19416 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19417 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19418 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19419 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19420 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19421 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19422 ( cat <<\_ASBOX
19423 ## ------------------------------- ##
19424 ## Report this to www.asterisk.org ##
19425 ## ------------------------------- ##
19426 _ASBOX
19427 ) | sed "s/^/$as_me: WARNING: /" >&2
19429 esac
19430 { echo "$as_me:$LINENO: checking for " >&5
19431 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19432 if test "${ac_cv_header_+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435 ac_cv_header_=$ac_header_preproc
19437 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19438 echo "${ECHO_T}$ac_cv_header_" >&6; }
19441 if test $ac_cv_header_ = yes; then
19442 LOG2L_HEADER_FOUND=1
19443 else
19444 LOG2L_HEADER_FOUND=0
19448 CPPFLAGS="${saved_cppflags}"
19450 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19451 LOG2L_LIB=""
19452 LOG2L_INCLUDE=""
19453 else
19454 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19455 LOG2L_LIB=""
19457 PBX_LOG2L=1
19458 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19460 cat >>confdefs.h <<_ACEOF
19461 #define HAVE_LOG2L 1
19462 _ACEOF
19465 cat >>confdefs.h <<_ACEOF
19466 #define HAVE_LOG2L_VERSION
19467 _ACEOF
19474 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19475 pbxlibdir=""
19476 # if --with-EXP10L=DIR has been specified, use it.
19477 if test "x${EXP10L_DIR}" != "x"; then
19478 if test -d ${EXP10L_DIR}/lib; then
19479 pbxlibdir="-L${EXP10L_DIR}/lib"
19480 else
19481 pbxlibdir="-L${EXP10L_DIR}"
19484 pbxfuncname="exp10l"
19485 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19486 AST_EXP10L_FOUND=yes
19487 else
19488 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19489 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19490 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19491 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 else
19494 ac_check_lib_save_LIBS=$LIBS
19495 LIBS="-lm ${pbxlibdir} $LIBS"
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19503 /* Override any GCC internal prototype to avoid an error.
19504 Use char because int might match the return type of a GCC
19505 builtin and then its argument prototype would still apply. */
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 char ${pbxfuncname} ();
19511 main ()
19513 return ${pbxfuncname} ();
19515 return 0;
19517 _ACEOF
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_link") 2>conftest.er1
19526 ac_status=$?
19527 grep -v '^ *+' conftest.er1 >conftest.err
19528 rm -f conftest.er1
19529 cat conftest.err >&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } && {
19532 test -z "$ac_c_werror_flag" ||
19533 test ! -s conftest.err
19534 } && test -s conftest$ac_exeext &&
19535 $as_test_x conftest$ac_exeext; then
19536 eval "$as_ac_Lib=yes"
19537 else
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 eval "$as_ac_Lib=no"
19544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19545 conftest$ac_exeext conftest.$ac_ext
19546 LIBS=$ac_check_lib_save_LIBS
19548 ac_res=`eval echo '${'$as_ac_Lib'}'`
19549 { echo "$as_me:$LINENO: result: $ac_res" >&5
19550 echo "${ECHO_T}$ac_res" >&6; }
19551 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19552 AST_EXP10L_FOUND=yes
19553 else
19554 AST_EXP10L_FOUND=no
19559 # now check for the header.
19560 if test "${AST_EXP10L_FOUND}" = "yes"; then
19561 EXP10L_LIB="${pbxlibdir} -lm "
19562 # if --with-EXP10L=DIR has been specified, use it.
19563 if test "x${EXP10L_DIR}" != "x"; then
19564 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19566 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19567 if test "x" = "x" ; then # no header, assume found
19568 EXP10L_HEADER_FOUND="1"
19569 else # check for the header
19570 saved_cppflags="${CPPFLAGS}"
19571 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19572 if test "${ac_cv_header_+set}" = set; then
19573 { echo "$as_me:$LINENO: checking for " >&5
19574 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19575 if test "${ac_cv_header_+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19579 echo "${ECHO_T}$ac_cv_header_" >&6; }
19580 else
19581 # Is the header compilable?
19582 { echo "$as_me:$LINENO: checking usability" >&5
19583 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 $ac_includes_default
19591 #include <>
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (ac_try="$ac_compile"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_compile") 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } && {
19607 test -z "$ac_c_werror_flag" ||
19608 test ! -s conftest.err
19609 } && test -s conftest.$ac_objext; then
19610 ac_header_compiler=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_header_compiler=no
19618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19620 echo "${ECHO_T}$ac_header_compiler" >&6; }
19622 # Is the header present?
19623 { echo "$as_me:$LINENO: checking presence" >&5
19624 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h. */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 #include <>
19632 _ACEOF
19633 if { (ac_try="$ac_cpp conftest.$ac_ext"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } >/dev/null && {
19646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 }; then
19649 ac_header_preproc=yes
19650 else
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_header_preproc=no
19657 rm -f conftest.err conftest.$ac_ext
19658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19659 echo "${ECHO_T}$ac_header_preproc" >&6; }
19661 # So? What about this header?
19662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19663 yes:no: )
19664 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19665 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19666 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19667 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19668 ac_header_preproc=yes
19670 no:yes:* )
19671 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19672 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19674 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19676 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19678 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19680 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19682 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19683 ( cat <<\_ASBOX
19684 ## ------------------------------- ##
19685 ## Report this to www.asterisk.org ##
19686 ## ------------------------------- ##
19687 _ASBOX
19688 ) | sed "s/^/$as_me: WARNING: /" >&2
19690 esac
19691 { echo "$as_me:$LINENO: checking for " >&5
19692 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19693 if test "${ac_cv_header_+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 ac_cv_header_=$ac_header_preproc
19698 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19699 echo "${ECHO_T}$ac_cv_header_" >&6; }
19702 if test $ac_cv_header_ = yes; then
19703 EXP10L_HEADER_FOUND=1
19704 else
19705 EXP10L_HEADER_FOUND=0
19709 CPPFLAGS="${saved_cppflags}"
19711 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19712 EXP10L_LIB=""
19713 EXP10L_INCLUDE=""
19714 else
19715 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19716 EXP10L_LIB=""
19718 PBX_EXP10L=1
19719 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_EXP10L 1
19723 _ACEOF
19726 cat >>confdefs.h <<_ACEOF
19727 #define HAVE_EXP10L_VERSION
19728 _ACEOF
19735 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19736 pbxlibdir=""
19737 # if --with-LOG10L=DIR has been specified, use it.
19738 if test "x${LOG10L_DIR}" != "x"; then
19739 if test -d ${LOG10L_DIR}/lib; then
19740 pbxlibdir="-L${LOG10L_DIR}/lib"
19741 else
19742 pbxlibdir="-L${LOG10L_DIR}"
19745 pbxfuncname="log10l"
19746 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19747 AST_LOG10L_FOUND=yes
19748 else
19749 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19750 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19751 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19752 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 ac_check_lib_save_LIBS=$LIBS
19756 LIBS="-lm ${pbxlibdir} $LIBS"
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19764 /* Override any GCC internal prototype to avoid an error.
19765 Use char because int might match the return type of a GCC
19766 builtin and then its argument prototype would still apply. */
19767 #ifdef __cplusplus
19768 extern "C"
19769 #endif
19770 char ${pbxfuncname} ();
19772 main ()
19774 return ${pbxfuncname} ();
19776 return 0;
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } && {
19793 test -z "$ac_c_werror_flag" ||
19794 test ! -s conftest.err
19795 } && test -s conftest$ac_exeext &&
19796 $as_test_x conftest$ac_exeext; then
19797 eval "$as_ac_Lib=yes"
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 eval "$as_ac_Lib=no"
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19809 ac_res=`eval echo '${'$as_ac_Lib'}'`
19810 { echo "$as_me:$LINENO: result: $ac_res" >&5
19811 echo "${ECHO_T}$ac_res" >&6; }
19812 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19813 AST_LOG10L_FOUND=yes
19814 else
19815 AST_LOG10L_FOUND=no
19820 # now check for the header.
19821 if test "${AST_LOG10L_FOUND}" = "yes"; then
19822 LOG10L_LIB="${pbxlibdir} -lm "
19823 # if --with-LOG10L=DIR has been specified, use it.
19824 if test "x${LOG10L_DIR}" != "x"; then
19825 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19827 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19828 if test "x" = "x" ; then # no header, assume found
19829 LOG10L_HEADER_FOUND="1"
19830 else # check for the header
19831 saved_cppflags="${CPPFLAGS}"
19832 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
19833 if test "${ac_cv_header_+set}" = set; then
19834 { echo "$as_me:$LINENO: checking for " >&5
19835 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19836 if test "${ac_cv_header_+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19840 echo "${ECHO_T}$ac_cv_header_" >&6; }
19841 else
19842 # Is the header compilable?
19843 { echo "$as_me:$LINENO: checking usability" >&5
19844 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 $ac_includes_default
19852 #include <>
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest.$ac_objext; then
19871 ac_header_compiler=yes
19872 else
19873 echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 ac_header_compiler=no
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6; }
19883 # Is the header present?
19884 { echo "$as_me:$LINENO: checking presence" >&5
19885 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <>
19893 _ACEOF
19894 if { (ac_try="$ac_cpp conftest.$ac_ext"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } >/dev/null && {
19907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 }; then
19910 ac_header_preproc=yes
19911 else
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_header_preproc=no
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19922 # So? What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924 yes:no: )
19925 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
19931 no:yes:* )
19932 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19944 ( cat <<\_ASBOX
19945 ## ------------------------------- ##
19946 ## Report this to www.asterisk.org ##
19947 ## ------------------------------- ##
19948 _ASBOX
19949 ) | sed "s/^/$as_me: WARNING: /" >&2
19951 esac
19952 { echo "$as_me:$LINENO: checking for " >&5
19953 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19954 if test "${ac_cv_header_+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 ac_cv_header_=$ac_header_preproc
19959 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19960 echo "${ECHO_T}$ac_cv_header_" >&6; }
19963 if test $ac_cv_header_ = yes; then
19964 LOG10L_HEADER_FOUND=1
19965 else
19966 LOG10L_HEADER_FOUND=0
19970 CPPFLAGS="${saved_cppflags}"
19972 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
19973 LOG10L_LIB=""
19974 LOG10L_INCLUDE=""
19975 else
19976 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19977 LOG10L_LIB=""
19979 PBX_LOG10L=1
19980 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_LOG10L 1
19984 _ACEOF
19987 cat >>confdefs.h <<_ACEOF
19988 #define HAVE_LOG10L_VERSION
19989 _ACEOF
19996 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
19997 pbxlibdir=""
19998 # if --with-SINL=DIR has been specified, use it.
19999 if test "x${SINL_DIR}" != "x"; then
20000 if test -d ${SINL_DIR}/lib; then
20001 pbxlibdir="-L${SINL_DIR}/lib"
20002 else
20003 pbxlibdir="-L${SINL_DIR}"
20006 pbxfuncname="sinl"
20007 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20008 AST_SINL_FOUND=yes
20009 else
20010 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20011 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20012 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20013 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lm ${pbxlibdir} $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char ${pbxfuncname} ();
20033 main ()
20035 return ${pbxfuncname} ();
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 eval "$as_ac_Lib=yes"
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 eval "$as_ac_Lib=no"
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20070 ac_res=`eval echo '${'$as_ac_Lib'}'`
20071 { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20073 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20074 AST_SINL_FOUND=yes
20075 else
20076 AST_SINL_FOUND=no
20081 # now check for the header.
20082 if test "${AST_SINL_FOUND}" = "yes"; then
20083 SINL_LIB="${pbxlibdir} -lm "
20084 # if --with-SINL=DIR has been specified, use it.
20085 if test "x${SINL_DIR}" != "x"; then
20086 SINL_INCLUDE="-I${SINL_DIR}/include"
20088 SINL_INCLUDE="${SINL_INCLUDE} "
20089 if test "x" = "x" ; then # no header, assume found
20090 SINL_HEADER_FOUND="1"
20091 else # check for the header
20092 saved_cppflags="${CPPFLAGS}"
20093 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
20094 if test "${ac_cv_header_+set}" = set; then
20095 { echo "$as_me:$LINENO: checking for " >&5
20096 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20097 if test "${ac_cv_header_+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20101 echo "${ECHO_T}$ac_cv_header_" >&6; }
20102 else
20103 # Is the header compilable?
20104 { echo "$as_me:$LINENO: checking usability" >&5
20105 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20106 cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h. */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 $ac_includes_default
20113 #include <>
20114 _ACEOF
20115 rm -f conftest.$ac_objext
20116 if { (ac_try="$ac_compile"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_compile") 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest.$ac_objext; then
20132 ac_header_compiler=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_header_compiler=no
20140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20142 echo "${ECHO_T}$ac_header_compiler" >&6; }
20144 # Is the header present?
20145 { echo "$as_me:$LINENO: checking presence" >&5
20146 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <>
20154 _ACEOF
20155 if { (ac_try="$ac_cpp conftest.$ac_ext"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } >/dev/null && {
20168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 }; then
20171 ac_header_preproc=yes
20172 else
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_preproc=no
20179 rm -f conftest.err conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181 echo "${ECHO_T}$ac_header_preproc" >&6; }
20183 # So? What about this header?
20184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20185 yes:no: )
20186 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20187 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20188 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20189 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20190 ac_header_preproc=yes
20192 no:yes:* )
20193 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20194 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20196 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20198 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20200 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20202 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20204 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20205 ( cat <<\_ASBOX
20206 ## ------------------------------- ##
20207 ## Report this to www.asterisk.org ##
20208 ## ------------------------------- ##
20209 _ASBOX
20210 ) | sed "s/^/$as_me: WARNING: /" >&2
20212 esac
20213 { echo "$as_me:$LINENO: checking for " >&5
20214 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20215 if test "${ac_cv_header_+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 ac_cv_header_=$ac_header_preproc
20220 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20221 echo "${ECHO_T}$ac_cv_header_" >&6; }
20224 if test $ac_cv_header_ = yes; then
20225 SINL_HEADER_FOUND=1
20226 else
20227 SINL_HEADER_FOUND=0
20231 CPPFLAGS="${saved_cppflags}"
20233 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20234 SINL_LIB=""
20235 SINL_INCLUDE=""
20236 else
20237 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20238 SINL_LIB=""
20240 PBX_SINL=1
20241 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_SINL 1
20245 _ACEOF
20248 cat >>confdefs.h <<_ACEOF
20249 #define HAVE_SINL_VERSION
20250 _ACEOF
20257 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20258 pbxlibdir=""
20259 # if --with-COSL=DIR has been specified, use it.
20260 if test "x${COSL_DIR}" != "x"; then
20261 if test -d ${COSL_DIR}/lib; then
20262 pbxlibdir="-L${COSL_DIR}/lib"
20263 else
20264 pbxlibdir="-L${COSL_DIR}"
20267 pbxfuncname="cosl"
20268 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20269 AST_COSL_FOUND=yes
20270 else
20271 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20272 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20273 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20274 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lm ${pbxlibdir} $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char ${pbxfuncname} ();
20294 main ()
20296 return ${pbxfuncname} ();
20298 return 0;
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_link") 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest$ac_exeext &&
20318 $as_test_x conftest$ac_exeext; then
20319 eval "$as_ac_Lib=yes"
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 eval "$as_ac_Lib=no"
20327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20328 conftest$ac_exeext conftest.$ac_ext
20329 LIBS=$ac_check_lib_save_LIBS
20331 ac_res=`eval echo '${'$as_ac_Lib'}'`
20332 { echo "$as_me:$LINENO: result: $ac_res" >&5
20333 echo "${ECHO_T}$ac_res" >&6; }
20334 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20335 AST_COSL_FOUND=yes
20336 else
20337 AST_COSL_FOUND=no
20342 # now check for the header.
20343 if test "${AST_COSL_FOUND}" = "yes"; then
20344 COSL_LIB="${pbxlibdir} -lm "
20345 # if --with-COSL=DIR has been specified, use it.
20346 if test "x${COSL_DIR}" != "x"; then
20347 COSL_INCLUDE="-I${COSL_DIR}/include"
20349 COSL_INCLUDE="${COSL_INCLUDE} "
20350 if test "x" = "x" ; then # no header, assume found
20351 COSL_HEADER_FOUND="1"
20352 else # check for the header
20353 saved_cppflags="${CPPFLAGS}"
20354 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20355 if test "${ac_cv_header_+set}" = set; then
20356 { echo "$as_me:$LINENO: checking for " >&5
20357 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20358 if test "${ac_cv_header_+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20362 echo "${ECHO_T}$ac_cv_header_" >&6; }
20363 else
20364 # Is the header compilable?
20365 { echo "$as_me:$LINENO: checking usability" >&5
20366 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 #include <>
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20393 ac_header_compiler=yes
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_header_compiler=no
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20403 echo "${ECHO_T}$ac_header_compiler" >&6; }
20405 # Is the header present?
20406 { echo "$as_me:$LINENO: checking presence" >&5
20407 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 #include <>
20415 _ACEOF
20416 if { (ac_try="$ac_cpp conftest.$ac_ext"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } >/dev/null && {
20429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 }; then
20432 ac_header_preproc=yes
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_header_preproc=no
20440 rm -f conftest.err conftest.$ac_ext
20441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20442 echo "${ECHO_T}$ac_header_preproc" >&6; }
20444 # So? What about this header?
20445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20446 yes:no: )
20447 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20448 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20450 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20451 ac_header_preproc=yes
20453 no:yes:* )
20454 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20455 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20457 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20459 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20461 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20463 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20465 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20466 ( cat <<\_ASBOX
20467 ## ------------------------------- ##
20468 ## Report this to www.asterisk.org ##
20469 ## ------------------------------- ##
20470 _ASBOX
20471 ) | sed "s/^/$as_me: WARNING: /" >&2
20473 esac
20474 { echo "$as_me:$LINENO: checking for " >&5
20475 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20476 if test "${ac_cv_header_+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479 ac_cv_header_=$ac_header_preproc
20481 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20482 echo "${ECHO_T}$ac_cv_header_" >&6; }
20485 if test $ac_cv_header_ = yes; then
20486 COSL_HEADER_FOUND=1
20487 else
20488 COSL_HEADER_FOUND=0
20492 CPPFLAGS="${saved_cppflags}"
20494 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20495 COSL_LIB=""
20496 COSL_INCLUDE=""
20497 else
20498 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20499 COSL_LIB=""
20501 PBX_COSL=1
20502 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20504 cat >>confdefs.h <<_ACEOF
20505 #define HAVE_COSL 1
20506 _ACEOF
20509 cat >>confdefs.h <<_ACEOF
20510 #define HAVE_COSL_VERSION
20511 _ACEOF
20518 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20519 pbxlibdir=""
20520 # if --with-TANL=DIR has been specified, use it.
20521 if test "x${TANL_DIR}" != "x"; then
20522 if test -d ${TANL_DIR}/lib; then
20523 pbxlibdir="-L${TANL_DIR}/lib"
20524 else
20525 pbxlibdir="-L${TANL_DIR}"
20528 pbxfuncname="tanl"
20529 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20530 AST_TANL_FOUND=yes
20531 else
20532 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20533 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20534 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20535 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538 ac_check_lib_save_LIBS=$LIBS
20539 LIBS="-lm ${pbxlibdir} $LIBS"
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h. */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20547 /* Override any GCC internal prototype to avoid an error.
20548 Use char because int might match the return type of a GCC
20549 builtin and then its argument prototype would still apply. */
20550 #ifdef __cplusplus
20551 extern "C"
20552 #endif
20553 char ${pbxfuncname} ();
20555 main ()
20557 return ${pbxfuncname} ();
20559 return 0;
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_link") 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest$ac_exeext &&
20579 $as_test_x conftest$ac_exeext; then
20580 eval "$as_ac_Lib=yes"
20581 else
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 eval "$as_ac_Lib=no"
20588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20589 conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS
20592 ac_res=`eval echo '${'$as_ac_Lib'}'`
20593 { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20595 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20596 AST_TANL_FOUND=yes
20597 else
20598 AST_TANL_FOUND=no
20603 # now check for the header.
20604 if test "${AST_TANL_FOUND}" = "yes"; then
20605 TANL_LIB="${pbxlibdir} -lm "
20606 # if --with-TANL=DIR has been specified, use it.
20607 if test "x${TANL_DIR}" != "x"; then
20608 TANL_INCLUDE="-I${TANL_DIR}/include"
20610 TANL_INCLUDE="${TANL_INCLUDE} "
20611 if test "x" = "x" ; then # no header, assume found
20612 TANL_HEADER_FOUND="1"
20613 else # check for the header
20614 saved_cppflags="${CPPFLAGS}"
20615 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20616 if test "${ac_cv_header_+set}" = set; then
20617 { echo "$as_me:$LINENO: checking for " >&5
20618 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20619 if test "${ac_cv_header_+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20623 echo "${ECHO_T}$ac_cv_header_" >&6; }
20624 else
20625 # Is the header compilable?
20626 { echo "$as_me:$LINENO: checking usability" >&5
20627 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h. */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 #include <>
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_header_compiler=yes
20655 else
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_compiler=no
20662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20664 echo "${ECHO_T}$ac_header_compiler" >&6; }
20666 # Is the header present?
20667 { echo "$as_me:$LINENO: checking presence" >&5
20668 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20669 cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h. */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20675 #include <>
20676 _ACEOF
20677 if { (ac_try="$ac_cpp conftest.$ac_ext"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } >/dev/null && {
20690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 }; then
20693 ac_header_preproc=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_header_preproc=no
20701 rm -f conftest.err conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20703 echo "${ECHO_T}$ac_header_preproc" >&6; }
20705 # So? What about this header?
20706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20707 yes:no: )
20708 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20709 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20711 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20712 ac_header_preproc=yes
20714 no:yes:* )
20715 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20716 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20718 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20720 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20722 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20724 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20726 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20727 ( cat <<\_ASBOX
20728 ## ------------------------------- ##
20729 ## Report this to www.asterisk.org ##
20730 ## ------------------------------- ##
20731 _ASBOX
20732 ) | sed "s/^/$as_me: WARNING: /" >&2
20734 esac
20735 { echo "$as_me:$LINENO: checking for " >&5
20736 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20737 if test "${ac_cv_header_+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740 ac_cv_header_=$ac_header_preproc
20742 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20743 echo "${ECHO_T}$ac_cv_header_" >&6; }
20746 if test $ac_cv_header_ = yes; then
20747 TANL_HEADER_FOUND=1
20748 else
20749 TANL_HEADER_FOUND=0
20753 CPPFLAGS="${saved_cppflags}"
20755 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20756 TANL_LIB=""
20757 TANL_INCLUDE=""
20758 else
20759 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20760 TANL_LIB=""
20762 PBX_TANL=1
20763 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_TANL 1
20767 _ACEOF
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_TANL_VERSION
20772 _ACEOF
20779 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20780 pbxlibdir=""
20781 # if --with-ASINL=DIR has been specified, use it.
20782 if test "x${ASINL_DIR}" != "x"; then
20783 if test -d ${ASINL_DIR}/lib; then
20784 pbxlibdir="-L${ASINL_DIR}/lib"
20785 else
20786 pbxlibdir="-L${ASINL_DIR}"
20789 pbxfuncname="asinl"
20790 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20791 AST_ASINL_FOUND=yes
20792 else
20793 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20794 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20795 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20796 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lm ${pbxlibdir} $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 /* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20811 #ifdef __cplusplus
20812 extern "C"
20813 #endif
20814 char ${pbxfuncname} ();
20816 main ()
20818 return ${pbxfuncname} ();
20820 return 0;
20822 _ACEOF
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_link") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest$ac_exeext &&
20840 $as_test_x conftest$ac_exeext; then
20841 eval "$as_ac_Lib=yes"
20842 else
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 eval "$as_ac_Lib=no"
20849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20850 conftest$ac_exeext conftest.$ac_ext
20851 LIBS=$ac_check_lib_save_LIBS
20853 ac_res=`eval echo '${'$as_ac_Lib'}'`
20854 { echo "$as_me:$LINENO: result: $ac_res" >&5
20855 echo "${ECHO_T}$ac_res" >&6; }
20856 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20857 AST_ASINL_FOUND=yes
20858 else
20859 AST_ASINL_FOUND=no
20864 # now check for the header.
20865 if test "${AST_ASINL_FOUND}" = "yes"; then
20866 ASINL_LIB="${pbxlibdir} -lm "
20867 # if --with-ASINL=DIR has been specified, use it.
20868 if test "x${ASINL_DIR}" != "x"; then
20869 ASINL_INCLUDE="-I${ASINL_DIR}/include"
20871 ASINL_INCLUDE="${ASINL_INCLUDE} "
20872 if test "x" = "x" ; then # no header, assume found
20873 ASINL_HEADER_FOUND="1"
20874 else # check for the header
20875 saved_cppflags="${CPPFLAGS}"
20876 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
20877 if test "${ac_cv_header_+set}" = set; then
20878 { echo "$as_me:$LINENO: checking for " >&5
20879 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20880 if test "${ac_cv_header_+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20883 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20884 echo "${ECHO_T}$ac_cv_header_" >&6; }
20885 else
20886 # Is the header compilable?
20887 { echo "$as_me:$LINENO: checking usability" >&5
20888 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 $ac_includes_default
20896 #include <>
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20906 ac_status=$?
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } && {
20912 test -z "$ac_c_werror_flag" ||
20913 test ! -s conftest.err
20914 } && test -s conftest.$ac_objext; then
20915 ac_header_compiler=yes
20916 else
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_header_compiler=no
20923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20925 echo "${ECHO_T}$ac_header_compiler" >&6; }
20927 # Is the header present?
20928 { echo "$as_me:$LINENO: checking presence" >&5
20929 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20930 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 #include <>
20937 _ACEOF
20938 if { (ac_try="$ac_cpp conftest.$ac_ext"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } >/dev/null && {
20951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 }; then
20954 ac_header_preproc=yes
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_header_preproc=no
20962 rm -f conftest.err conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20964 echo "${ECHO_T}$ac_header_preproc" >&6; }
20966 # So? What about this header?
20967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20968 yes:no: )
20969 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20970 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20972 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20973 ac_header_preproc=yes
20975 no:yes:* )
20976 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20977 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20979 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20981 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20983 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20985 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20986 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20987 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20988 ( cat <<\_ASBOX
20989 ## ------------------------------- ##
20990 ## Report this to www.asterisk.org ##
20991 ## ------------------------------- ##
20992 _ASBOX
20993 ) | sed "s/^/$as_me: WARNING: /" >&2
20995 esac
20996 { echo "$as_me:$LINENO: checking for " >&5
20997 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20998 if test "${ac_cv_header_+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 else
21001 ac_cv_header_=$ac_header_preproc
21003 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21004 echo "${ECHO_T}$ac_cv_header_" >&6; }
21007 if test $ac_cv_header_ = yes; then
21008 ASINL_HEADER_FOUND=1
21009 else
21010 ASINL_HEADER_FOUND=0
21014 CPPFLAGS="${saved_cppflags}"
21016 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21017 ASINL_LIB=""
21018 ASINL_INCLUDE=""
21019 else
21020 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21021 ASINL_LIB=""
21023 PBX_ASINL=1
21024 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21026 cat >>confdefs.h <<_ACEOF
21027 #define HAVE_ASINL 1
21028 _ACEOF
21031 cat >>confdefs.h <<_ACEOF
21032 #define HAVE_ASINL_VERSION
21033 _ACEOF
21040 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21041 pbxlibdir=""
21042 # if --with-ACOSL=DIR has been specified, use it.
21043 if test "x${ACOSL_DIR}" != "x"; then
21044 if test -d ${ACOSL_DIR}/lib; then
21045 pbxlibdir="-L${ACOSL_DIR}/lib"
21046 else
21047 pbxlibdir="-L${ACOSL_DIR}"
21050 pbxfuncname="acosl"
21051 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21052 AST_ACOSL_FOUND=yes
21053 else
21054 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21055 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21056 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060 ac_check_lib_save_LIBS=$LIBS
21061 LIBS="-lm ${pbxlibdir} $LIBS"
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h. */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21069 /* Override any GCC internal prototype to avoid an error.
21070 Use char because int might match the return type of a GCC
21071 builtin and then its argument prototype would still apply. */
21072 #ifdef __cplusplus
21073 extern "C"
21074 #endif
21075 char ${pbxfuncname} ();
21077 main ()
21079 return ${pbxfuncname} ();
21081 return 0;
21083 _ACEOF
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (ac_try="$ac_link"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_link") 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest$ac_exeext &&
21101 $as_test_x conftest$ac_exeext; then
21102 eval "$as_ac_Lib=yes"
21103 else
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 eval "$as_ac_Lib=no"
21110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21111 conftest$ac_exeext conftest.$ac_ext
21112 LIBS=$ac_check_lib_save_LIBS
21114 ac_res=`eval echo '${'$as_ac_Lib'}'`
21115 { echo "$as_me:$LINENO: result: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21117 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21118 AST_ACOSL_FOUND=yes
21119 else
21120 AST_ACOSL_FOUND=no
21125 # now check for the header.
21126 if test "${AST_ACOSL_FOUND}" = "yes"; then
21127 ACOSL_LIB="${pbxlibdir} -lm "
21128 # if --with-ACOSL=DIR has been specified, use it.
21129 if test "x${ACOSL_DIR}" != "x"; then
21130 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21132 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21133 if test "x" = "x" ; then # no header, assume found
21134 ACOSL_HEADER_FOUND="1"
21135 else # check for the header
21136 saved_cppflags="${CPPFLAGS}"
21137 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
21138 if test "${ac_cv_header_+set}" = set; then
21139 { echo "$as_me:$LINENO: checking for " >&5
21140 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21141 if test "${ac_cv_header_+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21145 echo "${ECHO_T}$ac_cv_header_" >&6; }
21146 else
21147 # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking usability" >&5
21149 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21157 #include <>
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 ac_header_compiler=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking presence" >&5
21190 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <>
21198 _ACEOF
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 }; then
21215 ac_header_preproc=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229 yes:no: )
21230 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21236 no:yes:* )
21237 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21249 ( cat <<\_ASBOX
21250 ## ------------------------------- ##
21251 ## Report this to www.asterisk.org ##
21252 ## ------------------------------- ##
21253 _ASBOX
21254 ) | sed "s/^/$as_me: WARNING: /" >&2
21256 esac
21257 { echo "$as_me:$LINENO: checking for " >&5
21258 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21259 if test "${ac_cv_header_+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262 ac_cv_header_=$ac_header_preproc
21264 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21265 echo "${ECHO_T}$ac_cv_header_" >&6; }
21268 if test $ac_cv_header_ = yes; then
21269 ACOSL_HEADER_FOUND=1
21270 else
21271 ACOSL_HEADER_FOUND=0
21275 CPPFLAGS="${saved_cppflags}"
21277 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21278 ACOSL_LIB=""
21279 ACOSL_INCLUDE=""
21280 else
21281 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21282 ACOSL_LIB=""
21284 PBX_ACOSL=1
21285 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21287 cat >>confdefs.h <<_ACEOF
21288 #define HAVE_ACOSL 1
21289 _ACEOF
21292 cat >>confdefs.h <<_ACEOF
21293 #define HAVE_ACOSL_VERSION
21294 _ACEOF
21301 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21302 pbxlibdir=""
21303 # if --with-ATANL=DIR has been specified, use it.
21304 if test "x${ATANL_DIR}" != "x"; then
21305 if test -d ${ATANL_DIR}/lib; then
21306 pbxlibdir="-L${ATANL_DIR}/lib"
21307 else
21308 pbxlibdir="-L${ATANL_DIR}"
21311 pbxfuncname="atanl"
21312 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21313 AST_ATANL_FOUND=yes
21314 else
21315 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21316 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21317 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21318 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321 ac_check_lib_save_LIBS=$LIBS
21322 LIBS="-lm ${pbxlibdir} $LIBS"
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h. */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21330 /* Override any GCC internal prototype to avoid an error.
21331 Use char because int might match the return type of a GCC
21332 builtin and then its argument prototype would still apply. */
21333 #ifdef __cplusplus
21334 extern "C"
21335 #endif
21336 char ${pbxfuncname} ();
21338 main ()
21340 return ${pbxfuncname} ();
21342 return 0;
21344 _ACEOF
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_link") 2>conftest.er1
21353 ac_status=$?
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && {
21359 test -z "$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21361 } && test -s conftest$ac_exeext &&
21362 $as_test_x conftest$ac_exeext; then
21363 eval "$as_ac_Lib=yes"
21364 else
21365 echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 eval "$as_ac_Lib=no"
21371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21372 conftest$ac_exeext conftest.$ac_ext
21373 LIBS=$ac_check_lib_save_LIBS
21375 ac_res=`eval echo '${'$as_ac_Lib'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21378 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21379 AST_ATANL_FOUND=yes
21380 else
21381 AST_ATANL_FOUND=no
21386 # now check for the header.
21387 if test "${AST_ATANL_FOUND}" = "yes"; then
21388 ATANL_LIB="${pbxlibdir} -lm "
21389 # if --with-ATANL=DIR has been specified, use it.
21390 if test "x${ATANL_DIR}" != "x"; then
21391 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21393 ATANL_INCLUDE="${ATANL_INCLUDE} "
21394 if test "x" = "x" ; then # no header, assume found
21395 ATANL_HEADER_FOUND="1"
21396 else # check for the header
21397 saved_cppflags="${CPPFLAGS}"
21398 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21399 if test "${ac_cv_header_+set}" = set; then
21400 { echo "$as_me:$LINENO: checking for " >&5
21401 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21402 if test "${ac_cv_header_+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21406 echo "${ECHO_T}$ac_cv_header_" >&6; }
21407 else
21408 # Is the header compilable?
21409 { echo "$as_me:$LINENO: checking usability" >&5
21410 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21418 #include <>
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.$ac_objext; then
21437 ac_header_compiler=yes
21438 else
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_header_compiler=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21447 echo "${ECHO_T}$ac_header_compiler" >&6; }
21449 # Is the header present?
21450 { echo "$as_me:$LINENO: checking presence" >&5
21451 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <>
21459 _ACEOF
21460 if { (ac_try="$ac_cpp conftest.$ac_ext"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } >/dev/null && {
21473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 }; then
21476 ac_header_preproc=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_header_preproc=no
21484 rm -f conftest.err conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21486 echo "${ECHO_T}$ac_header_preproc" >&6; }
21488 # So? What about this header?
21489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21490 yes:no: )
21491 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21492 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21494 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21495 ac_header_preproc=yes
21497 no:yes:* )
21498 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21499 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21501 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21503 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21505 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21507 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21509 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21510 ( cat <<\_ASBOX
21511 ## ------------------------------- ##
21512 ## Report this to www.asterisk.org ##
21513 ## ------------------------------- ##
21514 _ASBOX
21515 ) | sed "s/^/$as_me: WARNING: /" >&2
21517 esac
21518 { echo "$as_me:$LINENO: checking for " >&5
21519 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21520 if test "${ac_cv_header_+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523 ac_cv_header_=$ac_header_preproc
21525 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21526 echo "${ECHO_T}$ac_cv_header_" >&6; }
21529 if test $ac_cv_header_ = yes; then
21530 ATANL_HEADER_FOUND=1
21531 else
21532 ATANL_HEADER_FOUND=0
21536 CPPFLAGS="${saved_cppflags}"
21538 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21539 ATANL_LIB=""
21540 ATANL_INCLUDE=""
21541 else
21542 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21543 ATANL_LIB=""
21545 PBX_ATANL=1
21546 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21548 cat >>confdefs.h <<_ACEOF
21549 #define HAVE_ATANL 1
21550 _ACEOF
21553 cat >>confdefs.h <<_ACEOF
21554 #define HAVE_ATANL_VERSION
21555 _ACEOF
21562 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21563 pbxlibdir=""
21564 # if --with-ATAN2L=DIR has been specified, use it.
21565 if test "x${ATAN2L_DIR}" != "x"; then
21566 if test -d ${ATAN2L_DIR}/lib; then
21567 pbxlibdir="-L${ATAN2L_DIR}/lib"
21568 else
21569 pbxlibdir="-L${ATAN2L_DIR}"
21572 pbxfuncname="atan2l"
21573 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21574 AST_ATAN2L_FOUND=yes
21575 else
21576 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21577 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21578 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21579 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582 ac_check_lib_save_LIBS=$LIBS
21583 LIBS="-lm ${pbxlibdir} $LIBS"
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21591 /* Override any GCC internal prototype to avoid an error.
21592 Use char because int might match the return type of a GCC
21593 builtin and then its argument prototype would still apply. */
21594 #ifdef __cplusplus
21595 extern "C"
21596 #endif
21597 char ${pbxfuncname} ();
21599 main ()
21601 return ${pbxfuncname} ();
21603 return 0;
21605 _ACEOF
21606 rm -f conftest.$ac_objext conftest$ac_exeext
21607 if { (ac_try="$ac_link"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_link") 2>conftest.er1
21614 ac_status=$?
21615 grep -v '^ *+' conftest.er1 >conftest.err
21616 rm -f conftest.er1
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } && {
21620 test -z "$ac_c_werror_flag" ||
21621 test ! -s conftest.err
21622 } && test -s conftest$ac_exeext &&
21623 $as_test_x conftest$ac_exeext; then
21624 eval "$as_ac_Lib=yes"
21625 else
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 eval "$as_ac_Lib=no"
21632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21633 conftest$ac_exeext conftest.$ac_ext
21634 LIBS=$ac_check_lib_save_LIBS
21636 ac_res=`eval echo '${'$as_ac_Lib'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21639 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21640 AST_ATAN2L_FOUND=yes
21641 else
21642 AST_ATAN2L_FOUND=no
21647 # now check for the header.
21648 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21649 ATAN2L_LIB="${pbxlibdir} -lm "
21650 # if --with-ATAN2L=DIR has been specified, use it.
21651 if test "x${ATAN2L_DIR}" != "x"; then
21652 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21654 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21655 if test "x" = "x" ; then # no header, assume found
21656 ATAN2L_HEADER_FOUND="1"
21657 else # check for the header
21658 saved_cppflags="${CPPFLAGS}"
21659 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21660 if test "${ac_cv_header_+set}" = set; then
21661 { echo "$as_me:$LINENO: checking for " >&5
21662 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21663 if test "${ac_cv_header_+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21667 echo "${ECHO_T}$ac_cv_header_" >&6; }
21668 else
21669 # Is the header compilable?
21670 { echo "$as_me:$LINENO: checking usability" >&5
21671 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 $ac_includes_default
21679 #include <>
21680 _ACEOF
21681 rm -f conftest.$ac_objext
21682 if { (ac_try="$ac_compile"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 ac_header_compiler=yes
21699 else
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_header_compiler=no
21706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21708 echo "${ECHO_T}$ac_header_compiler" >&6; }
21710 # Is the header present?
21711 { echo "$as_me:$LINENO: checking presence" >&5
21712 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 #include <>
21720 _ACEOF
21721 if { (ac_try="$ac_cpp conftest.$ac_ext"
21722 case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21725 esac
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21728 ac_status=$?
21729 grep -v '^ *+' conftest.er1 >conftest.err
21730 rm -f conftest.er1
21731 cat conftest.err >&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } >/dev/null && {
21734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21736 }; then
21737 ac_header_preproc=yes
21738 else
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_header_preproc=no
21745 rm -f conftest.err conftest.$ac_ext
21746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747 echo "${ECHO_T}$ac_header_preproc" >&6; }
21749 # So? What about this header?
21750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 yes:no: )
21752 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21753 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21755 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21756 ac_header_preproc=yes
21758 no:yes:* )
21759 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21764 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21766 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21768 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21770 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21771 ( cat <<\_ASBOX
21772 ## ------------------------------- ##
21773 ## Report this to www.asterisk.org ##
21774 ## ------------------------------- ##
21775 _ASBOX
21776 ) | sed "s/^/$as_me: WARNING: /" >&2
21778 esac
21779 { echo "$as_me:$LINENO: checking for " >&5
21780 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21781 if test "${ac_cv_header_+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 else
21784 ac_cv_header_=$ac_header_preproc
21786 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21787 echo "${ECHO_T}$ac_cv_header_" >&6; }
21790 if test $ac_cv_header_ = yes; then
21791 ATAN2L_HEADER_FOUND=1
21792 else
21793 ATAN2L_HEADER_FOUND=0
21797 CPPFLAGS="${saved_cppflags}"
21799 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21800 ATAN2L_LIB=""
21801 ATAN2L_INCLUDE=""
21802 else
21803 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21804 ATAN2L_LIB=""
21806 PBX_ATAN2L=1
21807 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_ATAN2L 1
21811 _ACEOF
21814 cat >>confdefs.h <<_ACEOF
21815 #define HAVE_ATAN2L_VERSION
21816 _ACEOF
21823 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21824 pbxlibdir=""
21825 # if --with-POWL=DIR has been specified, use it.
21826 if test "x${POWL_DIR}" != "x"; then
21827 if test -d ${POWL_DIR}/lib; then
21828 pbxlibdir="-L${POWL_DIR}/lib"
21829 else
21830 pbxlibdir="-L${POWL_DIR}"
21833 pbxfuncname="powl"
21834 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21835 AST_POWL_FOUND=yes
21836 else
21837 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21838 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21839 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21840 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lm ${pbxlibdir} $LIBS"
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 /* Override any GCC internal prototype to avoid an error.
21853 Use char because int might match the return type of a GCC
21854 builtin and then its argument prototype would still apply. */
21855 #ifdef __cplusplus
21856 extern "C"
21857 #endif
21858 char ${pbxfuncname} ();
21860 main ()
21862 return ${pbxfuncname} ();
21864 return 0;
21866 _ACEOF
21867 rm -f conftest.$ac_objext conftest$ac_exeext
21868 if { (ac_try="$ac_link"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_link") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest$ac_exeext &&
21884 $as_test_x conftest$ac_exeext; then
21885 eval "$as_ac_Lib=yes"
21886 else
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 eval "$as_ac_Lib=no"
21893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21894 conftest$ac_exeext conftest.$ac_ext
21895 LIBS=$ac_check_lib_save_LIBS
21897 ac_res=`eval echo '${'$as_ac_Lib'}'`
21898 { echo "$as_me:$LINENO: result: $ac_res" >&5
21899 echo "${ECHO_T}$ac_res" >&6; }
21900 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21901 AST_POWL_FOUND=yes
21902 else
21903 AST_POWL_FOUND=no
21908 # now check for the header.
21909 if test "${AST_POWL_FOUND}" = "yes"; then
21910 POWL_LIB="${pbxlibdir} -lm "
21911 # if --with-POWL=DIR has been specified, use it.
21912 if test "x${POWL_DIR}" != "x"; then
21913 POWL_INCLUDE="-I${POWL_DIR}/include"
21915 POWL_INCLUDE="${POWL_INCLUDE} "
21916 if test "x" = "x" ; then # no header, assume found
21917 POWL_HEADER_FOUND="1"
21918 else # check for the header
21919 saved_cppflags="${CPPFLAGS}"
21920 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
21921 if test "${ac_cv_header_+set}" = set; then
21922 { echo "$as_me:$LINENO: checking for " >&5
21923 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21924 if test "${ac_cv_header_+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21928 echo "${ECHO_T}$ac_cv_header_" >&6; }
21929 else
21930 # Is the header compilable?
21931 { echo "$as_me:$LINENO: checking usability" >&5
21932 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21940 #include <>
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21950 ac_status=$?
21951 grep -v '^ *+' conftest.er1 >conftest.err
21952 rm -f conftest.er1
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21959 ac_header_compiler=yes
21960 else
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 ac_header_compiler=no
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21969 echo "${ECHO_T}$ac_header_compiler" >&6; }
21971 # Is the header present?
21972 { echo "$as_me:$LINENO: checking presence" >&5
21973 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <>
21981 _ACEOF
21982 if { (ac_try="$ac_cpp conftest.$ac_ext"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev/null && {
21995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 }; then
21998 ac_header_preproc=yes
21999 else
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_header_preproc=no
22006 rm -f conftest.err conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22008 echo "${ECHO_T}$ac_header_preproc" >&6; }
22010 # So? What about this header?
22011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22012 yes:no: )
22013 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22014 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22016 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22017 ac_header_preproc=yes
22019 no:yes:* )
22020 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22021 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22023 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22025 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22027 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22029 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22031 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22032 ( cat <<\_ASBOX
22033 ## ------------------------------- ##
22034 ## Report this to www.asterisk.org ##
22035 ## ------------------------------- ##
22036 _ASBOX
22037 ) | sed "s/^/$as_me: WARNING: /" >&2
22039 esac
22040 { echo "$as_me:$LINENO: checking for " >&5
22041 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22042 if test "${ac_cv_header_+set}" = set; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045 ac_cv_header_=$ac_header_preproc
22047 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22048 echo "${ECHO_T}$ac_cv_header_" >&6; }
22051 if test $ac_cv_header_ = yes; then
22052 POWL_HEADER_FOUND=1
22053 else
22054 POWL_HEADER_FOUND=0
22058 CPPFLAGS="${saved_cppflags}"
22060 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22061 POWL_LIB=""
22062 POWL_INCLUDE=""
22063 else
22064 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22065 POWL_LIB=""
22067 PBX_POWL=1
22068 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_POWL 1
22072 _ACEOF
22075 cat >>confdefs.h <<_ACEOF
22076 #define HAVE_POWL_VERSION
22077 _ACEOF
22084 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22085 pbxlibdir=""
22086 # if --with-SQRTL=DIR has been specified, use it.
22087 if test "x${SQRTL_DIR}" != "x"; then
22088 if test -d ${SQRTL_DIR}/lib; then
22089 pbxlibdir="-L${SQRTL_DIR}/lib"
22090 else
22091 pbxlibdir="-L${SQRTL_DIR}"
22094 pbxfuncname="sqrtl"
22095 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22096 AST_SQRTL_FOUND=yes
22097 else
22098 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22099 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22100 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104 ac_check_lib_save_LIBS=$LIBS
22105 LIBS="-lm ${pbxlibdir} $LIBS"
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h. */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22113 /* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22116 #ifdef __cplusplus
22117 extern "C"
22118 #endif
22119 char ${pbxfuncname} ();
22121 main ()
22123 return ${pbxfuncname} ();
22125 return 0;
22127 _ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest$ac_exeext &&
22145 $as_test_x conftest$ac_exeext; then
22146 eval "$as_ac_Lib=yes"
22147 else
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 eval "$as_ac_Lib=no"
22154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22155 conftest$ac_exeext conftest.$ac_ext
22156 LIBS=$ac_check_lib_save_LIBS
22158 ac_res=`eval echo '${'$as_ac_Lib'}'`
22159 { echo "$as_me:$LINENO: result: $ac_res" >&5
22160 echo "${ECHO_T}$ac_res" >&6; }
22161 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22162 AST_SQRTL_FOUND=yes
22163 else
22164 AST_SQRTL_FOUND=no
22169 # now check for the header.
22170 if test "${AST_SQRTL_FOUND}" = "yes"; then
22171 SQRTL_LIB="${pbxlibdir} -lm "
22172 # if --with-SQRTL=DIR has been specified, use it.
22173 if test "x${SQRTL_DIR}" != "x"; then
22174 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22176 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22177 if test "x" = "x" ; then # no header, assume found
22178 SQRTL_HEADER_FOUND="1"
22179 else # check for the header
22180 saved_cppflags="${CPPFLAGS}"
22181 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
22182 if test "${ac_cv_header_+set}" = set; then
22183 { echo "$as_me:$LINENO: checking for " >&5
22184 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22185 if test "${ac_cv_header_+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22189 echo "${ECHO_T}$ac_cv_header_" >&6; }
22190 else
22191 # Is the header compilable?
22192 { echo "$as_me:$LINENO: checking usability" >&5
22193 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 $ac_includes_default
22201 #include <>
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (ac_try="$ac_compile"
22205 case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_compile") 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && {
22217 test -z "$ac_c_werror_flag" ||
22218 test ! -s conftest.err
22219 } && test -s conftest.$ac_objext; then
22220 ac_header_compiler=yes
22221 else
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22225 ac_header_compiler=no
22228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22230 echo "${ECHO_T}$ac_header_compiler" >&6; }
22232 # Is the header present?
22233 { echo "$as_me:$LINENO: checking presence" >&5
22234 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 #include <>
22242 _ACEOF
22243 if { (ac_try="$ac_cpp conftest.$ac_ext"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } >/dev/null && {
22256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 }; then
22259 ac_header_preproc=yes
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_header_preproc=no
22267 rm -f conftest.err conftest.$ac_ext
22268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22269 echo "${ECHO_T}$ac_header_preproc" >&6; }
22271 # So? What about this header?
22272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22273 yes:no: )
22274 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22275 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22276 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22277 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22278 ac_header_preproc=yes
22280 no:yes:* )
22281 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22282 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22283 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22284 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22285 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22286 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22288 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22290 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22292 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22293 ( cat <<\_ASBOX
22294 ## ------------------------------- ##
22295 ## Report this to www.asterisk.org ##
22296 ## ------------------------------- ##
22297 _ASBOX
22298 ) | sed "s/^/$as_me: WARNING: /" >&2
22300 esac
22301 { echo "$as_me:$LINENO: checking for " >&5
22302 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22303 if test "${ac_cv_header_+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306 ac_cv_header_=$ac_header_preproc
22308 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22309 echo "${ECHO_T}$ac_cv_header_" >&6; }
22312 if test $ac_cv_header_ = yes; then
22313 SQRTL_HEADER_FOUND=1
22314 else
22315 SQRTL_HEADER_FOUND=0
22319 CPPFLAGS="${saved_cppflags}"
22321 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22322 SQRTL_LIB=""
22323 SQRTL_INCLUDE=""
22324 else
22325 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22326 SQRTL_LIB=""
22328 PBX_SQRTL=1
22329 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22331 cat >>confdefs.h <<_ACEOF
22332 #define HAVE_SQRTL 1
22333 _ACEOF
22336 cat >>confdefs.h <<_ACEOF
22337 #define HAVE_SQRTL_VERSION
22338 _ACEOF
22345 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22346 pbxlibdir=""
22347 # if --with-RINTL=DIR has been specified, use it.
22348 if test "x${RINTL_DIR}" != "x"; then
22349 if test -d ${RINTL_DIR}/lib; then
22350 pbxlibdir="-L${RINTL_DIR}/lib"
22351 else
22352 pbxlibdir="-L${RINTL_DIR}"
22355 pbxfuncname="rintl"
22356 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22357 AST_RINTL_FOUND=yes
22358 else
22359 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22360 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22361 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22362 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365 ac_check_lib_save_LIBS=$LIBS
22366 LIBS="-lm ${pbxlibdir} $LIBS"
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22377 #ifdef __cplusplus
22378 extern "C"
22379 #endif
22380 char ${pbxfuncname} ();
22382 main ()
22384 return ${pbxfuncname} ();
22386 return 0;
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>conftest.er1
22397 ac_status=$?
22398 grep -v '^ *+' conftest.er1 >conftest.err
22399 rm -f conftest.er1
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest$ac_exeext &&
22406 $as_test_x conftest$ac_exeext; then
22407 eval "$as_ac_Lib=yes"
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 eval "$as_ac_Lib=no"
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS
22419 ac_res=`eval echo '${'$as_ac_Lib'}'`
22420 { echo "$as_me:$LINENO: result: $ac_res" >&5
22421 echo "${ECHO_T}$ac_res" >&6; }
22422 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22423 AST_RINTL_FOUND=yes
22424 else
22425 AST_RINTL_FOUND=no
22430 # now check for the header.
22431 if test "${AST_RINTL_FOUND}" = "yes"; then
22432 RINTL_LIB="${pbxlibdir} -lm "
22433 # if --with-RINTL=DIR has been specified, use it.
22434 if test "x${RINTL_DIR}" != "x"; then
22435 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22437 RINTL_INCLUDE="${RINTL_INCLUDE} "
22438 if test "x" = "x" ; then # no header, assume found
22439 RINTL_HEADER_FOUND="1"
22440 else # check for the header
22441 saved_cppflags="${CPPFLAGS}"
22442 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22443 if test "${ac_cv_header_+set}" = set; then
22444 { echo "$as_me:$LINENO: checking for " >&5
22445 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22446 if test "${ac_cv_header_+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22450 echo "${ECHO_T}$ac_cv_header_" >&6; }
22451 else
22452 # Is the header compilable?
22453 { echo "$as_me:$LINENO: checking usability" >&5
22454 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 $ac_includes_default
22462 #include <>
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22472 ac_status=$?
22473 grep -v '^ *+' conftest.er1 >conftest.err
22474 rm -f conftest.er1
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest.$ac_objext; then
22481 ac_header_compiler=yes
22482 else
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_header_compiler=no
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22491 echo "${ECHO_T}$ac_header_compiler" >&6; }
22493 # Is the header present?
22494 { echo "$as_me:$LINENO: checking presence" >&5
22495 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 #include <>
22503 _ACEOF
22504 if { (ac_try="$ac_cpp conftest.$ac_ext"
22505 case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22511 ac_status=$?
22512 grep -v '^ *+' conftest.er1 >conftest.err
22513 rm -f conftest.er1
22514 cat conftest.err >&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } >/dev/null && {
22517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22518 test ! -s conftest.err
22519 }; then
22520 ac_header_preproc=yes
22521 else
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ac_header_preproc=no
22528 rm -f conftest.err conftest.$ac_ext
22529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22530 echo "${ECHO_T}$ac_header_preproc" >&6; }
22532 # So? What about this header?
22533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22534 yes:no: )
22535 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22536 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22537 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22538 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22539 ac_header_preproc=yes
22541 no:yes:* )
22542 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22543 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22544 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22545 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22547 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22548 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22549 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22550 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22551 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22553 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22554 ( cat <<\_ASBOX
22555 ## ------------------------------- ##
22556 ## Report this to www.asterisk.org ##
22557 ## ------------------------------- ##
22558 _ASBOX
22559 ) | sed "s/^/$as_me: WARNING: /" >&2
22561 esac
22562 { echo "$as_me:$LINENO: checking for " >&5
22563 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 ac_cv_header_=$ac_header_preproc
22569 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22570 echo "${ECHO_T}$ac_cv_header_" >&6; }
22573 if test $ac_cv_header_ = yes; then
22574 RINTL_HEADER_FOUND=1
22575 else
22576 RINTL_HEADER_FOUND=0
22580 CPPFLAGS="${saved_cppflags}"
22582 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22583 RINTL_LIB=""
22584 RINTL_INCLUDE=""
22585 else
22586 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22587 RINTL_LIB=""
22589 PBX_RINTL=1
22590 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22592 cat >>confdefs.h <<_ACEOF
22593 #define HAVE_RINTL 1
22594 _ACEOF
22597 cat >>confdefs.h <<_ACEOF
22598 #define HAVE_RINTL_VERSION
22599 _ACEOF
22606 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22607 pbxlibdir=""
22608 # if --with-EXPL=DIR has been specified, use it.
22609 if test "x${EXPL_DIR}" != "x"; then
22610 if test -d ${EXPL_DIR}/lib; then
22611 pbxlibdir="-L${EXPL_DIR}/lib"
22612 else
22613 pbxlibdir="-L${EXPL_DIR}"
22616 pbxfuncname="expl"
22617 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22618 AST_EXPL_FOUND=yes
22619 else
22620 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22621 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22622 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22623 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626 ac_check_lib_save_LIBS=$LIBS
22627 LIBS="-lm ${pbxlibdir} $LIBS"
22628 cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h. */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22635 /* Override any GCC internal prototype to avoid an error.
22636 Use char because int might match the return type of a GCC
22637 builtin and then its argument prototype would still apply. */
22638 #ifdef __cplusplus
22639 extern "C"
22640 #endif
22641 char ${pbxfuncname} ();
22643 main ()
22645 return ${pbxfuncname} ();
22647 return 0;
22649 _ACEOF
22650 rm -f conftest.$ac_objext conftest$ac_exeext
22651 if { (ac_try="$ac_link"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_link") 2>conftest.er1
22658 ac_status=$?
22659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest$ac_exeext &&
22667 $as_test_x conftest$ac_exeext; then
22668 eval "$as_ac_Lib=yes"
22669 else
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22673 eval "$as_ac_Lib=no"
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 ac_res=`eval echo '${'$as_ac_Lib'}'`
22681 { echo "$as_me:$LINENO: result: $ac_res" >&5
22682 echo "${ECHO_T}$ac_res" >&6; }
22683 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22684 AST_EXPL_FOUND=yes
22685 else
22686 AST_EXPL_FOUND=no
22691 # now check for the header.
22692 if test "${AST_EXPL_FOUND}" = "yes"; then
22693 EXPL_LIB="${pbxlibdir} -lm "
22694 # if --with-EXPL=DIR has been specified, use it.
22695 if test "x${EXPL_DIR}" != "x"; then
22696 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22698 EXPL_INCLUDE="${EXPL_INCLUDE} "
22699 if test "x" = "x" ; then # no header, assume found
22700 EXPL_HEADER_FOUND="1"
22701 else # check for the header
22702 saved_cppflags="${CPPFLAGS}"
22703 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22704 if test "${ac_cv_header_+set}" = set; then
22705 { echo "$as_me:$LINENO: checking for " >&5
22706 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22707 if test "${ac_cv_header_+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22711 echo "${ECHO_T}$ac_cv_header_" >&6; }
22712 else
22713 # Is the header compilable?
22714 { echo "$as_me:$LINENO: checking usability" >&5
22715 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 #include <>
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_header_compiler=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_header_compiler=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22752 echo "${ECHO_T}$ac_header_compiler" >&6; }
22754 # Is the header present?
22755 { echo "$as_me:$LINENO: checking presence" >&5
22756 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <>
22764 _ACEOF
22765 if { (ac_try="$ac_cpp conftest.$ac_ext"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22772 ac_status=$?
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } >/dev/null && {
22778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 }; then
22781 ac_header_preproc=yes
22782 else
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_header_preproc=no
22789 rm -f conftest.err conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22791 echo "${ECHO_T}$ac_header_preproc" >&6; }
22793 # So? What about this header?
22794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22795 yes:no: )
22796 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22797 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22798 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22799 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22800 ac_header_preproc=yes
22802 no:yes:* )
22803 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22804 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22806 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22807 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22808 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22809 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22810 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22811 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22812 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22813 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22814 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22815 ( cat <<\_ASBOX
22816 ## ------------------------------- ##
22817 ## Report this to www.asterisk.org ##
22818 ## ------------------------------- ##
22819 _ASBOX
22820 ) | sed "s/^/$as_me: WARNING: /" >&2
22822 esac
22823 { echo "$as_me:$LINENO: checking for " >&5
22824 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22825 if test "${ac_cv_header_+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828 ac_cv_header_=$ac_header_preproc
22830 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22831 echo "${ECHO_T}$ac_cv_header_" >&6; }
22834 if test $ac_cv_header_ = yes; then
22835 EXPL_HEADER_FOUND=1
22836 else
22837 EXPL_HEADER_FOUND=0
22841 CPPFLAGS="${saved_cppflags}"
22843 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
22844 EXPL_LIB=""
22845 EXPL_INCLUDE=""
22846 else
22847 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22848 EXPL_LIB=""
22850 PBX_EXPL=1
22851 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22853 cat >>confdefs.h <<_ACEOF
22854 #define HAVE_EXPL 1
22855 _ACEOF
22858 cat >>confdefs.h <<_ACEOF
22859 #define HAVE_EXPL_VERSION
22860 _ACEOF
22867 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
22868 pbxlibdir=""
22869 # if --with-LOGL=DIR has been specified, use it.
22870 if test "x${LOGL_DIR}" != "x"; then
22871 if test -d ${LOGL_DIR}/lib; then
22872 pbxlibdir="-L${LOGL_DIR}/lib"
22873 else
22874 pbxlibdir="-L${LOGL_DIR}"
22877 pbxfuncname="logl"
22878 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22879 AST_LOGL_FOUND=yes
22880 else
22881 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22882 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22883 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22884 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887 ac_check_lib_save_LIBS=$LIBS
22888 LIBS="-lm ${pbxlibdir} $LIBS"
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22896 /* Override any GCC internal prototype to avoid an error.
22897 Use char because int might match the return type of a GCC
22898 builtin and then its argument prototype would still apply. */
22899 #ifdef __cplusplus
22900 extern "C"
22901 #endif
22902 char ${pbxfuncname} ();
22904 main ()
22906 return ${pbxfuncname} ();
22908 return 0;
22910 _ACEOF
22911 rm -f conftest.$ac_objext conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest$ac_exeext &&
22928 $as_test_x conftest$ac_exeext; then
22929 eval "$as_ac_Lib=yes"
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 eval "$as_ac_Lib=no"
22937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22938 conftest$ac_exeext conftest.$ac_ext
22939 LIBS=$ac_check_lib_save_LIBS
22941 ac_res=`eval echo '${'$as_ac_Lib'}'`
22942 { echo "$as_me:$LINENO: result: $ac_res" >&5
22943 echo "${ECHO_T}$ac_res" >&6; }
22944 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22945 AST_LOGL_FOUND=yes
22946 else
22947 AST_LOGL_FOUND=no
22952 # now check for the header.
22953 if test "${AST_LOGL_FOUND}" = "yes"; then
22954 LOGL_LIB="${pbxlibdir} -lm "
22955 # if --with-LOGL=DIR has been specified, use it.
22956 if test "x${LOGL_DIR}" != "x"; then
22957 LOGL_INCLUDE="-I${LOGL_DIR}/include"
22959 LOGL_INCLUDE="${LOGL_INCLUDE} "
22960 if test "x" = "x" ; then # no header, assume found
22961 LOGL_HEADER_FOUND="1"
22962 else # check for the header
22963 saved_cppflags="${CPPFLAGS}"
22964 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
22965 if test "${ac_cv_header_+set}" = set; then
22966 { echo "$as_me:$LINENO: checking for " >&5
22967 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22968 if test "${ac_cv_header_+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22972 echo "${ECHO_T}$ac_cv_header_" >&6; }
22973 else
22974 # Is the header compilable?
22975 { echo "$as_me:$LINENO: checking usability" >&5
22976 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 $ac_includes_default
22984 #include <>
22985 _ACEOF
22986 rm -f conftest.$ac_objext
22987 if { (ac_try="$ac_compile"
22988 case "(($ac_try" in
22989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990 *) ac_try_echo=$ac_try;;
22991 esac
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993 (eval "$ac_compile") 2>conftest.er1
22994 ac_status=$?
22995 grep -v '^ *+' conftest.er1 >conftest.err
22996 rm -f conftest.er1
22997 cat conftest.err >&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } && {
23000 test -z "$ac_c_werror_flag" ||
23001 test ! -s conftest.err
23002 } && test -s conftest.$ac_objext; then
23003 ac_header_compiler=yes
23004 else
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_header_compiler=no
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23013 echo "${ECHO_T}$ac_header_compiler" >&6; }
23015 # Is the header present?
23016 { echo "$as_me:$LINENO: checking presence" >&5
23017 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h. */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <>
23025 _ACEOF
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23033 ac_status=$?
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } >/dev/null && {
23039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 }; then
23042 ac_header_preproc=yes
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_header_preproc=no
23050 rm -f conftest.err conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052 echo "${ECHO_T}$ac_header_preproc" >&6; }
23054 # So? What about this header?
23055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23056 yes:no: )
23057 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23058 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23060 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23061 ac_header_preproc=yes
23063 no:yes:* )
23064 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23065 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23067 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23069 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23071 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23073 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23075 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23076 ( cat <<\_ASBOX
23077 ## ------------------------------- ##
23078 ## Report this to www.asterisk.org ##
23079 ## ------------------------------- ##
23080 _ASBOX
23081 ) | sed "s/^/$as_me: WARNING: /" >&2
23083 esac
23084 { echo "$as_me:$LINENO: checking for " >&5
23085 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23086 if test "${ac_cv_header_+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089 ac_cv_header_=$ac_header_preproc
23091 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23092 echo "${ECHO_T}$ac_cv_header_" >&6; }
23095 if test $ac_cv_header_ = yes; then
23096 LOGL_HEADER_FOUND=1
23097 else
23098 LOGL_HEADER_FOUND=0
23102 CPPFLAGS="${saved_cppflags}"
23104 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23105 LOGL_LIB=""
23106 LOGL_INCLUDE=""
23107 else
23108 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23109 LOGL_LIB=""
23111 PBX_LOGL=1
23112 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23114 cat >>confdefs.h <<_ACEOF
23115 #define HAVE_LOGL 1
23116 _ACEOF
23119 cat >>confdefs.h <<_ACEOF
23120 #define HAVE_LOGL_VERSION
23121 _ACEOF
23128 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23129 pbxlibdir=""
23130 # if --with-REMAINDERL=DIR has been specified, use it.
23131 if test "x${REMAINDERL_DIR}" != "x"; then
23132 if test -d ${REMAINDERL_DIR}/lib; then
23133 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23134 else
23135 pbxlibdir="-L${REMAINDERL_DIR}"
23138 pbxfuncname="remainderl"
23139 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23140 AST_REMAINDERL_FOUND=yes
23141 else
23142 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23143 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23144 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23145 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23146 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 else
23148 ac_check_lib_save_LIBS=$LIBS
23149 LIBS="-lm ${pbxlibdir} $LIBS"
23150 cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h. */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23157 /* Override any GCC internal prototype to avoid an error.
23158 Use char because int might match the return type of a GCC
23159 builtin and then its argument prototype would still apply. */
23160 #ifdef __cplusplus
23161 extern "C"
23162 #endif
23163 char ${pbxfuncname} ();
23165 main ()
23167 return ${pbxfuncname} ();
23169 return 0;
23171 _ACEOF
23172 rm -f conftest.$ac_objext conftest$ac_exeext
23173 if { (ac_try="$ac_link"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_link") 2>conftest.er1
23180 ac_status=$?
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest$ac_exeext &&
23189 $as_test_x conftest$ac_exeext; then
23190 eval "$as_ac_Lib=yes"
23191 else
23192 echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23195 eval "$as_ac_Lib=no"
23198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23199 conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23202 ac_res=`eval echo '${'$as_ac_Lib'}'`
23203 { echo "$as_me:$LINENO: result: $ac_res" >&5
23204 echo "${ECHO_T}$ac_res" >&6; }
23205 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23206 AST_REMAINDERL_FOUND=yes
23207 else
23208 AST_REMAINDERL_FOUND=no
23213 # now check for the header.
23214 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23215 REMAINDERL_LIB="${pbxlibdir} -lm "
23216 # if --with-REMAINDERL=DIR has been specified, use it.
23217 if test "x${REMAINDERL_DIR}" != "x"; then
23218 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23220 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23221 if test "x" = "x" ; then # no header, assume found
23222 REMAINDERL_HEADER_FOUND="1"
23223 else # check for the header
23224 saved_cppflags="${CPPFLAGS}"
23225 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
23226 if test "${ac_cv_header_+set}" = set; then
23227 { echo "$as_me:$LINENO: checking for " >&5
23228 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23229 if test "${ac_cv_header_+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23233 echo "${ECHO_T}$ac_cv_header_" >&6; }
23234 else
23235 # Is the header compilable?
23236 { echo "$as_me:$LINENO: checking usability" >&5
23237 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 #include <>
23246 _ACEOF
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23255 ac_status=$?
23256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23264 ac_header_compiler=yes
23265 else
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 ac_header_compiler=no
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23274 echo "${ECHO_T}$ac_header_compiler" >&6; }
23276 # Is the header present?
23277 { echo "$as_me:$LINENO: checking presence" >&5
23278 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23279 cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h. */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 #include <>
23286 _ACEOF
23287 if { (ac_try="$ac_cpp conftest.$ac_ext"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } >/dev/null && {
23300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 }; then
23303 ac_header_preproc=yes
23304 else
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_header_preproc=no
23311 rm -f conftest.err conftest.$ac_ext
23312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23313 echo "${ECHO_T}$ac_header_preproc" >&6; }
23315 # So? What about this header?
23316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23317 yes:no: )
23318 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23319 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23320 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23321 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23322 ac_header_preproc=yes
23324 no:yes:* )
23325 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23326 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23327 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23328 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23329 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23330 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23331 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23332 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23333 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23334 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23335 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23336 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23337 ( cat <<\_ASBOX
23338 ## ------------------------------- ##
23339 ## Report this to www.asterisk.org ##
23340 ## ------------------------------- ##
23341 _ASBOX
23342 ) | sed "s/^/$as_me: WARNING: /" >&2
23344 esac
23345 { echo "$as_me:$LINENO: checking for " >&5
23346 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23347 if test "${ac_cv_header_+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350 ac_cv_header_=$ac_header_preproc
23352 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23353 echo "${ECHO_T}$ac_cv_header_" >&6; }
23356 if test $ac_cv_header_ = yes; then
23357 REMAINDERL_HEADER_FOUND=1
23358 else
23359 REMAINDERL_HEADER_FOUND=0
23363 CPPFLAGS="${saved_cppflags}"
23365 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23366 REMAINDERL_LIB=""
23367 REMAINDERL_INCLUDE=""
23368 else
23369 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23370 REMAINDERL_LIB=""
23372 PBX_REMAINDERL=1
23373 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_REMAINDERL 1
23377 _ACEOF
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_REMAINDERL_VERSION
23382 _ACEOF
23389 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23390 pbxlibdir=""
23391 # if --with-FMODL=DIR has been specified, use it.
23392 if test "x${FMODL_DIR}" != "x"; then
23393 if test -d ${FMODL_DIR}/lib; then
23394 pbxlibdir="-L${FMODL_DIR}/lib"
23395 else
23396 pbxlibdir="-L${FMODL_DIR}"
23399 pbxfuncname="fmodl"
23400 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23401 AST_FMODL_FOUND=yes
23402 else
23403 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23404 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23405 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23406 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409 ac_check_lib_save_LIBS=$LIBS
23410 LIBS="-lm ${pbxlibdir} $LIBS"
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h. */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23418 /* Override any GCC internal prototype to avoid an error.
23419 Use char because int might match the return type of a GCC
23420 builtin and then its argument prototype would still apply. */
23421 #ifdef __cplusplus
23422 extern "C"
23423 #endif
23424 char ${pbxfuncname} ();
23426 main ()
23428 return ${pbxfuncname} ();
23430 return 0;
23432 _ACEOF
23433 rm -f conftest.$ac_objext conftest$ac_exeext
23434 if { (ac_try="$ac_link"
23435 case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23438 esac
23439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23440 (eval "$ac_link") 2>conftest.er1
23441 ac_status=$?
23442 grep -v '^ *+' conftest.er1 >conftest.err
23443 rm -f conftest.er1
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && {
23447 test -z "$ac_c_werror_flag" ||
23448 test ! -s conftest.err
23449 } && test -s conftest$ac_exeext &&
23450 $as_test_x conftest$ac_exeext; then
23451 eval "$as_ac_Lib=yes"
23452 else
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 eval "$as_ac_Lib=no"
23459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23460 conftest$ac_exeext conftest.$ac_ext
23461 LIBS=$ac_check_lib_save_LIBS
23463 ac_res=`eval echo '${'$as_ac_Lib'}'`
23464 { echo "$as_me:$LINENO: result: $ac_res" >&5
23465 echo "${ECHO_T}$ac_res" >&6; }
23466 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23467 AST_FMODL_FOUND=yes
23468 else
23469 AST_FMODL_FOUND=no
23474 # now check for the header.
23475 if test "${AST_FMODL_FOUND}" = "yes"; then
23476 FMODL_LIB="${pbxlibdir} -lm "
23477 # if --with-FMODL=DIR has been specified, use it.
23478 if test "x${FMODL_DIR}" != "x"; then
23479 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23481 FMODL_INCLUDE="${FMODL_INCLUDE} "
23482 if test "x" = "x" ; then # no header, assume found
23483 FMODL_HEADER_FOUND="1"
23484 else # check for the header
23485 saved_cppflags="${CPPFLAGS}"
23486 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23487 if test "${ac_cv_header_+set}" = set; then
23488 { echo "$as_me:$LINENO: checking for " >&5
23489 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23490 if test "${ac_cv_header_+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23494 echo "${ECHO_T}$ac_cv_header_" >&6; }
23495 else
23496 # Is the header compilable?
23497 { echo "$as_me:$LINENO: checking usability" >&5
23498 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 #include <>
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_compile") 2>conftest.er1
23516 ac_status=$?
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && {
23522 test -z "$ac_c_werror_flag" ||
23523 test ! -s conftest.err
23524 } && test -s conftest.$ac_objext; then
23525 ac_header_compiler=yes
23526 else
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23530 ac_header_compiler=no
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23535 echo "${ECHO_T}$ac_header_compiler" >&6; }
23537 # Is the header present?
23538 { echo "$as_me:$LINENO: checking presence" >&5
23539 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23540 cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h. */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23546 #include <>
23547 _ACEOF
23548 if { (ac_try="$ac_cpp conftest.$ac_ext"
23549 case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23555 ac_status=$?
23556 grep -v '^ *+' conftest.er1 >conftest.err
23557 rm -f conftest.er1
23558 cat conftest.err >&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } >/dev/null && {
23561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 }; then
23564 ac_header_preproc=yes
23565 else
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 ac_header_preproc=no
23572 rm -f conftest.err conftest.$ac_ext
23573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23574 echo "${ECHO_T}$ac_header_preproc" >&6; }
23576 # So? What about this header?
23577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23578 yes:no: )
23579 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23580 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23581 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23582 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23583 ac_header_preproc=yes
23585 no:yes:* )
23586 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23587 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23588 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23589 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23590 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23591 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23592 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23593 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23594 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23595 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23596 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23597 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23598 ( cat <<\_ASBOX
23599 ## ------------------------------- ##
23600 ## Report this to www.asterisk.org ##
23601 ## ------------------------------- ##
23602 _ASBOX
23603 ) | sed "s/^/$as_me: WARNING: /" >&2
23605 esac
23606 { echo "$as_me:$LINENO: checking for " >&5
23607 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23608 if test "${ac_cv_header_+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611 ac_cv_header_=$ac_header_preproc
23613 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23614 echo "${ECHO_T}$ac_cv_header_" >&6; }
23617 if test $ac_cv_header_ = yes; then
23618 FMODL_HEADER_FOUND=1
23619 else
23620 FMODL_HEADER_FOUND=0
23624 CPPFLAGS="${saved_cppflags}"
23626 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23627 FMODL_LIB=""
23628 FMODL_INCLUDE=""
23629 else
23630 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23631 FMODL_LIB=""
23633 PBX_FMODL=1
23634 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23636 cat >>confdefs.h <<_ACEOF
23637 #define HAVE_FMODL 1
23638 _ACEOF
23641 cat >>confdefs.h <<_ACEOF
23642 #define HAVE_FMODL_VERSION
23643 _ACEOF
23650 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23651 pbxlibdir=""
23652 # if --with-ROUNDL=DIR has been specified, use it.
23653 if test "x${ROUNDL_DIR}" != "x"; then
23654 if test -d ${ROUNDL_DIR}/lib; then
23655 pbxlibdir="-L${ROUNDL_DIR}/lib"
23656 else
23657 pbxlibdir="-L${ROUNDL_DIR}"
23660 pbxfuncname="roundl"
23661 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23662 AST_ROUNDL_FOUND=yes
23663 else
23664 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23665 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23666 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23667 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23670 ac_check_lib_save_LIBS=$LIBS
23671 LIBS="-lm ${pbxlibdir} $LIBS"
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h. */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 /* Override any GCC internal prototype to avoid an error.
23680 Use char because int might match the return type of a GCC
23681 builtin and then its argument prototype would still apply. */
23682 #ifdef __cplusplus
23683 extern "C"
23684 #endif
23685 char ${pbxfuncname} ();
23687 main ()
23689 return ${pbxfuncname} ();
23691 return 0;
23693 _ACEOF
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (ac_try="$ac_link"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_link") 2>conftest.er1
23702 ac_status=$?
23703 grep -v '^ *+' conftest.er1 >conftest.err
23704 rm -f conftest.er1
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest$ac_exeext &&
23711 $as_test_x conftest$ac_exeext; then
23712 eval "$as_ac_Lib=yes"
23713 else
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 eval "$as_ac_Lib=no"
23720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23721 conftest$ac_exeext conftest.$ac_ext
23722 LIBS=$ac_check_lib_save_LIBS
23724 ac_res=`eval echo '${'$as_ac_Lib'}'`
23725 { echo "$as_me:$LINENO: result: $ac_res" >&5
23726 echo "${ECHO_T}$ac_res" >&6; }
23727 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23728 AST_ROUNDL_FOUND=yes
23729 else
23730 AST_ROUNDL_FOUND=no
23735 # now check for the header.
23736 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23737 ROUNDL_LIB="${pbxlibdir} -lm "
23738 # if --with-ROUNDL=DIR has been specified, use it.
23739 if test "x${ROUNDL_DIR}" != "x"; then
23740 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23742 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23743 if test "x" = "x" ; then # no header, assume found
23744 ROUNDL_HEADER_FOUND="1"
23745 else # check for the header
23746 saved_cppflags="${CPPFLAGS}"
23747 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23748 if test "${ac_cv_header_+set}" = set; then
23749 { echo "$as_me:$LINENO: checking for " >&5
23750 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23751 if test "${ac_cv_header_+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23755 echo "${ECHO_T}$ac_cv_header_" >&6; }
23756 else
23757 # Is the header compilable?
23758 { echo "$as_me:$LINENO: checking usability" >&5
23759 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h. */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 $ac_includes_default
23767 #include <>
23768 _ACEOF
23769 rm -f conftest.$ac_objext
23770 if { (ac_try="$ac_compile"
23771 case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23774 esac
23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776 (eval "$ac_compile") 2>conftest.er1
23777 ac_status=$?
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } && {
23783 test -z "$ac_c_werror_flag" ||
23784 test ! -s conftest.err
23785 } && test -s conftest.$ac_objext; then
23786 ac_header_compiler=yes
23787 else
23788 echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23791 ac_header_compiler=no
23794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23796 echo "${ECHO_T}$ac_header_compiler" >&6; }
23798 # Is the header present?
23799 { echo "$as_me:$LINENO: checking presence" >&5
23800 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23801 cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h. */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 #include <>
23808 _ACEOF
23809 if { (ac_try="$ac_cpp conftest.$ac_ext"
23810 case "(($ac_try" in
23811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23812 *) ac_try_echo=$ac_try;;
23813 esac
23814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23816 ac_status=$?
23817 grep -v '^ *+' conftest.er1 >conftest.err
23818 rm -f conftest.er1
23819 cat conftest.err >&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } >/dev/null && {
23822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23823 test ! -s conftest.err
23824 }; then
23825 ac_header_preproc=yes
23826 else
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23830 ac_header_preproc=no
23833 rm -f conftest.err conftest.$ac_ext
23834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23835 echo "${ECHO_T}$ac_header_preproc" >&6; }
23837 # So? What about this header?
23838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23839 yes:no: )
23840 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23841 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23843 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23844 ac_header_preproc=yes
23846 no:yes:* )
23847 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23848 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23849 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23850 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23852 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23854 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23856 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23857 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23858 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23859 ( cat <<\_ASBOX
23860 ## ------------------------------- ##
23861 ## Report this to www.asterisk.org ##
23862 ## ------------------------------- ##
23863 _ASBOX
23864 ) | sed "s/^/$as_me: WARNING: /" >&2
23866 esac
23867 { echo "$as_me:$LINENO: checking for " >&5
23868 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23869 if test "${ac_cv_header_+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872 ac_cv_header_=$ac_header_preproc
23874 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23875 echo "${ECHO_T}$ac_cv_header_" >&6; }
23878 if test $ac_cv_header_ = yes; then
23879 ROUNDL_HEADER_FOUND=1
23880 else
23881 ROUNDL_HEADER_FOUND=0
23885 CPPFLAGS="${saved_cppflags}"
23887 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
23888 ROUNDL_LIB=""
23889 ROUNDL_INCLUDE=""
23890 else
23891 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23892 ROUNDL_LIB=""
23894 PBX_ROUNDL=1
23895 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23897 cat >>confdefs.h <<_ACEOF
23898 #define HAVE_ROUNDL 1
23899 _ACEOF
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_ROUNDL_VERSION
23904 _ACEOF
23911 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
23912 pbxlibdir=""
23913 # if --with-TRUNCL=DIR has been specified, use it.
23914 if test "x${TRUNCL_DIR}" != "x"; then
23915 if test -d ${TRUNCL_DIR}/lib; then
23916 pbxlibdir="-L${TRUNCL_DIR}/lib"
23917 else
23918 pbxlibdir="-L${TRUNCL_DIR}"
23921 pbxfuncname="truncl"
23922 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23923 AST_TRUNCL_FOUND=yes
23924 else
23925 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23926 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23927 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23928 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930 else
23931 ac_check_lib_save_LIBS=$LIBS
23932 LIBS="-lm ${pbxlibdir} $LIBS"
23933 cat >conftest.$ac_ext <<_ACEOF
23934 /* confdefs.h. */
23935 _ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23940 /* Override any GCC internal prototype to avoid an error.
23941 Use char because int might match the return type of a GCC
23942 builtin and then its argument prototype would still apply. */
23943 #ifdef __cplusplus
23944 extern "C"
23945 #endif
23946 char ${pbxfuncname} ();
23948 main ()
23950 return ${pbxfuncname} ();
23952 return 0;
23954 _ACEOF
23955 rm -f conftest.$ac_objext conftest$ac_exeext
23956 if { (ac_try="$ac_link"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23960 esac
23961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962 (eval "$ac_link") 2>conftest.er1
23963 ac_status=$?
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_c_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest$ac_exeext &&
23972 $as_test_x conftest$ac_exeext; then
23973 eval "$as_ac_Lib=yes"
23974 else
23975 echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 eval "$as_ac_Lib=no"
23981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23982 conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23985 ac_res=`eval echo '${'$as_ac_Lib'}'`
23986 { echo "$as_me:$LINENO: result: $ac_res" >&5
23987 echo "${ECHO_T}$ac_res" >&6; }
23988 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23989 AST_TRUNCL_FOUND=yes
23990 else
23991 AST_TRUNCL_FOUND=no
23996 # now check for the header.
23997 if test "${AST_TRUNCL_FOUND}" = "yes"; then
23998 TRUNCL_LIB="${pbxlibdir} -lm "
23999 # if --with-TRUNCL=DIR has been specified, use it.
24000 if test "x${TRUNCL_DIR}" != "x"; then
24001 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24003 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24004 if test "x" = "x" ; then # no header, assume found
24005 TRUNCL_HEADER_FOUND="1"
24006 else # check for the header
24007 saved_cppflags="${CPPFLAGS}"
24008 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
24009 if test "${ac_cv_header_+set}" = set; then
24010 { echo "$as_me:$LINENO: checking for " >&5
24011 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24012 if test "${ac_cv_header_+set}" = set; then
24013 echo $ECHO_N "(cached) $ECHO_C" >&6
24015 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24016 echo "${ECHO_T}$ac_cv_header_" >&6; }
24017 else
24018 # Is the header compilable?
24019 { echo "$as_me:$LINENO: checking usability" >&5
24020 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 $ac_includes_default
24028 #include <>
24029 _ACEOF
24030 rm -f conftest.$ac_objext
24031 if { (ac_try="$ac_compile"
24032 case "(($ac_try" in
24033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034 *) ac_try_echo=$ac_try;;
24035 esac
24036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24037 (eval "$ac_compile") 2>conftest.er1
24038 ac_status=$?
24039 grep -v '^ *+' conftest.er1 >conftest.err
24040 rm -f conftest.er1
24041 cat conftest.err >&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); } && {
24044 test -z "$ac_c_werror_flag" ||
24045 test ! -s conftest.err
24046 } && test -s conftest.$ac_objext; then
24047 ac_header_compiler=yes
24048 else
24049 echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24052 ac_header_compiler=no
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24057 echo "${ECHO_T}$ac_header_compiler" >&6; }
24059 # Is the header present?
24060 { echo "$as_me:$LINENO: checking presence" >&5
24061 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h. */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 #include <>
24069 _ACEOF
24070 if { (ac_try="$ac_cpp conftest.$ac_ext"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24077 ac_status=$?
24078 grep -v '^ *+' conftest.er1 >conftest.err
24079 rm -f conftest.er1
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } >/dev/null && {
24083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24084 test ! -s conftest.err
24085 }; then
24086 ac_header_preproc=yes
24087 else
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 ac_header_preproc=no
24094 rm -f conftest.err conftest.$ac_ext
24095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24096 echo "${ECHO_T}$ac_header_preproc" >&6; }
24098 # So? What about this header?
24099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24100 yes:no: )
24101 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24102 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24103 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24104 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24105 ac_header_preproc=yes
24107 no:yes:* )
24108 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24109 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24110 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24111 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24112 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24113 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24114 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24115 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24116 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24117 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24118 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24119 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24120 ( cat <<\_ASBOX
24121 ## ------------------------------- ##
24122 ## Report this to www.asterisk.org ##
24123 ## ------------------------------- ##
24124 _ASBOX
24125 ) | sed "s/^/$as_me: WARNING: /" >&2
24127 esac
24128 { echo "$as_me:$LINENO: checking for " >&5
24129 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24130 if test "${ac_cv_header_+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24132 else
24133 ac_cv_header_=$ac_header_preproc
24135 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24136 echo "${ECHO_T}$ac_cv_header_" >&6; }
24139 if test $ac_cv_header_ = yes; then
24140 TRUNCL_HEADER_FOUND=1
24141 else
24142 TRUNCL_HEADER_FOUND=0
24146 CPPFLAGS="${saved_cppflags}"
24148 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24149 TRUNCL_LIB=""
24150 TRUNCL_INCLUDE=""
24151 else
24152 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24153 TRUNCL_LIB=""
24155 PBX_TRUNCL=1
24156 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24158 cat >>confdefs.h <<_ACEOF
24159 #define HAVE_TRUNCL 1
24160 _ACEOF
24163 cat >>confdefs.h <<_ACEOF
24164 #define HAVE_TRUNCL_VERSION
24165 _ACEOF
24172 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24173 pbxlibdir=""
24174 # if --with-STRTOLD=DIR has been specified, use it.
24175 if test "x${STRTOLD_DIR}" != "x"; then
24176 if test -d ${STRTOLD_DIR}/lib; then
24177 pbxlibdir="-L${STRTOLD_DIR}/lib"
24178 else
24179 pbxlibdir="-L${STRTOLD_DIR}"
24182 pbxfuncname="strtold"
24183 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24184 AST_STRTOLD_FOUND=yes
24185 else
24186 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24187 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24188 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24189 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24190 echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192 ac_check_lib_save_LIBS=$LIBS
24193 LIBS="-lc ${pbxlibdir} $LIBS"
24194 cat >conftest.$ac_ext <<_ACEOF
24195 /* confdefs.h. */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h. */
24201 /* Override any GCC internal prototype to avoid an error.
24202 Use char because int might match the return type of a GCC
24203 builtin and then its argument prototype would still apply. */
24204 #ifdef __cplusplus
24205 extern "C"
24206 #endif
24207 char ${pbxfuncname} ();
24209 main ()
24211 return ${pbxfuncname} ();
24213 return 0;
24215 _ACEOF
24216 rm -f conftest.$ac_objext conftest$ac_exeext
24217 if { (ac_try="$ac_link"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24221 esac
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223 (eval "$ac_link") 2>conftest.er1
24224 ac_status=$?
24225 grep -v '^ *+' conftest.er1 >conftest.err
24226 rm -f conftest.er1
24227 cat conftest.err >&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } && {
24230 test -z "$ac_c_werror_flag" ||
24231 test ! -s conftest.err
24232 } && test -s conftest$ac_exeext &&
24233 $as_test_x conftest$ac_exeext; then
24234 eval "$as_ac_Lib=yes"
24235 else
24236 echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 eval "$as_ac_Lib=no"
24242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24243 conftest$ac_exeext conftest.$ac_ext
24244 LIBS=$ac_check_lib_save_LIBS
24246 ac_res=`eval echo '${'$as_ac_Lib'}'`
24247 { echo "$as_me:$LINENO: result: $ac_res" >&5
24248 echo "${ECHO_T}$ac_res" >&6; }
24249 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24250 AST_STRTOLD_FOUND=yes
24251 else
24252 AST_STRTOLD_FOUND=no
24257 # now check for the header.
24258 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24259 STRTOLD_LIB="${pbxlibdir} -lc "
24260 # if --with-STRTOLD=DIR has been specified, use it.
24261 if test "x${STRTOLD_DIR}" != "x"; then
24262 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24264 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24265 if test "xstdlib.h" = "x" ; then # no header, assume found
24266 STRTOLD_HEADER_FOUND="1"
24267 else # check for the header
24268 saved_cppflags="${CPPFLAGS}"
24269 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
24270 if test "${ac_cv_header_stdlib_h+set}" = set; then
24271 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24272 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24273 if test "${ac_cv_header_stdlib_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24277 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24278 else
24279 # Is the header compilable?
24280 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24281 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24289 #include <stdlib.h>
24290 _ACEOF
24291 rm -f conftest.$ac_objext
24292 if { (ac_try="$ac_compile"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_compile") 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest.$ac_objext; then
24308 ac_header_compiler=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_header_compiler=no
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24318 echo "${ECHO_T}$ac_header_compiler" >&6; }
24320 # Is the header present?
24321 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24322 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24323 cat >conftest.$ac_ext <<_ACEOF
24324 /* confdefs.h. */
24325 _ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h. */
24329 #include <stdlib.h>
24330 _ACEOF
24331 if { (ac_try="$ac_cpp conftest.$ac_ext"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24338 ac_status=$?
24339 grep -v '^ *+' conftest.er1 >conftest.err
24340 rm -f conftest.er1
24341 cat conftest.err >&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } >/dev/null && {
24344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 }; then
24347 ac_header_preproc=yes
24348 else
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_header_preproc=no
24355 rm -f conftest.err conftest.$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24357 echo "${ECHO_T}$ac_header_preproc" >&6; }
24359 # So? What about this header?
24360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24361 yes:no: )
24362 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24363 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24365 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24366 ac_header_preproc=yes
24368 no:yes:* )
24369 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24370 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24372 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24373 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24374 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24375 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24376 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24377 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24378 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24379 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24380 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24381 ( cat <<\_ASBOX
24382 ## ------------------------------- ##
24383 ## Report this to www.asterisk.org ##
24384 ## ------------------------------- ##
24385 _ASBOX
24386 ) | sed "s/^/$as_me: WARNING: /" >&2
24388 esac
24389 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24390 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24391 if test "${ac_cv_header_stdlib_h+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394 ac_cv_header_stdlib_h=$ac_header_preproc
24396 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24397 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24400 if test $ac_cv_header_stdlib_h = yes; then
24401 STRTOLD_HEADER_FOUND=1
24402 else
24403 STRTOLD_HEADER_FOUND=0
24407 CPPFLAGS="${saved_cppflags}"
24409 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24410 STRTOLD_LIB=""
24411 STRTOLD_INCLUDE=""
24412 else
24413 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24414 STRTOLD_LIB=""
24416 PBX_STRTOLD=1
24417 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24419 cat >>confdefs.h <<_ACEOF
24420 #define HAVE_STRTOLD 1
24421 _ACEOF
24424 cat >>confdefs.h <<_ACEOF
24425 #define HAVE_STRTOLD_VERSION
24426 _ACEOF
24433 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24434 pbxlibdir=""
24435 # if --with-FLOORL=DIR has been specified, use it.
24436 if test "x${FLOORL_DIR}" != "x"; then
24437 if test -d ${FLOORL_DIR}/lib; then
24438 pbxlibdir="-L${FLOORL_DIR}/lib"
24439 else
24440 pbxlibdir="-L${FLOORL_DIR}"
24443 pbxfuncname="floorl"
24444 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24445 AST_FLOORL_FOUND=yes
24446 else
24447 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24448 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24449 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24450 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 else
24453 ac_check_lib_save_LIBS=$LIBS
24454 LIBS="-lm ${pbxlibdir} $LIBS"
24455 cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h. */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24462 /* Override any GCC internal prototype to avoid an error.
24463 Use char because int might match the return type of a GCC
24464 builtin and then its argument prototype would still apply. */
24465 #ifdef __cplusplus
24466 extern "C"
24467 #endif
24468 char ${pbxfuncname} ();
24470 main ()
24472 return ${pbxfuncname} ();
24474 return 0;
24476 _ACEOF
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (ac_try="$ac_link"
24479 case "(($ac_try" in
24480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24482 esac
24483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24484 (eval "$ac_link") 2>conftest.er1
24485 ac_status=$?
24486 grep -v '^ *+' conftest.er1 >conftest.err
24487 rm -f conftest.er1
24488 cat conftest.err >&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } && {
24491 test -z "$ac_c_werror_flag" ||
24492 test ! -s conftest.err
24493 } && test -s conftest$ac_exeext &&
24494 $as_test_x conftest$ac_exeext; then
24495 eval "$as_ac_Lib=yes"
24496 else
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 eval "$as_ac_Lib=no"
24503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24504 conftest$ac_exeext conftest.$ac_ext
24505 LIBS=$ac_check_lib_save_LIBS
24507 ac_res=`eval echo '${'$as_ac_Lib'}'`
24508 { echo "$as_me:$LINENO: result: $ac_res" >&5
24509 echo "${ECHO_T}$ac_res" >&6; }
24510 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24511 AST_FLOORL_FOUND=yes
24512 else
24513 AST_FLOORL_FOUND=no
24518 # now check for the header.
24519 if test "${AST_FLOORL_FOUND}" = "yes"; then
24520 FLOORL_LIB="${pbxlibdir} -lm "
24521 # if --with-FLOORL=DIR has been specified, use it.
24522 if test "x${FLOORL_DIR}" != "x"; then
24523 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24525 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24526 if test "x" = "x" ; then # no header, assume found
24527 FLOORL_HEADER_FOUND="1"
24528 else # check for the header
24529 saved_cppflags="${CPPFLAGS}"
24530 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24531 if test "${ac_cv_header_+set}" = set; then
24532 { echo "$as_me:$LINENO: checking for " >&5
24533 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24534 if test "${ac_cv_header_+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24538 echo "${ECHO_T}$ac_cv_header_" >&6; }
24539 else
24540 # Is the header compilable?
24541 { echo "$as_me:$LINENO: checking usability" >&5
24542 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h. */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 $ac_includes_default
24550 #include <>
24551 _ACEOF
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_compile") 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } && {
24566 test -z "$ac_c_werror_flag" ||
24567 test ! -s conftest.err
24568 } && test -s conftest.$ac_objext; then
24569 ac_header_compiler=yes
24570 else
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_header_compiler=no
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24579 echo "${ECHO_T}$ac_header_compiler" >&6; }
24581 # Is the header present?
24582 { echo "$as_me:$LINENO: checking presence" >&5
24583 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24584 cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h. */
24586 _ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #include <>
24591 _ACEOF
24592 if { (ac_try="$ac_cpp conftest.$ac_ext"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } >/dev/null && {
24605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24607 }; then
24608 ac_header_preproc=yes
24609 else
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ac_header_preproc=no
24616 rm -f conftest.err conftest.$ac_ext
24617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24618 echo "${ECHO_T}$ac_header_preproc" >&6; }
24620 # So? What about this header?
24621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24622 yes:no: )
24623 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24624 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24625 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24626 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24627 ac_header_preproc=yes
24629 no:yes:* )
24630 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24631 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24633 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24635 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24636 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24637 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24639 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24641 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24642 ( cat <<\_ASBOX
24643 ## ------------------------------- ##
24644 ## Report this to www.asterisk.org ##
24645 ## ------------------------------- ##
24646 _ASBOX
24647 ) | sed "s/^/$as_me: WARNING: /" >&2
24649 esac
24650 { echo "$as_me:$LINENO: checking for " >&5
24651 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24652 if test "${ac_cv_header_+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 else
24655 ac_cv_header_=$ac_header_preproc
24657 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24658 echo "${ECHO_T}$ac_cv_header_" >&6; }
24661 if test $ac_cv_header_ = yes; then
24662 FLOORL_HEADER_FOUND=1
24663 else
24664 FLOORL_HEADER_FOUND=0
24668 CPPFLAGS="${saved_cppflags}"
24670 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24671 FLOORL_LIB=""
24672 FLOORL_INCLUDE=""
24673 else
24674 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24675 FLOORL_LIB=""
24677 PBX_FLOORL=1
24678 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24680 cat >>confdefs.h <<_ACEOF
24681 #define HAVE_FLOORL 1
24682 _ACEOF
24685 cat >>confdefs.h <<_ACEOF
24686 #define HAVE_FLOORL_VERSION
24687 _ACEOF
24694 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24695 pbxlibdir=""
24696 # if --with-CEILL=DIR has been specified, use it.
24697 if test "x${CEILL_DIR}" != "x"; then
24698 if test -d ${CEILL_DIR}/lib; then
24699 pbxlibdir="-L${CEILL_DIR}/lib"
24700 else
24701 pbxlibdir="-L${CEILL_DIR}"
24704 pbxfuncname="ceill"
24705 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24706 AST_CEILL_FOUND=yes
24707 else
24708 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24709 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24710 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24711 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714 ac_check_lib_save_LIBS=$LIBS
24715 LIBS="-lm ${pbxlibdir} $LIBS"
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h. */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24723 /* Override any GCC internal prototype to avoid an error.
24724 Use char because int might match the return type of a GCC
24725 builtin and then its argument prototype would still apply. */
24726 #ifdef __cplusplus
24727 extern "C"
24728 #endif
24729 char ${pbxfuncname} ();
24731 main ()
24733 return ${pbxfuncname} ();
24735 return 0;
24737 _ACEOF
24738 rm -f conftest.$ac_objext conftest$ac_exeext
24739 if { (ac_try="$ac_link"
24740 case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745 (eval "$ac_link") 2>conftest.er1
24746 ac_status=$?
24747 grep -v '^ *+' conftest.er1 >conftest.err
24748 rm -f conftest.er1
24749 cat conftest.err >&5
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); } && {
24752 test -z "$ac_c_werror_flag" ||
24753 test ! -s conftest.err
24754 } && test -s conftest$ac_exeext &&
24755 $as_test_x conftest$ac_exeext; then
24756 eval "$as_ac_Lib=yes"
24757 else
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24761 eval "$as_ac_Lib=no"
24764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24765 conftest$ac_exeext conftest.$ac_ext
24766 LIBS=$ac_check_lib_save_LIBS
24768 ac_res=`eval echo '${'$as_ac_Lib'}'`
24769 { echo "$as_me:$LINENO: result: $ac_res" >&5
24770 echo "${ECHO_T}$ac_res" >&6; }
24771 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24772 AST_CEILL_FOUND=yes
24773 else
24774 AST_CEILL_FOUND=no
24779 # now check for the header.
24780 if test "${AST_CEILL_FOUND}" = "yes"; then
24781 CEILL_LIB="${pbxlibdir} -lm "
24782 # if --with-CEILL=DIR has been specified, use it.
24783 if test "x${CEILL_DIR}" != "x"; then
24784 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24786 CEILL_INCLUDE="${CEILL_INCLUDE} "
24787 if test "x" = "x" ; then # no header, assume found
24788 CEILL_HEADER_FOUND="1"
24789 else # check for the header
24790 saved_cppflags="${CPPFLAGS}"
24791 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24792 if test "${ac_cv_header_+set}" = set; then
24793 { echo "$as_me:$LINENO: checking for " >&5
24794 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24795 if test "${ac_cv_header_+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24799 echo "${ECHO_T}$ac_cv_header_" >&6; }
24800 else
24801 # Is the header compilable?
24802 { echo "$as_me:$LINENO: checking usability" >&5
24803 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24804 cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h. */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 $ac_includes_default
24811 #include <>
24812 _ACEOF
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_compile") 2>conftest.er1
24821 ac_status=$?
24822 grep -v '^ *+' conftest.er1 >conftest.err
24823 rm -f conftest.er1
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } && {
24827 test -z "$ac_c_werror_flag" ||
24828 test ! -s conftest.err
24829 } && test -s conftest.$ac_objext; then
24830 ac_header_compiler=yes
24831 else
24832 echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24835 ac_header_compiler=no
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24840 echo "${ECHO_T}$ac_header_compiler" >&6; }
24842 # Is the header present?
24843 { echo "$as_me:$LINENO: checking presence" >&5
24844 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24845 cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h. */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24851 #include <>
24852 _ACEOF
24853 if { (ac_try="$ac_cpp conftest.$ac_ext"
24854 case "(($ac_try" in
24855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24856 *) ac_try_echo=$ac_try;;
24857 esac
24858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24860 ac_status=$?
24861 grep -v '^ *+' conftest.er1 >conftest.err
24862 rm -f conftest.er1
24863 cat conftest.err >&5
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); } >/dev/null && {
24866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24867 test ! -s conftest.err
24868 }; then
24869 ac_header_preproc=yes
24870 else
24871 echo "$as_me: failed program was:" >&5
24872 sed 's/^/| /' conftest.$ac_ext >&5
24874 ac_header_preproc=no
24877 rm -f conftest.err conftest.$ac_ext
24878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24879 echo "${ECHO_T}$ac_header_preproc" >&6; }
24881 # So? What about this header?
24882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24883 yes:no: )
24884 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24885 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24887 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24888 ac_header_preproc=yes
24890 no:yes:* )
24891 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24892 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24893 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24894 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24895 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24896 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24897 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24898 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24899 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24900 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24901 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24902 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24903 ( cat <<\_ASBOX
24904 ## ------------------------------- ##
24905 ## Report this to www.asterisk.org ##
24906 ## ------------------------------- ##
24907 _ASBOX
24908 ) | sed "s/^/$as_me: WARNING: /" >&2
24910 esac
24911 { echo "$as_me:$LINENO: checking for " >&5
24912 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24913 if test "${ac_cv_header_+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 else
24916 ac_cv_header_=$ac_header_preproc
24918 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24919 echo "${ECHO_T}$ac_cv_header_" >&6; }
24922 if test $ac_cv_header_ = yes; then
24923 CEILL_HEADER_FOUND=1
24924 else
24925 CEILL_HEADER_FOUND=0
24929 CPPFLAGS="${saved_cppflags}"
24931 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
24932 CEILL_LIB=""
24933 CEILL_INCLUDE=""
24934 else
24935 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24936 CEILL_LIB=""
24938 PBX_CEILL=1
24939 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24941 cat >>confdefs.h <<_ACEOF
24942 #define HAVE_CEILL 1
24943 _ACEOF
24946 cat >>confdefs.h <<_ACEOF
24947 #define HAVE_CEILL_VERSION
24948 _ACEOF
24955 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
24956 pbxlibdir=""
24957 # if --with-EXP2=DIR has been specified, use it.
24958 if test "x${EXP2_DIR}" != "x"; then
24959 if test -d ${EXP2_DIR}/lib; then
24960 pbxlibdir="-L${EXP2_DIR}/lib"
24961 else
24962 pbxlibdir="-L${EXP2_DIR}"
24965 pbxfuncname="exp2"
24966 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24967 AST_EXP2_FOUND=yes
24968 else
24969 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24970 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24971 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24972 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24973 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 else
24975 ac_check_lib_save_LIBS=$LIBS
24976 LIBS="-lm ${pbxlibdir} $LIBS"
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h. */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24984 /* Override any GCC internal prototype to avoid an error.
24985 Use char because int might match the return type of a GCC
24986 builtin and then its argument prototype would still apply. */
24987 #ifdef __cplusplus
24988 extern "C"
24989 #endif
24990 char ${pbxfuncname} ();
24992 main ()
24994 return ${pbxfuncname} ();
24996 return 0;
24998 _ACEOF
24999 rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_link") 2>conftest.er1
25007 ac_status=$?
25008 grep -v '^ *+' conftest.er1 >conftest.err
25009 rm -f conftest.er1
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } && {
25013 test -z "$ac_c_werror_flag" ||
25014 test ! -s conftest.err
25015 } && test -s conftest$ac_exeext &&
25016 $as_test_x conftest$ac_exeext; then
25017 eval "$as_ac_Lib=yes"
25018 else
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 eval "$as_ac_Lib=no"
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25026 conftest$ac_exeext conftest.$ac_ext
25027 LIBS=$ac_check_lib_save_LIBS
25029 ac_res=`eval echo '${'$as_ac_Lib'}'`
25030 { echo "$as_me:$LINENO: result: $ac_res" >&5
25031 echo "${ECHO_T}$ac_res" >&6; }
25032 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25033 AST_EXP2_FOUND=yes
25034 else
25035 AST_EXP2_FOUND=no
25040 # now check for the header.
25041 if test "${AST_EXP2_FOUND}" = "yes"; then
25042 EXP2_LIB="${pbxlibdir} -lm "
25043 # if --with-EXP2=DIR has been specified, use it.
25044 if test "x${EXP2_DIR}" != "x"; then
25045 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25047 EXP2_INCLUDE="${EXP2_INCLUDE} "
25048 if test "x" = "x" ; then # no header, assume found
25049 EXP2_HEADER_FOUND="1"
25050 else # check for the header
25051 saved_cppflags="${CPPFLAGS}"
25052 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
25053 if test "${ac_cv_header_+set}" = set; then
25054 { echo "$as_me:$LINENO: checking for " >&5
25055 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25056 if test "${ac_cv_header_+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25060 echo "${ECHO_T}$ac_cv_header_" >&6; }
25061 else
25062 # Is the header compilable?
25063 { echo "$as_me:$LINENO: checking usability" >&5
25064 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25072 #include <>
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_header_compiler=yes
25092 else
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_compiler=no
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25101 echo "${ECHO_T}$ac_header_compiler" >&6; }
25103 # Is the header present?
25104 { echo "$as_me:$LINENO: checking presence" >&5
25105 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25106 cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h. */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 #include <>
25113 _ACEOF
25114 if { (ac_try="$ac_cpp conftest.$ac_ext"
25115 case "(($ac_try" in
25116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117 *) ac_try_echo=$ac_try;;
25118 esac
25119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25121 ac_status=$?
25122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } >/dev/null && {
25127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25128 test ! -s conftest.err
25129 }; then
25130 ac_header_preproc=yes
25131 else
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25135 ac_header_preproc=no
25138 rm -f conftest.err conftest.$ac_ext
25139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25140 echo "${ECHO_T}$ac_header_preproc" >&6; }
25142 # So? What about this header?
25143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25144 yes:no: )
25145 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25146 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25147 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25148 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25149 ac_header_preproc=yes
25151 no:yes:* )
25152 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25153 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25154 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25155 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25156 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25157 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25158 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25159 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25160 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25161 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25162 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25163 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25164 ( cat <<\_ASBOX
25165 ## ------------------------------- ##
25166 ## Report this to www.asterisk.org ##
25167 ## ------------------------------- ##
25168 _ASBOX
25169 ) | sed "s/^/$as_me: WARNING: /" >&2
25171 esac
25172 { echo "$as_me:$LINENO: checking for " >&5
25173 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25174 if test "${ac_cv_header_+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177 ac_cv_header_=$ac_header_preproc
25179 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25180 echo "${ECHO_T}$ac_cv_header_" >&6; }
25183 if test $ac_cv_header_ = yes; then
25184 EXP2_HEADER_FOUND=1
25185 else
25186 EXP2_HEADER_FOUND=0
25190 CPPFLAGS="${saved_cppflags}"
25192 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25193 EXP2_LIB=""
25194 EXP2_INCLUDE=""
25195 else
25196 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25197 EXP2_LIB=""
25199 PBX_EXP2=1
25200 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25202 cat >>confdefs.h <<_ACEOF
25203 #define HAVE_EXP2 1
25204 _ACEOF
25207 cat >>confdefs.h <<_ACEOF
25208 #define HAVE_EXP2_VERSION
25209 _ACEOF
25216 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25217 pbxlibdir=""
25218 # if --with-LOG2=DIR has been specified, use it.
25219 if test "x${LOG2_DIR}" != "x"; then
25220 if test -d ${LOG2_DIR}/lib; then
25221 pbxlibdir="-L${LOG2_DIR}/lib"
25222 else
25223 pbxlibdir="-L${LOG2_DIR}"
25226 pbxfuncname="log2"
25227 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25228 AST_LOG2_FOUND=yes
25229 else
25230 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25231 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25232 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25233 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236 ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-lm ${pbxlibdir} $LIBS"
25238 cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h. */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25245 /* Override any GCC internal prototype to avoid an error.
25246 Use char because int might match the return type of a GCC
25247 builtin and then its argument prototype would still apply. */
25248 #ifdef __cplusplus
25249 extern "C"
25250 #endif
25251 char ${pbxfuncname} ();
25253 main ()
25255 return ${pbxfuncname} ();
25257 return 0;
25259 _ACEOF
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (ac_try="$ac_link"
25262 case "(($ac_try" in
25263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25264 *) ac_try_echo=$ac_try;;
25265 esac
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267 (eval "$ac_link") 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && {
25274 test -z "$ac_c_werror_flag" ||
25275 test ! -s conftest.err
25276 } && test -s conftest$ac_exeext &&
25277 $as_test_x conftest$ac_exeext; then
25278 eval "$as_ac_Lib=yes"
25279 else
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25283 eval "$as_ac_Lib=no"
25286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25287 conftest$ac_exeext conftest.$ac_ext
25288 LIBS=$ac_check_lib_save_LIBS
25290 ac_res=`eval echo '${'$as_ac_Lib'}'`
25291 { echo "$as_me:$LINENO: result: $ac_res" >&5
25292 echo "${ECHO_T}$ac_res" >&6; }
25293 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25294 AST_LOG2_FOUND=yes
25295 else
25296 AST_LOG2_FOUND=no
25301 # now check for the header.
25302 if test "${AST_LOG2_FOUND}" = "yes"; then
25303 LOG2_LIB="${pbxlibdir} -lm "
25304 # if --with-LOG2=DIR has been specified, use it.
25305 if test "x${LOG2_DIR}" != "x"; then
25306 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25308 LOG2_INCLUDE="${LOG2_INCLUDE} "
25309 if test "x" = "x" ; then # no header, assume found
25310 LOG2_HEADER_FOUND="1"
25311 else # check for the header
25312 saved_cppflags="${CPPFLAGS}"
25313 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25314 if test "${ac_cv_header_+set}" = set; then
25315 { echo "$as_me:$LINENO: checking for " >&5
25316 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25317 if test "${ac_cv_header_+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25321 echo "${ECHO_T}$ac_cv_header_" >&6; }
25322 else
25323 # Is the header compilable?
25324 { echo "$as_me:$LINENO: checking usability" >&5
25325 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h. */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 $ac_includes_default
25333 #include <>
25334 _ACEOF
25335 rm -f conftest.$ac_objext
25336 if { (ac_try="$ac_compile"
25337 case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25340 esac
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342 (eval "$ac_compile") 2>conftest.er1
25343 ac_status=$?
25344 grep -v '^ *+' conftest.er1 >conftest.err
25345 rm -f conftest.er1
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && {
25349 test -z "$ac_c_werror_flag" ||
25350 test ! -s conftest.err
25351 } && test -s conftest.$ac_objext; then
25352 ac_header_compiler=yes
25353 else
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 ac_header_compiler=no
25360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25362 echo "${ECHO_T}$ac_header_compiler" >&6; }
25364 # Is the header present?
25365 { echo "$as_me:$LINENO: checking presence" >&5
25366 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25367 cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h. */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25373 #include <>
25374 _ACEOF
25375 if { (ac_try="$ac_cpp conftest.$ac_ext"
25376 case "(($ac_try" in
25377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25378 *) ac_try_echo=$ac_try;;
25379 esac
25380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25382 ac_status=$?
25383 grep -v '^ *+' conftest.er1 >conftest.err
25384 rm -f conftest.er1
25385 cat conftest.err >&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } >/dev/null && {
25388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25389 test ! -s conftest.err
25390 }; then
25391 ac_header_preproc=yes
25392 else
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25396 ac_header_preproc=no
25399 rm -f conftest.err conftest.$ac_ext
25400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25401 echo "${ECHO_T}$ac_header_preproc" >&6; }
25403 # So? What about this header?
25404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25405 yes:no: )
25406 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25407 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25408 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25409 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25410 ac_header_preproc=yes
25412 no:yes:* )
25413 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25414 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25415 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25416 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25417 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25418 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25419 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25420 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25421 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25422 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25423 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25424 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25425 ( cat <<\_ASBOX
25426 ## ------------------------------- ##
25427 ## Report this to www.asterisk.org ##
25428 ## ------------------------------- ##
25429 _ASBOX
25430 ) | sed "s/^/$as_me: WARNING: /" >&2
25432 esac
25433 { echo "$as_me:$LINENO: checking for " >&5
25434 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25435 if test "${ac_cv_header_+set}" = set; then
25436 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 else
25438 ac_cv_header_=$ac_header_preproc
25440 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25441 echo "${ECHO_T}$ac_cv_header_" >&6; }
25444 if test $ac_cv_header_ = yes; then
25445 LOG2_HEADER_FOUND=1
25446 else
25447 LOG2_HEADER_FOUND=0
25451 CPPFLAGS="${saved_cppflags}"
25453 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25454 LOG2_LIB=""
25455 LOG2_INCLUDE=""
25456 else
25457 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25458 LOG2_LIB=""
25460 PBX_LOG2=1
25461 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_LOG2 1
25465 _ACEOF
25468 cat >>confdefs.h <<_ACEOF
25469 #define HAVE_LOG2_VERSION
25470 _ACEOF
25477 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25478 pbxlibdir=""
25479 # if --with-EXP10=DIR has been specified, use it.
25480 if test "x${EXP10_DIR}" != "x"; then
25481 if test -d ${EXP10_DIR}/lib; then
25482 pbxlibdir="-L${EXP10_DIR}/lib"
25483 else
25484 pbxlibdir="-L${EXP10_DIR}"
25487 pbxfuncname="exp10"
25488 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25489 AST_EXP10_FOUND=yes
25490 else
25491 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25492 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25493 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25494 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497 ac_check_lib_save_LIBS=$LIBS
25498 LIBS="-lm ${pbxlibdir} $LIBS"
25499 cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h. */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25506 /* Override any GCC internal prototype to avoid an error.
25507 Use char because int might match the return type of a GCC
25508 builtin and then its argument prototype would still apply. */
25509 #ifdef __cplusplus
25510 extern "C"
25511 #endif
25512 char ${pbxfuncname} ();
25514 main ()
25516 return ${pbxfuncname} ();
25518 return 0;
25520 _ACEOF
25521 rm -f conftest.$ac_objext conftest$ac_exeext
25522 if { (ac_try="$ac_link"
25523 case "(($ac_try" in
25524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525 *) ac_try_echo=$ac_try;;
25526 esac
25527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25528 (eval "$ac_link") 2>conftest.er1
25529 ac_status=$?
25530 grep -v '^ *+' conftest.er1 >conftest.err
25531 rm -f conftest.er1
25532 cat conftest.err >&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } && {
25535 test -z "$ac_c_werror_flag" ||
25536 test ! -s conftest.err
25537 } && test -s conftest$ac_exeext &&
25538 $as_test_x conftest$ac_exeext; then
25539 eval "$as_ac_Lib=yes"
25540 else
25541 echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25544 eval "$as_ac_Lib=no"
25547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25548 conftest$ac_exeext conftest.$ac_ext
25549 LIBS=$ac_check_lib_save_LIBS
25551 ac_res=`eval echo '${'$as_ac_Lib'}'`
25552 { echo "$as_me:$LINENO: result: $ac_res" >&5
25553 echo "${ECHO_T}$ac_res" >&6; }
25554 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25555 AST_EXP10_FOUND=yes
25556 else
25557 AST_EXP10_FOUND=no
25562 # now check for the header.
25563 if test "${AST_EXP10_FOUND}" = "yes"; then
25564 EXP10_LIB="${pbxlibdir} -lm "
25565 # if --with-EXP10=DIR has been specified, use it.
25566 if test "x${EXP10_DIR}" != "x"; then
25567 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25569 EXP10_INCLUDE="${EXP10_INCLUDE} "
25570 if test "x" = "x" ; then # no header, assume found
25571 EXP10_HEADER_FOUND="1"
25572 else # check for the header
25573 saved_cppflags="${CPPFLAGS}"
25574 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25575 if test "${ac_cv_header_+set}" = set; then
25576 { echo "$as_me:$LINENO: checking for " >&5
25577 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25578 if test "${ac_cv_header_+set}" = set; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25581 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25582 echo "${ECHO_T}$ac_cv_header_" >&6; }
25583 else
25584 # Is the header compilable?
25585 { echo "$as_me:$LINENO: checking usability" >&5
25586 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h. */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 $ac_includes_default
25594 #include <>
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (ac_try="$ac_compile"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_compile") 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest.$ac_objext; then
25613 ac_header_compiler=yes
25614 else
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25618 ac_header_compiler=no
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25623 echo "${ECHO_T}$ac_header_compiler" >&6; }
25625 # Is the header present?
25626 { echo "$as_me:$LINENO: checking presence" >&5
25627 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25628 cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h. */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25634 #include <>
25635 _ACEOF
25636 if { (ac_try="$ac_cpp conftest.$ac_ext"
25637 case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } >/dev/null && {
25649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 }; then
25652 ac_header_preproc=yes
25653 else
25654 echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25657 ac_header_preproc=no
25660 rm -f conftest.err conftest.$ac_ext
25661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25662 echo "${ECHO_T}$ac_header_preproc" >&6; }
25664 # So? What about this header?
25665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25666 yes:no: )
25667 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25668 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25670 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25671 ac_header_preproc=yes
25673 no:yes:* )
25674 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25675 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25676 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25677 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25678 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25679 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25680 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25681 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25682 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25683 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25685 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25686 ( cat <<\_ASBOX
25687 ## ------------------------------- ##
25688 ## Report this to www.asterisk.org ##
25689 ## ------------------------------- ##
25690 _ASBOX
25691 ) | sed "s/^/$as_me: WARNING: /" >&2
25693 esac
25694 { echo "$as_me:$LINENO: checking for " >&5
25695 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25696 if test "${ac_cv_header_+set}" = set; then
25697 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 else
25699 ac_cv_header_=$ac_header_preproc
25701 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25702 echo "${ECHO_T}$ac_cv_header_" >&6; }
25705 if test $ac_cv_header_ = yes; then
25706 EXP10_HEADER_FOUND=1
25707 else
25708 EXP10_HEADER_FOUND=0
25712 CPPFLAGS="${saved_cppflags}"
25714 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25715 EXP10_LIB=""
25716 EXP10_INCLUDE=""
25717 else
25718 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25719 EXP10_LIB=""
25721 PBX_EXP10=1
25722 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25724 cat >>confdefs.h <<_ACEOF
25725 #define HAVE_EXP10 1
25726 _ACEOF
25729 cat >>confdefs.h <<_ACEOF
25730 #define HAVE_EXP10_VERSION
25731 _ACEOF
25738 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25739 pbxlibdir=""
25740 # if --with-LOG10=DIR has been specified, use it.
25741 if test "x${LOG10_DIR}" != "x"; then
25742 if test -d ${LOG10_DIR}/lib; then
25743 pbxlibdir="-L${LOG10_DIR}/lib"
25744 else
25745 pbxlibdir="-L${LOG10_DIR}"
25748 pbxfuncname="log10"
25749 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25750 AST_LOG10_FOUND=yes
25751 else
25752 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25753 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25754 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25755 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758 ac_check_lib_save_LIBS=$LIBS
25759 LIBS="-lm ${pbxlibdir} $LIBS"
25760 cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h. */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25767 /* Override any GCC internal prototype to avoid an error.
25768 Use char because int might match the return type of a GCC
25769 builtin and then its argument prototype would still apply. */
25770 #ifdef __cplusplus
25771 extern "C"
25772 #endif
25773 char ${pbxfuncname} ();
25775 main ()
25777 return ${pbxfuncname} ();
25779 return 0;
25781 _ACEOF
25782 rm -f conftest.$ac_objext conftest$ac_exeext
25783 if { (ac_try="$ac_link"
25784 case "(($ac_try" in
25785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786 *) ac_try_echo=$ac_try;;
25787 esac
25788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789 (eval "$ac_link") 2>conftest.er1
25790 ac_status=$?
25791 grep -v '^ *+' conftest.er1 >conftest.err
25792 rm -f conftest.er1
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } && {
25796 test -z "$ac_c_werror_flag" ||
25797 test ! -s conftest.err
25798 } && test -s conftest$ac_exeext &&
25799 $as_test_x conftest$ac_exeext; then
25800 eval "$as_ac_Lib=yes"
25801 else
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25805 eval "$as_ac_Lib=no"
25808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25809 conftest$ac_exeext conftest.$ac_ext
25810 LIBS=$ac_check_lib_save_LIBS
25812 ac_res=`eval echo '${'$as_ac_Lib'}'`
25813 { echo "$as_me:$LINENO: result: $ac_res" >&5
25814 echo "${ECHO_T}$ac_res" >&6; }
25815 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25816 AST_LOG10_FOUND=yes
25817 else
25818 AST_LOG10_FOUND=no
25823 # now check for the header.
25824 if test "${AST_LOG10_FOUND}" = "yes"; then
25825 LOG10_LIB="${pbxlibdir} -lm "
25826 # if --with-LOG10=DIR has been specified, use it.
25827 if test "x${LOG10_DIR}" != "x"; then
25828 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25830 LOG10_INCLUDE="${LOG10_INCLUDE} "
25831 if test "x" = "x" ; then # no header, assume found
25832 LOG10_HEADER_FOUND="1"
25833 else # check for the header
25834 saved_cppflags="${CPPFLAGS}"
25835 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
25836 if test "${ac_cv_header_+set}" = set; then
25837 { echo "$as_me:$LINENO: checking for " >&5
25838 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25839 if test "${ac_cv_header_+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25843 echo "${ECHO_T}$ac_cv_header_" >&6; }
25844 else
25845 # Is the header compilable?
25846 { echo "$as_me:$LINENO: checking usability" >&5
25847 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25848 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h. */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 $ac_includes_default
25855 #include <>
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25862 esac
25863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25864 (eval "$ac_compile") 2>conftest.er1
25865 ac_status=$?
25866 grep -v '^ *+' conftest.er1 >conftest.err
25867 rm -f conftest.er1
25868 cat conftest.err >&5
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } && {
25871 test -z "$ac_c_werror_flag" ||
25872 test ! -s conftest.err
25873 } && test -s conftest.$ac_objext; then
25874 ac_header_compiler=yes
25875 else
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25879 ac_header_compiler=no
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25884 echo "${ECHO_T}$ac_header_compiler" >&6; }
25886 # Is the header present?
25887 { echo "$as_me:$LINENO: checking presence" >&5
25888 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25889 cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 #include <>
25896 _ACEOF
25897 if { (ac_try="$ac_cpp conftest.$ac_ext"
25898 case "(($ac_try" in
25899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25900 *) ac_try_echo=$ac_try;;
25901 esac
25902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25904 ac_status=$?
25905 grep -v '^ *+' conftest.er1 >conftest.err
25906 rm -f conftest.er1
25907 cat conftest.err >&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } >/dev/null && {
25910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25911 test ! -s conftest.err
25912 }; then
25913 ac_header_preproc=yes
25914 else
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25918 ac_header_preproc=no
25921 rm -f conftest.err conftest.$ac_ext
25922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25923 echo "${ECHO_T}$ac_header_preproc" >&6; }
25925 # So? What about this header?
25926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25927 yes:no: )
25928 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25929 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25930 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25931 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25932 ac_header_preproc=yes
25934 no:yes:* )
25935 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25936 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25937 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25938 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25940 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25942 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25943 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25944 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25946 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25947 ( cat <<\_ASBOX
25948 ## ------------------------------- ##
25949 ## Report this to www.asterisk.org ##
25950 ## ------------------------------- ##
25951 _ASBOX
25952 ) | sed "s/^/$as_me: WARNING: /" >&2
25954 esac
25955 { echo "$as_me:$LINENO: checking for " >&5
25956 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25957 if test "${ac_cv_header_+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25959 else
25960 ac_cv_header_=$ac_header_preproc
25962 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25963 echo "${ECHO_T}$ac_cv_header_" >&6; }
25966 if test $ac_cv_header_ = yes; then
25967 LOG10_HEADER_FOUND=1
25968 else
25969 LOG10_HEADER_FOUND=0
25973 CPPFLAGS="${saved_cppflags}"
25975 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
25976 LOG10_LIB=""
25977 LOG10_INCLUDE=""
25978 else
25979 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25980 LOG10_LIB=""
25982 PBX_LOG10=1
25983 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25985 cat >>confdefs.h <<_ACEOF
25986 #define HAVE_LOG10 1
25987 _ACEOF
25990 cat >>confdefs.h <<_ACEOF
25991 #define HAVE_LOG10_VERSION
25992 _ACEOF
25999 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26000 pbxlibdir=""
26001 # if --with-SIN=DIR has been specified, use it.
26002 if test "x${SIN_DIR}" != "x"; then
26003 if test -d ${SIN_DIR}/lib; then
26004 pbxlibdir="-L${SIN_DIR}/lib"
26005 else
26006 pbxlibdir="-L${SIN_DIR}"
26009 pbxfuncname="sin"
26010 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26011 AST_SIN_FOUND=yes
26012 else
26013 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26014 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26015 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26016 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 else
26019 ac_check_lib_save_LIBS=$LIBS
26020 LIBS="-lm ${pbxlibdir} $LIBS"
26021 cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h. */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26028 /* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26031 #ifdef __cplusplus
26032 extern "C"
26033 #endif
26034 char ${pbxfuncname} ();
26036 main ()
26038 return ${pbxfuncname} ();
26040 return 0;
26042 _ACEOF
26043 rm -f conftest.$ac_objext conftest$ac_exeext
26044 if { (ac_try="$ac_link"
26045 case "(($ac_try" in
26046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26048 esac
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_link") 2>conftest.er1
26051 ac_status=$?
26052 grep -v '^ *+' conftest.er1 >conftest.err
26053 rm -f conftest.er1
26054 cat conftest.err >&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); } && {
26057 test -z "$ac_c_werror_flag" ||
26058 test ! -s conftest.err
26059 } && test -s conftest$ac_exeext &&
26060 $as_test_x conftest$ac_exeext; then
26061 eval "$as_ac_Lib=yes"
26062 else
26063 echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26066 eval "$as_ac_Lib=no"
26069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26070 conftest$ac_exeext conftest.$ac_ext
26071 LIBS=$ac_check_lib_save_LIBS
26073 ac_res=`eval echo '${'$as_ac_Lib'}'`
26074 { echo "$as_me:$LINENO: result: $ac_res" >&5
26075 echo "${ECHO_T}$ac_res" >&6; }
26076 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26077 AST_SIN_FOUND=yes
26078 else
26079 AST_SIN_FOUND=no
26084 # now check for the header.
26085 if test "${AST_SIN_FOUND}" = "yes"; then
26086 SIN_LIB="${pbxlibdir} -lm "
26087 # if --with-SIN=DIR has been specified, use it.
26088 if test "x${SIN_DIR}" != "x"; then
26089 SIN_INCLUDE="-I${SIN_DIR}/include"
26091 SIN_INCLUDE="${SIN_INCLUDE} "
26092 if test "x" = "x" ; then # no header, assume found
26093 SIN_HEADER_FOUND="1"
26094 else # check for the header
26095 saved_cppflags="${CPPFLAGS}"
26096 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
26097 if test "${ac_cv_header_+set}" = set; then
26098 { echo "$as_me:$LINENO: checking for " >&5
26099 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26100 if test "${ac_cv_header_+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26103 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26104 echo "${ECHO_T}$ac_cv_header_" >&6; }
26105 else
26106 # Is the header compilable?
26107 { echo "$as_me:$LINENO: checking usability" >&5
26108 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26109 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h. */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 $ac_includes_default
26116 #include <>
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_compile") 2>conftest.er1
26126 ac_status=$?
26127 grep -v '^ *+' conftest.er1 >conftest.err
26128 rm -f conftest.er1
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } && {
26132 test -z "$ac_c_werror_flag" ||
26133 test ! -s conftest.err
26134 } && test -s conftest.$ac_objext; then
26135 ac_header_compiler=yes
26136 else
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 ac_header_compiler=no
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26145 echo "${ECHO_T}$ac_header_compiler" >&6; }
26147 # Is the header present?
26148 { echo "$as_me:$LINENO: checking presence" >&5
26149 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26150 cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h. */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 #include <>
26157 _ACEOF
26158 if { (ac_try="$ac_cpp conftest.$ac_ext"
26159 case "(($ac_try" in
26160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161 *) ac_try_echo=$ac_try;;
26162 esac
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } >/dev/null && {
26171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26172 test ! -s conftest.err
26173 }; then
26174 ac_header_preproc=yes
26175 else
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26179 ac_header_preproc=no
26182 rm -f conftest.err conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184 echo "${ECHO_T}$ac_header_preproc" >&6; }
26186 # So? What about this header?
26187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188 yes:no: )
26189 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26190 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26192 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26193 ac_header_preproc=yes
26195 no:yes:* )
26196 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26197 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26198 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26199 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26201 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26203 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26205 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26207 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26208 ( cat <<\_ASBOX
26209 ## ------------------------------- ##
26210 ## Report this to www.asterisk.org ##
26211 ## ------------------------------- ##
26212 _ASBOX
26213 ) | sed "s/^/$as_me: WARNING: /" >&2
26215 esac
26216 { echo "$as_me:$LINENO: checking for " >&5
26217 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26218 if test "${ac_cv_header_+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221 ac_cv_header_=$ac_header_preproc
26223 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26224 echo "${ECHO_T}$ac_cv_header_" >&6; }
26227 if test $ac_cv_header_ = yes; then
26228 SIN_HEADER_FOUND=1
26229 else
26230 SIN_HEADER_FOUND=0
26234 CPPFLAGS="${saved_cppflags}"
26236 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26237 SIN_LIB=""
26238 SIN_INCLUDE=""
26239 else
26240 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26241 SIN_LIB=""
26243 PBX_SIN=1
26244 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26246 cat >>confdefs.h <<_ACEOF
26247 #define HAVE_SIN 1
26248 _ACEOF
26251 cat >>confdefs.h <<_ACEOF
26252 #define HAVE_SIN_VERSION
26253 _ACEOF
26260 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26261 pbxlibdir=""
26262 # if --with-COS=DIR has been specified, use it.
26263 if test "x${COS_DIR}" != "x"; then
26264 if test -d ${COS_DIR}/lib; then
26265 pbxlibdir="-L${COS_DIR}/lib"
26266 else
26267 pbxlibdir="-L${COS_DIR}"
26270 pbxfuncname="cos"
26271 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26272 AST_COS_FOUND=yes
26273 else
26274 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26275 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26276 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26277 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26278 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 else
26280 ac_check_lib_save_LIBS=$LIBS
26281 LIBS="-lm ${pbxlibdir} $LIBS"
26282 cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h. */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26289 /* Override any GCC internal prototype to avoid an error.
26290 Use char because int might match the return type of a GCC
26291 builtin and then its argument prototype would still apply. */
26292 #ifdef __cplusplus
26293 extern "C"
26294 #endif
26295 char ${pbxfuncname} ();
26297 main ()
26299 return ${pbxfuncname} ();
26301 return 0;
26303 _ACEOF
26304 rm -f conftest.$ac_objext conftest$ac_exeext
26305 if { (ac_try="$ac_link"
26306 case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26309 esac
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_link") 2>conftest.er1
26312 ac_status=$?
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } && {
26318 test -z "$ac_c_werror_flag" ||
26319 test ! -s conftest.err
26320 } && test -s conftest$ac_exeext &&
26321 $as_test_x conftest$ac_exeext; then
26322 eval "$as_ac_Lib=yes"
26323 else
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 eval "$as_ac_Lib=no"
26330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26331 conftest$ac_exeext conftest.$ac_ext
26332 LIBS=$ac_check_lib_save_LIBS
26334 ac_res=`eval echo '${'$as_ac_Lib'}'`
26335 { echo "$as_me:$LINENO: result: $ac_res" >&5
26336 echo "${ECHO_T}$ac_res" >&6; }
26337 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26338 AST_COS_FOUND=yes
26339 else
26340 AST_COS_FOUND=no
26345 # now check for the header.
26346 if test "${AST_COS_FOUND}" = "yes"; then
26347 COS_LIB="${pbxlibdir} -lm "
26348 # if --with-COS=DIR has been specified, use it.
26349 if test "x${COS_DIR}" != "x"; then
26350 COS_INCLUDE="-I${COS_DIR}/include"
26352 COS_INCLUDE="${COS_INCLUDE} "
26353 if test "x" = "x" ; then # no header, assume found
26354 COS_HEADER_FOUND="1"
26355 else # check for the header
26356 saved_cppflags="${CPPFLAGS}"
26357 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26358 if test "${ac_cv_header_+set}" = set; then
26359 { echo "$as_me:$LINENO: checking for " >&5
26360 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26361 if test "${ac_cv_header_+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26365 echo "${ECHO_T}$ac_cv_header_" >&6; }
26366 else
26367 # Is the header compilable?
26368 { echo "$as_me:$LINENO: checking usability" >&5
26369 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26370 cat >conftest.$ac_ext <<_ACEOF
26371 /* confdefs.h. */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h. */
26376 $ac_includes_default
26377 #include <>
26378 _ACEOF
26379 rm -f conftest.$ac_objext
26380 if { (ac_try="$ac_compile"
26381 case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26384 esac
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_compile") 2>conftest.er1
26387 ac_status=$?
26388 grep -v '^ *+' conftest.er1 >conftest.err
26389 rm -f conftest.er1
26390 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && {
26393 test -z "$ac_c_werror_flag" ||
26394 test ! -s conftest.err
26395 } && test -s conftest.$ac_objext; then
26396 ac_header_compiler=yes
26397 else
26398 echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26401 ac_header_compiler=no
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26406 echo "${ECHO_T}$ac_header_compiler" >&6; }
26408 # Is the header present?
26409 { echo "$as_me:$LINENO: checking presence" >&5
26410 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26411 cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h. */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 #include <>
26418 _ACEOF
26419 if { (ac_try="$ac_cpp conftest.$ac_ext"
26420 case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26423 esac
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26426 ac_status=$?
26427 grep -v '^ *+' conftest.er1 >conftest.err
26428 rm -f conftest.er1
26429 cat conftest.err >&5
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } >/dev/null && {
26432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26433 test ! -s conftest.err
26434 }; then
26435 ac_header_preproc=yes
26436 else
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 ac_header_preproc=no
26443 rm -f conftest.err conftest.$ac_ext
26444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26445 echo "${ECHO_T}$ac_header_preproc" >&6; }
26447 # So? What about this header?
26448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26449 yes:no: )
26450 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26451 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26452 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26453 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26454 ac_header_preproc=yes
26456 no:yes:* )
26457 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26458 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26459 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26460 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26461 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26462 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26463 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26464 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26465 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26466 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26467 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26468 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26469 ( cat <<\_ASBOX
26470 ## ------------------------------- ##
26471 ## Report this to www.asterisk.org ##
26472 ## ------------------------------- ##
26473 _ASBOX
26474 ) | sed "s/^/$as_me: WARNING: /" >&2
26476 esac
26477 { echo "$as_me:$LINENO: checking for " >&5
26478 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26479 if test "${ac_cv_header_+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482 ac_cv_header_=$ac_header_preproc
26484 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26485 echo "${ECHO_T}$ac_cv_header_" >&6; }
26488 if test $ac_cv_header_ = yes; then
26489 COS_HEADER_FOUND=1
26490 else
26491 COS_HEADER_FOUND=0
26495 CPPFLAGS="${saved_cppflags}"
26497 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26498 COS_LIB=""
26499 COS_INCLUDE=""
26500 else
26501 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26502 COS_LIB=""
26504 PBX_COS=1
26505 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26507 cat >>confdefs.h <<_ACEOF
26508 #define HAVE_COS 1
26509 _ACEOF
26512 cat >>confdefs.h <<_ACEOF
26513 #define HAVE_COS_VERSION
26514 _ACEOF
26521 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26522 pbxlibdir=""
26523 # if --with-TAN=DIR has been specified, use it.
26524 if test "x${TAN_DIR}" != "x"; then
26525 if test -d ${TAN_DIR}/lib; then
26526 pbxlibdir="-L${TAN_DIR}/lib"
26527 else
26528 pbxlibdir="-L${TAN_DIR}"
26531 pbxfuncname="tan"
26532 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26533 AST_TAN_FOUND=yes
26534 else
26535 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26536 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26537 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26538 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26540 else
26541 ac_check_lib_save_LIBS=$LIBS
26542 LIBS="-lm ${pbxlibdir} $LIBS"
26543 cat >conftest.$ac_ext <<_ACEOF
26544 /* confdefs.h. */
26545 _ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h. */
26550 /* Override any GCC internal prototype to avoid an error.
26551 Use char because int might match the return type of a GCC
26552 builtin and then its argument prototype would still apply. */
26553 #ifdef __cplusplus
26554 extern "C"
26555 #endif
26556 char ${pbxfuncname} ();
26558 main ()
26560 return ${pbxfuncname} ();
26562 return 0;
26564 _ACEOF
26565 rm -f conftest.$ac_objext conftest$ac_exeext
26566 if { (ac_try="$ac_link"
26567 case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_link") 2>conftest.er1
26573 ac_status=$?
26574 grep -v '^ *+' conftest.er1 >conftest.err
26575 rm -f conftest.er1
26576 cat conftest.err >&5
26577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest$ac_exeext &&
26582 $as_test_x conftest$ac_exeext; then
26583 eval "$as_ac_Lib=yes"
26584 else
26585 echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26588 eval "$as_ac_Lib=no"
26591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26592 conftest$ac_exeext conftest.$ac_ext
26593 LIBS=$ac_check_lib_save_LIBS
26595 ac_res=`eval echo '${'$as_ac_Lib'}'`
26596 { echo "$as_me:$LINENO: result: $ac_res" >&5
26597 echo "${ECHO_T}$ac_res" >&6; }
26598 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26599 AST_TAN_FOUND=yes
26600 else
26601 AST_TAN_FOUND=no
26606 # now check for the header.
26607 if test "${AST_TAN_FOUND}" = "yes"; then
26608 TAN_LIB="${pbxlibdir} -lm "
26609 # if --with-TAN=DIR has been specified, use it.
26610 if test "x${TAN_DIR}" != "x"; then
26611 TAN_INCLUDE="-I${TAN_DIR}/include"
26613 TAN_INCLUDE="${TAN_INCLUDE} "
26614 if test "x" = "x" ; then # no header, assume found
26615 TAN_HEADER_FOUND="1"
26616 else # check for the header
26617 saved_cppflags="${CPPFLAGS}"
26618 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26619 if test "${ac_cv_header_+set}" = set; then
26620 { echo "$as_me:$LINENO: checking for " >&5
26621 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26622 if test "${ac_cv_header_+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26626 echo "${ECHO_T}$ac_cv_header_" >&6; }
26627 else
26628 # Is the header compilable?
26629 { echo "$as_me:$LINENO: checking usability" >&5
26630 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26631 cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h. */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637 $ac_includes_default
26638 #include <>
26639 _ACEOF
26640 rm -f conftest.$ac_objext
26641 if { (ac_try="$ac_compile"
26642 case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647 (eval "$ac_compile") 2>conftest.er1
26648 ac_status=$?
26649 grep -v '^ *+' conftest.er1 >conftest.err
26650 rm -f conftest.er1
26651 cat conftest.err >&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } && {
26654 test -z "$ac_c_werror_flag" ||
26655 test ! -s conftest.err
26656 } && test -s conftest.$ac_objext; then
26657 ac_header_compiler=yes
26658 else
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26662 ac_header_compiler=no
26665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26667 echo "${ECHO_T}$ac_header_compiler" >&6; }
26669 # Is the header present?
26670 { echo "$as_me:$LINENO: checking presence" >&5
26671 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26672 cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h. */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26678 #include <>
26679 _ACEOF
26680 if { (ac_try="$ac_cpp conftest.$ac_ext"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26687 ac_status=$?
26688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } >/dev/null && {
26693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 }; then
26696 ac_header_preproc=yes
26697 else
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ac_header_preproc=no
26704 rm -f conftest.err conftest.$ac_ext
26705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26706 echo "${ECHO_T}$ac_header_preproc" >&6; }
26708 # So? What about this header?
26709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26710 yes:no: )
26711 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26712 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26713 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26714 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26715 ac_header_preproc=yes
26717 no:yes:* )
26718 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26719 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26721 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26723 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26725 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26726 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26727 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26729 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26730 ( cat <<\_ASBOX
26731 ## ------------------------------- ##
26732 ## Report this to www.asterisk.org ##
26733 ## ------------------------------- ##
26734 _ASBOX
26735 ) | sed "s/^/$as_me: WARNING: /" >&2
26737 esac
26738 { echo "$as_me:$LINENO: checking for " >&5
26739 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26740 if test "${ac_cv_header_+set}" = set; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 else
26743 ac_cv_header_=$ac_header_preproc
26745 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26746 echo "${ECHO_T}$ac_cv_header_" >&6; }
26749 if test $ac_cv_header_ = yes; then
26750 TAN_HEADER_FOUND=1
26751 else
26752 TAN_HEADER_FOUND=0
26756 CPPFLAGS="${saved_cppflags}"
26758 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26759 TAN_LIB=""
26760 TAN_INCLUDE=""
26761 else
26762 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26763 TAN_LIB=""
26765 PBX_TAN=1
26766 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26768 cat >>confdefs.h <<_ACEOF
26769 #define HAVE_TAN 1
26770 _ACEOF
26773 cat >>confdefs.h <<_ACEOF
26774 #define HAVE_TAN_VERSION
26775 _ACEOF
26782 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26783 pbxlibdir=""
26784 # if --with-ASIN=DIR has been specified, use it.
26785 if test "x${ASIN_DIR}" != "x"; then
26786 if test -d ${ASIN_DIR}/lib; then
26787 pbxlibdir="-L${ASIN_DIR}/lib"
26788 else
26789 pbxlibdir="-L${ASIN_DIR}"
26792 pbxfuncname="asin"
26793 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26794 AST_ASIN_FOUND=yes
26795 else
26796 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26797 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26798 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26799 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26800 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 else
26802 ac_check_lib_save_LIBS=$LIBS
26803 LIBS="-lm ${pbxlibdir} $LIBS"
26804 cat >conftest.$ac_ext <<_ACEOF
26805 /* confdefs.h. */
26806 _ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26811 /* Override any GCC internal prototype to avoid an error.
26812 Use char because int might match the return type of a GCC
26813 builtin and then its argument prototype would still apply. */
26814 #ifdef __cplusplus
26815 extern "C"
26816 #endif
26817 char ${pbxfuncname} ();
26819 main ()
26821 return ${pbxfuncname} ();
26823 return 0;
26825 _ACEOF
26826 rm -f conftest.$ac_objext conftest$ac_exeext
26827 if { (ac_try="$ac_link"
26828 case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26831 esac
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833 (eval "$ac_link") 2>conftest.er1
26834 ac_status=$?
26835 grep -v '^ *+' conftest.er1 >conftest.err
26836 rm -f conftest.er1
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } && {
26840 test -z "$ac_c_werror_flag" ||
26841 test ! -s conftest.err
26842 } && test -s conftest$ac_exeext &&
26843 $as_test_x conftest$ac_exeext; then
26844 eval "$as_ac_Lib=yes"
26845 else
26846 echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26849 eval "$as_ac_Lib=no"
26852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26853 conftest$ac_exeext conftest.$ac_ext
26854 LIBS=$ac_check_lib_save_LIBS
26856 ac_res=`eval echo '${'$as_ac_Lib'}'`
26857 { echo "$as_me:$LINENO: result: $ac_res" >&5
26858 echo "${ECHO_T}$ac_res" >&6; }
26859 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26860 AST_ASIN_FOUND=yes
26861 else
26862 AST_ASIN_FOUND=no
26867 # now check for the header.
26868 if test "${AST_ASIN_FOUND}" = "yes"; then
26869 ASIN_LIB="${pbxlibdir} -lm "
26870 # if --with-ASIN=DIR has been specified, use it.
26871 if test "x${ASIN_DIR}" != "x"; then
26872 ASIN_INCLUDE="-I${ASIN_DIR}/include"
26874 ASIN_INCLUDE="${ASIN_INCLUDE} "
26875 if test "x" = "x" ; then # no header, assume found
26876 ASIN_HEADER_FOUND="1"
26877 else # check for the header
26878 saved_cppflags="${CPPFLAGS}"
26879 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
26880 if test "${ac_cv_header_+set}" = set; then
26881 { echo "$as_me:$LINENO: checking for " >&5
26882 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26883 if test "${ac_cv_header_+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26887 echo "${ECHO_T}$ac_cv_header_" >&6; }
26888 else
26889 # Is the header compilable?
26890 { echo "$as_me:$LINENO: checking usability" >&5
26891 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26892 cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h. */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26898 $ac_includes_default
26899 #include <>
26900 _ACEOF
26901 rm -f conftest.$ac_objext
26902 if { (ac_try="$ac_compile"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_compile") 2>conftest.er1
26909 ac_status=$?
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && {
26915 test -z "$ac_c_werror_flag" ||
26916 test ! -s conftest.err
26917 } && test -s conftest.$ac_objext; then
26918 ac_header_compiler=yes
26919 else
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 ac_header_compiler=no
26926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26928 echo "${ECHO_T}$ac_header_compiler" >&6; }
26930 # Is the header present?
26931 { echo "$as_me:$LINENO: checking presence" >&5
26932 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26933 cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h. */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <>
26940 _ACEOF
26941 if { (ac_try="$ac_cpp conftest.$ac_ext"
26942 case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26948 ac_status=$?
26949 grep -v '^ *+' conftest.er1 >conftest.err
26950 rm -f conftest.er1
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } >/dev/null && {
26954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26955 test ! -s conftest.err
26956 }; then
26957 ac_header_preproc=yes
26958 else
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 ac_header_preproc=no
26965 rm -f conftest.err conftest.$ac_ext
26966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26967 echo "${ECHO_T}$ac_header_preproc" >&6; }
26969 # So? What about this header?
26970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26971 yes:no: )
26972 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26973 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26974 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26975 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26976 ac_header_preproc=yes
26978 no:yes:* )
26979 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26980 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26982 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26984 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26986 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26988 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26990 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26991 ( cat <<\_ASBOX
26992 ## ------------------------------- ##
26993 ## Report this to www.asterisk.org ##
26994 ## ------------------------------- ##
26995 _ASBOX
26996 ) | sed "s/^/$as_me: WARNING: /" >&2
26998 esac
26999 { echo "$as_me:$LINENO: checking for " >&5
27000 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27001 if test "${ac_cv_header_+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004 ac_cv_header_=$ac_header_preproc
27006 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27007 echo "${ECHO_T}$ac_cv_header_" >&6; }
27010 if test $ac_cv_header_ = yes; then
27011 ASIN_HEADER_FOUND=1
27012 else
27013 ASIN_HEADER_FOUND=0
27017 CPPFLAGS="${saved_cppflags}"
27019 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27020 ASIN_LIB=""
27021 ASIN_INCLUDE=""
27022 else
27023 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27024 ASIN_LIB=""
27026 PBX_ASIN=1
27027 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27029 cat >>confdefs.h <<_ACEOF
27030 #define HAVE_ASIN 1
27031 _ACEOF
27034 cat >>confdefs.h <<_ACEOF
27035 #define HAVE_ASIN_VERSION
27036 _ACEOF
27043 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27044 pbxlibdir=""
27045 # if --with-ACOS=DIR has been specified, use it.
27046 if test "x${ACOS_DIR}" != "x"; then
27047 if test -d ${ACOS_DIR}/lib; then
27048 pbxlibdir="-L${ACOS_DIR}/lib"
27049 else
27050 pbxlibdir="-L${ACOS_DIR}"
27053 pbxfuncname="acos"
27054 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27055 AST_ACOS_FOUND=yes
27056 else
27057 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27058 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27059 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27060 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063 ac_check_lib_save_LIBS=$LIBS
27064 LIBS="-lm ${pbxlibdir} $LIBS"
27065 cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h. */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27072 /* Override any GCC internal prototype to avoid an error.
27073 Use char because int might match the return type of a GCC
27074 builtin and then its argument prototype would still apply. */
27075 #ifdef __cplusplus
27076 extern "C"
27077 #endif
27078 char ${pbxfuncname} ();
27080 main ()
27082 return ${pbxfuncname} ();
27084 return 0;
27086 _ACEOF
27087 rm -f conftest.$ac_objext conftest$ac_exeext
27088 if { (ac_try="$ac_link"
27089 case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_link") 2>conftest.er1
27095 ac_status=$?
27096 grep -v '^ *+' conftest.er1 >conftest.err
27097 rm -f conftest.er1
27098 cat conftest.err >&5
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } && {
27101 test -z "$ac_c_werror_flag" ||
27102 test ! -s conftest.err
27103 } && test -s conftest$ac_exeext &&
27104 $as_test_x conftest$ac_exeext; then
27105 eval "$as_ac_Lib=yes"
27106 else
27107 echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27110 eval "$as_ac_Lib=no"
27113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27114 conftest$ac_exeext conftest.$ac_ext
27115 LIBS=$ac_check_lib_save_LIBS
27117 ac_res=`eval echo '${'$as_ac_Lib'}'`
27118 { echo "$as_me:$LINENO: result: $ac_res" >&5
27119 echo "${ECHO_T}$ac_res" >&6; }
27120 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27121 AST_ACOS_FOUND=yes
27122 else
27123 AST_ACOS_FOUND=no
27128 # now check for the header.
27129 if test "${AST_ACOS_FOUND}" = "yes"; then
27130 ACOS_LIB="${pbxlibdir} -lm "
27131 # if --with-ACOS=DIR has been specified, use it.
27132 if test "x${ACOS_DIR}" != "x"; then
27133 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27135 ACOS_INCLUDE="${ACOS_INCLUDE} "
27136 if test "x" = "x" ; then # no header, assume found
27137 ACOS_HEADER_FOUND="1"
27138 else # check for the header
27139 saved_cppflags="${CPPFLAGS}"
27140 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
27141 if test "${ac_cv_header_+set}" = set; then
27142 { echo "$as_me:$LINENO: checking for " >&5
27143 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27144 if test "${ac_cv_header_+set}" = set; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27147 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27148 echo "${ECHO_T}$ac_cv_header_" >&6; }
27149 else
27150 # Is the header compilable?
27151 { echo "$as_me:$LINENO: checking usability" >&5
27152 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 $ac_includes_default
27160 #include <>
27161 _ACEOF
27162 rm -f conftest.$ac_objext
27163 if { (ac_try="$ac_compile"
27164 case "(($ac_try" in
27165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27166 *) ac_try_echo=$ac_try;;
27167 esac
27168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27169 (eval "$ac_compile") 2>conftest.er1
27170 ac_status=$?
27171 grep -v '^ *+' conftest.er1 >conftest.err
27172 rm -f conftest.er1
27173 cat conftest.err >&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && {
27176 test -z "$ac_c_werror_flag" ||
27177 test ! -s conftest.err
27178 } && test -s conftest.$ac_objext; then
27179 ac_header_compiler=yes
27180 else
27181 echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27184 ac_header_compiler=no
27187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27189 echo "${ECHO_T}$ac_header_compiler" >&6; }
27191 # Is the header present?
27192 { echo "$as_me:$LINENO: checking presence" >&5
27193 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h. */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 #include <>
27201 _ACEOF
27202 if { (ac_try="$ac_cpp conftest.$ac_ext"
27203 case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27209 ac_status=$?
27210 grep -v '^ *+' conftest.er1 >conftest.err
27211 rm -f conftest.er1
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } >/dev/null && {
27215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27216 test ! -s conftest.err
27217 }; then
27218 ac_header_preproc=yes
27219 else
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 ac_header_preproc=no
27226 rm -f conftest.err conftest.$ac_ext
27227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27228 echo "${ECHO_T}$ac_header_preproc" >&6; }
27230 # So? What about this header?
27231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27232 yes:no: )
27233 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27234 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27235 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27236 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27237 ac_header_preproc=yes
27239 no:yes:* )
27240 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27241 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27242 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27243 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27244 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27245 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27246 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27247 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27248 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27249 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27250 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27251 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27252 ( cat <<\_ASBOX
27253 ## ------------------------------- ##
27254 ## Report this to www.asterisk.org ##
27255 ## ------------------------------- ##
27256 _ASBOX
27257 ) | sed "s/^/$as_me: WARNING: /" >&2
27259 esac
27260 { echo "$as_me:$LINENO: checking for " >&5
27261 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27262 if test "${ac_cv_header_+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27264 else
27265 ac_cv_header_=$ac_header_preproc
27267 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27268 echo "${ECHO_T}$ac_cv_header_" >&6; }
27271 if test $ac_cv_header_ = yes; then
27272 ACOS_HEADER_FOUND=1
27273 else
27274 ACOS_HEADER_FOUND=0
27278 CPPFLAGS="${saved_cppflags}"
27280 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27281 ACOS_LIB=""
27282 ACOS_INCLUDE=""
27283 else
27284 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27285 ACOS_LIB=""
27287 PBX_ACOS=1
27288 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27290 cat >>confdefs.h <<_ACEOF
27291 #define HAVE_ACOS 1
27292 _ACEOF
27295 cat >>confdefs.h <<_ACEOF
27296 #define HAVE_ACOS_VERSION
27297 _ACEOF
27304 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27305 pbxlibdir=""
27306 # if --with-ATAN=DIR has been specified, use it.
27307 if test "x${ATAN_DIR}" != "x"; then
27308 if test -d ${ATAN_DIR}/lib; then
27309 pbxlibdir="-L${ATAN_DIR}/lib"
27310 else
27311 pbxlibdir="-L${ATAN_DIR}"
27314 pbxfuncname="atan"
27315 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27316 AST_ATAN_FOUND=yes
27317 else
27318 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27319 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27320 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27321 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324 ac_check_lib_save_LIBS=$LIBS
27325 LIBS="-lm ${pbxlibdir} $LIBS"
27326 cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h. */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27333 /* Override any GCC internal prototype to avoid an error.
27334 Use char because int might match the return type of a GCC
27335 builtin and then its argument prototype would still apply. */
27336 #ifdef __cplusplus
27337 extern "C"
27338 #endif
27339 char ${pbxfuncname} ();
27341 main ()
27343 return ${pbxfuncname} ();
27345 return 0;
27347 _ACEOF
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (ac_try="$ac_link"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_link") 2>conftest.er1
27356 ac_status=$?
27357 grep -v '^ *+' conftest.er1 >conftest.err
27358 rm -f conftest.er1
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } && {
27362 test -z "$ac_c_werror_flag" ||
27363 test ! -s conftest.err
27364 } && test -s conftest$ac_exeext &&
27365 $as_test_x conftest$ac_exeext; then
27366 eval "$as_ac_Lib=yes"
27367 else
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 eval "$as_ac_Lib=no"
27374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27375 conftest$ac_exeext conftest.$ac_ext
27376 LIBS=$ac_check_lib_save_LIBS
27378 ac_res=`eval echo '${'$as_ac_Lib'}'`
27379 { echo "$as_me:$LINENO: result: $ac_res" >&5
27380 echo "${ECHO_T}$ac_res" >&6; }
27381 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27382 AST_ATAN_FOUND=yes
27383 else
27384 AST_ATAN_FOUND=no
27389 # now check for the header.
27390 if test "${AST_ATAN_FOUND}" = "yes"; then
27391 ATAN_LIB="${pbxlibdir} -lm "
27392 # if --with-ATAN=DIR has been specified, use it.
27393 if test "x${ATAN_DIR}" != "x"; then
27394 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27396 ATAN_INCLUDE="${ATAN_INCLUDE} "
27397 if test "x" = "x" ; then # no header, assume found
27398 ATAN_HEADER_FOUND="1"
27399 else # check for the header
27400 saved_cppflags="${CPPFLAGS}"
27401 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27402 if test "${ac_cv_header_+set}" = set; then
27403 { echo "$as_me:$LINENO: checking for " >&5
27404 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27405 if test "${ac_cv_header_+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27408 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27409 echo "${ECHO_T}$ac_cv_header_" >&6; }
27410 else
27411 # Is the header compilable?
27412 { echo "$as_me:$LINENO: checking usability" >&5
27413 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27414 cat >conftest.$ac_ext <<_ACEOF
27415 /* confdefs.h. */
27416 _ACEOF
27417 cat confdefs.h >>conftest.$ac_ext
27418 cat >>conftest.$ac_ext <<_ACEOF
27419 /* end confdefs.h. */
27420 $ac_includes_default
27421 #include <>
27422 _ACEOF
27423 rm -f conftest.$ac_objext
27424 if { (ac_try="$ac_compile"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27428 esac
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_compile") 2>conftest.er1
27431 ac_status=$?
27432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } && {
27437 test -z "$ac_c_werror_flag" ||
27438 test ! -s conftest.err
27439 } && test -s conftest.$ac_objext; then
27440 ac_header_compiler=yes
27441 else
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27445 ac_header_compiler=no
27448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27450 echo "${ECHO_T}$ac_header_compiler" >&6; }
27452 # Is the header present?
27453 { echo "$as_me:$LINENO: checking presence" >&5
27454 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27455 cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h. */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27461 #include <>
27462 _ACEOF
27463 if { (ac_try="$ac_cpp conftest.$ac_ext"
27464 case "(($ac_try" in
27465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466 *) ac_try_echo=$ac_try;;
27467 esac
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27470 ac_status=$?
27471 grep -v '^ *+' conftest.er1 >conftest.err
27472 rm -f conftest.er1
27473 cat conftest.err >&5
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); } >/dev/null && {
27476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27477 test ! -s conftest.err
27478 }; then
27479 ac_header_preproc=yes
27480 else
27481 echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27484 ac_header_preproc=no
27487 rm -f conftest.err conftest.$ac_ext
27488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27489 echo "${ECHO_T}$ac_header_preproc" >&6; }
27491 # So? What about this header?
27492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27493 yes:no: )
27494 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27495 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27497 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27498 ac_header_preproc=yes
27500 no:yes:* )
27501 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27502 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27503 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27504 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27505 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27506 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27507 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27508 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27509 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27510 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27511 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27512 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27513 ( cat <<\_ASBOX
27514 ## ------------------------------- ##
27515 ## Report this to www.asterisk.org ##
27516 ## ------------------------------- ##
27517 _ASBOX
27518 ) | sed "s/^/$as_me: WARNING: /" >&2
27520 esac
27521 { echo "$as_me:$LINENO: checking for " >&5
27522 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27523 if test "${ac_cv_header_+set}" = set; then
27524 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 else
27526 ac_cv_header_=$ac_header_preproc
27528 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27529 echo "${ECHO_T}$ac_cv_header_" >&6; }
27532 if test $ac_cv_header_ = yes; then
27533 ATAN_HEADER_FOUND=1
27534 else
27535 ATAN_HEADER_FOUND=0
27539 CPPFLAGS="${saved_cppflags}"
27541 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27542 ATAN_LIB=""
27543 ATAN_INCLUDE=""
27544 else
27545 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27546 ATAN_LIB=""
27548 PBX_ATAN=1
27549 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27551 cat >>confdefs.h <<_ACEOF
27552 #define HAVE_ATAN 1
27553 _ACEOF
27556 cat >>confdefs.h <<_ACEOF
27557 #define HAVE_ATAN_VERSION
27558 _ACEOF
27565 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27566 pbxlibdir=""
27567 # if --with-ATAN2=DIR has been specified, use it.
27568 if test "x${ATAN2_DIR}" != "x"; then
27569 if test -d ${ATAN2_DIR}/lib; then
27570 pbxlibdir="-L${ATAN2_DIR}/lib"
27571 else
27572 pbxlibdir="-L${ATAN2_DIR}"
27575 pbxfuncname="atan2"
27576 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27577 AST_ATAN2_FOUND=yes
27578 else
27579 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27580 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27581 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27582 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585 ac_check_lib_save_LIBS=$LIBS
27586 LIBS="-lm ${pbxlibdir} $LIBS"
27587 cat >conftest.$ac_ext <<_ACEOF
27588 /* confdefs.h. */
27589 _ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27594 /* Override any GCC internal prototype to avoid an error.
27595 Use char because int might match the return type of a GCC
27596 builtin and then its argument prototype would still apply. */
27597 #ifdef __cplusplus
27598 extern "C"
27599 #endif
27600 char ${pbxfuncname} ();
27602 main ()
27604 return ${pbxfuncname} ();
27606 return 0;
27608 _ACEOF
27609 rm -f conftest.$ac_objext conftest$ac_exeext
27610 if { (ac_try="$ac_link"
27611 case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27614 esac
27615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616 (eval "$ac_link") 2>conftest.er1
27617 ac_status=$?
27618 grep -v '^ *+' conftest.er1 >conftest.err
27619 rm -f conftest.er1
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } && {
27623 test -z "$ac_c_werror_flag" ||
27624 test ! -s conftest.err
27625 } && test -s conftest$ac_exeext &&
27626 $as_test_x conftest$ac_exeext; then
27627 eval "$as_ac_Lib=yes"
27628 else
27629 echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27632 eval "$as_ac_Lib=no"
27635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27636 conftest$ac_exeext conftest.$ac_ext
27637 LIBS=$ac_check_lib_save_LIBS
27639 ac_res=`eval echo '${'$as_ac_Lib'}'`
27640 { echo "$as_me:$LINENO: result: $ac_res" >&5
27641 echo "${ECHO_T}$ac_res" >&6; }
27642 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27643 AST_ATAN2_FOUND=yes
27644 else
27645 AST_ATAN2_FOUND=no
27650 # now check for the header.
27651 if test "${AST_ATAN2_FOUND}" = "yes"; then
27652 ATAN2_LIB="${pbxlibdir} -lm "
27653 # if --with-ATAN2=DIR has been specified, use it.
27654 if test "x${ATAN2_DIR}" != "x"; then
27655 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27657 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27658 if test "x" = "x" ; then # no header, assume found
27659 ATAN2_HEADER_FOUND="1"
27660 else # check for the header
27661 saved_cppflags="${CPPFLAGS}"
27662 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27663 if test "${ac_cv_header_+set}" = set; then
27664 { echo "$as_me:$LINENO: checking for " >&5
27665 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27666 if test "${ac_cv_header_+set}" = set; then
27667 echo $ECHO_N "(cached) $ECHO_C" >&6
27669 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27670 echo "${ECHO_T}$ac_cv_header_" >&6; }
27671 else
27672 # Is the header compilable?
27673 { echo "$as_me:$LINENO: checking usability" >&5
27674 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27675 cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h. */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27681 $ac_includes_default
27682 #include <>
27683 _ACEOF
27684 rm -f conftest.$ac_objext
27685 if { (ac_try="$ac_compile"
27686 case "(($ac_try" in
27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688 *) ac_try_echo=$ac_try;;
27689 esac
27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_compile") 2>conftest.er1
27692 ac_status=$?
27693 grep -v '^ *+' conftest.er1 >conftest.err
27694 rm -f conftest.er1
27695 cat conftest.err >&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); } && {
27698 test -z "$ac_c_werror_flag" ||
27699 test ! -s conftest.err
27700 } && test -s conftest.$ac_objext; then
27701 ac_header_compiler=yes
27702 else
27703 echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27706 ac_header_compiler=no
27709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27711 echo "${ECHO_T}$ac_header_compiler" >&6; }
27713 # Is the header present?
27714 { echo "$as_me:$LINENO: checking presence" >&5
27715 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27716 cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h. */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 #include <>
27723 _ACEOF
27724 if { (ac_try="$ac_cpp conftest.$ac_ext"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27728 esac
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27731 ac_status=$?
27732 grep -v '^ *+' conftest.er1 >conftest.err
27733 rm -f conftest.er1
27734 cat conftest.err >&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } >/dev/null && {
27737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27738 test ! -s conftest.err
27739 }; then
27740 ac_header_preproc=yes
27741 else
27742 echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27745 ac_header_preproc=no
27748 rm -f conftest.err conftest.$ac_ext
27749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27750 echo "${ECHO_T}$ac_header_preproc" >&6; }
27752 # So? What about this header?
27753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27754 yes:no: )
27755 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27756 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27758 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27759 ac_header_preproc=yes
27761 no:yes:* )
27762 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27763 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27764 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27765 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27766 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27767 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27768 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27769 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27771 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27773 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27774 ( cat <<\_ASBOX
27775 ## ------------------------------- ##
27776 ## Report this to www.asterisk.org ##
27777 ## ------------------------------- ##
27778 _ASBOX
27779 ) | sed "s/^/$as_me: WARNING: /" >&2
27781 esac
27782 { echo "$as_me:$LINENO: checking for " >&5
27783 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27784 if test "${ac_cv_header_+set}" = set; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27787 ac_cv_header_=$ac_header_preproc
27789 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27790 echo "${ECHO_T}$ac_cv_header_" >&6; }
27793 if test $ac_cv_header_ = yes; then
27794 ATAN2_HEADER_FOUND=1
27795 else
27796 ATAN2_HEADER_FOUND=0
27800 CPPFLAGS="${saved_cppflags}"
27802 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27803 ATAN2_LIB=""
27804 ATAN2_INCLUDE=""
27805 else
27806 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27807 ATAN2_LIB=""
27809 PBX_ATAN2=1
27810 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27812 cat >>confdefs.h <<_ACEOF
27813 #define HAVE_ATAN2 1
27814 _ACEOF
27817 cat >>confdefs.h <<_ACEOF
27818 #define HAVE_ATAN2_VERSION
27819 _ACEOF
27826 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27827 pbxlibdir=""
27828 # if --with-POW=DIR has been specified, use it.
27829 if test "x${POW_DIR}" != "x"; then
27830 if test -d ${POW_DIR}/lib; then
27831 pbxlibdir="-L${POW_DIR}/lib"
27832 else
27833 pbxlibdir="-L${POW_DIR}"
27836 pbxfuncname="pow"
27837 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27838 AST_POW_FOUND=yes
27839 else
27840 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27841 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27842 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846 ac_check_lib_save_LIBS=$LIBS
27847 LIBS="-lm ${pbxlibdir} $LIBS"
27848 cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h. */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27855 /* Override any GCC internal prototype to avoid an error.
27856 Use char because int might match the return type of a GCC
27857 builtin and then its argument prototype would still apply. */
27858 #ifdef __cplusplus
27859 extern "C"
27860 #endif
27861 char ${pbxfuncname} ();
27863 main ()
27865 return ${pbxfuncname} ();
27867 return 0;
27869 _ACEOF
27870 rm -f conftest.$ac_objext conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_link") 2>conftest.er1
27878 ac_status=$?
27879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } && {
27884 test -z "$ac_c_werror_flag" ||
27885 test ! -s conftest.err
27886 } && test -s conftest$ac_exeext &&
27887 $as_test_x conftest$ac_exeext; then
27888 eval "$as_ac_Lib=yes"
27889 else
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27893 eval "$as_ac_Lib=no"
27896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27897 conftest$ac_exeext conftest.$ac_ext
27898 LIBS=$ac_check_lib_save_LIBS
27900 ac_res=`eval echo '${'$as_ac_Lib'}'`
27901 { echo "$as_me:$LINENO: result: $ac_res" >&5
27902 echo "${ECHO_T}$ac_res" >&6; }
27903 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27904 AST_POW_FOUND=yes
27905 else
27906 AST_POW_FOUND=no
27911 # now check for the header.
27912 if test "${AST_POW_FOUND}" = "yes"; then
27913 POW_LIB="${pbxlibdir} -lm "
27914 # if --with-POW=DIR has been specified, use it.
27915 if test "x${POW_DIR}" != "x"; then
27916 POW_INCLUDE="-I${POW_DIR}/include"
27918 POW_INCLUDE="${POW_INCLUDE} "
27919 if test "x" = "x" ; then # no header, assume found
27920 POW_HEADER_FOUND="1"
27921 else # check for the header
27922 saved_cppflags="${CPPFLAGS}"
27923 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
27924 if test "${ac_cv_header_+set}" = set; then
27925 { echo "$as_me:$LINENO: checking for " >&5
27926 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27927 if test "${ac_cv_header_+set}" = set; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27931 echo "${ECHO_T}$ac_cv_header_" >&6; }
27932 else
27933 # Is the header compilable?
27934 { echo "$as_me:$LINENO: checking usability" >&5
27935 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h. */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 $ac_includes_default
27943 #include <>
27944 _ACEOF
27945 rm -f conftest.$ac_objext
27946 if { (ac_try="$ac_compile"
27947 case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950 esac
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27953 ac_status=$?
27954 grep -v '^ *+' conftest.er1 >conftest.err
27955 rm -f conftest.er1
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 ac_header_compiler=yes
27963 else
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 ac_header_compiler=no
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27972 echo "${ECHO_T}$ac_header_compiler" >&6; }
27974 # Is the header present?
27975 { echo "$as_me:$LINENO: checking presence" >&5
27976 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27977 cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h. */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 #include <>
27984 _ACEOF
27985 if { (ac_try="$ac_cpp conftest.$ac_ext"
27986 case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27992 ac_status=$?
27993 grep -v '^ *+' conftest.er1 >conftest.err
27994 rm -f conftest.er1
27995 cat conftest.err >&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } >/dev/null && {
27998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 }; then
28001 ac_header_preproc=yes
28002 else
28003 echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 ac_header_preproc=no
28009 rm -f conftest.err conftest.$ac_ext
28010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28011 echo "${ECHO_T}$ac_header_preproc" >&6; }
28013 # So? What about this header?
28014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28015 yes:no: )
28016 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28017 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28019 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28020 ac_header_preproc=yes
28022 no:yes:* )
28023 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28024 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28025 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28026 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28027 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28028 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28029 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28030 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28031 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28032 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28033 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28034 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28035 ( cat <<\_ASBOX
28036 ## ------------------------------- ##
28037 ## Report this to www.asterisk.org ##
28038 ## ------------------------------- ##
28039 _ASBOX
28040 ) | sed "s/^/$as_me: WARNING: /" >&2
28042 esac
28043 { echo "$as_me:$LINENO: checking for " >&5
28044 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28045 if test "${ac_cv_header_+set}" = set; then
28046 echo $ECHO_N "(cached) $ECHO_C" >&6
28047 else
28048 ac_cv_header_=$ac_header_preproc
28050 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28051 echo "${ECHO_T}$ac_cv_header_" >&6; }
28054 if test $ac_cv_header_ = yes; then
28055 POW_HEADER_FOUND=1
28056 else
28057 POW_HEADER_FOUND=0
28061 CPPFLAGS="${saved_cppflags}"
28063 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28064 POW_LIB=""
28065 POW_INCLUDE=""
28066 else
28067 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28068 POW_LIB=""
28070 PBX_POW=1
28071 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28073 cat >>confdefs.h <<_ACEOF
28074 #define HAVE_POW 1
28075 _ACEOF
28078 cat >>confdefs.h <<_ACEOF
28079 #define HAVE_POW_VERSION
28080 _ACEOF
28087 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28088 pbxlibdir=""
28089 # if --with-SQRT=DIR has been specified, use it.
28090 if test "x${SQRT_DIR}" != "x"; then
28091 if test -d ${SQRT_DIR}/lib; then
28092 pbxlibdir="-L${SQRT_DIR}/lib"
28093 else
28094 pbxlibdir="-L${SQRT_DIR}"
28097 pbxfuncname="sqrt"
28098 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28099 AST_SQRT_FOUND=yes
28100 else
28101 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28102 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28103 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28104 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106 else
28107 ac_check_lib_save_LIBS=$LIBS
28108 LIBS="-lm ${pbxlibdir} $LIBS"
28109 cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h. */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28116 /* Override any GCC internal prototype to avoid an error.
28117 Use char because int might match the return type of a GCC
28118 builtin and then its argument prototype would still apply. */
28119 #ifdef __cplusplus
28120 extern "C"
28121 #endif
28122 char ${pbxfuncname} ();
28124 main ()
28126 return ${pbxfuncname} ();
28128 return 0;
28130 _ACEOF
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (ac_try="$ac_link"
28133 case "(($ac_try" in
28134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135 *) ac_try_echo=$ac_try;;
28136 esac
28137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28138 (eval "$ac_link") 2>conftest.er1
28139 ac_status=$?
28140 grep -v '^ *+' conftest.er1 >conftest.err
28141 rm -f conftest.er1
28142 cat conftest.err >&5
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); } && {
28145 test -z "$ac_c_werror_flag" ||
28146 test ! -s conftest.err
28147 } && test -s conftest$ac_exeext &&
28148 $as_test_x conftest$ac_exeext; then
28149 eval "$as_ac_Lib=yes"
28150 else
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 eval "$as_ac_Lib=no"
28157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28158 conftest$ac_exeext conftest.$ac_ext
28159 LIBS=$ac_check_lib_save_LIBS
28161 ac_res=`eval echo '${'$as_ac_Lib'}'`
28162 { echo "$as_me:$LINENO: result: $ac_res" >&5
28163 echo "${ECHO_T}$ac_res" >&6; }
28164 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28165 AST_SQRT_FOUND=yes
28166 else
28167 AST_SQRT_FOUND=no
28172 # now check for the header.
28173 if test "${AST_SQRT_FOUND}" = "yes"; then
28174 SQRT_LIB="${pbxlibdir} -lm "
28175 # if --with-SQRT=DIR has been specified, use it.
28176 if test "x${SQRT_DIR}" != "x"; then
28177 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28179 SQRT_INCLUDE="${SQRT_INCLUDE} "
28180 if test "x" = "x" ; then # no header, assume found
28181 SQRT_HEADER_FOUND="1"
28182 else # check for the header
28183 saved_cppflags="${CPPFLAGS}"
28184 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
28185 if test "${ac_cv_header_+set}" = set; then
28186 { echo "$as_me:$LINENO: checking for " >&5
28187 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28188 if test "${ac_cv_header_+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
28191 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28192 echo "${ECHO_T}$ac_cv_header_" >&6; }
28193 else
28194 # Is the header compilable?
28195 { echo "$as_me:$LINENO: checking usability" >&5
28196 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h. */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 $ac_includes_default
28204 #include <>
28205 _ACEOF
28206 rm -f conftest.$ac_objext
28207 if { (ac_try="$ac_compile"
28208 case "(($ac_try" in
28209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210 *) ac_try_echo=$ac_try;;
28211 esac
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_compile") 2>conftest.er1
28214 ac_status=$?
28215 grep -v '^ *+' conftest.er1 >conftest.err
28216 rm -f conftest.er1
28217 cat conftest.err >&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } && {
28220 test -z "$ac_c_werror_flag" ||
28221 test ! -s conftest.err
28222 } && test -s conftest.$ac_objext; then
28223 ac_header_compiler=yes
28224 else
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28228 ac_header_compiler=no
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28233 echo "${ECHO_T}$ac_header_compiler" >&6; }
28235 # Is the header present?
28236 { echo "$as_me:$LINENO: checking presence" >&5
28237 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28238 cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h. */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28244 #include <>
28245 _ACEOF
28246 if { (ac_try="$ac_cpp conftest.$ac_ext"
28247 case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250 esac
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } >/dev/null && {
28259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28260 test ! -s conftest.err
28261 }; then
28262 ac_header_preproc=yes
28263 else
28264 echo "$as_me: failed program was:" >&5
28265 sed 's/^/| /' conftest.$ac_ext >&5
28267 ac_header_preproc=no
28270 rm -f conftest.err conftest.$ac_ext
28271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28272 echo "${ECHO_T}$ac_header_preproc" >&6; }
28274 # So? What about this header?
28275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28276 yes:no: )
28277 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28278 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28279 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28280 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28281 ac_header_preproc=yes
28283 no:yes:* )
28284 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28285 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28286 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28287 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28288 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28289 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28291 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28292 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28293 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28294 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28295 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28296 ( cat <<\_ASBOX
28297 ## ------------------------------- ##
28298 ## Report this to www.asterisk.org ##
28299 ## ------------------------------- ##
28300 _ASBOX
28301 ) | sed "s/^/$as_me: WARNING: /" >&2
28303 esac
28304 { echo "$as_me:$LINENO: checking for " >&5
28305 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28306 if test "${ac_cv_header_+set}" = set; then
28307 echo $ECHO_N "(cached) $ECHO_C" >&6
28308 else
28309 ac_cv_header_=$ac_header_preproc
28311 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28312 echo "${ECHO_T}$ac_cv_header_" >&6; }
28315 if test $ac_cv_header_ = yes; then
28316 SQRT_HEADER_FOUND=1
28317 else
28318 SQRT_HEADER_FOUND=0
28322 CPPFLAGS="${saved_cppflags}"
28324 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28325 SQRT_LIB=""
28326 SQRT_INCLUDE=""
28327 else
28328 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28329 SQRT_LIB=""
28331 PBX_SQRT=1
28332 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28334 cat >>confdefs.h <<_ACEOF
28335 #define HAVE_SQRT 1
28336 _ACEOF
28339 cat >>confdefs.h <<_ACEOF
28340 #define HAVE_SQRT_VERSION
28341 _ACEOF
28348 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28349 pbxlibdir=""
28350 # if --with-RINT=DIR has been specified, use it.
28351 if test "x${RINT_DIR}" != "x"; then
28352 if test -d ${RINT_DIR}/lib; then
28353 pbxlibdir="-L${RINT_DIR}/lib"
28354 else
28355 pbxlibdir="-L${RINT_DIR}"
28358 pbxfuncname="rint"
28359 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28360 AST_RINT_FOUND=yes
28361 else
28362 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28363 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28364 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28365 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28367 else
28368 ac_check_lib_save_LIBS=$LIBS
28369 LIBS="-lm ${pbxlibdir} $LIBS"
28370 cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h. */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h. */
28377 /* Override any GCC internal prototype to avoid an error.
28378 Use char because int might match the return type of a GCC
28379 builtin and then its argument prototype would still apply. */
28380 #ifdef __cplusplus
28381 extern "C"
28382 #endif
28383 char ${pbxfuncname} ();
28385 main ()
28387 return ${pbxfuncname} ();
28389 return 0;
28391 _ACEOF
28392 rm -f conftest.$ac_objext conftest$ac_exeext
28393 if { (ac_try="$ac_link"
28394 case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28397 esac
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_link") 2>conftest.er1
28400 ac_status=$?
28401 grep -v '^ *+' conftest.er1 >conftest.err
28402 rm -f conftest.er1
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } && {
28406 test -z "$ac_c_werror_flag" ||
28407 test ! -s conftest.err
28408 } && test -s conftest$ac_exeext &&
28409 $as_test_x conftest$ac_exeext; then
28410 eval "$as_ac_Lib=yes"
28411 else
28412 echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28415 eval "$as_ac_Lib=no"
28418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28419 conftest$ac_exeext conftest.$ac_ext
28420 LIBS=$ac_check_lib_save_LIBS
28422 ac_res=`eval echo '${'$as_ac_Lib'}'`
28423 { echo "$as_me:$LINENO: result: $ac_res" >&5
28424 echo "${ECHO_T}$ac_res" >&6; }
28425 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28426 AST_RINT_FOUND=yes
28427 else
28428 AST_RINT_FOUND=no
28433 # now check for the header.
28434 if test "${AST_RINT_FOUND}" = "yes"; then
28435 RINT_LIB="${pbxlibdir} -lm "
28436 # if --with-RINT=DIR has been specified, use it.
28437 if test "x${RINT_DIR}" != "x"; then
28438 RINT_INCLUDE="-I${RINT_DIR}/include"
28440 RINT_INCLUDE="${RINT_INCLUDE} "
28441 if test "x" = "x" ; then # no header, assume found
28442 RINT_HEADER_FOUND="1"
28443 else # check for the header
28444 saved_cppflags="${CPPFLAGS}"
28445 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28446 if test "${ac_cv_header_+set}" = set; then
28447 { echo "$as_me:$LINENO: checking for " >&5
28448 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28449 if test "${ac_cv_header_+set}" = set; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28452 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28453 echo "${ECHO_T}$ac_cv_header_" >&6; }
28454 else
28455 # Is the header compilable?
28456 { echo "$as_me:$LINENO: checking usability" >&5
28457 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28458 cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h. */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 $ac_includes_default
28465 #include <>
28466 _ACEOF
28467 rm -f conftest.$ac_objext
28468 if { (ac_try="$ac_compile"
28469 case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28472 esac
28473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_compile") 2>conftest.er1
28475 ac_status=$?
28476 grep -v '^ *+' conftest.er1 >conftest.err
28477 rm -f conftest.er1
28478 cat conftest.err >&5
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); } && {
28481 test -z "$ac_c_werror_flag" ||
28482 test ! -s conftest.err
28483 } && test -s conftest.$ac_objext; then
28484 ac_header_compiler=yes
28485 else
28486 echo "$as_me: failed program was:" >&5
28487 sed 's/^/| /' conftest.$ac_ext >&5
28489 ac_header_compiler=no
28492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28494 echo "${ECHO_T}$ac_header_compiler" >&6; }
28496 # Is the header present?
28497 { echo "$as_me:$LINENO: checking presence" >&5
28498 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28499 cat >conftest.$ac_ext <<_ACEOF
28500 /* confdefs.h. */
28501 _ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h. */
28505 #include <>
28506 _ACEOF
28507 if { (ac_try="$ac_cpp conftest.$ac_ext"
28508 case "(($ac_try" in
28509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510 *) ac_try_echo=$ac_try;;
28511 esac
28512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28514 ac_status=$?
28515 grep -v '^ *+' conftest.er1 >conftest.err
28516 rm -f conftest.er1
28517 cat conftest.err >&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } >/dev/null && {
28520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28521 test ! -s conftest.err
28522 }; then
28523 ac_header_preproc=yes
28524 else
28525 echo "$as_me: failed program was:" >&5
28526 sed 's/^/| /' conftest.$ac_ext >&5
28528 ac_header_preproc=no
28531 rm -f conftest.err conftest.$ac_ext
28532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28533 echo "${ECHO_T}$ac_header_preproc" >&6; }
28535 # So? What about this header?
28536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28537 yes:no: )
28538 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28539 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28540 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28541 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28542 ac_header_preproc=yes
28544 no:yes:* )
28545 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28546 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28547 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28548 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28549 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28550 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28551 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28552 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28553 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28554 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28555 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28556 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28557 ( cat <<\_ASBOX
28558 ## ------------------------------- ##
28559 ## Report this to www.asterisk.org ##
28560 ## ------------------------------- ##
28561 _ASBOX
28562 ) | sed "s/^/$as_me: WARNING: /" >&2
28564 esac
28565 { echo "$as_me:$LINENO: checking for " >&5
28566 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28567 if test "${ac_cv_header_+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570 ac_cv_header_=$ac_header_preproc
28572 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28573 echo "${ECHO_T}$ac_cv_header_" >&6; }
28576 if test $ac_cv_header_ = yes; then
28577 RINT_HEADER_FOUND=1
28578 else
28579 RINT_HEADER_FOUND=0
28583 CPPFLAGS="${saved_cppflags}"
28585 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28586 RINT_LIB=""
28587 RINT_INCLUDE=""
28588 else
28589 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28590 RINT_LIB=""
28592 PBX_RINT=1
28593 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28595 cat >>confdefs.h <<_ACEOF
28596 #define HAVE_RINT 1
28597 _ACEOF
28600 cat >>confdefs.h <<_ACEOF
28601 #define HAVE_RINT_VERSION
28602 _ACEOF
28609 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28610 pbxlibdir=""
28611 # if --with-EXP=DIR has been specified, use it.
28612 if test "x${EXP_DIR}" != "x"; then
28613 if test -d ${EXP_DIR}/lib; then
28614 pbxlibdir="-L${EXP_DIR}/lib"
28615 else
28616 pbxlibdir="-L${EXP_DIR}"
28619 pbxfuncname="exp"
28620 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28621 AST_EXP_FOUND=yes
28622 else
28623 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28624 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28625 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28626 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28629 ac_check_lib_save_LIBS=$LIBS
28630 LIBS="-lm ${pbxlibdir} $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h. */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28638 /* Override any GCC internal prototype to avoid an error.
28639 Use char because int might match the return type of a GCC
28640 builtin and then its argument prototype would still apply. */
28641 #ifdef __cplusplus
28642 extern "C"
28643 #endif
28644 char ${pbxfuncname} ();
28646 main ()
28648 return ${pbxfuncname} ();
28650 return 0;
28652 _ACEOF
28653 rm -f conftest.$ac_objext conftest$ac_exeext
28654 if { (ac_try="$ac_link"
28655 case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_link") 2>conftest.er1
28661 ac_status=$?
28662 grep -v '^ *+' conftest.er1 >conftest.err
28663 rm -f conftest.er1
28664 cat conftest.err >&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } && {
28667 test -z "$ac_c_werror_flag" ||
28668 test ! -s conftest.err
28669 } && test -s conftest$ac_exeext &&
28670 $as_test_x conftest$ac_exeext; then
28671 eval "$as_ac_Lib=yes"
28672 else
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 eval "$as_ac_Lib=no"
28679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28680 conftest$ac_exeext conftest.$ac_ext
28681 LIBS=$ac_check_lib_save_LIBS
28683 ac_res=`eval echo '${'$as_ac_Lib'}'`
28684 { echo "$as_me:$LINENO: result: $ac_res" >&5
28685 echo "${ECHO_T}$ac_res" >&6; }
28686 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28687 AST_EXP_FOUND=yes
28688 else
28689 AST_EXP_FOUND=no
28694 # now check for the header.
28695 if test "${AST_EXP_FOUND}" = "yes"; then
28696 EXP_LIB="${pbxlibdir} -lm "
28697 # if --with-EXP=DIR has been specified, use it.
28698 if test "x${EXP_DIR}" != "x"; then
28699 EXP_INCLUDE="-I${EXP_DIR}/include"
28701 EXP_INCLUDE="${EXP_INCLUDE} "
28702 if test "x" = "x" ; then # no header, assume found
28703 EXP_HEADER_FOUND="1"
28704 else # check for the header
28705 saved_cppflags="${CPPFLAGS}"
28706 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28707 if test "${ac_cv_header_+set}" = set; then
28708 { echo "$as_me:$LINENO: checking for " >&5
28709 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28710 if test "${ac_cv_header_+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28713 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28714 echo "${ECHO_T}$ac_cv_header_" >&6; }
28715 else
28716 # Is the header compilable?
28717 { echo "$as_me:$LINENO: checking usability" >&5
28718 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28719 cat >conftest.$ac_ext <<_ACEOF
28720 /* confdefs.h. */
28721 _ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 $ac_includes_default
28726 #include <>
28727 _ACEOF
28728 rm -f conftest.$ac_objext
28729 if { (ac_try="$ac_compile"
28730 case "(($ac_try" in
28731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28733 esac
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_compile") 2>conftest.er1
28736 ac_status=$?
28737 grep -v '^ *+' conftest.er1 >conftest.err
28738 rm -f conftest.er1
28739 cat conftest.err >&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } && {
28742 test -z "$ac_c_werror_flag" ||
28743 test ! -s conftest.err
28744 } && test -s conftest.$ac_objext; then
28745 ac_header_compiler=yes
28746 else
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 ac_header_compiler=no
28753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28755 echo "${ECHO_T}$ac_header_compiler" >&6; }
28757 # Is the header present?
28758 { echo "$as_me:$LINENO: checking presence" >&5
28759 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28760 cat >conftest.$ac_ext <<_ACEOF
28761 /* confdefs.h. */
28762 _ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28766 #include <>
28767 _ACEOF
28768 if { (ac_try="$ac_cpp conftest.$ac_ext"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28775 ac_status=$?
28776 grep -v '^ *+' conftest.er1 >conftest.err
28777 rm -f conftest.er1
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } >/dev/null && {
28781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28782 test ! -s conftest.err
28783 }; then
28784 ac_header_preproc=yes
28785 else
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_preproc=no
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28796 # So? What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 yes:no: )
28799 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28805 no:yes:* )
28806 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28818 ( cat <<\_ASBOX
28819 ## ------------------------------- ##
28820 ## Report this to www.asterisk.org ##
28821 ## ------------------------------- ##
28822 _ASBOX
28823 ) | sed "s/^/$as_me: WARNING: /" >&2
28825 esac
28826 { echo "$as_me:$LINENO: checking for " >&5
28827 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28828 if test "${ac_cv_header_+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831 ac_cv_header_=$ac_header_preproc
28833 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28834 echo "${ECHO_T}$ac_cv_header_" >&6; }
28837 if test $ac_cv_header_ = yes; then
28838 EXP_HEADER_FOUND=1
28839 else
28840 EXP_HEADER_FOUND=0
28844 CPPFLAGS="${saved_cppflags}"
28846 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
28847 EXP_LIB=""
28848 EXP_INCLUDE=""
28849 else
28850 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28851 EXP_LIB=""
28853 PBX_EXP=1
28854 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28856 cat >>confdefs.h <<_ACEOF
28857 #define HAVE_EXP 1
28858 _ACEOF
28861 cat >>confdefs.h <<_ACEOF
28862 #define HAVE_EXP_VERSION
28863 _ACEOF
28870 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
28871 pbxlibdir=""
28872 # if --with-LOG=DIR has been specified, use it.
28873 if test "x${LOG_DIR}" != "x"; then
28874 if test -d ${LOG_DIR}/lib; then
28875 pbxlibdir="-L${LOG_DIR}/lib"
28876 else
28877 pbxlibdir="-L${LOG_DIR}"
28880 pbxfuncname="log"
28881 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28882 AST_LOG_FOUND=yes
28883 else
28884 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28885 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28886 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28887 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28889 else
28890 ac_check_lib_save_LIBS=$LIBS
28891 LIBS="-lm ${pbxlibdir} $LIBS"
28892 cat >conftest.$ac_ext <<_ACEOF
28893 /* confdefs.h. */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h. */
28899 /* Override any GCC internal prototype to avoid an error.
28900 Use char because int might match the return type of a GCC
28901 builtin and then its argument prototype would still apply. */
28902 #ifdef __cplusplus
28903 extern "C"
28904 #endif
28905 char ${pbxfuncname} ();
28907 main ()
28909 return ${pbxfuncname} ();
28911 return 0;
28913 _ACEOF
28914 rm -f conftest.$ac_objext conftest$ac_exeext
28915 if { (ac_try="$ac_link"
28916 case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28919 esac
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_link") 2>conftest.er1
28922 ac_status=$?
28923 grep -v '^ *+' conftest.er1 >conftest.err
28924 rm -f conftest.er1
28925 cat conftest.err >&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } && {
28928 test -z "$ac_c_werror_flag" ||
28929 test ! -s conftest.err
28930 } && test -s conftest$ac_exeext &&
28931 $as_test_x conftest$ac_exeext; then
28932 eval "$as_ac_Lib=yes"
28933 else
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 eval "$as_ac_Lib=no"
28940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28941 conftest$ac_exeext conftest.$ac_ext
28942 LIBS=$ac_check_lib_save_LIBS
28944 ac_res=`eval echo '${'$as_ac_Lib'}'`
28945 { echo "$as_me:$LINENO: result: $ac_res" >&5
28946 echo "${ECHO_T}$ac_res" >&6; }
28947 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28948 AST_LOG_FOUND=yes
28949 else
28950 AST_LOG_FOUND=no
28955 # now check for the header.
28956 if test "${AST_LOG_FOUND}" = "yes"; then
28957 LOG_LIB="${pbxlibdir} -lm "
28958 # if --with-LOG=DIR has been specified, use it.
28959 if test "x${LOG_DIR}" != "x"; then
28960 LOG_INCLUDE="-I${LOG_DIR}/include"
28962 LOG_INCLUDE="${LOG_INCLUDE} "
28963 if test "x" = "x" ; then # no header, assume found
28964 LOG_HEADER_FOUND="1"
28965 else # check for the header
28966 saved_cppflags="${CPPFLAGS}"
28967 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
28968 if test "${ac_cv_header_+set}" = set; then
28969 { echo "$as_me:$LINENO: checking for " >&5
28970 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28971 if test "${ac_cv_header_+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28974 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28975 echo "${ECHO_T}$ac_cv_header_" >&6; }
28976 else
28977 # Is the header compilable?
28978 { echo "$as_me:$LINENO: checking usability" >&5
28979 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28980 cat >conftest.$ac_ext <<_ACEOF
28981 /* confdefs.h. */
28982 _ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h. */
28986 $ac_includes_default
28987 #include <>
28988 _ACEOF
28989 rm -f conftest.$ac_objext
28990 if { (ac_try="$ac_compile"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_compile") 2>conftest.er1
28997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } && {
29003 test -z "$ac_c_werror_flag" ||
29004 test ! -s conftest.err
29005 } && test -s conftest.$ac_objext; then
29006 ac_header_compiler=yes
29007 else
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_compiler=no
29014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29016 echo "${ECHO_T}$ac_header_compiler" >&6; }
29018 # Is the header present?
29019 { echo "$as_me:$LINENO: checking presence" >&5
29020 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29021 cat >conftest.$ac_ext <<_ACEOF
29022 /* confdefs.h. */
29023 _ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h. */
29027 #include <>
29028 _ACEOF
29029 if { (ac_try="$ac_cpp conftest.$ac_ext"
29030 case "(($ac_try" in
29031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032 *) ac_try_echo=$ac_try;;
29033 esac
29034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29036 ac_status=$?
29037 grep -v '^ *+' conftest.er1 >conftest.err
29038 rm -f conftest.er1
29039 cat conftest.err >&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } >/dev/null && {
29042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29043 test ! -s conftest.err
29044 }; then
29045 ac_header_preproc=yes
29046 else
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29050 ac_header_preproc=no
29053 rm -f conftest.err conftest.$ac_ext
29054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29055 echo "${ECHO_T}$ac_header_preproc" >&6; }
29057 # So? What about this header?
29058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29059 yes:no: )
29060 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29061 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29063 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29064 ac_header_preproc=yes
29066 no:yes:* )
29067 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29068 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29070 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29071 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29072 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29073 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29074 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29075 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29076 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29078 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29079 ( cat <<\_ASBOX
29080 ## ------------------------------- ##
29081 ## Report this to www.asterisk.org ##
29082 ## ------------------------------- ##
29083 _ASBOX
29084 ) | sed "s/^/$as_me: WARNING: /" >&2
29086 esac
29087 { echo "$as_me:$LINENO: checking for " >&5
29088 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29089 if test "${ac_cv_header_+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092 ac_cv_header_=$ac_header_preproc
29094 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29095 echo "${ECHO_T}$ac_cv_header_" >&6; }
29098 if test $ac_cv_header_ = yes; then
29099 LOG_HEADER_FOUND=1
29100 else
29101 LOG_HEADER_FOUND=0
29105 CPPFLAGS="${saved_cppflags}"
29107 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29108 LOG_LIB=""
29109 LOG_INCLUDE=""
29110 else
29111 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29112 LOG_LIB=""
29114 PBX_LOG=1
29115 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29117 cat >>confdefs.h <<_ACEOF
29118 #define HAVE_LOG 1
29119 _ACEOF
29122 cat >>confdefs.h <<_ACEOF
29123 #define HAVE_LOG_VERSION
29124 _ACEOF
29131 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29132 pbxlibdir=""
29133 # if --with-REMAINDER=DIR has been specified, use it.
29134 if test "x${REMAINDER_DIR}" != "x"; then
29135 if test -d ${REMAINDER_DIR}/lib; then
29136 pbxlibdir="-L${REMAINDER_DIR}/lib"
29137 else
29138 pbxlibdir="-L${REMAINDER_DIR}"
29141 pbxfuncname="remainder"
29142 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29143 AST_REMAINDER_FOUND=yes
29144 else
29145 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29146 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29147 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29148 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29149 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 else
29151 ac_check_lib_save_LIBS=$LIBS
29152 LIBS="-lm ${pbxlibdir} $LIBS"
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h. */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29160 /* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29163 #ifdef __cplusplus
29164 extern "C"
29165 #endif
29166 char ${pbxfuncname} ();
29168 main ()
29170 return ${pbxfuncname} ();
29172 return 0;
29174 _ACEOF
29175 rm -f conftest.$ac_objext conftest$ac_exeext
29176 if { (ac_try="$ac_link"
29177 case "(($ac_try" in
29178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29179 *) ac_try_echo=$ac_try;;
29180 esac
29181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29182 (eval "$ac_link") 2>conftest.er1
29183 ac_status=$?
29184 grep -v '^ *+' conftest.er1 >conftest.err
29185 rm -f conftest.er1
29186 cat conftest.err >&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); } && {
29189 test -z "$ac_c_werror_flag" ||
29190 test ! -s conftest.err
29191 } && test -s conftest$ac_exeext &&
29192 $as_test_x conftest$ac_exeext; then
29193 eval "$as_ac_Lib=yes"
29194 else
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 eval "$as_ac_Lib=no"
29201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29202 conftest$ac_exeext conftest.$ac_ext
29203 LIBS=$ac_check_lib_save_LIBS
29205 ac_res=`eval echo '${'$as_ac_Lib'}'`
29206 { echo "$as_me:$LINENO: result: $ac_res" >&5
29207 echo "${ECHO_T}$ac_res" >&6; }
29208 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29209 AST_REMAINDER_FOUND=yes
29210 else
29211 AST_REMAINDER_FOUND=no
29216 # now check for the header.
29217 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29218 REMAINDER_LIB="${pbxlibdir} -lm "
29219 # if --with-REMAINDER=DIR has been specified, use it.
29220 if test "x${REMAINDER_DIR}" != "x"; then
29221 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29223 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29224 if test "x" = "x" ; then # no header, assume found
29225 REMAINDER_HEADER_FOUND="1"
29226 else # check for the header
29227 saved_cppflags="${CPPFLAGS}"
29228 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
29229 if test "${ac_cv_header_+set}" = set; then
29230 { echo "$as_me:$LINENO: checking for " >&5
29231 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29232 if test "${ac_cv_header_+set}" = set; then
29233 echo $ECHO_N "(cached) $ECHO_C" >&6
29235 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29236 echo "${ECHO_T}$ac_cv_header_" >&6; }
29237 else
29238 # Is the header compilable?
29239 { echo "$as_me:$LINENO: checking usability" >&5
29240 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29241 cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h. */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 $ac_includes_default
29248 #include <>
29249 _ACEOF
29250 rm -f conftest.$ac_objext
29251 if { (ac_try="$ac_compile"
29252 case "(($ac_try" in
29253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254 *) ac_try_echo=$ac_try;;
29255 esac
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257 (eval "$ac_compile") 2>conftest.er1
29258 ac_status=$?
29259 grep -v '^ *+' conftest.er1 >conftest.err
29260 rm -f conftest.er1
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } && {
29264 test -z "$ac_c_werror_flag" ||
29265 test ! -s conftest.err
29266 } && test -s conftest.$ac_objext; then
29267 ac_header_compiler=yes
29268 else
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 ac_header_compiler=no
29275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29277 echo "${ECHO_T}$ac_header_compiler" >&6; }
29279 # Is the header present?
29280 { echo "$as_me:$LINENO: checking presence" >&5
29281 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29282 cat >conftest.$ac_ext <<_ACEOF
29283 /* confdefs.h. */
29284 _ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29288 #include <>
29289 _ACEOF
29290 if { (ac_try="$ac_cpp conftest.$ac_ext"
29291 case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294 esac
29295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29297 ac_status=$?
29298 grep -v '^ *+' conftest.er1 >conftest.err
29299 rm -f conftest.er1
29300 cat conftest.err >&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } >/dev/null && {
29303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29304 test ! -s conftest.err
29305 }; then
29306 ac_header_preproc=yes
29307 else
29308 echo "$as_me: failed program was:" >&5
29309 sed 's/^/| /' conftest.$ac_ext >&5
29311 ac_header_preproc=no
29314 rm -f conftest.err conftest.$ac_ext
29315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29316 echo "${ECHO_T}$ac_header_preproc" >&6; }
29318 # So? What about this header?
29319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29320 yes:no: )
29321 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29322 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29324 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29325 ac_header_preproc=yes
29327 no:yes:* )
29328 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29329 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29330 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29331 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29332 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29333 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29334 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29335 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29336 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29337 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29339 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29340 ( cat <<\_ASBOX
29341 ## ------------------------------- ##
29342 ## Report this to www.asterisk.org ##
29343 ## ------------------------------- ##
29344 _ASBOX
29345 ) | sed "s/^/$as_me: WARNING: /" >&2
29347 esac
29348 { echo "$as_me:$LINENO: checking for " >&5
29349 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29350 if test "${ac_cv_header_+set}" = set; then
29351 echo $ECHO_N "(cached) $ECHO_C" >&6
29352 else
29353 ac_cv_header_=$ac_header_preproc
29355 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29356 echo "${ECHO_T}$ac_cv_header_" >&6; }
29359 if test $ac_cv_header_ = yes; then
29360 REMAINDER_HEADER_FOUND=1
29361 else
29362 REMAINDER_HEADER_FOUND=0
29366 CPPFLAGS="${saved_cppflags}"
29368 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29369 REMAINDER_LIB=""
29370 REMAINDER_INCLUDE=""
29371 else
29372 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29373 REMAINDER_LIB=""
29375 PBX_REMAINDER=1
29376 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29378 cat >>confdefs.h <<_ACEOF
29379 #define HAVE_REMAINDER 1
29380 _ACEOF
29383 cat >>confdefs.h <<_ACEOF
29384 #define HAVE_REMAINDER_VERSION
29385 _ACEOF
29392 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29393 pbxlibdir=""
29394 # if --with-FMOD=DIR has been specified, use it.
29395 if test "x${FMOD_DIR}" != "x"; then
29396 if test -d ${FMOD_DIR}/lib; then
29397 pbxlibdir="-L${FMOD_DIR}/lib"
29398 else
29399 pbxlibdir="-L${FMOD_DIR}"
29402 pbxfuncname="fmod"
29403 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29404 AST_FMOD_FOUND=yes
29405 else
29406 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29407 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29408 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29409 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411 else
29412 ac_check_lib_save_LIBS=$LIBS
29413 LIBS="-lm ${pbxlibdir} $LIBS"
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h. */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29421 /* Override any GCC internal prototype to avoid an error.
29422 Use char because int might match the return type of a GCC
29423 builtin and then its argument prototype would still apply. */
29424 #ifdef __cplusplus
29425 extern "C"
29426 #endif
29427 char ${pbxfuncname} ();
29429 main ()
29431 return ${pbxfuncname} ();
29433 return 0;
29435 _ACEOF
29436 rm -f conftest.$ac_objext conftest$ac_exeext
29437 if { (ac_try="$ac_link"
29438 case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29441 esac
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_link") 2>conftest.er1
29444 ac_status=$?
29445 grep -v '^ *+' conftest.er1 >conftest.err
29446 rm -f conftest.er1
29447 cat conftest.err >&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); } && {
29450 test -z "$ac_c_werror_flag" ||
29451 test ! -s conftest.err
29452 } && test -s conftest$ac_exeext &&
29453 $as_test_x conftest$ac_exeext; then
29454 eval "$as_ac_Lib=yes"
29455 else
29456 echo "$as_me: failed program was:" >&5
29457 sed 's/^/| /' conftest.$ac_ext >&5
29459 eval "$as_ac_Lib=no"
29462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29463 conftest$ac_exeext conftest.$ac_ext
29464 LIBS=$ac_check_lib_save_LIBS
29466 ac_res=`eval echo '${'$as_ac_Lib'}'`
29467 { echo "$as_me:$LINENO: result: $ac_res" >&5
29468 echo "${ECHO_T}$ac_res" >&6; }
29469 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29470 AST_FMOD_FOUND=yes
29471 else
29472 AST_FMOD_FOUND=no
29477 # now check for the header.
29478 if test "${AST_FMOD_FOUND}" = "yes"; then
29479 FMOD_LIB="${pbxlibdir} -lm "
29480 # if --with-FMOD=DIR has been specified, use it.
29481 if test "x${FMOD_DIR}" != "x"; then
29482 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29484 FMOD_INCLUDE="${FMOD_INCLUDE} "
29485 if test "x" = "x" ; then # no header, assume found
29486 FMOD_HEADER_FOUND="1"
29487 else # check for the header
29488 saved_cppflags="${CPPFLAGS}"
29489 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29490 if test "${ac_cv_header_+set}" = set; then
29491 { echo "$as_me:$LINENO: checking for " >&5
29492 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29493 if test "${ac_cv_header_+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29497 echo "${ECHO_T}$ac_cv_header_" >&6; }
29498 else
29499 # Is the header compilable?
29500 { echo "$as_me:$LINENO: checking usability" >&5
29501 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h. */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 $ac_includes_default
29509 #include <>
29510 _ACEOF
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
29519 ac_status=$?
29520 grep -v '^ *+' conftest.er1 >conftest.err
29521 rm -f conftest.er1
29522 cat conftest.err >&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); } && {
29525 test -z "$ac_c_werror_flag" ||
29526 test ! -s conftest.err
29527 } && test -s conftest.$ac_objext; then
29528 ac_header_compiler=yes
29529 else
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_header_compiler=no
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29538 echo "${ECHO_T}$ac_header_compiler" >&6; }
29540 # Is the header present?
29541 { echo "$as_me:$LINENO: checking presence" >&5
29542 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29544 /* confdefs.h. */
29545 _ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h. */
29549 #include <>
29550 _ACEOF
29551 if { (ac_try="$ac_cpp conftest.$ac_ext"
29552 case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29558 ac_status=$?
29559 grep -v '^ *+' conftest.er1 >conftest.err
29560 rm -f conftest.er1
29561 cat conftest.err >&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } >/dev/null && {
29564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29565 test ! -s conftest.err
29566 }; then
29567 ac_header_preproc=yes
29568 else
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29572 ac_header_preproc=no
29575 rm -f conftest.err conftest.$ac_ext
29576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29577 echo "${ECHO_T}$ac_header_preproc" >&6; }
29579 # So? What about this header?
29580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29581 yes:no: )
29582 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29583 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29585 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29586 ac_header_preproc=yes
29588 no:yes:* )
29589 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29590 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29592 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29594 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29596 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29598 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29600 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29601 ( cat <<\_ASBOX
29602 ## ------------------------------- ##
29603 ## Report this to www.asterisk.org ##
29604 ## ------------------------------- ##
29605 _ASBOX
29606 ) | sed "s/^/$as_me: WARNING: /" >&2
29608 esac
29609 { echo "$as_me:$LINENO: checking for " >&5
29610 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29611 if test "${ac_cv_header_+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613 else
29614 ac_cv_header_=$ac_header_preproc
29616 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29617 echo "${ECHO_T}$ac_cv_header_" >&6; }
29620 if test $ac_cv_header_ = yes; then
29621 FMOD_HEADER_FOUND=1
29622 else
29623 FMOD_HEADER_FOUND=0
29627 CPPFLAGS="${saved_cppflags}"
29629 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29630 FMOD_LIB=""
29631 FMOD_INCLUDE=""
29632 else
29633 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29634 FMOD_LIB=""
29636 PBX_FMOD=1
29637 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29639 cat >>confdefs.h <<_ACEOF
29640 #define HAVE_FMOD 1
29641 _ACEOF
29644 cat >>confdefs.h <<_ACEOF
29645 #define HAVE_FMOD_VERSION
29646 _ACEOF
29653 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29654 pbxlibdir=""
29655 # if --with-ROUND=DIR has been specified, use it.
29656 if test "x${ROUND_DIR}" != "x"; then
29657 if test -d ${ROUND_DIR}/lib; then
29658 pbxlibdir="-L${ROUND_DIR}/lib"
29659 else
29660 pbxlibdir="-L${ROUND_DIR}"
29663 pbxfuncname="round"
29664 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29665 AST_ROUND_FOUND=yes
29666 else
29667 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29668 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29669 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29670 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673 ac_check_lib_save_LIBS=$LIBS
29674 LIBS="-lm ${pbxlibdir} $LIBS"
29675 cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h. */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h. */
29682 /* Override any GCC internal prototype to avoid an error.
29683 Use char because int might match the return type of a GCC
29684 builtin and then its argument prototype would still apply. */
29685 #ifdef __cplusplus
29686 extern "C"
29687 #endif
29688 char ${pbxfuncname} ();
29690 main ()
29692 return ${pbxfuncname} ();
29694 return 0;
29696 _ACEOF
29697 rm -f conftest.$ac_objext conftest$ac_exeext
29698 if { (ac_try="$ac_link"
29699 case "(($ac_try" in
29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701 *) ac_try_echo=$ac_try;;
29702 esac
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_link") 2>conftest.er1
29705 ac_status=$?
29706 grep -v '^ *+' conftest.er1 >conftest.err
29707 rm -f conftest.er1
29708 cat conftest.err >&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); } && {
29711 test -z "$ac_c_werror_flag" ||
29712 test ! -s conftest.err
29713 } && test -s conftest$ac_exeext &&
29714 $as_test_x conftest$ac_exeext; then
29715 eval "$as_ac_Lib=yes"
29716 else
29717 echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29720 eval "$as_ac_Lib=no"
29723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29724 conftest$ac_exeext conftest.$ac_ext
29725 LIBS=$ac_check_lib_save_LIBS
29727 ac_res=`eval echo '${'$as_ac_Lib'}'`
29728 { echo "$as_me:$LINENO: result: $ac_res" >&5
29729 echo "${ECHO_T}$ac_res" >&6; }
29730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29731 AST_ROUND_FOUND=yes
29732 else
29733 AST_ROUND_FOUND=no
29738 # now check for the header.
29739 if test "${AST_ROUND_FOUND}" = "yes"; then
29740 ROUND_LIB="${pbxlibdir} -lm "
29741 # if --with-ROUND=DIR has been specified, use it.
29742 if test "x${ROUND_DIR}" != "x"; then
29743 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29745 ROUND_INCLUDE="${ROUND_INCLUDE} "
29746 if test "x" = "x" ; then # no header, assume found
29747 ROUND_HEADER_FOUND="1"
29748 else # check for the header
29749 saved_cppflags="${CPPFLAGS}"
29750 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29751 if test "${ac_cv_header_+set}" = set; then
29752 { echo "$as_me:$LINENO: checking for " >&5
29753 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29754 if test "${ac_cv_header_+set}" = set; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29757 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29758 echo "${ECHO_T}$ac_cv_header_" >&6; }
29759 else
29760 # Is the header compilable?
29761 { echo "$as_me:$LINENO: checking usability" >&5
29762 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29763 cat >conftest.$ac_ext <<_ACEOF
29764 /* confdefs.h. */
29765 _ACEOF
29766 cat confdefs.h >>conftest.$ac_ext
29767 cat >>conftest.$ac_ext <<_ACEOF
29768 /* end confdefs.h. */
29769 $ac_includes_default
29770 #include <>
29771 _ACEOF
29772 rm -f conftest.$ac_objext
29773 if { (ac_try="$ac_compile"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29777 esac
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_compile") 2>conftest.er1
29780 ac_status=$?
29781 grep -v '^ *+' conftest.er1 >conftest.err
29782 rm -f conftest.er1
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } && {
29786 test -z "$ac_c_werror_flag" ||
29787 test ! -s conftest.err
29788 } && test -s conftest.$ac_objext; then
29789 ac_header_compiler=yes
29790 else
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ac_header_compiler=no
29797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29799 echo "${ECHO_T}$ac_header_compiler" >&6; }
29801 # Is the header present?
29802 { echo "$as_me:$LINENO: checking presence" >&5
29803 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29804 cat >conftest.$ac_ext <<_ACEOF
29805 /* confdefs.h. */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <>
29811 _ACEOF
29812 if { (ac_try="$ac_cpp conftest.$ac_ext"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29819 ac_status=$?
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } >/dev/null && {
29825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29826 test ! -s conftest.err
29827 }; then
29828 ac_header_preproc=yes
29829 else
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ac_header_preproc=no
29836 rm -f conftest.err conftest.$ac_ext
29837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29838 echo "${ECHO_T}$ac_header_preproc" >&6; }
29840 # So? What about this header?
29841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29842 yes:no: )
29843 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29844 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29845 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29846 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29847 ac_header_preproc=yes
29849 no:yes:* )
29850 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29851 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29852 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29853 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29854 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29855 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29856 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29857 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29858 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29859 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29860 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29861 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29862 ( cat <<\_ASBOX
29863 ## ------------------------------- ##
29864 ## Report this to www.asterisk.org ##
29865 ## ------------------------------- ##
29866 _ASBOX
29867 ) | sed "s/^/$as_me: WARNING: /" >&2
29869 esac
29870 { echo "$as_me:$LINENO: checking for " >&5
29871 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29872 if test "${ac_cv_header_+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29875 ac_cv_header_=$ac_header_preproc
29877 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29878 echo "${ECHO_T}$ac_cv_header_" >&6; }
29881 if test $ac_cv_header_ = yes; then
29882 ROUND_HEADER_FOUND=1
29883 else
29884 ROUND_HEADER_FOUND=0
29888 CPPFLAGS="${saved_cppflags}"
29890 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
29891 ROUND_LIB=""
29892 ROUND_INCLUDE=""
29893 else
29894 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29895 ROUND_LIB=""
29897 PBX_ROUND=1
29898 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29900 cat >>confdefs.h <<_ACEOF
29901 #define HAVE_ROUND 1
29902 _ACEOF
29905 cat >>confdefs.h <<_ACEOF
29906 #define HAVE_ROUND_VERSION
29907 _ACEOF
29914 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
29915 pbxlibdir=""
29916 # if --with-TRUNC=DIR has been specified, use it.
29917 if test "x${TRUNC_DIR}" != "x"; then
29918 if test -d ${TRUNC_DIR}/lib; then
29919 pbxlibdir="-L${TRUNC_DIR}/lib"
29920 else
29921 pbxlibdir="-L${TRUNC_DIR}"
29924 pbxfuncname="trunc"
29925 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29926 AST_TRUNC_FOUND=yes
29927 else
29928 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29929 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29930 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29931 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
29933 else
29934 ac_check_lib_save_LIBS=$LIBS
29935 LIBS="-lm ${pbxlibdir} $LIBS"
29936 cat >conftest.$ac_ext <<_ACEOF
29937 /* confdefs.h. */
29938 _ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h. */
29943 /* Override any GCC internal prototype to avoid an error.
29944 Use char because int might match the return type of a GCC
29945 builtin and then its argument prototype would still apply. */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char ${pbxfuncname} ();
29951 main ()
29953 return ${pbxfuncname} ();
29955 return 0;
29957 _ACEOF
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (ac_try="$ac_link"
29960 case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29963 esac
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_link") 2>conftest.er1
29966 ac_status=$?
29967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } && {
29972 test -z "$ac_c_werror_flag" ||
29973 test ! -s conftest.err
29974 } && test -s conftest$ac_exeext &&
29975 $as_test_x conftest$ac_exeext; then
29976 eval "$as_ac_Lib=yes"
29977 else
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29981 eval "$as_ac_Lib=no"
29984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29985 conftest$ac_exeext conftest.$ac_ext
29986 LIBS=$ac_check_lib_save_LIBS
29988 ac_res=`eval echo '${'$as_ac_Lib'}'`
29989 { echo "$as_me:$LINENO: result: $ac_res" >&5
29990 echo "${ECHO_T}$ac_res" >&6; }
29991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29992 AST_TRUNC_FOUND=yes
29993 else
29994 AST_TRUNC_FOUND=no
29999 # now check for the header.
30000 if test "${AST_TRUNC_FOUND}" = "yes"; then
30001 TRUNC_LIB="${pbxlibdir} -lm "
30002 # if --with-TRUNC=DIR has been specified, use it.
30003 if test "x${TRUNC_DIR}" != "x"; then
30004 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30006 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30007 if test "x" = "x" ; then # no header, assume found
30008 TRUNC_HEADER_FOUND="1"
30009 else # check for the header
30010 saved_cppflags="${CPPFLAGS}"
30011 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
30012 if test "${ac_cv_header_+set}" = set; then
30013 { echo "$as_me:$LINENO: checking for " >&5
30014 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30015 if test "${ac_cv_header_+set}" = set; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30019 echo "${ECHO_T}$ac_cv_header_" >&6; }
30020 else
30021 # Is the header compilable?
30022 { echo "$as_me:$LINENO: checking usability" >&5
30023 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30024 cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h. */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30030 $ac_includes_default
30031 #include <>
30032 _ACEOF
30033 rm -f conftest.$ac_objext
30034 if { (ac_try="$ac_compile"
30035 case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_compile") 2>conftest.er1
30041 ac_status=$?
30042 grep -v '^ *+' conftest.er1 >conftest.err
30043 rm -f conftest.er1
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } && {
30047 test -z "$ac_c_werror_flag" ||
30048 test ! -s conftest.err
30049 } && test -s conftest.$ac_objext; then
30050 ac_header_compiler=yes
30051 else
30052 echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30055 ac_header_compiler=no
30058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30060 echo "${ECHO_T}$ac_header_compiler" >&6; }
30062 # Is the header present?
30063 { echo "$as_me:$LINENO: checking presence" >&5
30064 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30065 cat >conftest.$ac_ext <<_ACEOF
30066 /* confdefs.h. */
30067 _ACEOF
30068 cat confdefs.h >>conftest.$ac_ext
30069 cat >>conftest.$ac_ext <<_ACEOF
30070 /* end confdefs.h. */
30071 #include <>
30072 _ACEOF
30073 if { (ac_try="$ac_cpp conftest.$ac_ext"
30074 case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30077 esac
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30080 ac_status=$?
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } >/dev/null && {
30086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30087 test ! -s conftest.err
30088 }; then
30089 ac_header_preproc=yes
30090 else
30091 echo "$as_me: failed program was:" >&5
30092 sed 's/^/| /' conftest.$ac_ext >&5
30094 ac_header_preproc=no
30097 rm -f conftest.err conftest.$ac_ext
30098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30099 echo "${ECHO_T}$ac_header_preproc" >&6; }
30101 # So? What about this header?
30102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30103 yes:no: )
30104 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30105 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30107 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30108 ac_header_preproc=yes
30110 no:yes:* )
30111 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30112 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30114 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30116 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30118 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30120 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30122 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30123 ( cat <<\_ASBOX
30124 ## ------------------------------- ##
30125 ## Report this to www.asterisk.org ##
30126 ## ------------------------------- ##
30127 _ASBOX
30128 ) | sed "s/^/$as_me: WARNING: /" >&2
30130 esac
30131 { echo "$as_me:$LINENO: checking for " >&5
30132 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30133 if test "${ac_cv_header_+set}" = set; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 else
30136 ac_cv_header_=$ac_header_preproc
30138 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30139 echo "${ECHO_T}$ac_cv_header_" >&6; }
30142 if test $ac_cv_header_ = yes; then
30143 TRUNC_HEADER_FOUND=1
30144 else
30145 TRUNC_HEADER_FOUND=0
30149 CPPFLAGS="${saved_cppflags}"
30151 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30152 TRUNC_LIB=""
30153 TRUNC_INCLUDE=""
30154 else
30155 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30156 TRUNC_LIB=""
30158 PBX_TRUNC=1
30159 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30161 cat >>confdefs.h <<_ACEOF
30162 #define HAVE_TRUNC 1
30163 _ACEOF
30166 cat >>confdefs.h <<_ACEOF
30167 #define HAVE_TRUNC_VERSION
30168 _ACEOF
30175 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30176 pbxlibdir=""
30177 # if --with-STRTOD=DIR has been specified, use it.
30178 if test "x${STRTOD_DIR}" != "x"; then
30179 if test -d ${STRTOD_DIR}/lib; then
30180 pbxlibdir="-L${STRTOD_DIR}/lib"
30181 else
30182 pbxlibdir="-L${STRTOD_DIR}"
30185 pbxfuncname="strtod"
30186 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30187 AST_STRTOD_FOUND=yes
30188 else
30189 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30190 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30191 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30192 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30194 else
30195 ac_check_lib_save_LIBS=$LIBS
30196 LIBS="-lc ${pbxlibdir} $LIBS"
30197 cat >conftest.$ac_ext <<_ACEOF
30198 /* confdefs.h. */
30199 _ACEOF
30200 cat confdefs.h >>conftest.$ac_ext
30201 cat >>conftest.$ac_ext <<_ACEOF
30202 /* end confdefs.h. */
30204 /* Override any GCC internal prototype to avoid an error.
30205 Use char because int might match the return type of a GCC
30206 builtin and then its argument prototype would still apply. */
30207 #ifdef __cplusplus
30208 extern "C"
30209 #endif
30210 char ${pbxfuncname} ();
30212 main ()
30214 return ${pbxfuncname} ();
30216 return 0;
30218 _ACEOF
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30224 esac
30225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
30227 ac_status=$?
30228 grep -v '^ *+' conftest.er1 >conftest.err
30229 rm -f conftest.er1
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } && {
30233 test -z "$ac_c_werror_flag" ||
30234 test ! -s conftest.err
30235 } && test -s conftest$ac_exeext &&
30236 $as_test_x conftest$ac_exeext; then
30237 eval "$as_ac_Lib=yes"
30238 else
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30242 eval "$as_ac_Lib=no"
30245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30246 conftest$ac_exeext conftest.$ac_ext
30247 LIBS=$ac_check_lib_save_LIBS
30249 ac_res=`eval echo '${'$as_ac_Lib'}'`
30250 { echo "$as_me:$LINENO: result: $ac_res" >&5
30251 echo "${ECHO_T}$ac_res" >&6; }
30252 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30253 AST_STRTOD_FOUND=yes
30254 else
30255 AST_STRTOD_FOUND=no
30260 # now check for the header.
30261 if test "${AST_STRTOD_FOUND}" = "yes"; then
30262 STRTOD_LIB="${pbxlibdir} -lc "
30263 # if --with-STRTOD=DIR has been specified, use it.
30264 if test "x${STRTOD_DIR}" != "x"; then
30265 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30267 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30268 if test "xstdlib.h" = "x" ; then # no header, assume found
30269 STRTOD_HEADER_FOUND="1"
30270 else # check for the header
30271 saved_cppflags="${CPPFLAGS}"
30272 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
30273 if test "${ac_cv_header_stdlib_h+set}" = set; then
30274 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30275 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30276 if test "${ac_cv_header_stdlib_h+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30279 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30280 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30281 else
30282 # Is the header compilable?
30283 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30284 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30285 cat >conftest.$ac_ext <<_ACEOF
30286 /* confdefs.h. */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30291 $ac_includes_default
30292 #include <stdlib.h>
30293 _ACEOF
30294 rm -f conftest.$ac_objext
30295 if { (ac_try="$ac_compile"
30296 case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299 esac
30300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_compile") 2>conftest.er1
30302 ac_status=$?
30303 grep -v '^ *+' conftest.er1 >conftest.err
30304 rm -f conftest.er1
30305 cat conftest.err >&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); } && {
30308 test -z "$ac_c_werror_flag" ||
30309 test ! -s conftest.err
30310 } && test -s conftest.$ac_objext; then
30311 ac_header_compiler=yes
30312 else
30313 echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30316 ac_header_compiler=no
30319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30321 echo "${ECHO_T}$ac_header_compiler" >&6; }
30323 # Is the header present?
30324 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30325 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30326 cat >conftest.$ac_ext <<_ACEOF
30327 /* confdefs.h. */
30328 _ACEOF
30329 cat confdefs.h >>conftest.$ac_ext
30330 cat >>conftest.$ac_ext <<_ACEOF
30331 /* end confdefs.h. */
30332 #include <stdlib.h>
30333 _ACEOF
30334 if { (ac_try="$ac_cpp conftest.$ac_ext"
30335 case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30338 esac
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30341 ac_status=$?
30342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } >/dev/null && {
30347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30348 test ! -s conftest.err
30349 }; then
30350 ac_header_preproc=yes
30351 else
30352 echo "$as_me: failed program was:" >&5
30353 sed 's/^/| /' conftest.$ac_ext >&5
30355 ac_header_preproc=no
30358 rm -f conftest.err conftest.$ac_ext
30359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30360 echo "${ECHO_T}$ac_header_preproc" >&6; }
30362 # So? What about this header?
30363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30364 yes:no: )
30365 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30366 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30367 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30368 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30369 ac_header_preproc=yes
30371 no:yes:* )
30372 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30373 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30374 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30375 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30376 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30377 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30378 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30379 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30380 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30381 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30382 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30383 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30384 ( cat <<\_ASBOX
30385 ## ------------------------------- ##
30386 ## Report this to www.asterisk.org ##
30387 ## ------------------------------- ##
30388 _ASBOX
30389 ) | sed "s/^/$as_me: WARNING: /" >&2
30391 esac
30392 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30393 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30394 if test "${ac_cv_header_stdlib_h+set}" = set; then
30395 echo $ECHO_N "(cached) $ECHO_C" >&6
30396 else
30397 ac_cv_header_stdlib_h=$ac_header_preproc
30399 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30400 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30403 if test $ac_cv_header_stdlib_h = yes; then
30404 STRTOD_HEADER_FOUND=1
30405 else
30406 STRTOD_HEADER_FOUND=0
30410 CPPFLAGS="${saved_cppflags}"
30412 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30413 STRTOD_LIB=""
30414 STRTOD_INCLUDE=""
30415 else
30416 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30417 STRTOD_LIB=""
30419 PBX_STRTOD=1
30420 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30422 cat >>confdefs.h <<_ACEOF
30423 #define HAVE_STRTOD 1
30424 _ACEOF
30427 cat >>confdefs.h <<_ACEOF
30428 #define HAVE_STRTOD_VERSION
30429 _ACEOF
30436 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30437 pbxlibdir=""
30438 # if --with-FLOOR=DIR has been specified, use it.
30439 if test "x${FLOOR_DIR}" != "x"; then
30440 if test -d ${FLOOR_DIR}/lib; then
30441 pbxlibdir="-L${FLOOR_DIR}/lib"
30442 else
30443 pbxlibdir="-L${FLOOR_DIR}"
30446 pbxfuncname="floor"
30447 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30448 AST_FLOOR_FOUND=yes
30449 else
30450 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30451 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30452 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30453 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30454 echo $ECHO_N "(cached) $ECHO_C" >&6
30455 else
30456 ac_check_lib_save_LIBS=$LIBS
30457 LIBS="-lm ${pbxlibdir} $LIBS"
30458 cat >conftest.$ac_ext <<_ACEOF
30459 /* confdefs.h. */
30460 _ACEOF
30461 cat confdefs.h >>conftest.$ac_ext
30462 cat >>conftest.$ac_ext <<_ACEOF
30463 /* end confdefs.h. */
30465 /* Override any GCC internal prototype to avoid an error.
30466 Use char because int might match the return type of a GCC
30467 builtin and then its argument prototype would still apply. */
30468 #ifdef __cplusplus
30469 extern "C"
30470 #endif
30471 char ${pbxfuncname} ();
30473 main ()
30475 return ${pbxfuncname} ();
30477 return 0;
30479 _ACEOF
30480 rm -f conftest.$ac_objext conftest$ac_exeext
30481 if { (ac_try="$ac_link"
30482 case "(($ac_try" in
30483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484 *) ac_try_echo=$ac_try;;
30485 esac
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487 (eval "$ac_link") 2>conftest.er1
30488 ac_status=$?
30489 grep -v '^ *+' conftest.er1 >conftest.err
30490 rm -f conftest.er1
30491 cat conftest.err >&5
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } && {
30494 test -z "$ac_c_werror_flag" ||
30495 test ! -s conftest.err
30496 } && test -s conftest$ac_exeext &&
30497 $as_test_x conftest$ac_exeext; then
30498 eval "$as_ac_Lib=yes"
30499 else
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 eval "$as_ac_Lib=no"
30506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30507 conftest$ac_exeext conftest.$ac_ext
30508 LIBS=$ac_check_lib_save_LIBS
30510 ac_res=`eval echo '${'$as_ac_Lib'}'`
30511 { echo "$as_me:$LINENO: result: $ac_res" >&5
30512 echo "${ECHO_T}$ac_res" >&6; }
30513 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30514 AST_FLOOR_FOUND=yes
30515 else
30516 AST_FLOOR_FOUND=no
30521 # now check for the header.
30522 if test "${AST_FLOOR_FOUND}" = "yes"; then
30523 FLOOR_LIB="${pbxlibdir} -lm "
30524 # if --with-FLOOR=DIR has been specified, use it.
30525 if test "x${FLOOR_DIR}" != "x"; then
30526 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30528 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30529 if test "x" = "x" ; then # no header, assume found
30530 FLOOR_HEADER_FOUND="1"
30531 else # check for the header
30532 saved_cppflags="${CPPFLAGS}"
30533 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30534 if test "${ac_cv_header_+set}" = set; then
30535 { echo "$as_me:$LINENO: checking for " >&5
30536 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30537 if test "${ac_cv_header_+set}" = set; then
30538 echo $ECHO_N "(cached) $ECHO_C" >&6
30540 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30541 echo "${ECHO_T}$ac_cv_header_" >&6; }
30542 else
30543 # Is the header compilable?
30544 { echo "$as_me:$LINENO: checking usability" >&5
30545 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30546 cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h. */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h. */
30552 $ac_includes_default
30553 #include <>
30554 _ACEOF
30555 rm -f conftest.$ac_objext
30556 if { (ac_try="$ac_compile"
30557 case "(($ac_try" in
30558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559 *) ac_try_echo=$ac_try;;
30560 esac
30561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562 (eval "$ac_compile") 2>conftest.er1
30563 ac_status=$?
30564 grep -v '^ *+' conftest.er1 >conftest.err
30565 rm -f conftest.er1
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } && {
30569 test -z "$ac_c_werror_flag" ||
30570 test ! -s conftest.err
30571 } && test -s conftest.$ac_objext; then
30572 ac_header_compiler=yes
30573 else
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30577 ac_header_compiler=no
30580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30582 echo "${ECHO_T}$ac_header_compiler" >&6; }
30584 # Is the header present?
30585 { echo "$as_me:$LINENO: checking presence" >&5
30586 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30587 cat >conftest.$ac_ext <<_ACEOF
30588 /* confdefs.h. */
30589 _ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30593 #include <>
30594 _ACEOF
30595 if { (ac_try="$ac_cpp conftest.$ac_ext"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30602 ac_status=$?
30603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } >/dev/null && {
30608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30609 test ! -s conftest.err
30610 }; then
30611 ac_header_preproc=yes
30612 else
30613 echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30616 ac_header_preproc=no
30619 rm -f conftest.err conftest.$ac_ext
30620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30621 echo "${ECHO_T}$ac_header_preproc" >&6; }
30623 # So? What about this header?
30624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30625 yes:no: )
30626 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30627 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30629 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30630 ac_header_preproc=yes
30632 no:yes:* )
30633 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30634 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30636 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30638 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30639 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30640 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30641 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30642 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30643 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30644 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30645 ( cat <<\_ASBOX
30646 ## ------------------------------- ##
30647 ## Report this to www.asterisk.org ##
30648 ## ------------------------------- ##
30649 _ASBOX
30650 ) | sed "s/^/$as_me: WARNING: /" >&2
30652 esac
30653 { echo "$as_me:$LINENO: checking for " >&5
30654 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30655 if test "${ac_cv_header_+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
30657 else
30658 ac_cv_header_=$ac_header_preproc
30660 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30661 echo "${ECHO_T}$ac_cv_header_" >&6; }
30664 if test $ac_cv_header_ = yes; then
30665 FLOOR_HEADER_FOUND=1
30666 else
30667 FLOOR_HEADER_FOUND=0
30671 CPPFLAGS="${saved_cppflags}"
30673 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30674 FLOOR_LIB=""
30675 FLOOR_INCLUDE=""
30676 else
30677 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30678 FLOOR_LIB=""
30680 PBX_FLOOR=1
30681 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30683 cat >>confdefs.h <<_ACEOF
30684 #define HAVE_FLOOR 1
30685 _ACEOF
30688 cat >>confdefs.h <<_ACEOF
30689 #define HAVE_FLOOR_VERSION
30690 _ACEOF
30697 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30698 pbxlibdir=""
30699 # if --with-CEIL=DIR has been specified, use it.
30700 if test "x${CEIL_DIR}" != "x"; then
30701 if test -d ${CEIL_DIR}/lib; then
30702 pbxlibdir="-L${CEIL_DIR}/lib"
30703 else
30704 pbxlibdir="-L${CEIL_DIR}"
30707 pbxfuncname="ceil"
30708 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30709 AST_CEIL_FOUND=yes
30710 else
30711 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30712 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30713 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716 else
30717 ac_check_lib_save_LIBS=$LIBS
30718 LIBS="-lm ${pbxlibdir} $LIBS"
30719 cat >conftest.$ac_ext <<_ACEOF
30720 /* confdefs.h. */
30721 _ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h. */
30726 /* Override any GCC internal prototype to avoid an error.
30727 Use char because int might match the return type of a GCC
30728 builtin and then its argument prototype would still apply. */
30729 #ifdef __cplusplus
30730 extern "C"
30731 #endif
30732 char ${pbxfuncname} ();
30734 main ()
30736 return ${pbxfuncname} ();
30738 return 0;
30740 _ACEOF
30741 rm -f conftest.$ac_objext conftest$ac_exeext
30742 if { (ac_try="$ac_link"
30743 case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30746 esac
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_link") 2>conftest.er1
30749 ac_status=$?
30750 grep -v '^ *+' conftest.er1 >conftest.err
30751 rm -f conftest.er1
30752 cat conftest.err >&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); } && {
30755 test -z "$ac_c_werror_flag" ||
30756 test ! -s conftest.err
30757 } && test -s conftest$ac_exeext &&
30758 $as_test_x conftest$ac_exeext; then
30759 eval "$as_ac_Lib=yes"
30760 else
30761 echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30764 eval "$as_ac_Lib=no"
30767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30768 conftest$ac_exeext conftest.$ac_ext
30769 LIBS=$ac_check_lib_save_LIBS
30771 ac_res=`eval echo '${'$as_ac_Lib'}'`
30772 { echo "$as_me:$LINENO: result: $ac_res" >&5
30773 echo "${ECHO_T}$ac_res" >&6; }
30774 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30775 AST_CEIL_FOUND=yes
30776 else
30777 AST_CEIL_FOUND=no
30782 # now check for the header.
30783 if test "${AST_CEIL_FOUND}" = "yes"; then
30784 CEIL_LIB="${pbxlibdir} -lm "
30785 # if --with-CEIL=DIR has been specified, use it.
30786 if test "x${CEIL_DIR}" != "x"; then
30787 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30789 CEIL_INCLUDE="${CEIL_INCLUDE} "
30790 if test "x" = "x" ; then # no header, assume found
30791 CEIL_HEADER_FOUND="1"
30792 else # check for the header
30793 saved_cppflags="${CPPFLAGS}"
30794 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30795 if test "${ac_cv_header_+set}" = set; then
30796 { echo "$as_me:$LINENO: checking for " >&5
30797 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30798 if test "${ac_cv_header_+set}" = set; then
30799 echo $ECHO_N "(cached) $ECHO_C" >&6
30801 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30802 echo "${ECHO_T}$ac_cv_header_" >&6; }
30803 else
30804 # Is the header compilable?
30805 { echo "$as_me:$LINENO: checking usability" >&5
30806 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30807 cat >conftest.$ac_ext <<_ACEOF
30808 /* confdefs.h. */
30809 _ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h. */
30813 $ac_includes_default
30814 #include <>
30815 _ACEOF
30816 rm -f conftest.$ac_objext
30817 if { (ac_try="$ac_compile"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_compile") 2>conftest.er1
30824 ac_status=$?
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } && {
30830 test -z "$ac_c_werror_flag" ||
30831 test ! -s conftest.err
30832 } && test -s conftest.$ac_objext; then
30833 ac_header_compiler=yes
30834 else
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30838 ac_header_compiler=no
30841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30843 echo "${ECHO_T}$ac_header_compiler" >&6; }
30845 # Is the header present?
30846 { echo "$as_me:$LINENO: checking presence" >&5
30847 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30848 cat >conftest.$ac_ext <<_ACEOF
30849 /* confdefs.h. */
30850 _ACEOF
30851 cat confdefs.h >>conftest.$ac_ext
30852 cat >>conftest.$ac_ext <<_ACEOF
30853 /* end confdefs.h. */
30854 #include <>
30855 _ACEOF
30856 if { (ac_try="$ac_cpp conftest.$ac_ext"
30857 case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860 esac
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30863 ac_status=$?
30864 grep -v '^ *+' conftest.er1 >conftest.err
30865 rm -f conftest.er1
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); } >/dev/null && {
30869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30870 test ! -s conftest.err
30871 }; then
30872 ac_header_preproc=yes
30873 else
30874 echo "$as_me: failed program was:" >&5
30875 sed 's/^/| /' conftest.$ac_ext >&5
30877 ac_header_preproc=no
30880 rm -f conftest.err conftest.$ac_ext
30881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30882 echo "${ECHO_T}$ac_header_preproc" >&6; }
30884 # So? What about this header?
30885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30886 yes:no: )
30887 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30888 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30889 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30890 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30891 ac_header_preproc=yes
30893 no:yes:* )
30894 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30895 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30896 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30897 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30898 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30899 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30900 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30901 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30902 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30903 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30904 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30905 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30906 ( cat <<\_ASBOX
30907 ## ------------------------------- ##
30908 ## Report this to www.asterisk.org ##
30909 ## ------------------------------- ##
30910 _ASBOX
30911 ) | sed "s/^/$as_me: WARNING: /" >&2
30913 esac
30914 { echo "$as_me:$LINENO: checking for " >&5
30915 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30916 if test "${ac_cv_header_+set}" = set; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918 else
30919 ac_cv_header_=$ac_header_preproc
30921 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30922 echo "${ECHO_T}$ac_cv_header_" >&6; }
30925 if test $ac_cv_header_ = yes; then
30926 CEIL_HEADER_FOUND=1
30927 else
30928 CEIL_HEADER_FOUND=0
30932 CPPFLAGS="${saved_cppflags}"
30934 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
30935 CEIL_LIB=""
30936 CEIL_INCLUDE=""
30937 else
30938 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30939 CEIL_LIB=""
30941 PBX_CEIL=1
30942 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30944 cat >>confdefs.h <<_ACEOF
30945 #define HAVE_CEIL 1
30946 _ACEOF
30949 cat >>confdefs.h <<_ACEOF
30950 #define HAVE_CEIL_VERSION
30951 _ACEOF
30959 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
30960 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
30961 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
30962 saved_cppflags="${CPPFLAGS}"
30963 if test "x${GETIFADDRS_DIR}" != "x"; then
30964 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
30966 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
30968 cat >conftest.$ac_ext <<_ACEOF
30969 /* confdefs.h. */
30970 _ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h. */
30974 #include <ifaddrs.h>
30976 main ()
30978 struct ifaddrs *p; getifaddrs(&p);
30981 return 0;
30983 _ACEOF
30984 rm -f conftest.$ac_objext
30985 if { (ac_try="$ac_compile"
30986 case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_compile") 2>conftest.er1
30992 ac_status=$?
30993 grep -v '^ *+' conftest.er1 >conftest.err
30994 rm -f conftest.er1
30995 cat conftest.err >&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); } && {
30998 test -z "$ac_c_werror_flag" ||
30999 test ! -s conftest.err
31000 } && test -s conftest.$ac_objext; then
31001 { echo "$as_me:$LINENO: result: yes" >&5
31002 echo "${ECHO_T}yes" >&6; }
31003 PBX_GETIFADDRS=1
31005 cat >>confdefs.h <<\_ACEOF
31006 #define HAVE_GETIFADDRS 1
31007 _ACEOF
31010 cat >>confdefs.h <<\_ACEOF
31011 #define HAVE_GETIFADDRS_VERSION
31012 _ACEOF
31015 else
31016 echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31019 { echo "$as_me:$LINENO: result: no" >&5
31020 echo "${ECHO_T}no" >&6; }
31024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31025 CPPFLAGS="${saved_cppflags}"
31029 GSM_INTERNAL="yes"
31031 GSM_SYSTEM="yes"
31032 if test "${USE_GSM}" != "no"; then
31033 if test "${GSM_DIR}" = "internal"; then
31034 GSM_SYSTEM="no"
31035 elif test "${GSM_DIR}" != ""; then
31036 GSM_INTERNAL="no"
31038 if test "${GSM_SYSTEM}" = "yes"; then
31039 gsmlibdir=""
31040 if test "x${GSM_DIR}" != "x"; then
31041 if test -d ${GSM_DIR}/lib; then
31042 gsmlibdir="-L${GSM_DIR}/lib"
31043 else
31044 gsmlibdir="-L${GSM_DIR}"
31047 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31048 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31049 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31051 else
31052 ac_check_lib_save_LIBS=$LIBS
31053 LIBS="-lgsm ${gsmlibdir} $LIBS"
31054 cat >conftest.$ac_ext <<_ACEOF
31055 /* confdefs.h. */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h. */
31061 /* Override any GCC internal prototype to avoid an error.
31062 Use char because int might match the return type of a GCC
31063 builtin and then its argument prototype would still apply. */
31064 #ifdef __cplusplus
31065 extern "C"
31066 #endif
31067 char gsm_create ();
31069 main ()
31071 return gsm_create ();
31073 return 0;
31075 _ACEOF
31076 rm -f conftest.$ac_objext conftest$ac_exeext
31077 if { (ac_try="$ac_link"
31078 case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31081 esac
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_link") 2>conftest.er1
31084 ac_status=$?
31085 grep -v '^ *+' conftest.er1 >conftest.err
31086 rm -f conftest.er1
31087 cat conftest.err >&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } && {
31090 test -z "$ac_c_werror_flag" ||
31091 test ! -s conftest.err
31092 } && test -s conftest$ac_exeext &&
31093 $as_test_x conftest$ac_exeext; then
31094 ac_cv_lib_gsm_gsm_create=yes
31095 else
31096 echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31099 ac_cv_lib_gsm_gsm_create=no
31102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31103 conftest$ac_exeext conftest.$ac_ext
31104 LIBS=$ac_check_lib_save_LIBS
31106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31107 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31108 if test $ac_cv_lib_gsm_gsm_create = yes; then
31110 cat >>confdefs.h <<_ACEOF
31111 #define HAVE_GSM 1
31112 _ACEOF
31116 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31117 if test "x${GSM_DIR}" != "x" ; then
31118 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31120 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31121 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31125 ac_res=`eval echo '${'$as_ac_Header'}'`
31126 { echo "$as_me:$LINENO: result: $ac_res" >&5
31127 echo "${ECHO_T}$ac_res" >&6; }
31128 else
31129 # Is the header compilable?
31130 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31131 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31132 cat >conftest.$ac_ext <<_ACEOF
31133 /* confdefs.h. */
31134 _ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31138 $ac_includes_default
31139 #include <${GSM_DIR}/include/gsm.h>
31140 _ACEOF
31141 rm -f conftest.$ac_objext
31142 if { (ac_try="$ac_compile"
31143 case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_compile") 2>conftest.er1
31149 ac_status=$?
31150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } && {
31155 test -z "$ac_c_werror_flag" ||
31156 test ! -s conftest.err
31157 } && test -s conftest.$ac_objext; then
31158 ac_header_compiler=yes
31159 else
31160 echo "$as_me: failed program was:" >&5
31161 sed 's/^/| /' conftest.$ac_ext >&5
31163 ac_header_compiler=no
31166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31168 echo "${ECHO_T}$ac_header_compiler" >&6; }
31170 # Is the header present?
31171 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31172 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31173 cat >conftest.$ac_ext <<_ACEOF
31174 /* confdefs.h. */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31179 #include <${GSM_DIR}/include/gsm.h>
31180 _ACEOF
31181 if { (ac_try="$ac_cpp conftest.$ac_ext"
31182 case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31188 ac_status=$?
31189 grep -v '^ *+' conftest.er1 >conftest.err
31190 rm -f conftest.er1
31191 cat conftest.err >&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } >/dev/null && {
31194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31195 test ! -s conftest.err
31196 }; then
31197 ac_header_preproc=yes
31198 else
31199 echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31202 ac_header_preproc=no
31205 rm -f conftest.err conftest.$ac_ext
31206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31207 echo "${ECHO_T}$ac_header_preproc" >&6; }
31209 # So? What about this header?
31210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31211 yes:no: )
31212 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31213 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31214 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31215 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31216 ac_header_preproc=yes
31218 no:yes:* )
31219 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31220 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31221 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31222 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31223 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31224 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31225 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31226 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31227 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31228 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31229 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31230 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31231 ( cat <<\_ASBOX
31232 ## ------------------------------- ##
31233 ## Report this to www.asterisk.org ##
31234 ## ------------------------------- ##
31235 _ASBOX
31236 ) | sed "s/^/$as_me: WARNING: /" >&2
31238 esac
31239 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31240 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31242 echo $ECHO_N "(cached) $ECHO_C" >&6
31243 else
31244 eval "$as_ac_Header=\$ac_header_preproc"
31246 ac_res=`eval echo '${'$as_ac_Header'}'`
31247 { echo "$as_me:$LINENO: result: $ac_res" >&5
31248 echo "${ECHO_T}$ac_res" >&6; }
31251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31252 GSM_HEADER_FOUND=1
31253 else
31254 GSM_HEADER_FOUND=0
31258 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31260 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31261 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31263 echo $ECHO_N "(cached) $ECHO_C" >&6
31265 ac_res=`eval echo '${'$as_ac_Header'}'`
31266 { echo "$as_me:$LINENO: result: $ac_res" >&5
31267 echo "${ECHO_T}$ac_res" >&6; }
31268 else
31269 # Is the header compilable?
31270 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31271 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31272 cat >conftest.$ac_ext <<_ACEOF
31273 /* confdefs.h. */
31274 _ACEOF
31275 cat confdefs.h >>conftest.$ac_ext
31276 cat >>conftest.$ac_ext <<_ACEOF
31277 /* end confdefs.h. */
31278 $ac_includes_default
31279 #include <${GSM_DIR}/include/gsm/gsm.h>
31280 _ACEOF
31281 rm -f conftest.$ac_objext
31282 if { (ac_try="$ac_compile"
31283 case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31286 esac
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_compile") 2>conftest.er1
31289 ac_status=$?
31290 grep -v '^ *+' conftest.er1 >conftest.err
31291 rm -f conftest.er1
31292 cat conftest.err >&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); } && {
31295 test -z "$ac_c_werror_flag" ||
31296 test ! -s conftest.err
31297 } && test -s conftest.$ac_objext; then
31298 ac_header_compiler=yes
31299 else
31300 echo "$as_me: failed program was:" >&5
31301 sed 's/^/| /' conftest.$ac_ext >&5
31303 ac_header_compiler=no
31306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31308 echo "${ECHO_T}$ac_header_compiler" >&6; }
31310 # Is the header present?
31311 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31312 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31313 cat >conftest.$ac_ext <<_ACEOF
31314 /* confdefs.h. */
31315 _ACEOF
31316 cat confdefs.h >>conftest.$ac_ext
31317 cat >>conftest.$ac_ext <<_ACEOF
31318 /* end confdefs.h. */
31319 #include <${GSM_DIR}/include/gsm/gsm.h>
31320 _ACEOF
31321 if { (ac_try="$ac_cpp conftest.$ac_ext"
31322 case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31325 esac
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31328 ac_status=$?
31329 grep -v '^ *+' conftest.er1 >conftest.err
31330 rm -f conftest.er1
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } >/dev/null && {
31334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31335 test ! -s conftest.err
31336 }; then
31337 ac_header_preproc=yes
31338 else
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31342 ac_header_preproc=no
31345 rm -f conftest.err conftest.$ac_ext
31346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31347 echo "${ECHO_T}$ac_header_preproc" >&6; }
31349 # So? What about this header?
31350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31351 yes:no: )
31352 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31353 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31354 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31355 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31356 ac_header_preproc=yes
31358 no:yes:* )
31359 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31360 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31362 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31363 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31364 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31365 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31366 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31367 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31368 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31369 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31370 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31371 ( cat <<\_ASBOX
31372 ## ------------------------------- ##
31373 ## Report this to www.asterisk.org ##
31374 ## ------------------------------- ##
31375 _ASBOX
31376 ) | sed "s/^/$as_me: WARNING: /" >&2
31378 esac
31379 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31380 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31383 else
31384 eval "$as_ac_Header=\$ac_header_preproc"
31386 ac_res=`eval echo '${'$as_ac_Header'}'`
31387 { echo "$as_me:$LINENO: result: $ac_res" >&5
31388 echo "${ECHO_T}$ac_res" >&6; }
31391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31392 GSM_GSM_HEADER_FOUND=1
31393 else
31394 GSM_GSM_HEADER_FOUND=0
31398 else
31399 if test "${ac_cv_header_gsm_h+set}" = set; then
31400 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31401 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31402 if test "${ac_cv_header_gsm_h+set}" = set; then
31403 echo $ECHO_N "(cached) $ECHO_C" >&6
31405 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31406 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31407 else
31408 # Is the header compilable?
31409 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31410 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31411 cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h. */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31417 $ac_includes_default
31418 #include <gsm.h>
31419 _ACEOF
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31425 esac
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_compile") 2>conftest.er1
31428 ac_status=$?
31429 grep -v '^ *+' conftest.er1 >conftest.err
31430 rm -f conftest.er1
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } && {
31434 test -z "$ac_c_werror_flag" ||
31435 test ! -s conftest.err
31436 } && test -s conftest.$ac_objext; then
31437 ac_header_compiler=yes
31438 else
31439 echo "$as_me: failed program was:" >&5
31440 sed 's/^/| /' conftest.$ac_ext >&5
31442 ac_header_compiler=no
31445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31447 echo "${ECHO_T}$ac_header_compiler" >&6; }
31449 # Is the header present?
31450 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31451 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31452 cat >conftest.$ac_ext <<_ACEOF
31453 /* confdefs.h. */
31454 _ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h. */
31458 #include <gsm.h>
31459 _ACEOF
31460 if { (ac_try="$ac_cpp conftest.$ac_ext"
31461 case "(($ac_try" in
31462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463 *) ac_try_echo=$ac_try;;
31464 esac
31465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31467 ac_status=$?
31468 grep -v '^ *+' conftest.er1 >conftest.err
31469 rm -f conftest.er1
31470 cat conftest.err >&5
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); } >/dev/null && {
31473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31474 test ! -s conftest.err
31475 }; then
31476 ac_header_preproc=yes
31477 else
31478 echo "$as_me: failed program was:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31481 ac_header_preproc=no
31484 rm -f conftest.err conftest.$ac_ext
31485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31486 echo "${ECHO_T}$ac_header_preproc" >&6; }
31488 # So? What about this header?
31489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31490 yes:no: )
31491 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31492 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31493 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31494 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31495 ac_header_preproc=yes
31497 no:yes:* )
31498 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31499 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31500 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31501 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31502 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31503 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31504 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31505 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31506 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31507 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31508 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31509 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31510 ( cat <<\_ASBOX
31511 ## ------------------------------- ##
31512 ## Report this to www.asterisk.org ##
31513 ## ------------------------------- ##
31514 _ASBOX
31515 ) | sed "s/^/$as_me: WARNING: /" >&2
31517 esac
31518 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31519 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31520 if test "${ac_cv_header_gsm_h+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523 ac_cv_header_gsm_h=$ac_header_preproc
31525 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31526 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31529 if test $ac_cv_header_gsm_h = yes; then
31530 GSM_HEADER_FOUND=1
31531 else
31532 GSM_HEADER_FOUND=0
31536 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31537 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31538 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31539 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31540 echo $ECHO_N "(cached) $ECHO_C" >&6
31542 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31543 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31544 else
31545 # Is the header compilable?
31546 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31547 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31548 cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h. */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31554 $ac_includes_default
31555 #include <gsm/gsm.h>
31556 _ACEOF
31557 rm -f conftest.$ac_objext
31558 if { (ac_try="$ac_compile"
31559 case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_compile") 2>conftest.er1
31565 ac_status=$?
31566 grep -v '^ *+' conftest.er1 >conftest.err
31567 rm -f conftest.er1
31568 cat conftest.err >&5
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); } && {
31571 test -z "$ac_c_werror_flag" ||
31572 test ! -s conftest.err
31573 } && test -s conftest.$ac_objext; then
31574 ac_header_compiler=yes
31575 else
31576 echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.$ac_ext >&5
31579 ac_header_compiler=no
31582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31584 echo "${ECHO_T}$ac_header_compiler" >&6; }
31586 # Is the header present?
31587 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31588 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31589 cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h. */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 #include <gsm/gsm.h>
31596 _ACEOF
31597 if { (ac_try="$ac_cpp conftest.$ac_ext"
31598 case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31601 esac
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31604 ac_status=$?
31605 grep -v '^ *+' conftest.er1 >conftest.err
31606 rm -f conftest.er1
31607 cat conftest.err >&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); } >/dev/null && {
31610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31611 test ! -s conftest.err
31612 }; then
31613 ac_header_preproc=yes
31614 else
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 ac_header_preproc=no
31621 rm -f conftest.err conftest.$ac_ext
31622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31623 echo "${ECHO_T}$ac_header_preproc" >&6; }
31625 # So? What about this header?
31626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31627 yes:no: )
31628 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31629 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31630 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31631 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31632 ac_header_preproc=yes
31634 no:yes:* )
31635 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31636 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31637 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31638 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31639 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31640 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31641 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31642 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31643 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31644 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31645 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31646 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31647 ( cat <<\_ASBOX
31648 ## ------------------------------- ##
31649 ## Report this to www.asterisk.org ##
31650 ## ------------------------------- ##
31651 _ASBOX
31652 ) | sed "s/^/$as_me: WARNING: /" >&2
31654 esac
31655 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31656 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31657 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31662 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31663 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31666 if test $ac_cv_header_gsm_gsm_h = yes; then
31667 GSM_GSM_HEADER_FOUND=1
31668 else
31669 GSM_GSM_HEADER_FOUND=0
31674 if test "${GSM_HEADER_FOUND}" = "0" ; then
31675 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31676 if test "x${GSM_MANDATORY}" = "xyes" ; then
31677 { echo "$as_me:$LINENO: ***" >&5
31678 echo "$as_me: ***" >&6;}
31679 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31680 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31681 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31682 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31683 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31684 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31685 exit 1
31689 GSM_OK=0
31690 if test "${GSM_HEADER_FOUND}" = "1" ; then
31692 cat >>confdefs.h <<_ACEOF
31693 #define HAVE_GSM_HEADER 1
31694 _ACEOF
31696 GSM_OK=1
31697 else
31698 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31700 cat >>confdefs.h <<_ACEOF
31701 #define HAVE_GSM_GSM_HEADER 1
31702 _ACEOF
31704 GSM_OK=1
31707 if test "${GSM_OK}" = "1" ; then
31708 GSM_LIB="-lgsm"
31709 if test "x${GSM_DIR}" != "x"; then
31710 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31711 GSM_INCLUDE="-I${GSM_DIR}/include"
31713 PBX_GSM=1
31714 GSM_INTERNAL="no"
31718 if test "${GSM_INTERNAL}" = "yes"; then
31719 PBX_GSM=1
31721 cat >>confdefs.h <<_ACEOF
31722 #define HAVE_GSM_HEADER 1
31723 _ACEOF
31728 if test "${host_os}" != "linux-gnu" ; then
31730 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31731 pbxlibdir=""
31732 # if --with-ICONV=DIR has been specified, use it.
31733 if test "x${ICONV_DIR}" != "x"; then
31734 if test -d ${ICONV_DIR}/lib; then
31735 pbxlibdir="-L${ICONV_DIR}/lib"
31736 else
31737 pbxlibdir="-L${ICONV_DIR}"
31740 pbxfuncname="iconv_open"
31741 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31742 AST_ICONV_FOUND=yes
31743 else
31744 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31745 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31746 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31747 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31749 else
31750 ac_check_lib_save_LIBS=$LIBS
31751 LIBS="-liconv ${pbxlibdir} $LIBS"
31752 cat >conftest.$ac_ext <<_ACEOF
31753 /* confdefs.h. */
31754 _ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h. */
31759 /* Override any GCC internal prototype to avoid an error.
31760 Use char because int might match the return type of a GCC
31761 builtin and then its argument prototype would still apply. */
31762 #ifdef __cplusplus
31763 extern "C"
31764 #endif
31765 char ${pbxfuncname} ();
31767 main ()
31769 return ${pbxfuncname} ();
31771 return 0;
31773 _ACEOF
31774 rm -f conftest.$ac_objext conftest$ac_exeext
31775 if { (ac_try="$ac_link"
31776 case "(($ac_try" in
31777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778 *) ac_try_echo=$ac_try;;
31779 esac
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781 (eval "$ac_link") 2>conftest.er1
31782 ac_status=$?
31783 grep -v '^ *+' conftest.er1 >conftest.err
31784 rm -f conftest.er1
31785 cat conftest.err >&5
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); } && {
31788 test -z "$ac_c_werror_flag" ||
31789 test ! -s conftest.err
31790 } && test -s conftest$ac_exeext &&
31791 $as_test_x conftest$ac_exeext; then
31792 eval "$as_ac_Lib=yes"
31793 else
31794 echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31797 eval "$as_ac_Lib=no"
31800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31801 conftest$ac_exeext conftest.$ac_ext
31802 LIBS=$ac_check_lib_save_LIBS
31804 ac_res=`eval echo '${'$as_ac_Lib'}'`
31805 { echo "$as_me:$LINENO: result: $ac_res" >&5
31806 echo "${ECHO_T}$ac_res" >&6; }
31807 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31808 AST_ICONV_FOUND=yes
31809 else
31810 AST_ICONV_FOUND=no
31815 # now check for the header.
31816 if test "${AST_ICONV_FOUND}" = "yes"; then
31817 ICONV_LIB="${pbxlibdir} -liconv "
31818 # if --with-ICONV=DIR has been specified, use it.
31819 if test "x${ICONV_DIR}" != "x"; then
31820 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31822 ICONV_INCLUDE="${ICONV_INCLUDE} "
31823 if test "xiconv.h" = "x" ; then # no header, assume found
31824 ICONV_HEADER_FOUND="1"
31825 else # check for the header
31826 saved_cppflags="${CPPFLAGS}"
31827 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
31828 if test "${ac_cv_header_iconv_h+set}" = set; then
31829 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31830 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31831 if test "${ac_cv_header_iconv_h+set}" = set; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31834 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31835 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31836 else
31837 # Is the header compilable?
31838 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
31839 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
31840 cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h. */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 $ac_includes_default
31847 #include <iconv.h>
31848 _ACEOF
31849 rm -f conftest.$ac_objext
31850 if { (ac_try="$ac_compile"
31851 case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31854 esac
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_compile") 2>conftest.er1
31857 ac_status=$?
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } && {
31863 test -z "$ac_c_werror_flag" ||
31864 test ! -s conftest.err
31865 } && test -s conftest.$ac_objext; then
31866 ac_header_compiler=yes
31867 else
31868 echo "$as_me: failed program was:" >&5
31869 sed 's/^/| /' conftest.$ac_ext >&5
31871 ac_header_compiler=no
31874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31876 echo "${ECHO_T}$ac_header_compiler" >&6; }
31878 # Is the header present?
31879 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
31880 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
31881 cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h. */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h. */
31887 #include <iconv.h>
31888 _ACEOF
31889 if { (ac_try="$ac_cpp conftest.$ac_ext"
31890 case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31896 ac_status=$?
31897 grep -v '^ *+' conftest.er1 >conftest.err
31898 rm -f conftest.er1
31899 cat conftest.err >&5
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } >/dev/null && {
31902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31903 test ! -s conftest.err
31904 }; then
31905 ac_header_preproc=yes
31906 else
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 ac_header_preproc=no
31913 rm -f conftest.err conftest.$ac_ext
31914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31915 echo "${ECHO_T}$ac_header_preproc" >&6; }
31917 # So? What about this header?
31918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31919 yes:no: )
31920 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
31921 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31922 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
31923 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
31924 ac_header_preproc=yes
31926 no:yes:* )
31927 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
31928 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
31929 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
31930 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
31931 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
31932 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
31933 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
31934 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
31935 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
31936 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
31937 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
31938 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
31939 ( cat <<\_ASBOX
31940 ## ------------------------------- ##
31941 ## Report this to www.asterisk.org ##
31942 ## ------------------------------- ##
31943 _ASBOX
31944 ) | sed "s/^/$as_me: WARNING: /" >&2
31946 esac
31947 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31948 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31949 if test "${ac_cv_header_iconv_h+set}" = set; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 else
31952 ac_cv_header_iconv_h=$ac_header_preproc
31954 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31955 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31958 if test $ac_cv_header_iconv_h = yes; then
31959 ICONV_HEADER_FOUND=1
31960 else
31961 ICONV_HEADER_FOUND=0
31965 CPPFLAGS="${saved_cppflags}"
31967 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
31968 ICONV_LIB=""
31969 ICONV_INCLUDE=""
31970 else
31971 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31972 ICONV_LIB=""
31974 PBX_ICONV=1
31975 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31977 cat >>confdefs.h <<_ACEOF
31978 #define HAVE_ICONV 1
31979 _ACEOF
31982 cat >>confdefs.h <<_ACEOF
31983 #define HAVE_ICONV_VERSION
31984 _ACEOF
31990 else
31991 PBX_ICONV=1
31995 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
31996 pbxlibdir=""
31997 # if --with-IKSEMEL=DIR has been specified, use it.
31998 if test "x${IKSEMEL_DIR}" != "x"; then
31999 if test -d ${IKSEMEL_DIR}/lib; then
32000 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32001 else
32002 pbxlibdir="-L${IKSEMEL_DIR}"
32005 pbxfuncname="iks_start_sasl"
32006 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32007 AST_IKSEMEL_FOUND=yes
32008 else
32009 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32010 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32011 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32012 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32013 echo $ECHO_N "(cached) $ECHO_C" >&6
32014 else
32015 ac_check_lib_save_LIBS=$LIBS
32016 LIBS="-liksemel ${pbxlibdir} $LIBS"
32017 cat >conftest.$ac_ext <<_ACEOF
32018 /* confdefs.h. */
32019 _ACEOF
32020 cat confdefs.h >>conftest.$ac_ext
32021 cat >>conftest.$ac_ext <<_ACEOF
32022 /* end confdefs.h. */
32024 /* Override any GCC internal prototype to avoid an error.
32025 Use char because int might match the return type of a GCC
32026 builtin and then its argument prototype would still apply. */
32027 #ifdef __cplusplus
32028 extern "C"
32029 #endif
32030 char ${pbxfuncname} ();
32032 main ()
32034 return ${pbxfuncname} ();
32036 return 0;
32038 _ACEOF
32039 rm -f conftest.$ac_objext conftest$ac_exeext
32040 if { (ac_try="$ac_link"
32041 case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044 esac
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_link") 2>conftest.er1
32047 ac_status=$?
32048 grep -v '^ *+' conftest.er1 >conftest.err
32049 rm -f conftest.er1
32050 cat conftest.err >&5
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); } && {
32053 test -z "$ac_c_werror_flag" ||
32054 test ! -s conftest.err
32055 } && test -s conftest$ac_exeext &&
32056 $as_test_x conftest$ac_exeext; then
32057 eval "$as_ac_Lib=yes"
32058 else
32059 echo "$as_me: failed program was:" >&5
32060 sed 's/^/| /' conftest.$ac_ext >&5
32062 eval "$as_ac_Lib=no"
32065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32066 conftest$ac_exeext conftest.$ac_ext
32067 LIBS=$ac_check_lib_save_LIBS
32069 ac_res=`eval echo '${'$as_ac_Lib'}'`
32070 { echo "$as_me:$LINENO: result: $ac_res" >&5
32071 echo "${ECHO_T}$ac_res" >&6; }
32072 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32073 AST_IKSEMEL_FOUND=yes
32074 else
32075 AST_IKSEMEL_FOUND=no
32080 # now check for the header.
32081 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32082 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32083 # if --with-IKSEMEL=DIR has been specified, use it.
32084 if test "x${IKSEMEL_DIR}" != "x"; then
32085 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32087 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32088 if test "xiksemel.h" = "x" ; then # no header, assume found
32089 IKSEMEL_HEADER_FOUND="1"
32090 else # check for the header
32091 saved_cppflags="${CPPFLAGS}"
32092 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
32093 if test "${ac_cv_header_iksemel_h+set}" = set; then
32094 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32095 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32096 if test "${ac_cv_header_iksemel_h+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32100 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32101 else
32102 # Is the header compilable?
32103 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32104 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32105 cat >conftest.$ac_ext <<_ACEOF
32106 /* confdefs.h. */
32107 _ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32111 $ac_includes_default
32112 #include <iksemel.h>
32113 _ACEOF
32114 rm -f conftest.$ac_objext
32115 if { (ac_try="$ac_compile"
32116 case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_compile") 2>conftest.er1
32122 ac_status=$?
32123 grep -v '^ *+' conftest.er1 >conftest.err
32124 rm -f conftest.er1
32125 cat conftest.err >&5
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); } && {
32128 test -z "$ac_c_werror_flag" ||
32129 test ! -s conftest.err
32130 } && test -s conftest.$ac_objext; then
32131 ac_header_compiler=yes
32132 else
32133 echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32136 ac_header_compiler=no
32139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32141 echo "${ECHO_T}$ac_header_compiler" >&6; }
32143 # Is the header present?
32144 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32145 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32146 cat >conftest.$ac_ext <<_ACEOF
32147 /* confdefs.h. */
32148 _ACEOF
32149 cat confdefs.h >>conftest.$ac_ext
32150 cat >>conftest.$ac_ext <<_ACEOF
32151 /* end confdefs.h. */
32152 #include <iksemel.h>
32153 _ACEOF
32154 if { (ac_try="$ac_cpp conftest.$ac_ext"
32155 case "(($ac_try" in
32156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32157 *) ac_try_echo=$ac_try;;
32158 esac
32159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32161 ac_status=$?
32162 grep -v '^ *+' conftest.er1 >conftest.err
32163 rm -f conftest.er1
32164 cat conftest.err >&5
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); } >/dev/null && {
32167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32168 test ! -s conftest.err
32169 }; then
32170 ac_header_preproc=yes
32171 else
32172 echo "$as_me: failed program was:" >&5
32173 sed 's/^/| /' conftest.$ac_ext >&5
32175 ac_header_preproc=no
32178 rm -f conftest.err conftest.$ac_ext
32179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32180 echo "${ECHO_T}$ac_header_preproc" >&6; }
32182 # So? What about this header?
32183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32184 yes:no: )
32185 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32186 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32188 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32189 ac_header_preproc=yes
32191 no:yes:* )
32192 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32193 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32194 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32195 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32196 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32197 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32198 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32199 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32200 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32201 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32202 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32203 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32204 ( cat <<\_ASBOX
32205 ## ------------------------------- ##
32206 ## Report this to www.asterisk.org ##
32207 ## ------------------------------- ##
32208 _ASBOX
32209 ) | sed "s/^/$as_me: WARNING: /" >&2
32211 esac
32212 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32213 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32214 if test "${ac_cv_header_iksemel_h+set}" = set; then
32215 echo $ECHO_N "(cached) $ECHO_C" >&6
32216 else
32217 ac_cv_header_iksemel_h=$ac_header_preproc
32219 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32220 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32223 if test $ac_cv_header_iksemel_h = yes; then
32224 IKSEMEL_HEADER_FOUND=1
32225 else
32226 IKSEMEL_HEADER_FOUND=0
32230 CPPFLAGS="${saved_cppflags}"
32232 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32233 IKSEMEL_LIB=""
32234 IKSEMEL_INCLUDE=""
32235 else
32236 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32237 IKSEMEL_LIB=""
32239 PBX_IKSEMEL=1
32240 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32242 cat >>confdefs.h <<_ACEOF
32243 #define HAVE_IKSEMEL 1
32244 _ACEOF
32247 cat >>confdefs.h <<_ACEOF
32248 #define HAVE_IKSEMEL_VERSION
32249 _ACEOF
32256 if test "${USE_IMAP_TK}" != "no"; then
32257 saved_cppflags="${CPPFLAGS}"
32258 saved_libs="${LIBS}"
32259 switch_to_system_on_failure="no"
32260 if test "${IMAP_TK_DIR}" = ""; then
32261 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32262 switch_to_system_on_failure="yes"
32264 if test "${IMAP_TK_DIR}" != "system"; then
32265 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32266 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32267 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32268 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32270 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32271 imap_include="-I${IMAP_TK_DIR}/c-client"
32272 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32273 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32274 cat >conftest.$ac_ext <<_ACEOF
32275 /* confdefs.h. */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h. */
32280 #include "c-client.h"
32281 void mm_searched (MAILSTREAM *stream,unsigned long number)
32284 void mm_exists (MAILSTREAM *stream,unsigned long number)
32287 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32290 void mm_flags (MAILSTREAM *stream,unsigned long number)
32293 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32296 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32299 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32302 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32305 void mm_log (char *string,long errflg)
32308 void mm_dlog (char *string)
32311 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32314 void mm_critical (MAILSTREAM *stream)
32317 void mm_nocritical (MAILSTREAM *stream)
32320 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32323 void mm_fatal (char *string)
32327 main ()
32330 MAILSTREAM *foo = mail_open(NULL, "", 0);
32334 return 0;
32336 _ACEOF
32337 rm -f conftest.$ac_objext conftest$ac_exeext
32338 if { (ac_try="$ac_link"
32339 case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32342 esac
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_link") 2>conftest.er1
32345 ac_status=$?
32346 grep -v '^ *+' conftest.er1 >conftest.err
32347 rm -f conftest.er1
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } && {
32351 test -z "$ac_c_werror_flag" ||
32352 test ! -s conftest.err
32353 } && test -s conftest$ac_exeext &&
32354 $as_test_x conftest$ac_exeext; then
32355 ac_cv_imap_tk="yes"
32356 else
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32360 ac_cv_imap_tk="no"
32364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32365 conftest$ac_exeext conftest.$ac_ext
32366 if test "${ac_cv_imap_tk}" = "yes"; then
32367 cat >conftest.$ac_ext <<_ACEOF
32368 /* confdefs.h. */
32369 _ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h. */
32373 #include "c-client.h"
32374 void mm_searched (MAILSTREAM *stream,unsigned long number)
32377 void mm_exists (MAILSTREAM *stream,unsigned long number)
32380 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32383 void mm_flags (MAILSTREAM *stream,unsigned long number)
32386 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32389 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32392 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32395 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32398 void mm_log (char *string,long errflg)
32401 void mm_dlog (char *string)
32404 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32407 void mm_critical (MAILSTREAM *stream)
32410 void mm_nocritical (MAILSTREAM *stream)
32413 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32416 void mm_fatal (char *string)
32420 main ()
32423 long check = mail_expunge_full(NULL, "", 0);
32427 return 0;
32429 _ACEOF
32430 rm -f conftest.$ac_objext conftest$ac_exeext
32431 if { (ac_try="$ac_link"
32432 case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_link") 2>conftest.er1
32438 ac_status=$?
32439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } && {
32444 test -z "$ac_c_werror_flag" ||
32445 test ! -s conftest.err
32446 } && test -s conftest$ac_exeext &&
32447 $as_test_x conftest$ac_exeext; then
32448 ac_cv_imap_tk2006="yes"
32449 else
32450 echo "$as_me: failed program was:" >&5
32451 sed 's/^/| /' conftest.$ac_ext >&5
32453 ac_cv_imap_tk2006="no"
32457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32458 conftest$ac_exeext conftest.$ac_ext
32460 CPPFLAGS="${saved_cppflags}"
32461 LIBS="${saved_libs}"
32462 if test "${ac_cv_imap_tk}" = "no"; then
32463 { echo "$as_me:$LINENO: result: no" >&5
32464 echo "${ECHO_T}no" >&6; }
32465 if test "${switch_to_system_on_failure}" = "yes"; then
32466 IMAP_TK_DIR="system"
32467 else #This means they specified a directory. Search for a package installation there too
32468 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32469 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32470 CPPFLAGS="${saved_cppflags}"
32471 LIBS="${saved_libs}"
32472 imap_include="-I${IMAP_TK_DIR}/include"
32473 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32474 imap_libs="-lc-client"
32475 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32476 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32477 cat >conftest.$ac_ext <<_ACEOF
32478 /* confdefs.h. */
32479 _ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h. */
32483 #include "c-client.h"
32484 void mm_searched (MAILSTREAM *stream,unsigned long number)
32487 void mm_exists (MAILSTREAM *stream,unsigned long number)
32490 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32493 void mm_flags (MAILSTREAM *stream,unsigned long number)
32496 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32499 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32502 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32505 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32508 void mm_log (char *string,long errflg)
32511 void mm_dlog (char *string)
32514 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32517 void mm_critical (MAILSTREAM *stream)
32520 void mm_nocritical (MAILSTREAM *stream)
32523 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32526 void mm_fatal (char *string)
32530 main ()
32533 MAILSTREAM *foo = mail_open(NULL, "", 0);
32537 return 0;
32539 _ACEOF
32540 rm -f conftest.$ac_objext conftest$ac_exeext
32541 if { (ac_try="$ac_link"
32542 case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_link") 2>conftest.er1
32548 ac_status=$?
32549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } && {
32554 test -z "$ac_c_werror_flag" ||
32555 test ! -s conftest.err
32556 } && test -s conftest$ac_exeext &&
32557 $as_test_x conftest$ac_exeext; then
32558 ac_cv_imap_tk="yes"
32559 else
32560 echo "$as_me: failed program was:" >&5
32561 sed 's/^/| /' conftest.$ac_ext >&5
32563 ac_cv_imap_tk="no"
32567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32568 conftest$ac_exeext conftest.$ac_ext
32569 if test "${ac_cv_imap_tk}" = "yes"; then
32570 cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h. */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32576 #include "c-client.h"
32577 void mm_searched (MAILSTREAM *stream,unsigned long number)
32580 void mm_exists (MAILSTREAM *stream,unsigned long number)
32583 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32586 void mm_flags (MAILSTREAM *stream,unsigned long number)
32589 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32592 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32595 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32598 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32601 void mm_log (char *string,long errflg)
32604 void mm_dlog (char *string)
32607 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32610 void mm_critical (MAILSTREAM *stream)
32613 void mm_nocritical (MAILSTREAM *stream)
32616 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32619 void mm_fatal (char *string)
32623 main ()
32626 long check = mail_expunge_full(NULL, "", 0);
32630 return 0;
32632 _ACEOF
32633 rm -f conftest.$ac_objext conftest$ac_exeext
32634 if { (ac_try="$ac_link"
32635 case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_link") 2>conftest.er1
32641 ac_status=$?
32642 grep -v '^ *+' conftest.er1 >conftest.err
32643 rm -f conftest.er1
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } && {
32647 test -z "$ac_c_werror_flag" ||
32648 test ! -s conftest.err
32649 } && test -s conftest$ac_exeext &&
32650 $as_test_x conftest$ac_exeext; then
32651 ac_cv_imap_tk2006="yes"
32652 else
32653 echo "$as_me: failed program was:" >&5
32654 sed 's/^/| /' conftest.$ac_ext >&5
32656 ac_cv_imap_tk2006="no"
32660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32661 conftest$ac_exeext conftest.$ac_ext
32666 if test "${IMAP_TK_DIR}" = "system"; then
32667 #We will enter here if user specified "system" or if any of above checks failed
32668 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32669 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32670 CPPFLAGS="${saved_cppflags}"
32671 LIBS="${saved_libs}"
32672 imap_ldflags=""
32673 imap_libs="-lc-client"
32674 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32675 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32676 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32677 cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h. */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32683 #include <stdio.h>
32684 #include <imap/c-client.h>
32685 void mm_searched (MAILSTREAM *stream,unsigned long number)
32688 void mm_exists (MAILSTREAM *stream,unsigned long number)
32691 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32694 void mm_flags (MAILSTREAM *stream,unsigned long number)
32697 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32700 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32703 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32706 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32709 void mm_log (char *string,long errflg)
32712 void mm_dlog (char *string)
32715 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32718 void mm_critical (MAILSTREAM *stream)
32721 void mm_nocritical (MAILSTREAM *stream)
32724 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32727 void mm_fatal (char *string)
32731 main ()
32734 MAILSTREAM *foo = mail_open(NULL, "", 0);
32738 return 0;
32740 _ACEOF
32741 rm -f conftest.$ac_objext conftest$ac_exeext
32742 if { (ac_try="$ac_link"
32743 case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32746 esac
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748 (eval "$ac_link") 2>conftest.er1
32749 ac_status=$?
32750 grep -v '^ *+' conftest.er1 >conftest.err
32751 rm -f conftest.er1
32752 cat conftest.err >&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); } && {
32755 test -z "$ac_c_werror_flag" ||
32756 test ! -s conftest.err
32757 } && test -s conftest$ac_exeext &&
32758 $as_test_x conftest$ac_exeext; then
32759 ac_cv_imap_tk="yes"
32760 else
32761 echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.$ac_ext >&5
32764 ac_cv_imap_tk="no"
32768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32769 conftest$ac_exeext conftest.$ac_ext
32770 if test "${ac_cv_imap_tk}" = "yes"; then
32771 cat >conftest.$ac_ext <<_ACEOF
32772 /* confdefs.h. */
32773 _ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h. */
32777 #include <stdio.h>
32778 #include <imap/c-client.h>
32779 void mm_searched (MAILSTREAM *stream,unsigned long number)
32782 void mm_exists (MAILSTREAM *stream,unsigned long number)
32785 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32788 void mm_flags (MAILSTREAM *stream,unsigned long number)
32791 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32794 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32797 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32800 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32803 void mm_log (char *string,long errflg)
32806 void mm_dlog (char *string)
32809 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32812 void mm_critical (MAILSTREAM *stream)
32815 void mm_nocritical (MAILSTREAM *stream)
32818 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32821 void mm_fatal (char *string)
32825 main ()
32828 long check = mail_expunge_full(NULL, "", 0);
32832 return 0;
32834 _ACEOF
32835 rm -f conftest.$ac_objext conftest$ac_exeext
32836 if { (ac_try="$ac_link"
32837 case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32840 esac
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842 (eval "$ac_link") 2>conftest.er1
32843 ac_status=$?
32844 grep -v '^ *+' conftest.er1 >conftest.err
32845 rm -f conftest.er1
32846 cat conftest.err >&5
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); } && {
32849 test -z "$ac_c_werror_flag" ||
32850 test ! -s conftest.err
32851 } && test -s conftest$ac_exeext &&
32852 $as_test_x conftest$ac_exeext; then
32853 ac_cv_imap_tk2006="yes"
32854 else
32855 echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32858 ac_cv_imap_tk2006="no"
32862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32863 conftest$ac_exeext conftest.$ac_ext
32864 else #looking in imap directory didn't work, try c-client
32865 imap_ldflags=""
32866 imap_libs="-lc-client"
32867 imap_include="-DUSE_SYSTEM_CCLIENT"
32868 CPPFLAGS="${saved_cppflags}"
32869 LIBS="${saved_libs}"
32870 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32871 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32872 cat >conftest.$ac_ext <<_ACEOF
32873 /* confdefs.h. */
32874 _ACEOF
32875 cat confdefs.h >>conftest.$ac_ext
32876 cat >>conftest.$ac_ext <<_ACEOF
32877 /* end confdefs.h. */
32878 #include <stdio.h>
32879 #include <c-client/c-client.h>
32880 void mm_searched (MAILSTREAM *stream,unsigned long number)
32883 void mm_exists (MAILSTREAM *stream,unsigned long number)
32886 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32889 void mm_flags (MAILSTREAM *stream,unsigned long number)
32892 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32895 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32898 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32901 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32904 void mm_log (char *string,long errflg)
32907 void mm_dlog (char *string)
32910 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32913 void mm_critical (MAILSTREAM *stream)
32916 void mm_nocritical (MAILSTREAM *stream)
32919 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32922 void mm_fatal (char *string)
32926 main ()
32929 MAILSTREAM *foo = mail_open(NULL, "", 0);
32933 return 0;
32935 _ACEOF
32936 rm -f conftest.$ac_objext conftest$ac_exeext
32937 if { (ac_try="$ac_link"
32938 case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_link") 2>conftest.er1
32944 ac_status=$?
32945 grep -v '^ *+' conftest.er1 >conftest.err
32946 rm -f conftest.er1
32947 cat conftest.err >&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } && {
32950 test -z "$ac_c_werror_flag" ||
32951 test ! -s conftest.err
32952 } && test -s conftest$ac_exeext &&
32953 $as_test_x conftest$ac_exeext; then
32954 ac_cv_imap_tk="yes"
32955 else
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32959 ac_cv_imap_tk="no"
32963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32964 conftest$ac_exeext conftest.$ac_ext
32965 if test "${ac_cv_imap_tk}" = "yes"; then
32966 cat >conftest.$ac_ext <<_ACEOF
32967 /* confdefs.h. */
32968 _ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h. */
32972 #include <stdio.h>
32973 #include <c-client/c-client.h>
32974 void mm_searched (MAILSTREAM *stream,unsigned long number)
32977 void mm_exists (MAILSTREAM *stream,unsigned long number)
32980 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32983 void mm_flags (MAILSTREAM *stream,unsigned long number)
32986 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32989 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32992 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32995 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32998 void mm_log (char *string,long errflg)
33001 void mm_dlog (char *string)
33004 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33007 void mm_critical (MAILSTREAM *stream)
33010 void mm_nocritical (MAILSTREAM *stream)
33013 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33016 void mm_fatal (char *string)
33020 main ()
33023 long check = mail_expunge_full(NULL, "", 0);
33027 return 0;
33029 _ACEOF
33030 rm -f conftest.$ac_objext conftest$ac_exeext
33031 if { (ac_try="$ac_link"
33032 case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33035 esac
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_link") 2>conftest.er1
33038 ac_status=$?
33039 grep -v '^ *+' conftest.er1 >conftest.err
33040 rm -f conftest.er1
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } && {
33044 test -z "$ac_c_werror_flag" ||
33045 test ! -s conftest.err
33046 } && test -s conftest$ac_exeext &&
33047 $as_test_x conftest$ac_exeext; then
33048 ac_cv_imap_tk2006="yes"
33049 else
33050 echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33053 ac_cv_imap_tk2006="no"
33057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33058 conftest$ac_exeext conftest.$ac_ext
33062 if test "${ac_cv_imap_tk}" = "yes"; then
33063 { echo "$as_me:$LINENO: result: yes" >&5
33064 echo "${ECHO_T}yes" >&6; }
33065 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33066 IMAP_TK_INCLUDE="${imap_include}"
33067 PBX_IMAP_TK=1
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_IMAP_TK 1
33071 _ACEOF
33073 if test "${ac_cv_imap_tk2006}" = "yes"; then
33075 cat >>confdefs.h <<\_ACEOF
33076 #define HAVE_IMAP_TK2006 1
33077 _ACEOF
33080 else
33081 { echo "$as_me:$LINENO: result: no" >&5
33082 echo "${ECHO_T}no" >&6; }
33084 CPPFLAGS="${saved_cppflags}"
33085 LIBS="${saved_libs}"
33089 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33090 pbxlibdir=""
33091 # if --with-JACK=DIR has been specified, use it.
33092 if test "x${JACK_DIR}" != "x"; then
33093 if test -d ${JACK_DIR}/lib; then
33094 pbxlibdir="-L${JACK_DIR}/lib"
33095 else
33096 pbxlibdir="-L${JACK_DIR}"
33099 pbxfuncname="jack_activate"
33100 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33101 AST_JACK_FOUND=yes
33102 else
33103 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33104 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33105 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33106 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33107 echo $ECHO_N "(cached) $ECHO_C" >&6
33108 else
33109 ac_check_lib_save_LIBS=$LIBS
33110 LIBS="-ljack ${pbxlibdir} $LIBS"
33111 cat >conftest.$ac_ext <<_ACEOF
33112 /* confdefs.h. */
33113 _ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33118 /* Override any GCC internal prototype to avoid an error.
33119 Use char because int might match the return type of a GCC
33120 builtin and then its argument prototype would still apply. */
33121 #ifdef __cplusplus
33122 extern "C"
33123 #endif
33124 char ${pbxfuncname} ();
33126 main ()
33128 return ${pbxfuncname} ();
33130 return 0;
33132 _ACEOF
33133 rm -f conftest.$ac_objext conftest$ac_exeext
33134 if { (ac_try="$ac_link"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_link") 2>conftest.er1
33141 ac_status=$?
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } && {
33147 test -z "$ac_c_werror_flag" ||
33148 test ! -s conftest.err
33149 } && test -s conftest$ac_exeext &&
33150 $as_test_x conftest$ac_exeext; then
33151 eval "$as_ac_Lib=yes"
33152 else
33153 echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33156 eval "$as_ac_Lib=no"
33159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33160 conftest$ac_exeext conftest.$ac_ext
33161 LIBS=$ac_check_lib_save_LIBS
33163 ac_res=`eval echo '${'$as_ac_Lib'}'`
33164 { echo "$as_me:$LINENO: result: $ac_res" >&5
33165 echo "${ECHO_T}$ac_res" >&6; }
33166 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33167 AST_JACK_FOUND=yes
33168 else
33169 AST_JACK_FOUND=no
33174 # now check for the header.
33175 if test "${AST_JACK_FOUND}" = "yes"; then
33176 JACK_LIB="${pbxlibdir} -ljack "
33177 # if --with-JACK=DIR has been specified, use it.
33178 if test "x${JACK_DIR}" != "x"; then
33179 JACK_INCLUDE="-I${JACK_DIR}/include"
33181 JACK_INCLUDE="${JACK_INCLUDE} "
33182 if test "xjack/jack.h" = "x" ; then # no header, assume found
33183 JACK_HEADER_FOUND="1"
33184 else # check for the header
33185 saved_cppflags="${CPPFLAGS}"
33186 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
33187 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33188 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33189 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33190 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33193 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33194 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33195 else
33196 # Is the header compilable?
33197 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33198 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33199 cat >conftest.$ac_ext <<_ACEOF
33200 /* confdefs.h. */
33201 _ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33205 $ac_includes_default
33206 #include <jack/jack.h>
33207 _ACEOF
33208 rm -f conftest.$ac_objext
33209 if { (ac_try="$ac_compile"
33210 case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33213 esac
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_compile") 2>conftest.er1
33216 ac_status=$?
33217 grep -v '^ *+' conftest.er1 >conftest.err
33218 rm -f conftest.er1
33219 cat conftest.err >&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } && {
33222 test -z "$ac_c_werror_flag" ||
33223 test ! -s conftest.err
33224 } && test -s conftest.$ac_objext; then
33225 ac_header_compiler=yes
33226 else
33227 echo "$as_me: failed program was:" >&5
33228 sed 's/^/| /' conftest.$ac_ext >&5
33230 ac_header_compiler=no
33233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33235 echo "${ECHO_T}$ac_header_compiler" >&6; }
33237 # Is the header present?
33238 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33239 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33240 cat >conftest.$ac_ext <<_ACEOF
33241 /* confdefs.h. */
33242 _ACEOF
33243 cat confdefs.h >>conftest.$ac_ext
33244 cat >>conftest.$ac_ext <<_ACEOF
33245 /* end confdefs.h. */
33246 #include <jack/jack.h>
33247 _ACEOF
33248 if { (ac_try="$ac_cpp conftest.$ac_ext"
33249 case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33252 esac
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33255 ac_status=$?
33256 grep -v '^ *+' conftest.er1 >conftest.err
33257 rm -f conftest.er1
33258 cat conftest.err >&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } >/dev/null && {
33261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33262 test ! -s conftest.err
33263 }; then
33264 ac_header_preproc=yes
33265 else
33266 echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33269 ac_header_preproc=no
33272 rm -f conftest.err conftest.$ac_ext
33273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33274 echo "${ECHO_T}$ac_header_preproc" >&6; }
33276 # So? What about this header?
33277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33278 yes:no: )
33279 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33280 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33281 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33282 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33283 ac_header_preproc=yes
33285 no:yes:* )
33286 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33287 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33288 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33289 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33290 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33291 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33292 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33293 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33294 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33295 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33296 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33297 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33298 ( cat <<\_ASBOX
33299 ## ------------------------------- ##
33300 ## Report this to www.asterisk.org ##
33301 ## ------------------------------- ##
33302 _ASBOX
33303 ) | sed "s/^/$as_me: WARNING: /" >&2
33305 esac
33306 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33307 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33308 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33310 else
33311 ac_cv_header_jack_jack_h=$ac_header_preproc
33313 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33314 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33317 if test $ac_cv_header_jack_jack_h = yes; then
33318 JACK_HEADER_FOUND=1
33319 else
33320 JACK_HEADER_FOUND=0
33324 CPPFLAGS="${saved_cppflags}"
33326 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33327 JACK_LIB=""
33328 JACK_INCLUDE=""
33329 else
33330 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33331 JACK_LIB=""
33333 PBX_JACK=1
33334 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33336 cat >>confdefs.h <<_ACEOF
33337 #define HAVE_JACK 1
33338 _ACEOF
33341 cat >>confdefs.h <<_ACEOF
33342 #define HAVE_JACK_VERSION
33343 _ACEOF
33350 # Needed by unixodbc
33352 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33353 pbxlibdir=""
33354 # if --with-LTDL=DIR has been specified, use it.
33355 if test "x${LTDL_DIR}" != "x"; then
33356 if test -d ${LTDL_DIR}/lib; then
33357 pbxlibdir="-L${LTDL_DIR}/lib"
33358 else
33359 pbxlibdir="-L${LTDL_DIR}"
33362 pbxfuncname="lt_dlinit"
33363 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33364 AST_LTDL_FOUND=yes
33365 else
33366 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33367 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33368 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33369 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33370 echo $ECHO_N "(cached) $ECHO_C" >&6
33371 else
33372 ac_check_lib_save_LIBS=$LIBS
33373 LIBS="-lltdl ${pbxlibdir} $LIBS"
33374 cat >conftest.$ac_ext <<_ACEOF
33375 /* confdefs.h. */
33376 _ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h. */
33381 /* Override any GCC internal prototype to avoid an error.
33382 Use char because int might match the return type of a GCC
33383 builtin and then its argument prototype would still apply. */
33384 #ifdef __cplusplus
33385 extern "C"
33386 #endif
33387 char ${pbxfuncname} ();
33389 main ()
33391 return ${pbxfuncname} ();
33393 return 0;
33395 _ACEOF
33396 rm -f conftest.$ac_objext conftest$ac_exeext
33397 if { (ac_try="$ac_link"
33398 case "(($ac_try" in
33399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400 *) ac_try_echo=$ac_try;;
33401 esac
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403 (eval "$ac_link") 2>conftest.er1
33404 ac_status=$?
33405 grep -v '^ *+' conftest.er1 >conftest.err
33406 rm -f conftest.er1
33407 cat conftest.err >&5
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } && {
33410 test -z "$ac_c_werror_flag" ||
33411 test ! -s conftest.err
33412 } && test -s conftest$ac_exeext &&
33413 $as_test_x conftest$ac_exeext; then
33414 eval "$as_ac_Lib=yes"
33415 else
33416 echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33419 eval "$as_ac_Lib=no"
33422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33423 conftest$ac_exeext conftest.$ac_ext
33424 LIBS=$ac_check_lib_save_LIBS
33426 ac_res=`eval echo '${'$as_ac_Lib'}'`
33427 { echo "$as_me:$LINENO: result: $ac_res" >&5
33428 echo "${ECHO_T}$ac_res" >&6; }
33429 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33430 AST_LTDL_FOUND=yes
33431 else
33432 AST_LTDL_FOUND=no
33437 # now check for the header.
33438 if test "${AST_LTDL_FOUND}" = "yes"; then
33439 LTDL_LIB="${pbxlibdir} -lltdl "
33440 # if --with-LTDL=DIR has been specified, use it.
33441 if test "x${LTDL_DIR}" != "x"; then
33442 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33444 LTDL_INCLUDE="${LTDL_INCLUDE} "
33445 if test "xltdl.h" = "x" ; then # no header, assume found
33446 LTDL_HEADER_FOUND="1"
33447 else # check for the header
33448 saved_cppflags="${CPPFLAGS}"
33449 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33450 if test "${ac_cv_header_ltdl_h+set}" = set; then
33451 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33452 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33453 if test "${ac_cv_header_ltdl_h+set}" = set; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33456 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33457 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33458 else
33459 # Is the header compilable?
33460 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33461 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33462 cat >conftest.$ac_ext <<_ACEOF
33463 /* confdefs.h. */
33464 _ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h. */
33468 $ac_includes_default
33469 #include <ltdl.h>
33470 _ACEOF
33471 rm -f conftest.$ac_objext
33472 if { (ac_try="$ac_compile"
33473 case "(($ac_try" in
33474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475 *) ac_try_echo=$ac_try;;
33476 esac
33477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33478 (eval "$ac_compile") 2>conftest.er1
33479 ac_status=$?
33480 grep -v '^ *+' conftest.er1 >conftest.err
33481 rm -f conftest.er1
33482 cat conftest.err >&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } && {
33485 test -z "$ac_c_werror_flag" ||
33486 test ! -s conftest.err
33487 } && test -s conftest.$ac_objext; then
33488 ac_header_compiler=yes
33489 else
33490 echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33493 ac_header_compiler=no
33496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33498 echo "${ECHO_T}$ac_header_compiler" >&6; }
33500 # Is the header present?
33501 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33502 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33503 cat >conftest.$ac_ext <<_ACEOF
33504 /* confdefs.h. */
33505 _ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33509 #include <ltdl.h>
33510 _ACEOF
33511 if { (ac_try="$ac_cpp conftest.$ac_ext"
33512 case "(($ac_try" in
33513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514 *) ac_try_echo=$ac_try;;
33515 esac
33516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33518 ac_status=$?
33519 grep -v '^ *+' conftest.er1 >conftest.err
33520 rm -f conftest.er1
33521 cat conftest.err >&5
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); } >/dev/null && {
33524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33525 test ! -s conftest.err
33526 }; then
33527 ac_header_preproc=yes
33528 else
33529 echo "$as_me: failed program was:" >&5
33530 sed 's/^/| /' conftest.$ac_ext >&5
33532 ac_header_preproc=no
33535 rm -f conftest.err conftest.$ac_ext
33536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33537 echo "${ECHO_T}$ac_header_preproc" >&6; }
33539 # So? What about this header?
33540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33541 yes:no: )
33542 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33543 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33544 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33545 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33546 ac_header_preproc=yes
33548 no:yes:* )
33549 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33550 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33551 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33552 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33553 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33554 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33555 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33556 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33557 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33558 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33559 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33560 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33561 ( cat <<\_ASBOX
33562 ## ------------------------------- ##
33563 ## Report this to www.asterisk.org ##
33564 ## ------------------------------- ##
33565 _ASBOX
33566 ) | sed "s/^/$as_me: WARNING: /" >&2
33568 esac
33569 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33570 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33571 if test "${ac_cv_header_ltdl_h+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33573 else
33574 ac_cv_header_ltdl_h=$ac_header_preproc
33576 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33577 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33580 if test $ac_cv_header_ltdl_h = yes; then
33581 LTDL_HEADER_FOUND=1
33582 else
33583 LTDL_HEADER_FOUND=0
33587 CPPFLAGS="${saved_cppflags}"
33589 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33590 LTDL_LIB=""
33591 LTDL_INCLUDE=""
33592 else
33593 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33594 LTDL_LIB=""
33596 PBX_LTDL=1
33597 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33599 cat >>confdefs.h <<_ACEOF
33600 #define HAVE_LTDL 1
33601 _ACEOF
33604 cat >>confdefs.h <<_ACEOF
33605 #define HAVE_LTDL_VERSION
33606 _ACEOF
33614 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33615 pbxlibdir=""
33616 # if --with-LDAP=DIR has been specified, use it.
33617 if test "x${LDAP_DIR}" != "x"; then
33618 if test -d ${LDAP_DIR}/lib; then
33619 pbxlibdir="-L${LDAP_DIR}/lib"
33620 else
33621 pbxlibdir="-L${LDAP_DIR}"
33624 pbxfuncname="ldap_initialize"
33625 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33626 AST_LDAP_FOUND=yes
33627 else
33628 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33629 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33630 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33631 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33633 else
33634 ac_check_lib_save_LIBS=$LIBS
33635 LIBS="-lldap ${pbxlibdir} $LIBS"
33636 cat >conftest.$ac_ext <<_ACEOF
33637 /* confdefs.h. */
33638 _ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h. */
33643 /* Override any GCC internal prototype to avoid an error.
33644 Use char because int might match the return type of a GCC
33645 builtin and then its argument prototype would still apply. */
33646 #ifdef __cplusplus
33647 extern "C"
33648 #endif
33649 char ${pbxfuncname} ();
33651 main ()
33653 return ${pbxfuncname} ();
33655 return 0;
33657 _ACEOF
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_link") 2>conftest.er1
33666 ac_status=$?
33667 grep -v '^ *+' conftest.er1 >conftest.err
33668 rm -f conftest.er1
33669 cat conftest.err >&5
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } && {
33672 test -z "$ac_c_werror_flag" ||
33673 test ! -s conftest.err
33674 } && test -s conftest$ac_exeext &&
33675 $as_test_x conftest$ac_exeext; then
33676 eval "$as_ac_Lib=yes"
33677 else
33678 echo "$as_me: failed program was:" >&5
33679 sed 's/^/| /' conftest.$ac_ext >&5
33681 eval "$as_ac_Lib=no"
33684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33685 conftest$ac_exeext conftest.$ac_ext
33686 LIBS=$ac_check_lib_save_LIBS
33688 ac_res=`eval echo '${'$as_ac_Lib'}'`
33689 { echo "$as_me:$LINENO: result: $ac_res" >&5
33690 echo "${ECHO_T}$ac_res" >&6; }
33691 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33692 AST_LDAP_FOUND=yes
33693 else
33694 AST_LDAP_FOUND=no
33699 # now check for the header.
33700 if test "${AST_LDAP_FOUND}" = "yes"; then
33701 LDAP_LIB="${pbxlibdir} -lldap "
33702 # if --with-LDAP=DIR has been specified, use it.
33703 if test "x${LDAP_DIR}" != "x"; then
33704 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33706 LDAP_INCLUDE="${LDAP_INCLUDE} "
33707 if test "xldap.h" = "x" ; then # no header, assume found
33708 LDAP_HEADER_FOUND="1"
33709 else # check for the header
33710 saved_cppflags="${CPPFLAGS}"
33711 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33712 if test "${ac_cv_header_ldap_h+set}" = set; then
33713 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33714 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33715 if test "${ac_cv_header_ldap_h+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33718 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33719 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33720 else
33721 # Is the header compilable?
33722 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33723 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33724 cat >conftest.$ac_ext <<_ACEOF
33725 /* confdefs.h. */
33726 _ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33730 $ac_includes_default
33731 #include <ldap.h>
33732 _ACEOF
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33737 *) ac_try_echo=$ac_try;;
33738 esac
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740 (eval "$ac_compile") 2>conftest.er1
33741 ac_status=$?
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } && {
33747 test -z "$ac_c_werror_flag" ||
33748 test ! -s conftest.err
33749 } && test -s conftest.$ac_objext; then
33750 ac_header_compiler=yes
33751 else
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33755 ac_header_compiler=no
33758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33760 echo "${ECHO_T}$ac_header_compiler" >&6; }
33762 # Is the header present?
33763 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33764 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33765 cat >conftest.$ac_ext <<_ACEOF
33766 /* confdefs.h. */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33771 #include <ldap.h>
33772 _ACEOF
33773 if { (ac_try="$ac_cpp conftest.$ac_ext"
33774 case "(($ac_try" in
33775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33776 *) ac_try_echo=$ac_try;;
33777 esac
33778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33780 ac_status=$?
33781 grep -v '^ *+' conftest.er1 >conftest.err
33782 rm -f conftest.er1
33783 cat conftest.err >&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } >/dev/null && {
33786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33787 test ! -s conftest.err
33788 }; then
33789 ac_header_preproc=yes
33790 else
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33794 ac_header_preproc=no
33797 rm -f conftest.err conftest.$ac_ext
33798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33799 echo "${ECHO_T}$ac_header_preproc" >&6; }
33801 # So? What about this header?
33802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33803 yes:no: )
33804 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33805 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33806 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33807 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33808 ac_header_preproc=yes
33810 no:yes:* )
33811 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33812 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33813 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33814 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33815 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33816 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33817 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33818 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33819 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33820 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33821 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33822 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33823 ( cat <<\_ASBOX
33824 ## ------------------------------- ##
33825 ## Report this to www.asterisk.org ##
33826 ## ------------------------------- ##
33827 _ASBOX
33828 ) | sed "s/^/$as_me: WARNING: /" >&2
33830 esac
33831 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33832 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33833 if test "${ac_cv_header_ldap_h+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836 ac_cv_header_ldap_h=$ac_header_preproc
33838 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33839 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33842 if test $ac_cv_header_ldap_h = yes; then
33843 LDAP_HEADER_FOUND=1
33844 else
33845 LDAP_HEADER_FOUND=0
33849 CPPFLAGS="${saved_cppflags}"
33851 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
33852 LDAP_LIB=""
33853 LDAP_INCLUDE=""
33854 else
33855 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33856 LDAP_LIB=""
33858 PBX_LDAP=1
33859 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33861 cat >>confdefs.h <<_ACEOF
33862 #define HAVE_LDAP 1
33863 _ACEOF
33866 cat >>confdefs.h <<_ACEOF
33867 #define HAVE_LDAP_VERSION
33868 _ACEOF
33876 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
33877 pbxlibdir=""
33878 # if --with-MISDN=DIR has been specified, use it.
33879 if test "x${MISDN_DIR}" != "x"; then
33880 if test -d ${MISDN_DIR}/lib; then
33881 pbxlibdir="-L${MISDN_DIR}/lib"
33882 else
33883 pbxlibdir="-L${MISDN_DIR}"
33886 pbxfuncname="mISDN_open"
33887 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33888 AST_MISDN_FOUND=yes
33889 else
33890 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
33891 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
33892 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
33893 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33894 echo $ECHO_N "(cached) $ECHO_C" >&6
33895 else
33896 ac_check_lib_save_LIBS=$LIBS
33897 LIBS="-lmISDN ${pbxlibdir} $LIBS"
33898 cat >conftest.$ac_ext <<_ACEOF
33899 /* confdefs.h. */
33900 _ACEOF
33901 cat confdefs.h >>conftest.$ac_ext
33902 cat >>conftest.$ac_ext <<_ACEOF
33903 /* end confdefs.h. */
33905 /* Override any GCC internal prototype to avoid an error.
33906 Use char because int might match the return type of a GCC
33907 builtin and then its argument prototype would still apply. */
33908 #ifdef __cplusplus
33909 extern "C"
33910 #endif
33911 char ${pbxfuncname} ();
33913 main ()
33915 return ${pbxfuncname} ();
33917 return 0;
33919 _ACEOF
33920 rm -f conftest.$ac_objext conftest$ac_exeext
33921 if { (ac_try="$ac_link"
33922 case "(($ac_try" in
33923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33924 *) ac_try_echo=$ac_try;;
33925 esac
33926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33927 (eval "$ac_link") 2>conftest.er1
33928 ac_status=$?
33929 grep -v '^ *+' conftest.er1 >conftest.err
33930 rm -f conftest.er1
33931 cat conftest.err >&5
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); } && {
33934 test -z "$ac_c_werror_flag" ||
33935 test ! -s conftest.err
33936 } && test -s conftest$ac_exeext &&
33937 $as_test_x conftest$ac_exeext; then
33938 eval "$as_ac_Lib=yes"
33939 else
33940 echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33943 eval "$as_ac_Lib=no"
33946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33947 conftest$ac_exeext conftest.$ac_ext
33948 LIBS=$ac_check_lib_save_LIBS
33950 ac_res=`eval echo '${'$as_ac_Lib'}'`
33951 { echo "$as_me:$LINENO: result: $ac_res" >&5
33952 echo "${ECHO_T}$ac_res" >&6; }
33953 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33954 AST_MISDN_FOUND=yes
33955 else
33956 AST_MISDN_FOUND=no
33961 # now check for the header.
33962 if test "${AST_MISDN_FOUND}" = "yes"; then
33963 MISDN_LIB="${pbxlibdir} -lmISDN "
33964 # if --with-MISDN=DIR has been specified, use it.
33965 if test "x${MISDN_DIR}" != "x"; then
33966 MISDN_INCLUDE="-I${MISDN_DIR}/include"
33968 MISDN_INCLUDE="${MISDN_INCLUDE} "
33969 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
33970 MISDN_HEADER_FOUND="1"
33971 else # check for the header
33972 saved_cppflags="${CPPFLAGS}"
33973 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
33974 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33975 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
33976 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
33977 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33980 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
33981 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
33982 else
33983 # Is the header compilable?
33984 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
33985 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
33986 cat >conftest.$ac_ext <<_ACEOF
33987 /* confdefs.h. */
33988 _ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33992 $ac_includes_default
33993 #include <mISDNuser/mISDNlib.h>
33994 _ACEOF
33995 rm -f conftest.$ac_objext
33996 if { (ac_try="$ac_compile"
33997 case "(($ac_try" in
33998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33999 *) ac_try_echo=$ac_try;;
34000 esac
34001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34002 (eval "$ac_compile") 2>conftest.er1
34003 ac_status=$?
34004 grep -v '^ *+' conftest.er1 >conftest.err
34005 rm -f conftest.er1
34006 cat conftest.err >&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); } && {
34009 test -z "$ac_c_werror_flag" ||
34010 test ! -s conftest.err
34011 } && test -s conftest.$ac_objext; then
34012 ac_header_compiler=yes
34013 else
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34017 ac_header_compiler=no
34020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34022 echo "${ECHO_T}$ac_header_compiler" >&6; }
34024 # Is the header present?
34025 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34026 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34027 cat >conftest.$ac_ext <<_ACEOF
34028 /* confdefs.h. */
34029 _ACEOF
34030 cat confdefs.h >>conftest.$ac_ext
34031 cat >>conftest.$ac_ext <<_ACEOF
34032 /* end confdefs.h. */
34033 #include <mISDNuser/mISDNlib.h>
34034 _ACEOF
34035 if { (ac_try="$ac_cpp conftest.$ac_ext"
34036 case "(($ac_try" in
34037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34038 *) ac_try_echo=$ac_try;;
34039 esac
34040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34042 ac_status=$?
34043 grep -v '^ *+' conftest.er1 >conftest.err
34044 rm -f conftest.er1
34045 cat conftest.err >&5
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); } >/dev/null && {
34048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34049 test ! -s conftest.err
34050 }; then
34051 ac_header_preproc=yes
34052 else
34053 echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34056 ac_header_preproc=no
34059 rm -f conftest.err conftest.$ac_ext
34060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34061 echo "${ECHO_T}$ac_header_preproc" >&6; }
34063 # So? What about this header?
34064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34065 yes:no: )
34066 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34067 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34068 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34069 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34070 ac_header_preproc=yes
34072 no:yes:* )
34073 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34074 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34075 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34076 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34077 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34078 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34079 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34080 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34081 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34082 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34083 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34084 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34085 ( cat <<\_ASBOX
34086 ## ------------------------------- ##
34087 ## Report this to www.asterisk.org ##
34088 ## ------------------------------- ##
34089 _ASBOX
34090 ) | sed "s/^/$as_me: WARNING: /" >&2
34092 esac
34093 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34094 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34095 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34096 echo $ECHO_N "(cached) $ECHO_C" >&6
34097 else
34098 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34100 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34101 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34104 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34105 MISDN_HEADER_FOUND=1
34106 else
34107 MISDN_HEADER_FOUND=0
34111 CPPFLAGS="${saved_cppflags}"
34113 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34114 MISDN_LIB=""
34115 MISDN_INCLUDE=""
34116 else
34117 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34118 MISDN_LIB=""
34120 PBX_MISDN=1
34121 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34123 cat >>confdefs.h <<_ACEOF
34124 #define HAVE_MISDN 1
34125 _ACEOF
34128 cat >>confdefs.h <<_ACEOF
34129 #define HAVE_MISDN_VERSION
34130 _ACEOF
34137 if test "${PBX_MISDN}" = 1; then
34139 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34140 pbxlibdir=""
34141 # if --with-ISDNNET=DIR has been specified, use it.
34142 if test "x${ISDNNET_DIR}" != "x"; then
34143 if test -d ${ISDNNET_DIR}/lib; then
34144 pbxlibdir="-L${ISDNNET_DIR}/lib"
34145 else
34146 pbxlibdir="-L${ISDNNET_DIR}"
34149 pbxfuncname="init_manager"
34150 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34151 AST_ISDNNET_FOUND=yes
34152 else
34153 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34154 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34155 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34156 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34157 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 else
34159 ac_check_lib_save_LIBS=$LIBS
34160 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34161 cat >conftest.$ac_ext <<_ACEOF
34162 /* confdefs.h. */
34163 _ACEOF
34164 cat confdefs.h >>conftest.$ac_ext
34165 cat >>conftest.$ac_ext <<_ACEOF
34166 /* end confdefs.h. */
34168 /* Override any GCC internal prototype to avoid an error.
34169 Use char because int might match the return type of a GCC
34170 builtin and then its argument prototype would still apply. */
34171 #ifdef __cplusplus
34172 extern "C"
34173 #endif
34174 char ${pbxfuncname} ();
34176 main ()
34178 return ${pbxfuncname} ();
34180 return 0;
34182 _ACEOF
34183 rm -f conftest.$ac_objext conftest$ac_exeext
34184 if { (ac_try="$ac_link"
34185 case "(($ac_try" in
34186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34187 *) ac_try_echo=$ac_try;;
34188 esac
34189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34190 (eval "$ac_link") 2>conftest.er1
34191 ac_status=$?
34192 grep -v '^ *+' conftest.er1 >conftest.err
34193 rm -f conftest.er1
34194 cat conftest.err >&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); } && {
34197 test -z "$ac_c_werror_flag" ||
34198 test ! -s conftest.err
34199 } && test -s conftest$ac_exeext &&
34200 $as_test_x conftest$ac_exeext; then
34201 eval "$as_ac_Lib=yes"
34202 else
34203 echo "$as_me: failed program was:" >&5
34204 sed 's/^/| /' conftest.$ac_ext >&5
34206 eval "$as_ac_Lib=no"
34209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34210 conftest$ac_exeext conftest.$ac_ext
34211 LIBS=$ac_check_lib_save_LIBS
34213 ac_res=`eval echo '${'$as_ac_Lib'}'`
34214 { echo "$as_me:$LINENO: result: $ac_res" >&5
34215 echo "${ECHO_T}$ac_res" >&6; }
34216 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34217 AST_ISDNNET_FOUND=yes
34218 else
34219 AST_ISDNNET_FOUND=no
34224 # now check for the header.
34225 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34226 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34227 # if --with-ISDNNET=DIR has been specified, use it.
34228 if test "x${ISDNNET_DIR}" != "x"; then
34229 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34231 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34232 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34233 ISDNNET_HEADER_FOUND="1"
34234 else # check for the header
34235 saved_cppflags="${CPPFLAGS}"
34236 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
34237 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34238 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34239 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34240 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34241 echo $ECHO_N "(cached) $ECHO_C" >&6
34243 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34244 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34245 else
34246 # Is the header compilable?
34247 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34248 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34249 cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h. */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h. */
34255 $ac_includes_default
34256 #include <mISDNuser/isdn_net.h>
34257 _ACEOF
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262 *) ac_try_echo=$ac_try;;
34263 esac
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265 (eval "$ac_compile") 2>conftest.er1
34266 ac_status=$?
34267 grep -v '^ *+' conftest.er1 >conftest.err
34268 rm -f conftest.er1
34269 cat conftest.err >&5
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } && {
34272 test -z "$ac_c_werror_flag" ||
34273 test ! -s conftest.err
34274 } && test -s conftest.$ac_objext; then
34275 ac_header_compiler=yes
34276 else
34277 echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34280 ac_header_compiler=no
34283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34285 echo "${ECHO_T}$ac_header_compiler" >&6; }
34287 # Is the header present?
34288 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34289 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34290 cat >conftest.$ac_ext <<_ACEOF
34291 /* confdefs.h. */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h. */
34296 #include <mISDNuser/isdn_net.h>
34297 _ACEOF
34298 if { (ac_try="$ac_cpp conftest.$ac_ext"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34302 esac
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34305 ac_status=$?
34306 grep -v '^ *+' conftest.er1 >conftest.err
34307 rm -f conftest.er1
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } >/dev/null && {
34311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34312 test ! -s conftest.err
34313 }; then
34314 ac_header_preproc=yes
34315 else
34316 echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34319 ac_header_preproc=no
34322 rm -f conftest.err conftest.$ac_ext
34323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34324 echo "${ECHO_T}$ac_header_preproc" >&6; }
34326 # So? What about this header?
34327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34328 yes:no: )
34329 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34330 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34331 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34332 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34333 ac_header_preproc=yes
34335 no:yes:* )
34336 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34337 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34338 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34339 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34340 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34341 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34342 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34343 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34345 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34347 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34348 ( cat <<\_ASBOX
34349 ## ------------------------------- ##
34350 ## Report this to www.asterisk.org ##
34351 ## ------------------------------- ##
34352 _ASBOX
34353 ) | sed "s/^/$as_me: WARNING: /" >&2
34355 esac
34356 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34357 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34358 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34359 echo $ECHO_N "(cached) $ECHO_C" >&6
34360 else
34361 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34363 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34364 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34367 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34368 ISDNNET_HEADER_FOUND=1
34369 else
34370 ISDNNET_HEADER_FOUND=0
34374 CPPFLAGS="${saved_cppflags}"
34376 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34377 ISDNNET_LIB=""
34378 ISDNNET_INCLUDE=""
34379 else
34380 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34381 ISDNNET_LIB=""
34383 PBX_ISDNNET=1
34384 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34386 cat >>confdefs.h <<_ACEOF
34387 #define HAVE_ISDNNET 1
34388 _ACEOF
34391 cat >>confdefs.h <<_ACEOF
34392 #define HAVE_ISDNNET_VERSION
34393 _ACEOF
34400 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34401 pbxlibdir=""
34402 # if --with-SUPPSERV=DIR has been specified, use it.
34403 if test "x${SUPPSERV_DIR}" != "x"; then
34404 if test -d ${SUPPSERV_DIR}/lib; then
34405 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34406 else
34407 pbxlibdir="-L${SUPPSERV_DIR}"
34410 pbxfuncname="encodeFac"
34411 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34412 AST_SUPPSERV_FOUND=yes
34413 else
34414 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34415 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34416 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34417 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34418 echo $ECHO_N "(cached) $ECHO_C" >&6
34419 else
34420 ac_check_lib_save_LIBS=$LIBS
34421 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34422 cat >conftest.$ac_ext <<_ACEOF
34423 /* confdefs.h. */
34424 _ACEOF
34425 cat confdefs.h >>conftest.$ac_ext
34426 cat >>conftest.$ac_ext <<_ACEOF
34427 /* end confdefs.h. */
34429 /* Override any GCC internal prototype to avoid an error.
34430 Use char because int might match the return type of a GCC
34431 builtin and then its argument prototype would still apply. */
34432 #ifdef __cplusplus
34433 extern "C"
34434 #endif
34435 char ${pbxfuncname} ();
34437 main ()
34439 return ${pbxfuncname} ();
34441 return 0;
34443 _ACEOF
34444 rm -f conftest.$ac_objext conftest$ac_exeext
34445 if { (ac_try="$ac_link"
34446 case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34449 esac
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_link") 2>conftest.er1
34452 ac_status=$?
34453 grep -v '^ *+' conftest.er1 >conftest.err
34454 rm -f conftest.er1
34455 cat conftest.err >&5
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); } && {
34458 test -z "$ac_c_werror_flag" ||
34459 test ! -s conftest.err
34460 } && test -s conftest$ac_exeext &&
34461 $as_test_x conftest$ac_exeext; then
34462 eval "$as_ac_Lib=yes"
34463 else
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 eval "$as_ac_Lib=no"
34470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34471 conftest$ac_exeext conftest.$ac_ext
34472 LIBS=$ac_check_lib_save_LIBS
34474 ac_res=`eval echo '${'$as_ac_Lib'}'`
34475 { echo "$as_me:$LINENO: result: $ac_res" >&5
34476 echo "${ECHO_T}$ac_res" >&6; }
34477 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34478 AST_SUPPSERV_FOUND=yes
34479 else
34480 AST_SUPPSERV_FOUND=no
34485 # now check for the header.
34486 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34487 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34488 # if --with-SUPPSERV=DIR has been specified, use it.
34489 if test "x${SUPPSERV_DIR}" != "x"; then
34490 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34492 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34493 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34494 SUPPSERV_HEADER_FOUND="1"
34495 else # check for the header
34496 saved_cppflags="${CPPFLAGS}"
34497 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34498 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34499 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34500 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34501 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34504 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34505 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34506 else
34507 # Is the header compilable?
34508 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34509 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34510 cat >conftest.$ac_ext <<_ACEOF
34511 /* confdefs.h. */
34512 _ACEOF
34513 cat confdefs.h >>conftest.$ac_ext
34514 cat >>conftest.$ac_ext <<_ACEOF
34515 /* end confdefs.h. */
34516 $ac_includes_default
34517 #include <mISDNuser/suppserv.h>
34518 _ACEOF
34519 rm -f conftest.$ac_objext
34520 if { (ac_try="$ac_compile"
34521 case "(($ac_try" in
34522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34523 *) ac_try_echo=$ac_try;;
34524 esac
34525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34526 (eval "$ac_compile") 2>conftest.er1
34527 ac_status=$?
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } && {
34533 test -z "$ac_c_werror_flag" ||
34534 test ! -s conftest.err
34535 } && test -s conftest.$ac_objext; then
34536 ac_header_compiler=yes
34537 else
34538 echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34541 ac_header_compiler=no
34544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34546 echo "${ECHO_T}$ac_header_compiler" >&6; }
34548 # Is the header present?
34549 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34550 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34551 cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h. */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h. */
34557 #include <mISDNuser/suppserv.h>
34558 _ACEOF
34559 if { (ac_try="$ac_cpp conftest.$ac_ext"
34560 case "(($ac_try" in
34561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34562 *) ac_try_echo=$ac_try;;
34563 esac
34564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34566 ac_status=$?
34567 grep -v '^ *+' conftest.er1 >conftest.err
34568 rm -f conftest.er1
34569 cat conftest.err >&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); } >/dev/null && {
34572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34573 test ! -s conftest.err
34574 }; then
34575 ac_header_preproc=yes
34576 else
34577 echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34580 ac_header_preproc=no
34583 rm -f conftest.err conftest.$ac_ext
34584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34585 echo "${ECHO_T}$ac_header_preproc" >&6; }
34587 # So? What about this header?
34588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34589 yes:no: )
34590 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34591 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34592 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34593 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34594 ac_header_preproc=yes
34596 no:yes:* )
34597 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34598 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34599 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34600 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34601 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34602 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34603 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34604 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34605 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34606 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34607 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34608 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34609 ( cat <<\_ASBOX
34610 ## ------------------------------- ##
34611 ## Report this to www.asterisk.org ##
34612 ## ------------------------------- ##
34613 _ASBOX
34614 ) | sed "s/^/$as_me: WARNING: /" >&2
34616 esac
34617 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34618 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34619 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34620 echo $ECHO_N "(cached) $ECHO_C" >&6
34621 else
34622 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34624 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34625 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34628 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34629 SUPPSERV_HEADER_FOUND=1
34630 else
34631 SUPPSERV_HEADER_FOUND=0
34635 CPPFLAGS="${saved_cppflags}"
34637 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34638 SUPPSERV_LIB=""
34639 SUPPSERV_INCLUDE=""
34640 else
34641 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34642 SUPPSERV_LIB=""
34644 PBX_SUPPSERV=1
34645 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34647 cat >>confdefs.h <<_ACEOF
34648 #define HAVE_SUPPSERV 1
34649 _ACEOF
34652 cat >>confdefs.h <<_ACEOF
34653 #define HAVE_SUPPSERV_VERSION
34654 _ACEOF
34661 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34662 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34663 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34664 saved_cppflags="${CPPFLAGS}"
34665 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34666 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34668 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34670 cat >conftest.$ac_ext <<_ACEOF
34671 /* confdefs.h. */
34672 _ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h. */
34676 #include <mISDNuser/suppserv.h>
34678 main ()
34680 #if defined(Fac_RESULT)
34681 int foo = 0;
34682 #else
34683 int foo = bar;
34684 #endif
34688 return 0;
34690 _ACEOF
34691 rm -f conftest.$ac_objext
34692 if { (ac_try="$ac_compile"
34693 case "(($ac_try" in
34694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34695 *) ac_try_echo=$ac_try;;
34696 esac
34697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34698 (eval "$ac_compile") 2>conftest.er1
34699 ac_status=$?
34700 grep -v '^ *+' conftest.er1 >conftest.err
34701 rm -f conftest.er1
34702 cat conftest.err >&5
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); } && {
34705 test -z "$ac_c_werror_flag" ||
34706 test ! -s conftest.err
34707 } && test -s conftest.$ac_objext; then
34708 { echo "$as_me:$LINENO: result: yes" >&5
34709 echo "${ECHO_T}yes" >&6; }
34710 PBX_MISDN_FAC_RESULT=1
34712 cat >>confdefs.h <<\_ACEOF
34713 #define HAVE_MISDN_FAC_RESULT 1
34714 _ACEOF
34717 cat >>confdefs.h <<\_ACEOF
34718 #define HAVE_MISDN_FAC_RESULT_VERSION
34719 _ACEOF
34722 else
34723 echo "$as_me: failed program was:" >&5
34724 sed 's/^/| /' conftest.$ac_ext >&5
34726 { echo "$as_me:$LINENO: result: no" >&5
34727 echo "${ECHO_T}no" >&6; }
34731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34732 CPPFLAGS="${saved_cppflags}"
34737 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34738 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34739 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34740 saved_cppflags="${CPPFLAGS}"
34741 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34742 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34744 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34746 cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h. */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34752 #include <mISDNuser/suppserv.h>
34754 main ()
34756 #if defined(Fac_ERROR)
34757 int foo = 0;
34758 #else
34759 int foo = bar;
34760 #endif
34764 return 0;
34766 _ACEOF
34767 rm -f conftest.$ac_objext
34768 if { (ac_try="$ac_compile"
34769 case "(($ac_try" in
34770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34771 *) ac_try_echo=$ac_try;;
34772 esac
34773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34774 (eval "$ac_compile") 2>conftest.er1
34775 ac_status=$?
34776 grep -v '^ *+' conftest.er1 >conftest.err
34777 rm -f conftest.er1
34778 cat conftest.err >&5
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); } && {
34781 test -z "$ac_c_werror_flag" ||
34782 test ! -s conftest.err
34783 } && test -s conftest.$ac_objext; then
34784 { echo "$as_me:$LINENO: result: yes" >&5
34785 echo "${ECHO_T}yes" >&6; }
34786 PBX_MISDN_FAC_ERROR=1
34788 cat >>confdefs.h <<\_ACEOF
34789 #define HAVE_MISDN_FAC_ERROR 1
34790 _ACEOF
34793 cat >>confdefs.h <<\_ACEOF
34794 #define HAVE_MISDN_FAC_ERROR_VERSION
34795 _ACEOF
34798 else
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 { echo "$as_me:$LINENO: result: no" >&5
34803 echo "${ECHO_T}no" >&6; }
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 CPPFLAGS="${saved_cppflags}"
34812 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34813 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34814 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34815 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34816 echo $ECHO_N "(cached) $ECHO_C" >&6
34818 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34819 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34820 else
34821 # Is the header compilable?
34822 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34823 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34824 cat >conftest.$ac_ext <<_ACEOF
34825 /* confdefs.h. */
34826 _ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h. */
34830 $ac_includes_default
34831 #include <linux/mISDNdsp.h>
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 ac_header_compiler=yes
34851 else
34852 echo "$as_me: failed program was:" >&5
34853 sed 's/^/| /' conftest.$ac_ext >&5
34855 ac_header_compiler=no
34858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34860 echo "${ECHO_T}$ac_header_compiler" >&6; }
34862 # Is the header present?
34863 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
34864 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
34865 cat >conftest.$ac_ext <<_ACEOF
34866 /* confdefs.h. */
34867 _ACEOF
34868 cat confdefs.h >>conftest.$ac_ext
34869 cat >>conftest.$ac_ext <<_ACEOF
34870 /* end confdefs.h. */
34871 #include <linux/mISDNdsp.h>
34872 _ACEOF
34873 if { (ac_try="$ac_cpp conftest.$ac_ext"
34874 case "(($ac_try" in
34875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34876 *) ac_try_echo=$ac_try;;
34877 esac
34878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34880 ac_status=$?
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } >/dev/null && {
34886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34887 test ! -s conftest.err
34888 }; then
34889 ac_header_preproc=yes
34890 else
34891 echo "$as_me: failed program was:" >&5
34892 sed 's/^/| /' conftest.$ac_ext >&5
34894 ac_header_preproc=no
34897 rm -f conftest.err conftest.$ac_ext
34898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34899 echo "${ECHO_T}$ac_header_preproc" >&6; }
34901 # So? What about this header?
34902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34903 yes:no: )
34904 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
34905 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34906 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
34907 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
34908 ac_header_preproc=yes
34910 no:yes:* )
34911 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
34912 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
34913 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
34914 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
34915 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
34916 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
34917 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
34918 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
34919 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
34920 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
34921 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
34922 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
34923 ( cat <<\_ASBOX
34924 ## ------------------------------- ##
34925 ## Report this to www.asterisk.org ##
34926 ## ------------------------------- ##
34927 _ASBOX
34928 ) | sed "s/^/$as_me: WARNING: /" >&2
34930 esac
34931 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34932 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34933 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34934 echo $ECHO_N "(cached) $ECHO_C" >&6
34935 else
34936 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
34938 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34939 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34942 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
34944 cat >>confdefs.h <<_ACEOF
34945 #define MISDN_1_2 1
34946 _ACEOF
34954 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
34955 pbxlibdir=""
34956 # if --with-NBS=DIR has been specified, use it.
34957 if test "x${NBS_DIR}" != "x"; then
34958 if test -d ${NBS_DIR}/lib; then
34959 pbxlibdir="-L${NBS_DIR}/lib"
34960 else
34961 pbxlibdir="-L${NBS_DIR}"
34964 pbxfuncname="nbs_connect"
34965 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34966 AST_NBS_FOUND=yes
34967 else
34968 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
34969 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
34970 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
34971 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974 ac_check_lib_save_LIBS=$LIBS
34975 LIBS="-lnbs ${pbxlibdir} $LIBS"
34976 cat >conftest.$ac_ext <<_ACEOF
34977 /* confdefs.h. */
34978 _ACEOF
34979 cat confdefs.h >>conftest.$ac_ext
34980 cat >>conftest.$ac_ext <<_ACEOF
34981 /* end confdefs.h. */
34983 /* Override any GCC internal prototype to avoid an error.
34984 Use char because int might match the return type of a GCC
34985 builtin and then its argument prototype would still apply. */
34986 #ifdef __cplusplus
34987 extern "C"
34988 #endif
34989 char ${pbxfuncname} ();
34991 main ()
34993 return ${pbxfuncname} ();
34995 return 0;
34997 _ACEOF
34998 rm -f conftest.$ac_objext conftest$ac_exeext
34999 if { (ac_try="$ac_link"
35000 case "(($ac_try" in
35001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002 *) ac_try_echo=$ac_try;;
35003 esac
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005 (eval "$ac_link") 2>conftest.er1
35006 ac_status=$?
35007 grep -v '^ *+' conftest.er1 >conftest.err
35008 rm -f conftest.er1
35009 cat conftest.err >&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } && {
35012 test -z "$ac_c_werror_flag" ||
35013 test ! -s conftest.err
35014 } && test -s conftest$ac_exeext &&
35015 $as_test_x conftest$ac_exeext; then
35016 eval "$as_ac_Lib=yes"
35017 else
35018 echo "$as_me: failed program was:" >&5
35019 sed 's/^/| /' conftest.$ac_ext >&5
35021 eval "$as_ac_Lib=no"
35024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35025 conftest$ac_exeext conftest.$ac_ext
35026 LIBS=$ac_check_lib_save_LIBS
35028 ac_res=`eval echo '${'$as_ac_Lib'}'`
35029 { echo "$as_me:$LINENO: result: $ac_res" >&5
35030 echo "${ECHO_T}$ac_res" >&6; }
35031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35032 AST_NBS_FOUND=yes
35033 else
35034 AST_NBS_FOUND=no
35039 # now check for the header.
35040 if test "${AST_NBS_FOUND}" = "yes"; then
35041 NBS_LIB="${pbxlibdir} -lnbs "
35042 # if --with-NBS=DIR has been specified, use it.
35043 if test "x${NBS_DIR}" != "x"; then
35044 NBS_INCLUDE="-I${NBS_DIR}/include"
35046 NBS_INCLUDE="${NBS_INCLUDE} "
35047 if test "xnbs.h" = "x" ; then # no header, assume found
35048 NBS_HEADER_FOUND="1"
35049 else # check for the header
35050 saved_cppflags="${CPPFLAGS}"
35051 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
35052 if test "${ac_cv_header_nbs_h+set}" = set; then
35053 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35054 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35055 if test "${ac_cv_header_nbs_h+set}" = set; then
35056 echo $ECHO_N "(cached) $ECHO_C" >&6
35058 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35059 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35060 else
35061 # Is the header compilable?
35062 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35063 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35064 cat >conftest.$ac_ext <<_ACEOF
35065 /* confdefs.h. */
35066 _ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h. */
35070 $ac_includes_default
35071 #include <nbs.h>
35072 _ACEOF
35073 rm -f conftest.$ac_objext
35074 if { (ac_try="$ac_compile"
35075 case "(($ac_try" in
35076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35077 *) ac_try_echo=$ac_try;;
35078 esac
35079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35080 (eval "$ac_compile") 2>conftest.er1
35081 ac_status=$?
35082 grep -v '^ *+' conftest.er1 >conftest.err
35083 rm -f conftest.er1
35084 cat conftest.err >&5
35085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086 (exit $ac_status); } && {
35087 test -z "$ac_c_werror_flag" ||
35088 test ! -s conftest.err
35089 } && test -s conftest.$ac_objext; then
35090 ac_header_compiler=yes
35091 else
35092 echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35095 ac_header_compiler=no
35098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35100 echo "${ECHO_T}$ac_header_compiler" >&6; }
35102 # Is the header present?
35103 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35104 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35105 cat >conftest.$ac_ext <<_ACEOF
35106 /* confdefs.h. */
35107 _ACEOF
35108 cat confdefs.h >>conftest.$ac_ext
35109 cat >>conftest.$ac_ext <<_ACEOF
35110 /* end confdefs.h. */
35111 #include <nbs.h>
35112 _ACEOF
35113 if { (ac_try="$ac_cpp conftest.$ac_ext"
35114 case "(($ac_try" in
35115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35116 *) ac_try_echo=$ac_try;;
35117 esac
35118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35120 ac_status=$?
35121 grep -v '^ *+' conftest.er1 >conftest.err
35122 rm -f conftest.er1
35123 cat conftest.err >&5
35124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); } >/dev/null && {
35126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35127 test ! -s conftest.err
35128 }; then
35129 ac_header_preproc=yes
35130 else
35131 echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35134 ac_header_preproc=no
35137 rm -f conftest.err conftest.$ac_ext
35138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35139 echo "${ECHO_T}$ac_header_preproc" >&6; }
35141 # So? What about this header?
35142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35143 yes:no: )
35144 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35145 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35146 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35147 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35148 ac_header_preproc=yes
35150 no:yes:* )
35151 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35152 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35153 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35154 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35155 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35156 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35157 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35158 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35159 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35160 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35161 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35162 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35163 ( cat <<\_ASBOX
35164 ## ------------------------------- ##
35165 ## Report this to www.asterisk.org ##
35166 ## ------------------------------- ##
35167 _ASBOX
35168 ) | sed "s/^/$as_me: WARNING: /" >&2
35170 esac
35171 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35172 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35173 if test "${ac_cv_header_nbs_h+set}" = set; then
35174 echo $ECHO_N "(cached) $ECHO_C" >&6
35175 else
35176 ac_cv_header_nbs_h=$ac_header_preproc
35178 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35179 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35182 if test $ac_cv_header_nbs_h = yes; then
35183 NBS_HEADER_FOUND=1
35184 else
35185 NBS_HEADER_FOUND=0
35189 CPPFLAGS="${saved_cppflags}"
35191 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35192 NBS_LIB=""
35193 NBS_INCLUDE=""
35194 else
35195 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35196 NBS_LIB=""
35198 PBX_NBS=1
35199 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35201 cat >>confdefs.h <<_ACEOF
35202 #define HAVE_NBS 1
35203 _ACEOF
35206 cat >>confdefs.h <<_ACEOF
35207 #define HAVE_NBS_VERSION
35208 _ACEOF
35216 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35217 pbxlibdir=""
35218 # if --with-NCURSES=DIR has been specified, use it.
35219 if test "x${NCURSES_DIR}" != "x"; then
35220 if test -d ${NCURSES_DIR}/lib; then
35221 pbxlibdir="-L${NCURSES_DIR}/lib"
35222 else
35223 pbxlibdir="-L${NCURSES_DIR}"
35226 pbxfuncname="initscr"
35227 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35228 AST_NCURSES_FOUND=yes
35229 else
35230 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35231 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35232 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35233 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35234 echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236 ac_check_lib_save_LIBS=$LIBS
35237 LIBS="-lncurses ${pbxlibdir} $LIBS"
35238 cat >conftest.$ac_ext <<_ACEOF
35239 /* confdefs.h. */
35240 _ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h. */
35245 /* Override any GCC internal prototype to avoid an error.
35246 Use char because int might match the return type of a GCC
35247 builtin and then its argument prototype would still apply. */
35248 #ifdef __cplusplus
35249 extern "C"
35250 #endif
35251 char ${pbxfuncname} ();
35253 main ()
35255 return ${pbxfuncname} ();
35257 return 0;
35259 _ACEOF
35260 rm -f conftest.$ac_objext conftest$ac_exeext
35261 if { (ac_try="$ac_link"
35262 case "(($ac_try" in
35263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264 *) ac_try_echo=$ac_try;;
35265 esac
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267 (eval "$ac_link") 2>conftest.er1
35268 ac_status=$?
35269 grep -v '^ *+' conftest.er1 >conftest.err
35270 rm -f conftest.er1
35271 cat conftest.err >&5
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); } && {
35274 test -z "$ac_c_werror_flag" ||
35275 test ! -s conftest.err
35276 } && test -s conftest$ac_exeext &&
35277 $as_test_x conftest$ac_exeext; then
35278 eval "$as_ac_Lib=yes"
35279 else
35280 echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35283 eval "$as_ac_Lib=no"
35286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35287 conftest$ac_exeext conftest.$ac_ext
35288 LIBS=$ac_check_lib_save_LIBS
35290 ac_res=`eval echo '${'$as_ac_Lib'}'`
35291 { echo "$as_me:$LINENO: result: $ac_res" >&5
35292 echo "${ECHO_T}$ac_res" >&6; }
35293 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35294 AST_NCURSES_FOUND=yes
35295 else
35296 AST_NCURSES_FOUND=no
35301 # now check for the header.
35302 if test "${AST_NCURSES_FOUND}" = "yes"; then
35303 NCURSES_LIB="${pbxlibdir} -lncurses "
35304 # if --with-NCURSES=DIR has been specified, use it.
35305 if test "x${NCURSES_DIR}" != "x"; then
35306 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35308 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35309 if test "xcurses.h" = "x" ; then # no header, assume found
35310 NCURSES_HEADER_FOUND="1"
35311 else # check for the header
35312 saved_cppflags="${CPPFLAGS}"
35313 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35314 if test "${ac_cv_header_curses_h+set}" = set; then
35315 { echo "$as_me:$LINENO: checking for curses.h" >&5
35316 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35317 if test "${ac_cv_header_curses_h+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35320 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35321 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35322 else
35323 # Is the header compilable?
35324 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35325 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35326 cat >conftest.$ac_ext <<_ACEOF
35327 /* confdefs.h. */
35328 _ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h. */
35332 $ac_includes_default
35333 #include <curses.h>
35334 _ACEOF
35335 rm -f conftest.$ac_objext
35336 if { (ac_try="$ac_compile"
35337 case "(($ac_try" in
35338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35339 *) ac_try_echo=$ac_try;;
35340 esac
35341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35342 (eval "$ac_compile") 2>conftest.er1
35343 ac_status=$?
35344 grep -v '^ *+' conftest.er1 >conftest.err
35345 rm -f conftest.er1
35346 cat conftest.err >&5
35347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348 (exit $ac_status); } && {
35349 test -z "$ac_c_werror_flag" ||
35350 test ! -s conftest.err
35351 } && test -s conftest.$ac_objext; then
35352 ac_header_compiler=yes
35353 else
35354 echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35357 ac_header_compiler=no
35360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35362 echo "${ECHO_T}$ac_header_compiler" >&6; }
35364 # Is the header present?
35365 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35366 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35367 cat >conftest.$ac_ext <<_ACEOF
35368 /* confdefs.h. */
35369 _ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h. */
35373 #include <curses.h>
35374 _ACEOF
35375 if { (ac_try="$ac_cpp conftest.$ac_ext"
35376 case "(($ac_try" in
35377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35378 *) ac_try_echo=$ac_try;;
35379 esac
35380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35382 ac_status=$?
35383 grep -v '^ *+' conftest.er1 >conftest.err
35384 rm -f conftest.er1
35385 cat conftest.err >&5
35386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 (exit $ac_status); } >/dev/null && {
35388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35389 test ! -s conftest.err
35390 }; then
35391 ac_header_preproc=yes
35392 else
35393 echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35396 ac_header_preproc=no
35399 rm -f conftest.err conftest.$ac_ext
35400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35401 echo "${ECHO_T}$ac_header_preproc" >&6; }
35403 # So? What about this header?
35404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35405 yes:no: )
35406 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35407 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35408 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35409 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35410 ac_header_preproc=yes
35412 no:yes:* )
35413 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35414 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35415 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35416 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35417 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35418 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35419 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35420 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35421 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35422 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35423 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35424 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35425 ( cat <<\_ASBOX
35426 ## ------------------------------- ##
35427 ## Report this to www.asterisk.org ##
35428 ## ------------------------------- ##
35429 _ASBOX
35430 ) | sed "s/^/$as_me: WARNING: /" >&2
35432 esac
35433 { echo "$as_me:$LINENO: checking for curses.h" >&5
35434 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35435 if test "${ac_cv_header_curses_h+set}" = set; then
35436 echo $ECHO_N "(cached) $ECHO_C" >&6
35437 else
35438 ac_cv_header_curses_h=$ac_header_preproc
35440 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35441 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35444 if test $ac_cv_header_curses_h = yes; then
35445 NCURSES_HEADER_FOUND=1
35446 else
35447 NCURSES_HEADER_FOUND=0
35451 CPPFLAGS="${saved_cppflags}"
35453 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35454 NCURSES_LIB=""
35455 NCURSES_INCLUDE=""
35456 else
35457 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35458 NCURSES_LIB=""
35460 PBX_NCURSES=1
35461 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35463 cat >>confdefs.h <<_ACEOF
35464 #define HAVE_NCURSES 1
35465 _ACEOF
35468 cat >>confdefs.h <<_ACEOF
35469 #define HAVE_NCURSES_VERSION
35470 _ACEOF
35478 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35479 PBX_NETSNMP=0
35480 if test -n "$ac_tool_prefix"; then
35481 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35482 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35485 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35486 echo $ECHO_N "(cached) $ECHO_C" >&6
35487 else
35488 if test -n "$CONFIG_NETSNMP"; then
35489 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35490 else
35491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35492 for as_dir in $PATH
35494 IFS=$as_save_IFS
35495 test -z "$as_dir" && as_dir=.
35496 for ac_exec_ext in '' $ac_executable_extensions; do
35497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35498 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35500 break 2
35502 done
35503 done
35504 IFS=$as_save_IFS
35508 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35509 if test -n "$CONFIG_NETSNMP"; then
35510 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35511 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35512 else
35513 { echo "$as_me:$LINENO: result: no" >&5
35514 echo "${ECHO_T}no" >&6; }
35519 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35520 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35521 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35522 set dummy net-snmp-config; ac_word=$2
35523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35525 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35526 echo $ECHO_N "(cached) $ECHO_C" >&6
35527 else
35528 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35529 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35530 else
35531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35532 for as_dir in $PATH
35534 IFS=$as_save_IFS
35535 test -z "$as_dir" && as_dir=.
35536 for ac_exec_ext in '' $ac_executable_extensions; do
35537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35538 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35540 break 2
35542 done
35543 done
35544 IFS=$as_save_IFS
35548 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35549 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35550 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35551 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35552 else
35553 { echo "$as_me:$LINENO: result: no" >&5
35554 echo "${ECHO_T}no" >&6; }
35557 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35558 CONFIG_NETSNMP="No"
35559 else
35560 case $cross_compiling:$ac_tool_warned in
35561 yes:)
35562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35563 whose name does not start with the host triplet. If you think this
35564 configuration is useful to you, please write to autoconf@gnu.org." >&5
35565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35566 whose name does not start with the host triplet. If you think this
35567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35568 ac_tool_warned=yes ;;
35569 esac
35570 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35572 else
35573 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35576 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35577 if test x"" = x ; then A=--cflags ; else A="" ; fi
35578 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35579 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35580 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35581 if test x"#include <net-snmp/net-snmp-config.h>
35582 #include <net-snmp/net-snmp-includes.h>
35583 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35584 saved_cppflags="${CPPFLAGS}"
35585 if test "x${NETSNMP_DIR}" != "x"; then
35586 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35588 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35590 saved_ldflags="${LDFLAGS}"
35591 LDFLAGS="${NETSNMP_LIB}"
35593 cat >conftest.$ac_ext <<_ACEOF
35594 /* confdefs.h. */
35595 _ACEOF
35596 cat confdefs.h >>conftest.$ac_ext
35597 cat >>conftest.$ac_ext <<_ACEOF
35598 /* end confdefs.h. */
35599 #include <net-snmp/net-snmp-config.h>
35600 #include <net-snmp/net-snmp-includes.h>
35601 #include <net-snmp/agent/net-snmp-agent-includes.h>
35603 main ()
35605 int callback = snmp_register_callback(0, 0, NULL, NULL);
35608 return 0;
35610 _ACEOF
35611 rm -f conftest.$ac_objext conftest$ac_exeext
35612 if { (ac_try="$ac_link"
35613 case "(($ac_try" in
35614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35615 *) ac_try_echo=$ac_try;;
35616 esac
35617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35618 (eval "$ac_link") 2>conftest.er1
35619 ac_status=$?
35620 grep -v '^ *+' conftest.er1 >conftest.err
35621 rm -f conftest.er1
35622 cat conftest.err >&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); } && {
35625 test -z "$ac_c_werror_flag" ||
35626 test ! -s conftest.err
35627 } && test -s conftest$ac_exeext &&
35628 $as_test_x conftest$ac_exeext; then
35629 PBX_NETSNMP=1
35631 cat >>confdefs.h <<\_ACEOF
35632 #define HAVE_NETSNMP 1
35633 _ACEOF
35636 else
35637 echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35645 conftest$ac_exeext conftest.$ac_ext
35646 CPPFLAGS="${saved_cppflags}"
35647 LDFLAGS="${saved_ldflags}"
35648 else
35649 PBX_NETSNMP=1
35651 cat >>confdefs.h <<\_ACEOF
35652 #define HAVE_NETSNMP 1
35653 _ACEOF
35661 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35662 pbxlibdir=""
35663 # if --with-NEWT=DIR has been specified, use it.
35664 if test "x${NEWT_DIR}" != "x"; then
35665 if test -d ${NEWT_DIR}/lib; then
35666 pbxlibdir="-L${NEWT_DIR}/lib"
35667 else
35668 pbxlibdir="-L${NEWT_DIR}"
35671 pbxfuncname="newtBell"
35672 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35673 AST_NEWT_FOUND=yes
35674 else
35675 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35676 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35677 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35678 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35679 echo $ECHO_N "(cached) $ECHO_C" >&6
35680 else
35681 ac_check_lib_save_LIBS=$LIBS
35682 LIBS="-lnewt ${pbxlibdir} $LIBS"
35683 cat >conftest.$ac_ext <<_ACEOF
35684 /* confdefs.h. */
35685 _ACEOF
35686 cat confdefs.h >>conftest.$ac_ext
35687 cat >>conftest.$ac_ext <<_ACEOF
35688 /* end confdefs.h. */
35690 /* Override any GCC internal prototype to avoid an error.
35691 Use char because int might match the return type of a GCC
35692 builtin and then its argument prototype would still apply. */
35693 #ifdef __cplusplus
35694 extern "C"
35695 #endif
35696 char ${pbxfuncname} ();
35698 main ()
35700 return ${pbxfuncname} ();
35702 return 0;
35704 _ACEOF
35705 rm -f conftest.$ac_objext conftest$ac_exeext
35706 if { (ac_try="$ac_link"
35707 case "(($ac_try" in
35708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709 *) ac_try_echo=$ac_try;;
35710 esac
35711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712 (eval "$ac_link") 2>conftest.er1
35713 ac_status=$?
35714 grep -v '^ *+' conftest.er1 >conftest.err
35715 rm -f conftest.er1
35716 cat conftest.err >&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } && {
35719 test -z "$ac_c_werror_flag" ||
35720 test ! -s conftest.err
35721 } && test -s conftest$ac_exeext &&
35722 $as_test_x conftest$ac_exeext; then
35723 eval "$as_ac_Lib=yes"
35724 else
35725 echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35728 eval "$as_ac_Lib=no"
35731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35732 conftest$ac_exeext conftest.$ac_ext
35733 LIBS=$ac_check_lib_save_LIBS
35735 ac_res=`eval echo '${'$as_ac_Lib'}'`
35736 { echo "$as_me:$LINENO: result: $ac_res" >&5
35737 echo "${ECHO_T}$ac_res" >&6; }
35738 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35739 AST_NEWT_FOUND=yes
35740 else
35741 AST_NEWT_FOUND=no
35746 # now check for the header.
35747 if test "${AST_NEWT_FOUND}" = "yes"; then
35748 NEWT_LIB="${pbxlibdir} -lnewt "
35749 # if --with-NEWT=DIR has been specified, use it.
35750 if test "x${NEWT_DIR}" != "x"; then
35751 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35753 NEWT_INCLUDE="${NEWT_INCLUDE} "
35754 if test "xnewt.h" = "x" ; then # no header, assume found
35755 NEWT_HEADER_FOUND="1"
35756 else # check for the header
35757 saved_cppflags="${CPPFLAGS}"
35758 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35759 if test "${ac_cv_header_newt_h+set}" = set; then
35760 { echo "$as_me:$LINENO: checking for newt.h" >&5
35761 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35762 if test "${ac_cv_header_newt_h+set}" = set; then
35763 echo $ECHO_N "(cached) $ECHO_C" >&6
35765 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35766 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35767 else
35768 # Is the header compilable?
35769 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35770 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35771 cat >conftest.$ac_ext <<_ACEOF
35772 /* confdefs.h. */
35773 _ACEOF
35774 cat confdefs.h >>conftest.$ac_ext
35775 cat >>conftest.$ac_ext <<_ACEOF
35776 /* end confdefs.h. */
35777 $ac_includes_default
35778 #include <newt.h>
35779 _ACEOF
35780 rm -f conftest.$ac_objext
35781 if { (ac_try="$ac_compile"
35782 case "(($ac_try" in
35783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35784 *) ac_try_echo=$ac_try;;
35785 esac
35786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35787 (eval "$ac_compile") 2>conftest.er1
35788 ac_status=$?
35789 grep -v '^ *+' conftest.er1 >conftest.err
35790 rm -f conftest.er1
35791 cat conftest.err >&5
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); } && {
35794 test -z "$ac_c_werror_flag" ||
35795 test ! -s conftest.err
35796 } && test -s conftest.$ac_objext; then
35797 ac_header_compiler=yes
35798 else
35799 echo "$as_me: failed program was:" >&5
35800 sed 's/^/| /' conftest.$ac_ext >&5
35802 ac_header_compiler=no
35805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35807 echo "${ECHO_T}$ac_header_compiler" >&6; }
35809 # Is the header present?
35810 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35811 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35812 cat >conftest.$ac_ext <<_ACEOF
35813 /* confdefs.h. */
35814 _ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h. */
35818 #include <newt.h>
35819 _ACEOF
35820 if { (ac_try="$ac_cpp conftest.$ac_ext"
35821 case "(($ac_try" in
35822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35823 *) ac_try_echo=$ac_try;;
35824 esac
35825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35827 ac_status=$?
35828 grep -v '^ *+' conftest.er1 >conftest.err
35829 rm -f conftest.er1
35830 cat conftest.err >&5
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); } >/dev/null && {
35833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35834 test ! -s conftest.err
35835 }; then
35836 ac_header_preproc=yes
35837 else
35838 echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35841 ac_header_preproc=no
35844 rm -f conftest.err conftest.$ac_ext
35845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35846 echo "${ECHO_T}$ac_header_preproc" >&6; }
35848 # So? What about this header?
35849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35850 yes:no: )
35851 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
35852 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
35854 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
35855 ac_header_preproc=yes
35857 no:yes:* )
35858 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
35859 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
35860 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
35861 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
35862 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
35863 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
35864 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
35865 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
35866 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
35867 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
35868 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
35869 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
35870 ( cat <<\_ASBOX
35871 ## ------------------------------- ##
35872 ## Report this to www.asterisk.org ##
35873 ## ------------------------------- ##
35874 _ASBOX
35875 ) | sed "s/^/$as_me: WARNING: /" >&2
35877 esac
35878 { echo "$as_me:$LINENO: checking for newt.h" >&5
35879 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35880 if test "${ac_cv_header_newt_h+set}" = set; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882 else
35883 ac_cv_header_newt_h=$ac_header_preproc
35885 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35886 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35889 if test $ac_cv_header_newt_h = yes; then
35890 NEWT_HEADER_FOUND=1
35891 else
35892 NEWT_HEADER_FOUND=0
35896 CPPFLAGS="${saved_cppflags}"
35898 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
35899 NEWT_LIB=""
35900 NEWT_INCLUDE=""
35901 else
35902 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35903 NEWT_LIB=""
35905 PBX_NEWT=1
35906 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35908 cat >>confdefs.h <<_ACEOF
35909 #define HAVE_NEWT 1
35910 _ACEOF
35913 cat >>confdefs.h <<_ACEOF
35914 #define HAVE_NEWT_VERSION
35915 _ACEOF
35923 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
35924 pbxlibdir=""
35925 # if --with-UNIXODBC=DIR has been specified, use it.
35926 if test "x${UNIXODBC_DIR}" != "x"; then
35927 if test -d ${UNIXODBC_DIR}/lib; then
35928 pbxlibdir="-L${UNIXODBC_DIR}/lib"
35929 else
35930 pbxlibdir="-L${UNIXODBC_DIR}"
35933 pbxfuncname="SQLConnect"
35934 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35935 AST_UNIXODBC_FOUND=yes
35936 else
35937 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
35938 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
35939 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
35940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35941 echo $ECHO_N "(cached) $ECHO_C" >&6
35942 else
35943 ac_check_lib_save_LIBS=$LIBS
35944 LIBS="-lodbc ${pbxlibdir} $LIBS"
35945 cat >conftest.$ac_ext <<_ACEOF
35946 /* confdefs.h. */
35947 _ACEOF
35948 cat confdefs.h >>conftest.$ac_ext
35949 cat >>conftest.$ac_ext <<_ACEOF
35950 /* end confdefs.h. */
35952 /* Override any GCC internal prototype to avoid an error.
35953 Use char because int might match the return type of a GCC
35954 builtin and then its argument prototype would still apply. */
35955 #ifdef __cplusplus
35956 extern "C"
35957 #endif
35958 char ${pbxfuncname} ();
35960 main ()
35962 return ${pbxfuncname} ();
35964 return 0;
35966 _ACEOF
35967 rm -f conftest.$ac_objext conftest$ac_exeext
35968 if { (ac_try="$ac_link"
35969 case "(($ac_try" in
35970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35971 *) ac_try_echo=$ac_try;;
35972 esac
35973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35974 (eval "$ac_link") 2>conftest.er1
35975 ac_status=$?
35976 grep -v '^ *+' conftest.er1 >conftest.err
35977 rm -f conftest.er1
35978 cat conftest.err >&5
35979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35980 (exit $ac_status); } && {
35981 test -z "$ac_c_werror_flag" ||
35982 test ! -s conftest.err
35983 } && test -s conftest$ac_exeext &&
35984 $as_test_x conftest$ac_exeext; then
35985 eval "$as_ac_Lib=yes"
35986 else
35987 echo "$as_me: failed program was:" >&5
35988 sed 's/^/| /' conftest.$ac_ext >&5
35990 eval "$as_ac_Lib=no"
35993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35994 conftest$ac_exeext conftest.$ac_ext
35995 LIBS=$ac_check_lib_save_LIBS
35997 ac_res=`eval echo '${'$as_ac_Lib'}'`
35998 { echo "$as_me:$LINENO: result: $ac_res" >&5
35999 echo "${ECHO_T}$ac_res" >&6; }
36000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36001 AST_UNIXODBC_FOUND=yes
36002 else
36003 AST_UNIXODBC_FOUND=no
36008 # now check for the header.
36009 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36010 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36011 # if --with-UNIXODBC=DIR has been specified, use it.
36012 if test "x${UNIXODBC_DIR}" != "x"; then
36013 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36015 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36016 if test "xsql.h" = "x" ; then # no header, assume found
36017 UNIXODBC_HEADER_FOUND="1"
36018 else # check for the header
36019 saved_cppflags="${CPPFLAGS}"
36020 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
36021 if test "${ac_cv_header_sql_h+set}" = set; then
36022 { echo "$as_me:$LINENO: checking for sql.h" >&5
36023 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36024 if test "${ac_cv_header_sql_h+set}" = set; then
36025 echo $ECHO_N "(cached) $ECHO_C" >&6
36027 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36028 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36029 else
36030 # Is the header compilable?
36031 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36032 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36033 cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h. */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h. */
36039 $ac_includes_default
36040 #include <sql.h>
36041 _ACEOF
36042 rm -f conftest.$ac_objext
36043 if { (ac_try="$ac_compile"
36044 case "(($ac_try" in
36045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36046 *) ac_try_echo=$ac_try;;
36047 esac
36048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36049 (eval "$ac_compile") 2>conftest.er1
36050 ac_status=$?
36051 grep -v '^ *+' conftest.er1 >conftest.err
36052 rm -f conftest.er1
36053 cat conftest.err >&5
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); } && {
36056 test -z "$ac_c_werror_flag" ||
36057 test ! -s conftest.err
36058 } && test -s conftest.$ac_objext; then
36059 ac_header_compiler=yes
36060 else
36061 echo "$as_me: failed program was:" >&5
36062 sed 's/^/| /' conftest.$ac_ext >&5
36064 ac_header_compiler=no
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36069 echo "${ECHO_T}$ac_header_compiler" >&6; }
36071 # Is the header present?
36072 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36073 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36074 cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h. */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 #include <sql.h>
36081 _ACEOF
36082 if { (ac_try="$ac_cpp conftest.$ac_ext"
36083 case "(($ac_try" in
36084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36085 *) ac_try_echo=$ac_try;;
36086 esac
36087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36089 ac_status=$?
36090 grep -v '^ *+' conftest.er1 >conftest.err
36091 rm -f conftest.er1
36092 cat conftest.err >&5
36093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094 (exit $ac_status); } >/dev/null && {
36095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36096 test ! -s conftest.err
36097 }; then
36098 ac_header_preproc=yes
36099 else
36100 echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36103 ac_header_preproc=no
36106 rm -f conftest.err conftest.$ac_ext
36107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36108 echo "${ECHO_T}$ac_header_preproc" >&6; }
36110 # So? What about this header?
36111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36112 yes:no: )
36113 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36114 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36115 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36116 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36117 ac_header_preproc=yes
36119 no:yes:* )
36120 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36121 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36122 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36123 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36124 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36125 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36126 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36127 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36128 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36129 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36130 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36131 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36132 ( cat <<\_ASBOX
36133 ## ------------------------------- ##
36134 ## Report this to www.asterisk.org ##
36135 ## ------------------------------- ##
36136 _ASBOX
36137 ) | sed "s/^/$as_me: WARNING: /" >&2
36139 esac
36140 { echo "$as_me:$LINENO: checking for sql.h" >&5
36141 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36142 if test "${ac_cv_header_sql_h+set}" = set; then
36143 echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145 ac_cv_header_sql_h=$ac_header_preproc
36147 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36148 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36151 if test $ac_cv_header_sql_h = yes; then
36152 UNIXODBC_HEADER_FOUND=1
36153 else
36154 UNIXODBC_HEADER_FOUND=0
36158 CPPFLAGS="${saved_cppflags}"
36160 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36161 UNIXODBC_LIB=""
36162 UNIXODBC_INCLUDE=""
36163 else
36164 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36165 UNIXODBC_LIB=""
36167 PBX_UNIXODBC=1
36168 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36170 cat >>confdefs.h <<_ACEOF
36171 #define HAVE_UNIXODBC 1
36172 _ACEOF
36175 cat >>confdefs.h <<_ACEOF
36176 #define HAVE_UNIXODBC_VERSION
36177 _ACEOF
36185 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36186 pbxlibdir=""
36187 # if --with-OGG=DIR has been specified, use it.
36188 if test "x${OGG_DIR}" != "x"; then
36189 if test -d ${OGG_DIR}/lib; then
36190 pbxlibdir="-L${OGG_DIR}/lib"
36191 else
36192 pbxlibdir="-L${OGG_DIR}"
36195 pbxfuncname="ogg_sync_init"
36196 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36197 AST_OGG_FOUND=yes
36198 else
36199 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36200 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36201 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36202 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36203 echo $ECHO_N "(cached) $ECHO_C" >&6
36204 else
36205 ac_check_lib_save_LIBS=$LIBS
36206 LIBS="-logg ${pbxlibdir} $LIBS"
36207 cat >conftest.$ac_ext <<_ACEOF
36208 /* confdefs.h. */
36209 _ACEOF
36210 cat confdefs.h >>conftest.$ac_ext
36211 cat >>conftest.$ac_ext <<_ACEOF
36212 /* end confdefs.h. */
36214 /* Override any GCC internal prototype to avoid an error.
36215 Use char because int might match the return type of a GCC
36216 builtin and then its argument prototype would still apply. */
36217 #ifdef __cplusplus
36218 extern "C"
36219 #endif
36220 char ${pbxfuncname} ();
36222 main ()
36224 return ${pbxfuncname} ();
36226 return 0;
36228 _ACEOF
36229 rm -f conftest.$ac_objext conftest$ac_exeext
36230 if { (ac_try="$ac_link"
36231 case "(($ac_try" in
36232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36233 *) ac_try_echo=$ac_try;;
36234 esac
36235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36236 (eval "$ac_link") 2>conftest.er1
36237 ac_status=$?
36238 grep -v '^ *+' conftest.er1 >conftest.err
36239 rm -f conftest.er1
36240 cat conftest.err >&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); } && {
36243 test -z "$ac_c_werror_flag" ||
36244 test ! -s conftest.err
36245 } && test -s conftest$ac_exeext &&
36246 $as_test_x conftest$ac_exeext; then
36247 eval "$as_ac_Lib=yes"
36248 else
36249 echo "$as_me: failed program was:" >&5
36250 sed 's/^/| /' conftest.$ac_ext >&5
36252 eval "$as_ac_Lib=no"
36255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36256 conftest$ac_exeext conftest.$ac_ext
36257 LIBS=$ac_check_lib_save_LIBS
36259 ac_res=`eval echo '${'$as_ac_Lib'}'`
36260 { echo "$as_me:$LINENO: result: $ac_res" >&5
36261 echo "${ECHO_T}$ac_res" >&6; }
36262 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36263 AST_OGG_FOUND=yes
36264 else
36265 AST_OGG_FOUND=no
36270 # now check for the header.
36271 if test "${AST_OGG_FOUND}" = "yes"; then
36272 OGG_LIB="${pbxlibdir} -logg "
36273 # if --with-OGG=DIR has been specified, use it.
36274 if test "x${OGG_DIR}" != "x"; then
36275 OGG_INCLUDE="-I${OGG_DIR}/include"
36277 OGG_INCLUDE="${OGG_INCLUDE} "
36278 if test "x" = "x" ; then # no header, assume found
36279 OGG_HEADER_FOUND="1"
36280 else # check for the header
36281 saved_cppflags="${CPPFLAGS}"
36282 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
36283 if test "${ac_cv_header_+set}" = set; then
36284 { echo "$as_me:$LINENO: checking for " >&5
36285 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36286 if test "${ac_cv_header_+set}" = set; then
36287 echo $ECHO_N "(cached) $ECHO_C" >&6
36289 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36290 echo "${ECHO_T}$ac_cv_header_" >&6; }
36291 else
36292 # Is the header compilable?
36293 { echo "$as_me:$LINENO: checking usability" >&5
36294 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36295 cat >conftest.$ac_ext <<_ACEOF
36296 /* confdefs.h. */
36297 _ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h. */
36301 $ac_includes_default
36302 #include <>
36303 _ACEOF
36304 rm -f conftest.$ac_objext
36305 if { (ac_try="$ac_compile"
36306 case "(($ac_try" in
36307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36308 *) ac_try_echo=$ac_try;;
36309 esac
36310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36311 (eval "$ac_compile") 2>conftest.er1
36312 ac_status=$?
36313 grep -v '^ *+' conftest.er1 >conftest.err
36314 rm -f conftest.er1
36315 cat conftest.err >&5
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); } && {
36318 test -z "$ac_c_werror_flag" ||
36319 test ! -s conftest.err
36320 } && test -s conftest.$ac_objext; then
36321 ac_header_compiler=yes
36322 else
36323 echo "$as_me: failed program was:" >&5
36324 sed 's/^/| /' conftest.$ac_ext >&5
36326 ac_header_compiler=no
36329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36331 echo "${ECHO_T}$ac_header_compiler" >&6; }
36333 # Is the header present?
36334 { echo "$as_me:$LINENO: checking presence" >&5
36335 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36336 cat >conftest.$ac_ext <<_ACEOF
36337 /* confdefs.h. */
36338 _ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342 #include <>
36343 _ACEOF
36344 if { (ac_try="$ac_cpp conftest.$ac_ext"
36345 case "(($ac_try" in
36346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36347 *) ac_try_echo=$ac_try;;
36348 esac
36349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36351 ac_status=$?
36352 grep -v '^ *+' conftest.er1 >conftest.err
36353 rm -f conftest.er1
36354 cat conftest.err >&5
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); } >/dev/null && {
36357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36358 test ! -s conftest.err
36359 }; then
36360 ac_header_preproc=yes
36361 else
36362 echo "$as_me: failed program was:" >&5
36363 sed 's/^/| /' conftest.$ac_ext >&5
36365 ac_header_preproc=no
36368 rm -f conftest.err conftest.$ac_ext
36369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36370 echo "${ECHO_T}$ac_header_preproc" >&6; }
36372 # So? What about this header?
36373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36374 yes:no: )
36375 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36376 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36377 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36378 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36379 ac_header_preproc=yes
36381 no:yes:* )
36382 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36383 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36384 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36385 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36386 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36387 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36388 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36389 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36390 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36391 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36392 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36393 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36394 ( cat <<\_ASBOX
36395 ## ------------------------------- ##
36396 ## Report this to www.asterisk.org ##
36397 ## ------------------------------- ##
36398 _ASBOX
36399 ) | sed "s/^/$as_me: WARNING: /" >&2
36401 esac
36402 { echo "$as_me:$LINENO: checking for " >&5
36403 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36404 if test "${ac_cv_header_+set}" = set; then
36405 echo $ECHO_N "(cached) $ECHO_C" >&6
36406 else
36407 ac_cv_header_=$ac_header_preproc
36409 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36410 echo "${ECHO_T}$ac_cv_header_" >&6; }
36413 if test $ac_cv_header_ = yes; then
36414 OGG_HEADER_FOUND=1
36415 else
36416 OGG_HEADER_FOUND=0
36420 CPPFLAGS="${saved_cppflags}"
36422 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36423 OGG_LIB=""
36424 OGG_INCLUDE=""
36425 else
36426 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36427 OGG_LIB=""
36429 PBX_OGG=1
36430 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36432 cat >>confdefs.h <<_ACEOF
36433 #define HAVE_OGG 1
36434 _ACEOF
36437 cat >>confdefs.h <<_ACEOF
36438 #define HAVE_OGG_VERSION
36439 _ACEOF
36446 # Non-glibc platforms require libexecinfo for backtrace support
36448 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36449 pbxlibdir=""
36450 # if --with-BKTR=DIR has been specified, use it.
36451 if test "x${BKTR_DIR}" != "x"; then
36452 if test -d ${BKTR_DIR}/lib; then
36453 pbxlibdir="-L${BKTR_DIR}/lib"
36454 else
36455 pbxlibdir="-L${BKTR_DIR}"
36458 pbxfuncname="backtrace"
36459 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36460 AST_BKTR_FOUND=yes
36461 else
36462 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36463 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36464 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36465 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36466 echo $ECHO_N "(cached) $ECHO_C" >&6
36467 else
36468 ac_check_lib_save_LIBS=$LIBS
36469 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36470 cat >conftest.$ac_ext <<_ACEOF
36471 /* confdefs.h. */
36472 _ACEOF
36473 cat confdefs.h >>conftest.$ac_ext
36474 cat >>conftest.$ac_ext <<_ACEOF
36475 /* end confdefs.h. */
36477 /* Override any GCC internal prototype to avoid an error.
36478 Use char because int might match the return type of a GCC
36479 builtin and then its argument prototype would still apply. */
36480 #ifdef __cplusplus
36481 extern "C"
36482 #endif
36483 char ${pbxfuncname} ();
36485 main ()
36487 return ${pbxfuncname} ();
36489 return 0;
36491 _ACEOF
36492 rm -f conftest.$ac_objext conftest$ac_exeext
36493 if { (ac_try="$ac_link"
36494 case "(($ac_try" in
36495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36496 *) ac_try_echo=$ac_try;;
36497 esac
36498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36499 (eval "$ac_link") 2>conftest.er1
36500 ac_status=$?
36501 grep -v '^ *+' conftest.er1 >conftest.err
36502 rm -f conftest.er1
36503 cat conftest.err >&5
36504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); } && {
36506 test -z "$ac_c_werror_flag" ||
36507 test ! -s conftest.err
36508 } && test -s conftest$ac_exeext &&
36509 $as_test_x conftest$ac_exeext; then
36510 eval "$as_ac_Lib=yes"
36511 else
36512 echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36515 eval "$as_ac_Lib=no"
36518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36519 conftest$ac_exeext conftest.$ac_ext
36520 LIBS=$ac_check_lib_save_LIBS
36522 ac_res=`eval echo '${'$as_ac_Lib'}'`
36523 { echo "$as_me:$LINENO: result: $ac_res" >&5
36524 echo "${ECHO_T}$ac_res" >&6; }
36525 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36526 AST_BKTR_FOUND=yes
36527 else
36528 AST_BKTR_FOUND=no
36533 # now check for the header.
36534 if test "${AST_BKTR_FOUND}" = "yes"; then
36535 BKTR_LIB="${pbxlibdir} -lexecinfo "
36536 # if --with-BKTR=DIR has been specified, use it.
36537 if test "x${BKTR_DIR}" != "x"; then
36538 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36540 BKTR_INCLUDE="${BKTR_INCLUDE} "
36541 if test "xexecinfo.h" = "x" ; then # no header, assume found
36542 BKTR_HEADER_FOUND="1"
36543 else # check for the header
36544 saved_cppflags="${CPPFLAGS}"
36545 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36546 if test "${ac_cv_header_execinfo_h+set}" = set; then
36547 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36548 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36549 if test "${ac_cv_header_execinfo_h+set}" = set; then
36550 echo $ECHO_N "(cached) $ECHO_C" >&6
36552 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36553 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36554 else
36555 # Is the header compilable?
36556 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36557 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36558 cat >conftest.$ac_ext <<_ACEOF
36559 /* confdefs.h. */
36560 _ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h. */
36564 $ac_includes_default
36565 #include <execinfo.h>
36566 _ACEOF
36567 rm -f conftest.$ac_objext
36568 if { (ac_try="$ac_compile"
36569 case "(($ac_try" in
36570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36571 *) ac_try_echo=$ac_try;;
36572 esac
36573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36574 (eval "$ac_compile") 2>conftest.er1
36575 ac_status=$?
36576 grep -v '^ *+' conftest.er1 >conftest.err
36577 rm -f conftest.er1
36578 cat conftest.err >&5
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); } && {
36581 test -z "$ac_c_werror_flag" ||
36582 test ! -s conftest.err
36583 } && test -s conftest.$ac_objext; then
36584 ac_header_compiler=yes
36585 else
36586 echo "$as_me: failed program was:" >&5
36587 sed 's/^/| /' conftest.$ac_ext >&5
36589 ac_header_compiler=no
36592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36594 echo "${ECHO_T}$ac_header_compiler" >&6; }
36596 # Is the header present?
36597 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36598 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36599 cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h. */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h. */
36605 #include <execinfo.h>
36606 _ACEOF
36607 if { (ac_try="$ac_cpp conftest.$ac_ext"
36608 case "(($ac_try" in
36609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36610 *) ac_try_echo=$ac_try;;
36611 esac
36612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36614 ac_status=$?
36615 grep -v '^ *+' conftest.er1 >conftest.err
36616 rm -f conftest.er1
36617 cat conftest.err >&5
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); } >/dev/null && {
36620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36621 test ! -s conftest.err
36622 }; then
36623 ac_header_preproc=yes
36624 else
36625 echo "$as_me: failed program was:" >&5
36626 sed 's/^/| /' conftest.$ac_ext >&5
36628 ac_header_preproc=no
36631 rm -f conftest.err conftest.$ac_ext
36632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36633 echo "${ECHO_T}$ac_header_preproc" >&6; }
36635 # So? What about this header?
36636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36637 yes:no: )
36638 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36639 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36640 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36641 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36642 ac_header_preproc=yes
36644 no:yes:* )
36645 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36646 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36647 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36648 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36649 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36650 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36651 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36652 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36653 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36654 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36655 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36656 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36657 ( cat <<\_ASBOX
36658 ## ------------------------------- ##
36659 ## Report this to www.asterisk.org ##
36660 ## ------------------------------- ##
36661 _ASBOX
36662 ) | sed "s/^/$as_me: WARNING: /" >&2
36664 esac
36665 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36666 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36667 if test "${ac_cv_header_execinfo_h+set}" = set; then
36668 echo $ECHO_N "(cached) $ECHO_C" >&6
36669 else
36670 ac_cv_header_execinfo_h=$ac_header_preproc
36672 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36673 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36676 if test $ac_cv_header_execinfo_h = yes; then
36677 BKTR_HEADER_FOUND=1
36678 else
36679 BKTR_HEADER_FOUND=0
36683 CPPFLAGS="${saved_cppflags}"
36685 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36686 BKTR_LIB=""
36687 BKTR_INCLUDE=""
36688 else
36689 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36690 BKTR_LIB=""
36692 PBX_BKTR=1
36693 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36695 cat >>confdefs.h <<_ACEOF
36696 #define HAVE_BKTR 1
36697 _ACEOF
36700 cat >>confdefs.h <<_ACEOF
36701 #define HAVE_BKTR_VERSION
36702 _ACEOF
36708 # Linux, however, has backtrace directly in glibc
36710 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36711 pbxlibdir=""
36712 # if --with-BKTR=DIR has been specified, use it.
36713 if test "x${BKTR_DIR}" != "x"; then
36714 if test -d ${BKTR_DIR}/lib; then
36715 pbxlibdir="-L${BKTR_DIR}/lib"
36716 else
36717 pbxlibdir="-L${BKTR_DIR}"
36720 pbxfuncname="backtrace"
36721 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36722 AST_BKTR_FOUND=yes
36723 else
36724 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36725 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36726 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36727 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36728 echo $ECHO_N "(cached) $ECHO_C" >&6
36729 else
36730 ac_check_lib_save_LIBS=$LIBS
36731 LIBS="-lc ${pbxlibdir} $LIBS"
36732 cat >conftest.$ac_ext <<_ACEOF
36733 /* confdefs.h. */
36734 _ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h. */
36739 /* Override any GCC internal prototype to avoid an error.
36740 Use char because int might match the return type of a GCC
36741 builtin and then its argument prototype would still apply. */
36742 #ifdef __cplusplus
36743 extern "C"
36744 #endif
36745 char ${pbxfuncname} ();
36747 main ()
36749 return ${pbxfuncname} ();
36751 return 0;
36753 _ACEOF
36754 rm -f conftest.$ac_objext conftest$ac_exeext
36755 if { (ac_try="$ac_link"
36756 case "(($ac_try" in
36757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36758 *) ac_try_echo=$ac_try;;
36759 esac
36760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36761 (eval "$ac_link") 2>conftest.er1
36762 ac_status=$?
36763 grep -v '^ *+' conftest.er1 >conftest.err
36764 rm -f conftest.er1
36765 cat conftest.err >&5
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); } && {
36768 test -z "$ac_c_werror_flag" ||
36769 test ! -s conftest.err
36770 } && test -s conftest$ac_exeext &&
36771 $as_test_x conftest$ac_exeext; then
36772 eval "$as_ac_Lib=yes"
36773 else
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36777 eval "$as_ac_Lib=no"
36780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36781 conftest$ac_exeext conftest.$ac_ext
36782 LIBS=$ac_check_lib_save_LIBS
36784 ac_res=`eval echo '${'$as_ac_Lib'}'`
36785 { echo "$as_me:$LINENO: result: $ac_res" >&5
36786 echo "${ECHO_T}$ac_res" >&6; }
36787 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36788 AST_BKTR_FOUND=yes
36789 else
36790 AST_BKTR_FOUND=no
36795 # now check for the header.
36796 if test "${AST_BKTR_FOUND}" = "yes"; then
36797 BKTR_LIB="${pbxlibdir} -lc "
36798 # if --with-BKTR=DIR has been specified, use it.
36799 if test "x${BKTR_DIR}" != "x"; then
36800 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36802 BKTR_INCLUDE="${BKTR_INCLUDE} "
36803 if test "xexecinfo.h" = "x" ; then # no header, assume found
36804 BKTR_HEADER_FOUND="1"
36805 else # check for the header
36806 saved_cppflags="${CPPFLAGS}"
36807 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36808 if test "${ac_cv_header_execinfo_h+set}" = set; then
36809 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36810 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36811 if test "${ac_cv_header_execinfo_h+set}" = set; then
36812 echo $ECHO_N "(cached) $ECHO_C" >&6
36814 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36815 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36816 else
36817 # Is the header compilable?
36818 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36819 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36820 cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h. */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h. */
36826 $ac_includes_default
36827 #include <execinfo.h>
36828 _ACEOF
36829 rm -f conftest.$ac_objext
36830 if { (ac_try="$ac_compile"
36831 case "(($ac_try" in
36832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36833 *) ac_try_echo=$ac_try;;
36834 esac
36835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36836 (eval "$ac_compile") 2>conftest.er1
36837 ac_status=$?
36838 grep -v '^ *+' conftest.er1 >conftest.err
36839 rm -f conftest.er1
36840 cat conftest.err >&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); } && {
36843 test -z "$ac_c_werror_flag" ||
36844 test ! -s conftest.err
36845 } && test -s conftest.$ac_objext; then
36846 ac_header_compiler=yes
36847 else
36848 echo "$as_me: failed program was:" >&5
36849 sed 's/^/| /' conftest.$ac_ext >&5
36851 ac_header_compiler=no
36854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36856 echo "${ECHO_T}$ac_header_compiler" >&6; }
36858 # Is the header present?
36859 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36860 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36861 cat >conftest.$ac_ext <<_ACEOF
36862 /* confdefs.h. */
36863 _ACEOF
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h. */
36867 #include <execinfo.h>
36868 _ACEOF
36869 if { (ac_try="$ac_cpp conftest.$ac_ext"
36870 case "(($ac_try" in
36871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36872 *) ac_try_echo=$ac_try;;
36873 esac
36874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36876 ac_status=$?
36877 grep -v '^ *+' conftest.er1 >conftest.err
36878 rm -f conftest.er1
36879 cat conftest.err >&5
36880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36881 (exit $ac_status); } >/dev/null && {
36882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36883 test ! -s conftest.err
36884 }; then
36885 ac_header_preproc=yes
36886 else
36887 echo "$as_me: failed program was:" >&5
36888 sed 's/^/| /' conftest.$ac_ext >&5
36890 ac_header_preproc=no
36893 rm -f conftest.err conftest.$ac_ext
36894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36895 echo "${ECHO_T}$ac_header_preproc" >&6; }
36897 # So? What about this header?
36898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36899 yes:no: )
36900 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36901 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36902 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36903 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36904 ac_header_preproc=yes
36906 no:yes:* )
36907 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36908 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36909 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36910 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36911 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36912 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36913 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36914 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36915 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36916 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36917 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36918 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36919 ( cat <<\_ASBOX
36920 ## ------------------------------- ##
36921 ## Report this to www.asterisk.org ##
36922 ## ------------------------------- ##
36923 _ASBOX
36924 ) | sed "s/^/$as_me: WARNING: /" >&2
36926 esac
36927 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36928 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36929 if test "${ac_cv_header_execinfo_h+set}" = set; then
36930 echo $ECHO_N "(cached) $ECHO_C" >&6
36931 else
36932 ac_cv_header_execinfo_h=$ac_header_preproc
36934 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36935 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36938 if test $ac_cv_header_execinfo_h = yes; then
36939 BKTR_HEADER_FOUND=1
36940 else
36941 BKTR_HEADER_FOUND=0
36945 CPPFLAGS="${saved_cppflags}"
36947 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36948 BKTR_LIB=""
36949 BKTR_INCLUDE=""
36950 else
36951 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36952 BKTR_LIB=""
36954 PBX_BKTR=1
36955 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36957 cat >>confdefs.h <<_ACEOF
36958 #define HAVE_BKTR 1
36959 _ACEOF
36962 cat >>confdefs.h <<_ACEOF
36963 #define HAVE_BKTR_VERSION
36964 _ACEOF
36971 # possible places for oss definitions
36973 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
36974 pbxlibdir=""
36975 # if --with-OSS=DIR has been specified, use it.
36976 if test "x${OSS_DIR}" != "x"; then
36977 if test -d ${OSS_DIR}/lib; then
36978 pbxlibdir="-L${OSS_DIR}/lib"
36979 else
36980 pbxlibdir="-L${OSS_DIR}"
36983 pbxfuncname=""
36984 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36985 AST_OSS_FOUND=yes
36986 else
36987 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
36988 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
36989 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
36990 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36991 echo $ECHO_N "(cached) $ECHO_C" >&6
36992 else
36993 ac_check_lib_save_LIBS=$LIBS
36994 LIBS="-lossaudio ${pbxlibdir} $LIBS"
36995 cat >conftest.$ac_ext <<_ACEOF
36996 /* confdefs.h. */
36997 _ACEOF
36998 cat confdefs.h >>conftest.$ac_ext
36999 cat >>conftest.$ac_ext <<_ACEOF
37000 /* end confdefs.h. */
37002 /* Override any GCC internal prototype to avoid an error.
37003 Use char because int might match the return type of a GCC
37004 builtin and then its argument prototype would still apply. */
37005 #ifdef __cplusplus
37006 extern "C"
37007 #endif
37008 char ${pbxfuncname} ();
37010 main ()
37012 return ${pbxfuncname} ();
37014 return 0;
37016 _ACEOF
37017 rm -f conftest.$ac_objext conftest$ac_exeext
37018 if { (ac_try="$ac_link"
37019 case "(($ac_try" in
37020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37021 *) ac_try_echo=$ac_try;;
37022 esac
37023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37024 (eval "$ac_link") 2>conftest.er1
37025 ac_status=$?
37026 grep -v '^ *+' conftest.er1 >conftest.err
37027 rm -f conftest.er1
37028 cat conftest.err >&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); } && {
37031 test -z "$ac_c_werror_flag" ||
37032 test ! -s conftest.err
37033 } && test -s conftest$ac_exeext &&
37034 $as_test_x conftest$ac_exeext; then
37035 eval "$as_ac_Lib=yes"
37036 else
37037 echo "$as_me: failed program was:" >&5
37038 sed 's/^/| /' conftest.$ac_ext >&5
37040 eval "$as_ac_Lib=no"
37043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37044 conftest$ac_exeext conftest.$ac_ext
37045 LIBS=$ac_check_lib_save_LIBS
37047 ac_res=`eval echo '${'$as_ac_Lib'}'`
37048 { echo "$as_me:$LINENO: result: $ac_res" >&5
37049 echo "${ECHO_T}$ac_res" >&6; }
37050 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37051 AST_OSS_FOUND=yes
37052 else
37053 AST_OSS_FOUND=no
37058 # now check for the header.
37059 if test "${AST_OSS_FOUND}" = "yes"; then
37060 OSS_LIB="${pbxlibdir} -lossaudio "
37061 # if --with-OSS=DIR has been specified, use it.
37062 if test "x${OSS_DIR}" != "x"; then
37063 OSS_INCLUDE="-I${OSS_DIR}/include"
37065 OSS_INCLUDE="${OSS_INCLUDE} "
37066 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37067 OSS_HEADER_FOUND="1"
37068 else # check for the header
37069 saved_cppflags="${CPPFLAGS}"
37070 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37071 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37072 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37073 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37074 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37075 echo $ECHO_N "(cached) $ECHO_C" >&6
37077 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37078 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37079 else
37080 # Is the header compilable?
37081 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37082 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37083 cat >conftest.$ac_ext <<_ACEOF
37084 /* confdefs.h. */
37085 _ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h. */
37089 $ac_includes_default
37090 #include <linux/soundcard.h>
37091 _ACEOF
37092 rm -f conftest.$ac_objext
37093 if { (ac_try="$ac_compile"
37094 case "(($ac_try" in
37095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37096 *) ac_try_echo=$ac_try;;
37097 esac
37098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37099 (eval "$ac_compile") 2>conftest.er1
37100 ac_status=$?
37101 grep -v '^ *+' conftest.er1 >conftest.err
37102 rm -f conftest.er1
37103 cat conftest.err >&5
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); } && {
37106 test -z "$ac_c_werror_flag" ||
37107 test ! -s conftest.err
37108 } && test -s conftest.$ac_objext; then
37109 ac_header_compiler=yes
37110 else
37111 echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.$ac_ext >&5
37114 ac_header_compiler=no
37117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37119 echo "${ECHO_T}$ac_header_compiler" >&6; }
37121 # Is the header present?
37122 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37123 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37124 cat >conftest.$ac_ext <<_ACEOF
37125 /* confdefs.h. */
37126 _ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h. */
37130 #include <linux/soundcard.h>
37131 _ACEOF
37132 if { (ac_try="$ac_cpp conftest.$ac_ext"
37133 case "(($ac_try" in
37134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37135 *) ac_try_echo=$ac_try;;
37136 esac
37137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37139 ac_status=$?
37140 grep -v '^ *+' conftest.er1 >conftest.err
37141 rm -f conftest.er1
37142 cat conftest.err >&5
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); } >/dev/null && {
37145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37146 test ! -s conftest.err
37147 }; then
37148 ac_header_preproc=yes
37149 else
37150 echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37153 ac_header_preproc=no
37156 rm -f conftest.err conftest.$ac_ext
37157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37158 echo "${ECHO_T}$ac_header_preproc" >&6; }
37160 # So? What about this header?
37161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37162 yes:no: )
37163 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37164 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37165 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37166 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37167 ac_header_preproc=yes
37169 no:yes:* )
37170 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37171 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37172 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37173 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37174 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37175 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37176 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37177 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37178 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37179 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37180 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37181 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37182 ( cat <<\_ASBOX
37183 ## ------------------------------- ##
37184 ## Report this to www.asterisk.org ##
37185 ## ------------------------------- ##
37186 _ASBOX
37187 ) | sed "s/^/$as_me: WARNING: /" >&2
37189 esac
37190 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37191 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37192 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37193 echo $ECHO_N "(cached) $ECHO_C" >&6
37194 else
37195 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37197 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37198 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37201 if test $ac_cv_header_linux_soundcard_h = yes; then
37202 OSS_HEADER_FOUND=1
37203 else
37204 OSS_HEADER_FOUND=0
37208 CPPFLAGS="${saved_cppflags}"
37210 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37211 OSS_LIB=""
37212 OSS_INCLUDE=""
37213 else
37214 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37215 OSS_LIB=""
37217 PBX_OSS=1
37218 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37220 cat >>confdefs.h <<_ACEOF
37221 #define HAVE_OSS 1
37222 _ACEOF
37225 cat >>confdefs.h <<_ACEOF
37226 #define HAVE_OSS_VERSION
37227 _ACEOF
37234 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37235 pbxlibdir=""
37236 # if --with-OSS=DIR has been specified, use it.
37237 if test "x${OSS_DIR}" != "x"; then
37238 if test -d ${OSS_DIR}/lib; then
37239 pbxlibdir="-L${OSS_DIR}/lib"
37240 else
37241 pbxlibdir="-L${OSS_DIR}"
37244 pbxfuncname=""
37245 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37246 AST_OSS_FOUND=yes
37247 else
37248 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37249 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37250 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37251 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37252 echo $ECHO_N "(cached) $ECHO_C" >&6
37253 else
37254 ac_check_lib_save_LIBS=$LIBS
37255 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37256 cat >conftest.$ac_ext <<_ACEOF
37257 /* confdefs.h. */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h. */
37263 /* Override any GCC internal prototype to avoid an error.
37264 Use char because int might match the return type of a GCC
37265 builtin and then its argument prototype would still apply. */
37266 #ifdef __cplusplus
37267 extern "C"
37268 #endif
37269 char ${pbxfuncname} ();
37271 main ()
37273 return ${pbxfuncname} ();
37275 return 0;
37277 _ACEOF
37278 rm -f conftest.$ac_objext conftest$ac_exeext
37279 if { (ac_try="$ac_link"
37280 case "(($ac_try" in
37281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37282 *) ac_try_echo=$ac_try;;
37283 esac
37284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37285 (eval "$ac_link") 2>conftest.er1
37286 ac_status=$?
37287 grep -v '^ *+' conftest.er1 >conftest.err
37288 rm -f conftest.er1
37289 cat conftest.err >&5
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); } && {
37292 test -z "$ac_c_werror_flag" ||
37293 test ! -s conftest.err
37294 } && test -s conftest$ac_exeext &&
37295 $as_test_x conftest$ac_exeext; then
37296 eval "$as_ac_Lib=yes"
37297 else
37298 echo "$as_me: failed program was:" >&5
37299 sed 's/^/| /' conftest.$ac_ext >&5
37301 eval "$as_ac_Lib=no"
37304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37305 conftest$ac_exeext conftest.$ac_ext
37306 LIBS=$ac_check_lib_save_LIBS
37308 ac_res=`eval echo '${'$as_ac_Lib'}'`
37309 { echo "$as_me:$LINENO: result: $ac_res" >&5
37310 echo "${ECHO_T}$ac_res" >&6; }
37311 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37312 AST_OSS_FOUND=yes
37313 else
37314 AST_OSS_FOUND=no
37319 # now check for the header.
37320 if test "${AST_OSS_FOUND}" = "yes"; then
37321 OSS_LIB="${pbxlibdir} -lossaudio "
37322 # if --with-OSS=DIR has been specified, use it.
37323 if test "x${OSS_DIR}" != "x"; then
37324 OSS_INCLUDE="-I${OSS_DIR}/include"
37326 OSS_INCLUDE="${OSS_INCLUDE} "
37327 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37328 OSS_HEADER_FOUND="1"
37329 else # check for the header
37330 saved_cppflags="${CPPFLAGS}"
37331 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37332 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37333 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37334 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37335 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37336 echo $ECHO_N "(cached) $ECHO_C" >&6
37338 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37339 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37340 else
37341 # Is the header compilable?
37342 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37343 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37344 cat >conftest.$ac_ext <<_ACEOF
37345 /* confdefs.h. */
37346 _ACEOF
37347 cat confdefs.h >>conftest.$ac_ext
37348 cat >>conftest.$ac_ext <<_ACEOF
37349 /* end confdefs.h. */
37350 $ac_includes_default
37351 #include <sys/soundcard.h>
37352 _ACEOF
37353 rm -f conftest.$ac_objext
37354 if { (ac_try="$ac_compile"
37355 case "(($ac_try" in
37356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37357 *) ac_try_echo=$ac_try;;
37358 esac
37359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37360 (eval "$ac_compile") 2>conftest.er1
37361 ac_status=$?
37362 grep -v '^ *+' conftest.er1 >conftest.err
37363 rm -f conftest.er1
37364 cat conftest.err >&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); } && {
37367 test -z "$ac_c_werror_flag" ||
37368 test ! -s conftest.err
37369 } && test -s conftest.$ac_objext; then
37370 ac_header_compiler=yes
37371 else
37372 echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37375 ac_header_compiler=no
37378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37380 echo "${ECHO_T}$ac_header_compiler" >&6; }
37382 # Is the header present?
37383 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37384 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37385 cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h. */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37391 #include <sys/soundcard.h>
37392 _ACEOF
37393 if { (ac_try="$ac_cpp conftest.$ac_ext"
37394 case "(($ac_try" in
37395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396 *) ac_try_echo=$ac_try;;
37397 esac
37398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37400 ac_status=$?
37401 grep -v '^ *+' conftest.er1 >conftest.err
37402 rm -f conftest.er1
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } >/dev/null && {
37406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37407 test ! -s conftest.err
37408 }; then
37409 ac_header_preproc=yes
37410 else
37411 echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37414 ac_header_preproc=no
37417 rm -f conftest.err conftest.$ac_ext
37418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37419 echo "${ECHO_T}$ac_header_preproc" >&6; }
37421 # So? What about this header?
37422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37423 yes:no: )
37424 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37425 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37426 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37427 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37428 ac_header_preproc=yes
37430 no:yes:* )
37431 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37432 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37433 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37434 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37435 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37436 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37437 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37438 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37439 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37440 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37441 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37442 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37443 ( cat <<\_ASBOX
37444 ## ------------------------------- ##
37445 ## Report this to www.asterisk.org ##
37446 ## ------------------------------- ##
37447 _ASBOX
37448 ) | sed "s/^/$as_me: WARNING: /" >&2
37450 esac
37451 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37452 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37453 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37458 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37459 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37462 if test $ac_cv_header_sys_soundcard_h = yes; then
37463 OSS_HEADER_FOUND=1
37464 else
37465 OSS_HEADER_FOUND=0
37469 CPPFLAGS="${saved_cppflags}"
37471 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37472 OSS_LIB=""
37473 OSS_INCLUDE=""
37474 else
37475 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37476 OSS_LIB=""
37478 PBX_OSS=1
37479 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37481 cat >>confdefs.h <<_ACEOF
37482 #define HAVE_OSS 1
37483 _ACEOF
37486 cat >>confdefs.h <<_ACEOF
37487 #define HAVE_OSS_VERSION
37488 _ACEOF
37495 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37496 pbxlibdir=""
37497 # if --with-OSS=DIR has been specified, use it.
37498 if test "x${OSS_DIR}" != "x"; then
37499 if test -d ${OSS_DIR}/lib; then
37500 pbxlibdir="-L${OSS_DIR}/lib"
37501 else
37502 pbxlibdir="-L${OSS_DIR}"
37505 pbxfuncname="oss_ioctl_mixer"
37506 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37507 AST_OSS_FOUND=yes
37508 else
37509 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37510 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37511 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37512 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37513 echo $ECHO_N "(cached) $ECHO_C" >&6
37514 else
37515 ac_check_lib_save_LIBS=$LIBS
37516 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37517 cat >conftest.$ac_ext <<_ACEOF
37518 /* confdefs.h. */
37519 _ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37524 /* Override any GCC internal prototype to avoid an error.
37525 Use char because int might match the return type of a GCC
37526 builtin and then its argument prototype would still apply. */
37527 #ifdef __cplusplus
37528 extern "C"
37529 #endif
37530 char ${pbxfuncname} ();
37532 main ()
37534 return ${pbxfuncname} ();
37536 return 0;
37538 _ACEOF
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (ac_try="$ac_link"
37541 case "(($ac_try" in
37542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37543 *) ac_try_echo=$ac_try;;
37544 esac
37545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37546 (eval "$ac_link") 2>conftest.er1
37547 ac_status=$?
37548 grep -v '^ *+' conftest.er1 >conftest.err
37549 rm -f conftest.er1
37550 cat conftest.err >&5
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } && {
37553 test -z "$ac_c_werror_flag" ||
37554 test ! -s conftest.err
37555 } && test -s conftest$ac_exeext &&
37556 $as_test_x conftest$ac_exeext; then
37557 eval "$as_ac_Lib=yes"
37558 else
37559 echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37562 eval "$as_ac_Lib=no"
37565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37566 conftest$ac_exeext conftest.$ac_ext
37567 LIBS=$ac_check_lib_save_LIBS
37569 ac_res=`eval echo '${'$as_ac_Lib'}'`
37570 { echo "$as_me:$LINENO: result: $ac_res" >&5
37571 echo "${ECHO_T}$ac_res" >&6; }
37572 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37573 AST_OSS_FOUND=yes
37574 else
37575 AST_OSS_FOUND=no
37580 # now check for the header.
37581 if test "${AST_OSS_FOUND}" = "yes"; then
37582 OSS_LIB="${pbxlibdir} -lossaudio "
37583 # if --with-OSS=DIR has been specified, use it.
37584 if test "x${OSS_DIR}" != "x"; then
37585 OSS_INCLUDE="-I${OSS_DIR}/include"
37587 OSS_INCLUDE="${OSS_INCLUDE} "
37588 if test "xsoundcard.h" = "x" ; then # no header, assume found
37589 OSS_HEADER_FOUND="1"
37590 else # check for the header
37591 saved_cppflags="${CPPFLAGS}"
37592 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37593 if test "${ac_cv_header_soundcard_h+set}" = set; then
37594 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37595 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37596 if test "${ac_cv_header_soundcard_h+set}" = set; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37599 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37600 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37601 else
37602 # Is the header compilable?
37603 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37604 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37605 cat >conftest.$ac_ext <<_ACEOF
37606 /* confdefs.h. */
37607 _ACEOF
37608 cat confdefs.h >>conftest.$ac_ext
37609 cat >>conftest.$ac_ext <<_ACEOF
37610 /* end confdefs.h. */
37611 $ac_includes_default
37612 #include <soundcard.h>
37613 _ACEOF
37614 rm -f conftest.$ac_objext
37615 if { (ac_try="$ac_compile"
37616 case "(($ac_try" in
37617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37618 *) ac_try_echo=$ac_try;;
37619 esac
37620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37621 (eval "$ac_compile") 2>conftest.er1
37622 ac_status=$?
37623 grep -v '^ *+' conftest.er1 >conftest.err
37624 rm -f conftest.er1
37625 cat conftest.err >&5
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); } && {
37628 test -z "$ac_c_werror_flag" ||
37629 test ! -s conftest.err
37630 } && test -s conftest.$ac_objext; then
37631 ac_header_compiler=yes
37632 else
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37636 ac_header_compiler=no
37639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37641 echo "${ECHO_T}$ac_header_compiler" >&6; }
37643 # Is the header present?
37644 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37645 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37646 cat >conftest.$ac_ext <<_ACEOF
37647 /* confdefs.h. */
37648 _ACEOF
37649 cat confdefs.h >>conftest.$ac_ext
37650 cat >>conftest.$ac_ext <<_ACEOF
37651 /* end confdefs.h. */
37652 #include <soundcard.h>
37653 _ACEOF
37654 if { (ac_try="$ac_cpp conftest.$ac_ext"
37655 case "(($ac_try" in
37656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37657 *) ac_try_echo=$ac_try;;
37658 esac
37659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37661 ac_status=$?
37662 grep -v '^ *+' conftest.er1 >conftest.err
37663 rm -f conftest.er1
37664 cat conftest.err >&5
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } >/dev/null && {
37667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37668 test ! -s conftest.err
37669 }; then
37670 ac_header_preproc=yes
37671 else
37672 echo "$as_me: failed program was:" >&5
37673 sed 's/^/| /' conftest.$ac_ext >&5
37675 ac_header_preproc=no
37678 rm -f conftest.err conftest.$ac_ext
37679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37680 echo "${ECHO_T}$ac_header_preproc" >&6; }
37682 # So? What about this header?
37683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37684 yes:no: )
37685 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37686 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37687 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37688 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37689 ac_header_preproc=yes
37691 no:yes:* )
37692 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37693 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37694 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37695 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37696 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37697 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37698 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37699 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37700 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37701 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37702 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37703 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37704 ( cat <<\_ASBOX
37705 ## ------------------------------- ##
37706 ## Report this to www.asterisk.org ##
37707 ## ------------------------------- ##
37708 _ASBOX
37709 ) | sed "s/^/$as_me: WARNING: /" >&2
37711 esac
37712 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37713 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37714 if test "${ac_cv_header_soundcard_h+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37716 else
37717 ac_cv_header_soundcard_h=$ac_header_preproc
37719 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37720 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37723 if test $ac_cv_header_soundcard_h = yes; then
37724 OSS_HEADER_FOUND=1
37725 else
37726 OSS_HEADER_FOUND=0
37730 CPPFLAGS="${saved_cppflags}"
37732 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37733 OSS_LIB=""
37734 OSS_INCLUDE=""
37735 else
37736 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37737 OSS_LIB=""
37739 PBX_OSS=1
37740 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37742 cat >>confdefs.h <<_ACEOF
37743 #define HAVE_OSS 1
37744 _ACEOF
37747 cat >>confdefs.h <<_ACEOF
37748 #define HAVE_OSS_VERSION
37749 _ACEOF
37756 PG_CONFIG=No
37757 if test "${USE_PGSQL}" != "no"; then
37758 if test "x${PGSQL_DIR}" != "x"; then
37759 if test -n "$ac_tool_prefix"; then
37760 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37761 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37764 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37765 echo $ECHO_N "(cached) $ECHO_C" >&6
37766 else
37767 case $PG_CONFIG in
37768 [\\/]* | ?:[\\/]*)
37769 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37773 for as_dir in ${PGSQL_DIR}/bin
37775 IFS=$as_save_IFS
37776 test -z "$as_dir" && as_dir=.
37777 for ac_exec_ext in '' $ac_executable_extensions; do
37778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37779 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37781 break 2
37783 done
37784 done
37785 IFS=$as_save_IFS
37788 esac
37790 PG_CONFIG=$ac_cv_path_PG_CONFIG
37791 if test -n "$PG_CONFIG"; then
37792 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37793 echo "${ECHO_T}$PG_CONFIG" >&6; }
37794 else
37795 { echo "$as_me:$LINENO: result: no" >&5
37796 echo "${ECHO_T}no" >&6; }
37801 if test -z "$ac_cv_path_PG_CONFIG"; then
37802 ac_pt_PG_CONFIG=$PG_CONFIG
37803 # Extract the first word of "pg_config", so it can be a program name with args.
37804 set dummy pg_config; ac_word=$2
37805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37807 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37808 echo $ECHO_N "(cached) $ECHO_C" >&6
37809 else
37810 case $ac_pt_PG_CONFIG in
37811 [\\/]* | ?:[\\/]*)
37812 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37816 for as_dir in ${PGSQL_DIR}/bin
37818 IFS=$as_save_IFS
37819 test -z "$as_dir" && as_dir=.
37820 for ac_exec_ext in '' $ac_executable_extensions; do
37821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37822 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37824 break 2
37826 done
37827 done
37828 IFS=$as_save_IFS
37831 esac
37833 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37834 if test -n "$ac_pt_PG_CONFIG"; then
37835 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37836 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37837 else
37838 { echo "$as_me:$LINENO: result: no" >&5
37839 echo "${ECHO_T}no" >&6; }
37842 if test "x$ac_pt_PG_CONFIG" = x; then
37843 PG_CONFIG="No"
37844 else
37845 case $cross_compiling:$ac_tool_warned in
37846 yes:)
37847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37848 whose name does not start with the host triplet. If you think this
37849 configuration is useful to you, please write to autoconf@gnu.org." >&5
37850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37851 whose name does not start with the host triplet. If you think this
37852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37853 ac_tool_warned=yes ;;
37854 esac
37855 PG_CONFIG=$ac_pt_PG_CONFIG
37857 else
37858 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37861 if test x"${PG_CONFIG}" = xNo; then
37862 { echo "$as_me:$LINENO: ***" >&5
37863 echo "$as_me: ***" >&6;}
37864 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
37865 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
37866 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
37867 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
37868 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37869 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37870 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37871 echo "$as_me: *** including --without-postgres" >&6;}
37872 exit 1
37874 else
37875 if test -n "$ac_tool_prefix"; then
37876 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37877 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37880 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37883 case $PG_CONFIG in
37884 [\\/]* | ?:[\\/]*)
37885 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37889 for as_dir in $PATH
37891 IFS=$as_save_IFS
37892 test -z "$as_dir" && as_dir=.
37893 for ac_exec_ext in '' $ac_executable_extensions; do
37894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37895 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37897 break 2
37899 done
37900 done
37901 IFS=$as_save_IFS
37904 esac
37906 PG_CONFIG=$ac_cv_path_PG_CONFIG
37907 if test -n "$PG_CONFIG"; then
37908 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37909 echo "${ECHO_T}$PG_CONFIG" >&6; }
37910 else
37911 { echo "$as_me:$LINENO: result: no" >&5
37912 echo "${ECHO_T}no" >&6; }
37917 if test -z "$ac_cv_path_PG_CONFIG"; then
37918 ac_pt_PG_CONFIG=$PG_CONFIG
37919 # Extract the first word of "pg_config", so it can be a program name with args.
37920 set dummy pg_config; ac_word=$2
37921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37923 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37924 echo $ECHO_N "(cached) $ECHO_C" >&6
37925 else
37926 case $ac_pt_PG_CONFIG in
37927 [\\/]* | ?:[\\/]*)
37928 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37932 for as_dir in $PATH
37934 IFS=$as_save_IFS
37935 test -z "$as_dir" && as_dir=.
37936 for ac_exec_ext in '' $ac_executable_extensions; do
37937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37938 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37940 break 2
37942 done
37943 done
37944 IFS=$as_save_IFS
37947 esac
37949 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37950 if test -n "$ac_pt_PG_CONFIG"; then
37951 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37952 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37953 else
37954 { echo "$as_me:$LINENO: result: no" >&5
37955 echo "${ECHO_T}no" >&6; }
37958 if test "x$ac_pt_PG_CONFIG" = x; then
37959 PG_CONFIG="No"
37960 else
37961 case $cross_compiling:$ac_tool_warned in
37962 yes:)
37963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37964 whose name does not start with the host triplet. If you think this
37965 configuration is useful to you, please write to autoconf@gnu.org." >&5
37966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37967 whose name does not start with the host triplet. If you think this
37968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37969 ac_tool_warned=yes ;;
37970 esac
37971 PG_CONFIG=$ac_pt_PG_CONFIG
37973 else
37974 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37979 if test "${PG_CONFIG}" != No; then
37980 PGSQL_libdir=`${PG_CONFIG} --libdir`
37981 PGSQL_includedir=`${PG_CONFIG} --includedir`
37982 if test "x$?" != "x0" ; then
37983 if test -n "${PGSQL_MANDATORY}" ; then
37984 { echo "$as_me:$LINENO: ***" >&5
37985 echo "$as_me: ***" >&6;}
37986 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
37987 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
37988 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37989 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37990 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37991 echo "$as_me: *** including --without-postgres" >&6;}
37992 exit 1
37994 else
37995 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
37996 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
37997 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
37998 echo $ECHO_N "(cached) $ECHO_C" >&6
37999 else
38000 ac_check_lib_save_LIBS=$LIBS
38001 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38002 cat >conftest.$ac_ext <<_ACEOF
38003 /* confdefs.h. */
38004 _ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h. */
38009 /* Override any GCC internal prototype to avoid an error.
38010 Use char because int might match the return type of a GCC
38011 builtin and then its argument prototype would still apply. */
38012 #ifdef __cplusplus
38013 extern "C"
38014 #endif
38015 char PQescapeStringConn ();
38017 main ()
38019 return PQescapeStringConn ();
38021 return 0;
38023 _ACEOF
38024 rm -f conftest.$ac_objext conftest$ac_exeext
38025 if { (ac_try="$ac_link"
38026 case "(($ac_try" in
38027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38028 *) ac_try_echo=$ac_try;;
38029 esac
38030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38031 (eval "$ac_link") 2>conftest.er1
38032 ac_status=$?
38033 grep -v '^ *+' conftest.er1 >conftest.err
38034 rm -f conftest.er1
38035 cat conftest.err >&5
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } && {
38038 test -z "$ac_c_werror_flag" ||
38039 test ! -s conftest.err
38040 } && test -s conftest$ac_exeext &&
38041 $as_test_x conftest$ac_exeext; then
38042 ac_cv_lib_pq_PQescapeStringConn=yes
38043 else
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38047 ac_cv_lib_pq_PQescapeStringConn=no
38050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38051 conftest$ac_exeext conftest.$ac_ext
38052 LIBS=$ac_check_lib_save_LIBS
38054 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38055 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38056 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38058 cat >>confdefs.h <<_ACEOF
38059 #define HAVE_PGSQL 1
38060 _ACEOF
38065 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38066 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38067 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38068 PBX_PGSQL=1
38069 elif test -n "${PGSQL_MANDATORY}";
38070 then
38071 { echo "$as_me:$LINENO: ***" >&5
38072 echo "$as_me: ***" >&6;}
38073 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38074 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38075 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38076 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38077 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38078 echo "$as_me: *** including --without-postgres" >&6;}
38079 exit 1
38085 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38086 pbxlibdir=""
38087 # if --with-POPT=DIR has been specified, use it.
38088 if test "x${POPT_DIR}" != "x"; then
38089 if test -d ${POPT_DIR}/lib; then
38090 pbxlibdir="-L${POPT_DIR}/lib"
38091 else
38092 pbxlibdir="-L${POPT_DIR}"
38095 pbxfuncname="poptStrerror"
38096 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38097 AST_POPT_FOUND=yes
38098 else
38099 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38100 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38101 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38102 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38103 echo $ECHO_N "(cached) $ECHO_C" >&6
38104 else
38105 ac_check_lib_save_LIBS=$LIBS
38106 LIBS="-lpopt ${pbxlibdir} $LIBS"
38107 cat >conftest.$ac_ext <<_ACEOF
38108 /* confdefs.h. */
38109 _ACEOF
38110 cat confdefs.h >>conftest.$ac_ext
38111 cat >>conftest.$ac_ext <<_ACEOF
38112 /* end confdefs.h. */
38114 /* Override any GCC internal prototype to avoid an error.
38115 Use char because int might match the return type of a GCC
38116 builtin and then its argument prototype would still apply. */
38117 #ifdef __cplusplus
38118 extern "C"
38119 #endif
38120 char ${pbxfuncname} ();
38122 main ()
38124 return ${pbxfuncname} ();
38126 return 0;
38128 _ACEOF
38129 rm -f conftest.$ac_objext conftest$ac_exeext
38130 if { (ac_try="$ac_link"
38131 case "(($ac_try" in
38132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38133 *) ac_try_echo=$ac_try;;
38134 esac
38135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38136 (eval "$ac_link") 2>conftest.er1
38137 ac_status=$?
38138 grep -v '^ *+' conftest.er1 >conftest.err
38139 rm -f conftest.er1
38140 cat conftest.err >&5
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); } && {
38143 test -z "$ac_c_werror_flag" ||
38144 test ! -s conftest.err
38145 } && test -s conftest$ac_exeext &&
38146 $as_test_x conftest$ac_exeext; then
38147 eval "$as_ac_Lib=yes"
38148 else
38149 echo "$as_me: failed program was:" >&5
38150 sed 's/^/| /' conftest.$ac_ext >&5
38152 eval "$as_ac_Lib=no"
38155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38156 conftest$ac_exeext conftest.$ac_ext
38157 LIBS=$ac_check_lib_save_LIBS
38159 ac_res=`eval echo '${'$as_ac_Lib'}'`
38160 { echo "$as_me:$LINENO: result: $ac_res" >&5
38161 echo "${ECHO_T}$ac_res" >&6; }
38162 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38163 AST_POPT_FOUND=yes
38164 else
38165 AST_POPT_FOUND=no
38170 # now check for the header.
38171 if test "${AST_POPT_FOUND}" = "yes"; then
38172 POPT_LIB="${pbxlibdir} -lpopt "
38173 # if --with-POPT=DIR has been specified, use it.
38174 if test "x${POPT_DIR}" != "x"; then
38175 POPT_INCLUDE="-I${POPT_DIR}/include"
38177 POPT_INCLUDE="${POPT_INCLUDE} "
38178 if test "xpopt.h" = "x" ; then # no header, assume found
38179 POPT_HEADER_FOUND="1"
38180 else # check for the header
38181 saved_cppflags="${CPPFLAGS}"
38182 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
38183 if test "${ac_cv_header_popt_h+set}" = set; then
38184 { echo "$as_me:$LINENO: checking for popt.h" >&5
38185 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38186 if test "${ac_cv_header_popt_h+set}" = set; then
38187 echo $ECHO_N "(cached) $ECHO_C" >&6
38189 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38190 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38191 else
38192 # Is the header compilable?
38193 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38194 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38195 cat >conftest.$ac_ext <<_ACEOF
38196 /* confdefs.h. */
38197 _ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38201 $ac_includes_default
38202 #include <popt.h>
38203 _ACEOF
38204 rm -f conftest.$ac_objext
38205 if { (ac_try="$ac_compile"
38206 case "(($ac_try" in
38207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208 *) ac_try_echo=$ac_try;;
38209 esac
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211 (eval "$ac_compile") 2>conftest.er1
38212 ac_status=$?
38213 grep -v '^ *+' conftest.er1 >conftest.err
38214 rm -f conftest.er1
38215 cat conftest.err >&5
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); } && {
38218 test -z "$ac_c_werror_flag" ||
38219 test ! -s conftest.err
38220 } && test -s conftest.$ac_objext; then
38221 ac_header_compiler=yes
38222 else
38223 echo "$as_me: failed program was:" >&5
38224 sed 's/^/| /' conftest.$ac_ext >&5
38226 ac_header_compiler=no
38229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38231 echo "${ECHO_T}$ac_header_compiler" >&6; }
38233 # Is the header present?
38234 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38235 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38236 cat >conftest.$ac_ext <<_ACEOF
38237 /* confdefs.h. */
38238 _ACEOF
38239 cat confdefs.h >>conftest.$ac_ext
38240 cat >>conftest.$ac_ext <<_ACEOF
38241 /* end confdefs.h. */
38242 #include <popt.h>
38243 _ACEOF
38244 if { (ac_try="$ac_cpp conftest.$ac_ext"
38245 case "(($ac_try" in
38246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38247 *) ac_try_echo=$ac_try;;
38248 esac
38249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38251 ac_status=$?
38252 grep -v '^ *+' conftest.er1 >conftest.err
38253 rm -f conftest.er1
38254 cat conftest.err >&5
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); } >/dev/null && {
38257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38258 test ! -s conftest.err
38259 }; then
38260 ac_header_preproc=yes
38261 else
38262 echo "$as_me: failed program was:" >&5
38263 sed 's/^/| /' conftest.$ac_ext >&5
38265 ac_header_preproc=no
38268 rm -f conftest.err conftest.$ac_ext
38269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38270 echo "${ECHO_T}$ac_header_preproc" >&6; }
38272 # So? What about this header?
38273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38274 yes:no: )
38275 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38276 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38277 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38278 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38279 ac_header_preproc=yes
38281 no:yes:* )
38282 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38283 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38284 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38285 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38286 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38287 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38288 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38289 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38290 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38291 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38292 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38293 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38294 ( cat <<\_ASBOX
38295 ## ------------------------------- ##
38296 ## Report this to www.asterisk.org ##
38297 ## ------------------------------- ##
38298 _ASBOX
38299 ) | sed "s/^/$as_me: WARNING: /" >&2
38301 esac
38302 { echo "$as_me:$LINENO: checking for popt.h" >&5
38303 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38304 if test "${ac_cv_header_popt_h+set}" = set; then
38305 echo $ECHO_N "(cached) $ECHO_C" >&6
38306 else
38307 ac_cv_header_popt_h=$ac_header_preproc
38309 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38310 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38313 if test $ac_cv_header_popt_h = yes; then
38314 POPT_HEADER_FOUND=1
38315 else
38316 POPT_HEADER_FOUND=0
38320 CPPFLAGS="${saved_cppflags}"
38322 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38323 POPT_LIB=""
38324 POPT_INCLUDE=""
38325 else
38326 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38327 POPT_LIB=""
38329 PBX_POPT=1
38330 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38332 cat >>confdefs.h <<_ACEOF
38333 #define HAVE_POPT 1
38334 _ACEOF
38337 cat >>confdefs.h <<_ACEOF
38338 #define HAVE_POPT_VERSION
38339 _ACEOF
38347 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38348 pbxlibdir=""
38349 # if --with-PORTAUDIO=DIR has been specified, use it.
38350 if test "x${PORTAUDIO_DIR}" != "x"; then
38351 if test -d ${PORTAUDIO_DIR}/lib; then
38352 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38353 else
38354 pbxlibdir="-L${PORTAUDIO_DIR}"
38357 pbxfuncname="Pa_GetDeviceCount"
38358 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38359 AST_PORTAUDIO_FOUND=yes
38360 else
38361 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38362 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38363 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38364 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38365 echo $ECHO_N "(cached) $ECHO_C" >&6
38366 else
38367 ac_check_lib_save_LIBS=$LIBS
38368 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38369 cat >conftest.$ac_ext <<_ACEOF
38370 /* confdefs.h. */
38371 _ACEOF
38372 cat confdefs.h >>conftest.$ac_ext
38373 cat >>conftest.$ac_ext <<_ACEOF
38374 /* end confdefs.h. */
38376 /* Override any GCC internal prototype to avoid an error.
38377 Use char because int might match the return type of a GCC
38378 builtin and then its argument prototype would still apply. */
38379 #ifdef __cplusplus
38380 extern "C"
38381 #endif
38382 char ${pbxfuncname} ();
38384 main ()
38386 return ${pbxfuncname} ();
38388 return 0;
38390 _ACEOF
38391 rm -f conftest.$ac_objext conftest$ac_exeext
38392 if { (ac_try="$ac_link"
38393 case "(($ac_try" in
38394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38395 *) ac_try_echo=$ac_try;;
38396 esac
38397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38398 (eval "$ac_link") 2>conftest.er1
38399 ac_status=$?
38400 grep -v '^ *+' conftest.er1 >conftest.err
38401 rm -f conftest.er1
38402 cat conftest.err >&5
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); } && {
38405 test -z "$ac_c_werror_flag" ||
38406 test ! -s conftest.err
38407 } && test -s conftest$ac_exeext &&
38408 $as_test_x conftest$ac_exeext; then
38409 eval "$as_ac_Lib=yes"
38410 else
38411 echo "$as_me: failed program was:" >&5
38412 sed 's/^/| /' conftest.$ac_ext >&5
38414 eval "$as_ac_Lib=no"
38417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38418 conftest$ac_exeext conftest.$ac_ext
38419 LIBS=$ac_check_lib_save_LIBS
38421 ac_res=`eval echo '${'$as_ac_Lib'}'`
38422 { echo "$as_me:$LINENO: result: $ac_res" >&5
38423 echo "${ECHO_T}$ac_res" >&6; }
38424 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38425 AST_PORTAUDIO_FOUND=yes
38426 else
38427 AST_PORTAUDIO_FOUND=no
38432 # now check for the header.
38433 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38434 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38435 # if --with-PORTAUDIO=DIR has been specified, use it.
38436 if test "x${PORTAUDIO_DIR}" != "x"; then
38437 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38439 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38440 if test "xportaudio.h" = "x" ; then # no header, assume found
38441 PORTAUDIO_HEADER_FOUND="1"
38442 else # check for the header
38443 saved_cppflags="${CPPFLAGS}"
38444 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38445 if test "${ac_cv_header_portaudio_h+set}" = set; then
38446 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38447 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38448 if test "${ac_cv_header_portaudio_h+set}" = set; then
38449 echo $ECHO_N "(cached) $ECHO_C" >&6
38451 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38452 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38453 else
38454 # Is the header compilable?
38455 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38456 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38457 cat >conftest.$ac_ext <<_ACEOF
38458 /* confdefs.h. */
38459 _ACEOF
38460 cat confdefs.h >>conftest.$ac_ext
38461 cat >>conftest.$ac_ext <<_ACEOF
38462 /* end confdefs.h. */
38463 $ac_includes_default
38464 #include <portaudio.h>
38465 _ACEOF
38466 rm -f conftest.$ac_objext
38467 if { (ac_try="$ac_compile"
38468 case "(($ac_try" in
38469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38470 *) ac_try_echo=$ac_try;;
38471 esac
38472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38473 (eval "$ac_compile") 2>conftest.er1
38474 ac_status=$?
38475 grep -v '^ *+' conftest.er1 >conftest.err
38476 rm -f conftest.er1
38477 cat conftest.err >&5
38478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479 (exit $ac_status); } && {
38480 test -z "$ac_c_werror_flag" ||
38481 test ! -s conftest.err
38482 } && test -s conftest.$ac_objext; then
38483 ac_header_compiler=yes
38484 else
38485 echo "$as_me: failed program was:" >&5
38486 sed 's/^/| /' conftest.$ac_ext >&5
38488 ac_header_compiler=no
38491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38493 echo "${ECHO_T}$ac_header_compiler" >&6; }
38495 # Is the header present?
38496 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38497 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38498 cat >conftest.$ac_ext <<_ACEOF
38499 /* confdefs.h. */
38500 _ACEOF
38501 cat confdefs.h >>conftest.$ac_ext
38502 cat >>conftest.$ac_ext <<_ACEOF
38503 /* end confdefs.h. */
38504 #include <portaudio.h>
38505 _ACEOF
38506 if { (ac_try="$ac_cpp conftest.$ac_ext"
38507 case "(($ac_try" in
38508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38509 *) ac_try_echo=$ac_try;;
38510 esac
38511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38513 ac_status=$?
38514 grep -v '^ *+' conftest.er1 >conftest.err
38515 rm -f conftest.er1
38516 cat conftest.err >&5
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); } >/dev/null && {
38519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38520 test ! -s conftest.err
38521 }; then
38522 ac_header_preproc=yes
38523 else
38524 echo "$as_me: failed program was:" >&5
38525 sed 's/^/| /' conftest.$ac_ext >&5
38527 ac_header_preproc=no
38530 rm -f conftest.err conftest.$ac_ext
38531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38532 echo "${ECHO_T}$ac_header_preproc" >&6; }
38534 # So? What about this header?
38535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38536 yes:no: )
38537 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38538 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38539 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38540 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38541 ac_header_preproc=yes
38543 no:yes:* )
38544 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38545 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38546 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38547 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38548 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38549 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38550 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38551 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38552 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38553 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38554 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38555 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38556 ( cat <<\_ASBOX
38557 ## ------------------------------- ##
38558 ## Report this to www.asterisk.org ##
38559 ## ------------------------------- ##
38560 _ASBOX
38561 ) | sed "s/^/$as_me: WARNING: /" >&2
38563 esac
38564 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38565 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38566 if test "${ac_cv_header_portaudio_h+set}" = set; then
38567 echo $ECHO_N "(cached) $ECHO_C" >&6
38568 else
38569 ac_cv_header_portaudio_h=$ac_header_preproc
38571 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38572 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38575 if test $ac_cv_header_portaudio_h = yes; then
38576 PORTAUDIO_HEADER_FOUND=1
38577 else
38578 PORTAUDIO_HEADER_FOUND=0
38582 CPPFLAGS="${saved_cppflags}"
38584 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38585 PORTAUDIO_LIB=""
38586 PORTAUDIO_INCLUDE=""
38587 else
38588 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38589 PORTAUDIO_LIB=""
38591 PBX_PORTAUDIO=1
38592 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38594 cat >>confdefs.h <<_ACEOF
38595 #define HAVE_PORTAUDIO 1
38596 _ACEOF
38599 cat >>confdefs.h <<_ACEOF
38600 #define HAVE_PORTAUDIO_VERSION
38601 _ACEOF
38609 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38610 pbxlibdir=""
38611 # if --with-PRI=DIR has been specified, use it.
38612 if test "x${PRI_DIR}" != "x"; then
38613 if test -d ${PRI_DIR}/lib; then
38614 pbxlibdir="-L${PRI_DIR}/lib"
38615 else
38616 pbxlibdir="-L${PRI_DIR}"
38619 pbxfuncname="pri_get_version"
38620 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38621 AST_PRI_FOUND=yes
38622 else
38623 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38624 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38625 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38626 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38627 echo $ECHO_N "(cached) $ECHO_C" >&6
38628 else
38629 ac_check_lib_save_LIBS=$LIBS
38630 LIBS="-lpri ${pbxlibdir} $LIBS"
38631 cat >conftest.$ac_ext <<_ACEOF
38632 /* confdefs.h. */
38633 _ACEOF
38634 cat confdefs.h >>conftest.$ac_ext
38635 cat >>conftest.$ac_ext <<_ACEOF
38636 /* end confdefs.h. */
38638 /* Override any GCC internal prototype to avoid an error.
38639 Use char because int might match the return type of a GCC
38640 builtin and then its argument prototype would still apply. */
38641 #ifdef __cplusplus
38642 extern "C"
38643 #endif
38644 char ${pbxfuncname} ();
38646 main ()
38648 return ${pbxfuncname} ();
38650 return 0;
38652 _ACEOF
38653 rm -f conftest.$ac_objext conftest$ac_exeext
38654 if { (ac_try="$ac_link"
38655 case "(($ac_try" in
38656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38657 *) ac_try_echo=$ac_try;;
38658 esac
38659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38660 (eval "$ac_link") 2>conftest.er1
38661 ac_status=$?
38662 grep -v '^ *+' conftest.er1 >conftest.err
38663 rm -f conftest.er1
38664 cat conftest.err >&5
38665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666 (exit $ac_status); } && {
38667 test -z "$ac_c_werror_flag" ||
38668 test ! -s conftest.err
38669 } && test -s conftest$ac_exeext &&
38670 $as_test_x conftest$ac_exeext; then
38671 eval "$as_ac_Lib=yes"
38672 else
38673 echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38676 eval "$as_ac_Lib=no"
38679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38680 conftest$ac_exeext conftest.$ac_ext
38681 LIBS=$ac_check_lib_save_LIBS
38683 ac_res=`eval echo '${'$as_ac_Lib'}'`
38684 { echo "$as_me:$LINENO: result: $ac_res" >&5
38685 echo "${ECHO_T}$ac_res" >&6; }
38686 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38687 AST_PRI_FOUND=yes
38688 else
38689 AST_PRI_FOUND=no
38694 # now check for the header.
38695 if test "${AST_PRI_FOUND}" = "yes"; then
38696 PRI_LIB="${pbxlibdir} -lpri "
38697 # if --with-PRI=DIR has been specified, use it.
38698 if test "x${PRI_DIR}" != "x"; then
38699 PRI_INCLUDE="-I${PRI_DIR}/include"
38701 PRI_INCLUDE="${PRI_INCLUDE} "
38702 if test "xlibpri.h" = "x" ; then # no header, assume found
38703 PRI_HEADER_FOUND="1"
38704 else # check for the header
38705 saved_cppflags="${CPPFLAGS}"
38706 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38707 if test "${ac_cv_header_libpri_h+set}" = set; then
38708 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38709 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38710 if test "${ac_cv_header_libpri_h+set}" = set; then
38711 echo $ECHO_N "(cached) $ECHO_C" >&6
38713 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38714 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38715 else
38716 # Is the header compilable?
38717 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38718 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38719 cat >conftest.$ac_ext <<_ACEOF
38720 /* confdefs.h. */
38721 _ACEOF
38722 cat confdefs.h >>conftest.$ac_ext
38723 cat >>conftest.$ac_ext <<_ACEOF
38724 /* end confdefs.h. */
38725 $ac_includes_default
38726 #include <libpri.h>
38727 _ACEOF
38728 rm -f conftest.$ac_objext
38729 if { (ac_try="$ac_compile"
38730 case "(($ac_try" in
38731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38732 *) ac_try_echo=$ac_try;;
38733 esac
38734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38735 (eval "$ac_compile") 2>conftest.er1
38736 ac_status=$?
38737 grep -v '^ *+' conftest.er1 >conftest.err
38738 rm -f conftest.er1
38739 cat conftest.err >&5
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); } && {
38742 test -z "$ac_c_werror_flag" ||
38743 test ! -s conftest.err
38744 } && test -s conftest.$ac_objext; then
38745 ac_header_compiler=yes
38746 else
38747 echo "$as_me: failed program was:" >&5
38748 sed 's/^/| /' conftest.$ac_ext >&5
38750 ac_header_compiler=no
38753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38755 echo "${ECHO_T}$ac_header_compiler" >&6; }
38757 # Is the header present?
38758 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38759 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38760 cat >conftest.$ac_ext <<_ACEOF
38761 /* confdefs.h. */
38762 _ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h. */
38766 #include <libpri.h>
38767 _ACEOF
38768 if { (ac_try="$ac_cpp conftest.$ac_ext"
38769 case "(($ac_try" in
38770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771 *) ac_try_echo=$ac_try;;
38772 esac
38773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38775 ac_status=$?
38776 grep -v '^ *+' conftest.er1 >conftest.err
38777 rm -f conftest.er1
38778 cat conftest.err >&5
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); } >/dev/null && {
38781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38782 test ! -s conftest.err
38783 }; then
38784 ac_header_preproc=yes
38785 else
38786 echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38789 ac_header_preproc=no
38792 rm -f conftest.err conftest.$ac_ext
38793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38794 echo "${ECHO_T}$ac_header_preproc" >&6; }
38796 # So? What about this header?
38797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38798 yes:no: )
38799 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38800 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38801 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38802 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38803 ac_header_preproc=yes
38805 no:yes:* )
38806 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38807 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38808 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38809 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38810 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38811 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38812 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38813 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38814 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38815 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38816 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38817 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38818 ( cat <<\_ASBOX
38819 ## ------------------------------- ##
38820 ## Report this to www.asterisk.org ##
38821 ## ------------------------------- ##
38822 _ASBOX
38823 ) | sed "s/^/$as_me: WARNING: /" >&2
38825 esac
38826 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38827 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38828 if test "${ac_cv_header_libpri_h+set}" = set; then
38829 echo $ECHO_N "(cached) $ECHO_C" >&6
38830 else
38831 ac_cv_header_libpri_h=$ac_header_preproc
38833 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38834 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38837 if test $ac_cv_header_libpri_h = yes; then
38838 PRI_HEADER_FOUND=1
38839 else
38840 PRI_HEADER_FOUND=0
38844 CPPFLAGS="${saved_cppflags}"
38846 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
38847 PRI_LIB=""
38848 PRI_INCLUDE=""
38849 else
38850 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38851 PRI_LIB=""
38853 PBX_PRI=1
38854 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38856 cat >>confdefs.h <<_ACEOF
38857 #define HAVE_PRI 1
38858 _ACEOF
38861 cat >>confdefs.h <<_ACEOF
38862 #define HAVE_PRI_VERSION
38863 _ACEOF
38871 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
38872 { echo "$as_me:$LINENO: checking if \"
38873 #if SPANDSP_RELEASE_DATE < 20080516
38874 #error \"spandsp 0.0.5 or greater is required\"
38875 #endif
38876 \" compiles using spandsp/version.h" >&5
38877 echo $ECHO_N "checking if \"
38878 #if SPANDSP_RELEASE_DATE < 20080516
38879 #error \"spandsp 0.0.5 or greater is required\"
38880 #endif
38881 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
38882 saved_cppflags="${CPPFLAGS}"
38883 if test "x${SPANDSP_DIR}" != "x"; then
38884 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
38886 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
38888 cat >conftest.$ac_ext <<_ACEOF
38889 /* confdefs.h. */
38890 _ACEOF
38891 cat confdefs.h >>conftest.$ac_ext
38892 cat >>conftest.$ac_ext <<_ACEOF
38893 /* end confdefs.h. */
38894 #include <spandsp/version.h>
38896 main ()
38899 #if SPANDSP_RELEASE_DATE < 20080516
38900 #error "spandsp 0.0.5 or greater is required"
38901 #endif
38905 return 0;
38907 _ACEOF
38908 rm -f conftest.$ac_objext
38909 if { (ac_try="$ac_compile"
38910 case "(($ac_try" in
38911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38912 *) ac_try_echo=$ac_try;;
38913 esac
38914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38915 (eval "$ac_compile") 2>conftest.er1
38916 ac_status=$?
38917 grep -v '^ *+' conftest.er1 >conftest.err
38918 rm -f conftest.er1
38919 cat conftest.err >&5
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); } && {
38922 test -z "$ac_c_werror_flag" ||
38923 test ! -s conftest.err
38924 } && test -s conftest.$ac_objext; then
38925 { echo "$as_me:$LINENO: result: yes" >&5
38926 echo "${ECHO_T}yes" >&6; }
38927 PBX_SPANDSP=1
38929 cat >>confdefs.h <<\_ACEOF
38930 #define HAVE_SPANDSP 1
38931 _ACEOF
38934 cat >>confdefs.h <<\_ACEOF
38935 #define HAVE_SPANDSP_VERSION
38936 _ACEOF
38939 else
38940 echo "$as_me: failed program was:" >&5
38941 sed 's/^/| /' conftest.$ac_ext >&5
38943 { echo "$as_me:$LINENO: result: no" >&5
38944 echo "${ECHO_T}no" >&6; }
38948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38949 CPPFLAGS="${saved_cppflags}"
38953 if test "x${PBX_SPANDSP}" = "x1" ; then
38954 # We found the correct version in the header, now let's make sure it links
38955 # properly, and that libtiff is available
38956 PBX_SPANDSP=0
38958 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
38959 pbxlibdir=""
38960 # if --with-SPANDSP=DIR has been specified, use it.
38961 if test "x${SPANDSP_DIR}" != "x"; then
38962 if test -d ${SPANDSP_DIR}/lib; then
38963 pbxlibdir="-L${SPANDSP_DIR}/lib"
38964 else
38965 pbxlibdir="-L${SPANDSP_DIR}"
38968 pbxfuncname="span_set_message_handler"
38969 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38970 AST_SPANDSP_FOUND=yes
38971 else
38972 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
38973 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
38974 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
38975 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38976 echo $ECHO_N "(cached) $ECHO_C" >&6
38977 else
38978 ac_check_lib_save_LIBS=$LIBS
38979 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
38980 cat >conftest.$ac_ext <<_ACEOF
38981 /* confdefs.h. */
38982 _ACEOF
38983 cat confdefs.h >>conftest.$ac_ext
38984 cat >>conftest.$ac_ext <<_ACEOF
38985 /* end confdefs.h. */
38987 /* Override any GCC internal prototype to avoid an error.
38988 Use char because int might match the return type of a GCC
38989 builtin and then its argument prototype would still apply. */
38990 #ifdef __cplusplus
38991 extern "C"
38992 #endif
38993 char ${pbxfuncname} ();
38995 main ()
38997 return ${pbxfuncname} ();
38999 return 0;
39001 _ACEOF
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006 *) ac_try_echo=$ac_try;;
39007 esac
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009 (eval "$ac_link") 2>conftest.er1
39010 ac_status=$?
39011 grep -v '^ *+' conftest.er1 >conftest.err
39012 rm -f conftest.er1
39013 cat conftest.err >&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); } && {
39016 test -z "$ac_c_werror_flag" ||
39017 test ! -s conftest.err
39018 } && test -s conftest$ac_exeext &&
39019 $as_test_x conftest$ac_exeext; then
39020 eval "$as_ac_Lib=yes"
39021 else
39022 echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39025 eval "$as_ac_Lib=no"
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029 conftest$ac_exeext conftest.$ac_ext
39030 LIBS=$ac_check_lib_save_LIBS
39032 ac_res=`eval echo '${'$as_ac_Lib'}'`
39033 { echo "$as_me:$LINENO: result: $ac_res" >&5
39034 echo "${ECHO_T}$ac_res" >&6; }
39035 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39036 AST_SPANDSP_FOUND=yes
39037 else
39038 AST_SPANDSP_FOUND=no
39043 # now check for the header.
39044 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39045 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39046 # if --with-SPANDSP=DIR has been specified, use it.
39047 if test "x${SPANDSP_DIR}" != "x"; then
39048 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39050 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39051 if test "xspandsp.h" = "x" ; then # no header, assume found
39052 SPANDSP_HEADER_FOUND="1"
39053 else # check for the header
39054 saved_cppflags="${CPPFLAGS}"
39055 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE} "
39056 if test "${ac_cv_header_spandsp_h+set}" = set; then
39057 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39058 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39059 if test "${ac_cv_header_spandsp_h+set}" = set; then
39060 echo $ECHO_N "(cached) $ECHO_C" >&6
39062 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39063 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39064 else
39065 # Is the header compilable?
39066 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39067 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39068 cat >conftest.$ac_ext <<_ACEOF
39069 /* confdefs.h. */
39070 _ACEOF
39071 cat confdefs.h >>conftest.$ac_ext
39072 cat >>conftest.$ac_ext <<_ACEOF
39073 /* end confdefs.h. */
39074 $ac_includes_default
39075 #include <spandsp.h>
39076 _ACEOF
39077 rm -f conftest.$ac_objext
39078 if { (ac_try="$ac_compile"
39079 case "(($ac_try" in
39080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39081 *) ac_try_echo=$ac_try;;
39082 esac
39083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39084 (eval "$ac_compile") 2>conftest.er1
39085 ac_status=$?
39086 grep -v '^ *+' conftest.er1 >conftest.err
39087 rm -f conftest.er1
39088 cat conftest.err >&5
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); } && {
39091 test -z "$ac_c_werror_flag" ||
39092 test ! -s conftest.err
39093 } && test -s conftest.$ac_objext; then
39094 ac_header_compiler=yes
39095 else
39096 echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39099 ac_header_compiler=no
39102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39104 echo "${ECHO_T}$ac_header_compiler" >&6; }
39106 # Is the header present?
39107 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39108 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39109 cat >conftest.$ac_ext <<_ACEOF
39110 /* confdefs.h. */
39111 _ACEOF
39112 cat confdefs.h >>conftest.$ac_ext
39113 cat >>conftest.$ac_ext <<_ACEOF
39114 /* end confdefs.h. */
39115 #include <spandsp.h>
39116 _ACEOF
39117 if { (ac_try="$ac_cpp conftest.$ac_ext"
39118 case "(($ac_try" in
39119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39120 *) ac_try_echo=$ac_try;;
39121 esac
39122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39124 ac_status=$?
39125 grep -v '^ *+' conftest.er1 >conftest.err
39126 rm -f conftest.er1
39127 cat conftest.err >&5
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); } >/dev/null && {
39130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39131 test ! -s conftest.err
39132 }; then
39133 ac_header_preproc=yes
39134 else
39135 echo "$as_me: failed program was:" >&5
39136 sed 's/^/| /' conftest.$ac_ext >&5
39138 ac_header_preproc=no
39141 rm -f conftest.err conftest.$ac_ext
39142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39143 echo "${ECHO_T}$ac_header_preproc" >&6; }
39145 # So? What about this header?
39146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39147 yes:no: )
39148 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39149 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39150 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39151 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39152 ac_header_preproc=yes
39154 no:yes:* )
39155 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39156 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39157 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39158 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39159 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39160 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39161 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39162 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39163 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39164 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39165 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39166 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39167 ( cat <<\_ASBOX
39168 ## ------------------------------- ##
39169 ## Report this to www.asterisk.org ##
39170 ## ------------------------------- ##
39171 _ASBOX
39172 ) | sed "s/^/$as_me: WARNING: /" >&2
39174 esac
39175 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39176 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39177 if test "${ac_cv_header_spandsp_h+set}" = set; then
39178 echo $ECHO_N "(cached) $ECHO_C" >&6
39179 else
39180 ac_cv_header_spandsp_h=$ac_header_preproc
39182 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39183 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39186 if test $ac_cv_header_spandsp_h = yes; then
39187 SPANDSP_HEADER_FOUND=1
39188 else
39189 SPANDSP_HEADER_FOUND=0
39193 CPPFLAGS="${saved_cppflags}"
39195 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39196 SPANDSP_LIB=""
39197 SPANDSP_INCLUDE=""
39198 else
39199 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39200 SPANDSP_LIB=""
39202 PBX_SPANDSP=1
39203 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39205 cat >>confdefs.h <<_ACEOF
39206 #define HAVE_SPANDSP 1
39207 _ACEOF
39210 cat >>confdefs.h <<_ACEOF
39211 #define HAVE_SPANDSP_VERSION
39212 _ACEOF
39221 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
39222 pbxlibdir=""
39223 # if --with-SS7=DIR has been specified, use it.
39224 if test "x${SS7_DIR}" != "x"; then
39225 if test -d ${SS7_DIR}/lib; then
39226 pbxlibdir="-L${SS7_DIR}/lib"
39227 else
39228 pbxlibdir="-L${SS7_DIR}"
39231 pbxfuncname="ss7_pollflags"
39232 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39233 AST_SS7_FOUND=yes
39234 else
39235 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
39236 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
39237 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
39238 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39239 echo $ECHO_N "(cached) $ECHO_C" >&6
39240 else
39241 ac_check_lib_save_LIBS=$LIBS
39242 LIBS="-lss7 ${pbxlibdir} $LIBS"
39243 cat >conftest.$ac_ext <<_ACEOF
39244 /* confdefs.h. */
39245 _ACEOF
39246 cat confdefs.h >>conftest.$ac_ext
39247 cat >>conftest.$ac_ext <<_ACEOF
39248 /* end confdefs.h. */
39250 /* Override any GCC internal prototype to avoid an error.
39251 Use char because int might match the return type of a GCC
39252 builtin and then its argument prototype would still apply. */
39253 #ifdef __cplusplus
39254 extern "C"
39255 #endif
39256 char ${pbxfuncname} ();
39258 main ()
39260 return ${pbxfuncname} ();
39262 return 0;
39264 _ACEOF
39265 rm -f conftest.$ac_objext conftest$ac_exeext
39266 if { (ac_try="$ac_link"
39267 case "(($ac_try" in
39268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39269 *) ac_try_echo=$ac_try;;
39270 esac
39271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39272 (eval "$ac_link") 2>conftest.er1
39273 ac_status=$?
39274 grep -v '^ *+' conftest.er1 >conftest.err
39275 rm -f conftest.er1
39276 cat conftest.err >&5
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); } && {
39279 test -z "$ac_c_werror_flag" ||
39280 test ! -s conftest.err
39281 } && test -s conftest$ac_exeext &&
39282 $as_test_x conftest$ac_exeext; then
39283 eval "$as_ac_Lib=yes"
39284 else
39285 echo "$as_me: failed program was:" >&5
39286 sed 's/^/| /' conftest.$ac_ext >&5
39288 eval "$as_ac_Lib=no"
39291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39292 conftest$ac_exeext conftest.$ac_ext
39293 LIBS=$ac_check_lib_save_LIBS
39295 ac_res=`eval echo '${'$as_ac_Lib'}'`
39296 { echo "$as_me:$LINENO: result: $ac_res" >&5
39297 echo "${ECHO_T}$ac_res" >&6; }
39298 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39299 AST_SS7_FOUND=yes
39300 else
39301 AST_SS7_FOUND=no
39306 # now check for the header.
39307 if test "${AST_SS7_FOUND}" = "yes"; then
39308 SS7_LIB="${pbxlibdir} -lss7 "
39309 # if --with-SS7=DIR has been specified, use it.
39310 if test "x${SS7_DIR}" != "x"; then
39311 SS7_INCLUDE="-I${SS7_DIR}/include"
39313 SS7_INCLUDE="${SS7_INCLUDE} "
39314 if test "xlibss7.h" = "x" ; then # no header, assume found
39315 SS7_HEADER_FOUND="1"
39316 else # check for the header
39317 saved_cppflags="${CPPFLAGS}"
39318 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
39319 if test "${ac_cv_header_libss7_h+set}" = set; then
39320 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39321 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39322 if test "${ac_cv_header_libss7_h+set}" = set; then
39323 echo $ECHO_N "(cached) $ECHO_C" >&6
39325 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39326 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39327 else
39328 # Is the header compilable?
39329 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
39330 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
39331 cat >conftest.$ac_ext <<_ACEOF
39332 /* confdefs.h. */
39333 _ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h. */
39337 $ac_includes_default
39338 #include <libss7.h>
39339 _ACEOF
39340 rm -f conftest.$ac_objext
39341 if { (ac_try="$ac_compile"
39342 case "(($ac_try" in
39343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39344 *) ac_try_echo=$ac_try;;
39345 esac
39346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39347 (eval "$ac_compile") 2>conftest.er1
39348 ac_status=$?
39349 grep -v '^ *+' conftest.er1 >conftest.err
39350 rm -f conftest.er1
39351 cat conftest.err >&5
39352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39353 (exit $ac_status); } && {
39354 test -z "$ac_c_werror_flag" ||
39355 test ! -s conftest.err
39356 } && test -s conftest.$ac_objext; then
39357 ac_header_compiler=yes
39358 else
39359 echo "$as_me: failed program was:" >&5
39360 sed 's/^/| /' conftest.$ac_ext >&5
39362 ac_header_compiler=no
39365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39367 echo "${ECHO_T}$ac_header_compiler" >&6; }
39369 # Is the header present?
39370 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
39371 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
39372 cat >conftest.$ac_ext <<_ACEOF
39373 /* confdefs.h. */
39374 _ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h. */
39378 #include <libss7.h>
39379 _ACEOF
39380 if { (ac_try="$ac_cpp conftest.$ac_ext"
39381 case "(($ac_try" in
39382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39383 *) ac_try_echo=$ac_try;;
39384 esac
39385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39387 ac_status=$?
39388 grep -v '^ *+' conftest.er1 >conftest.err
39389 rm -f conftest.er1
39390 cat conftest.err >&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); } >/dev/null && {
39393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39394 test ! -s conftest.err
39395 }; then
39396 ac_header_preproc=yes
39397 else
39398 echo "$as_me: failed program was:" >&5
39399 sed 's/^/| /' conftest.$ac_ext >&5
39401 ac_header_preproc=no
39404 rm -f conftest.err conftest.$ac_ext
39405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39406 echo "${ECHO_T}$ac_header_preproc" >&6; }
39408 # So? What about this header?
39409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39410 yes:no: )
39411 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
39412 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39413 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
39414 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
39415 ac_header_preproc=yes
39417 no:yes:* )
39418 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
39419 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
39420 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
39421 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
39422 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
39423 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
39424 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
39425 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
39426 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
39427 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
39428 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
39429 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
39430 ( cat <<\_ASBOX
39431 ## ------------------------------- ##
39432 ## Report this to www.asterisk.org ##
39433 ## ------------------------------- ##
39434 _ASBOX
39435 ) | sed "s/^/$as_me: WARNING: /" >&2
39437 esac
39438 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39439 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39440 if test "${ac_cv_header_libss7_h+set}" = set; then
39441 echo $ECHO_N "(cached) $ECHO_C" >&6
39442 else
39443 ac_cv_header_libss7_h=$ac_header_preproc
39445 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39446 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39449 if test $ac_cv_header_libss7_h = yes; then
39450 SS7_HEADER_FOUND=1
39451 else
39452 SS7_HEADER_FOUND=0
39456 CPPFLAGS="${saved_cppflags}"
39458 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
39459 SS7_LIB=""
39460 SS7_INCLUDE=""
39461 else
39462 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39463 SS7_LIB=""
39465 PBX_SS7=1
39466 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39468 cat >>confdefs.h <<_ACEOF
39469 #define HAVE_SS7 1
39470 _ACEOF
39473 cat >>confdefs.h <<_ACEOF
39474 #define HAVE_SS7_VERSION
39475 _ACEOF
39482 if test "${USE_PWLIB}" != "no"; then
39483 if test -n "${PWLIB_DIR}"; then
39484 PWLIBDIR="${PWLIB_DIR}"
39489 PWLIB_INCDIR=
39490 PWLIB_LIBDIR=
39491 ac_ext=cpp
39492 ac_cpp='$CXXCPP $CPPFLAGS'
39493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39497 if test "${PWLIBDIR:-unset}" != "unset" ; then
39498 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
39499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39500 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39501 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39503 echo $ECHO_N "(cached) $ECHO_C" >&6
39505 ac_res=`eval echo '${'$as_ac_Header'}'`
39506 { echo "$as_me:$LINENO: result: $ac_res" >&5
39507 echo "${ECHO_T}$ac_res" >&6; }
39508 else
39509 # Is the header compilable?
39510 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
39511 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
39512 cat >conftest.$ac_ext <<_ACEOF
39513 /* confdefs.h. */
39514 _ACEOF
39515 cat confdefs.h >>conftest.$ac_ext
39516 cat >>conftest.$ac_ext <<_ACEOF
39517 /* end confdefs.h. */
39518 $ac_includes_default
39519 #include <${PWLIBDIR}/version.h>
39520 _ACEOF
39521 rm -f conftest.$ac_objext
39522 if { (ac_try="$ac_compile"
39523 case "(($ac_try" in
39524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39525 *) ac_try_echo=$ac_try;;
39526 esac
39527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39528 (eval "$ac_compile") 2>conftest.er1
39529 ac_status=$?
39530 grep -v '^ *+' conftest.er1 >conftest.err
39531 rm -f conftest.er1
39532 cat conftest.err >&5
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); } && {
39535 test -z "$ac_cxx_werror_flag" ||
39536 test ! -s conftest.err
39537 } && test -s conftest.$ac_objext; then
39538 ac_header_compiler=yes
39539 else
39540 echo "$as_me: failed program was:" >&5
39541 sed 's/^/| /' conftest.$ac_ext >&5
39543 ac_header_compiler=no
39546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39548 echo "${ECHO_T}$ac_header_compiler" >&6; }
39550 # Is the header present?
39551 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
39552 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
39553 cat >conftest.$ac_ext <<_ACEOF
39554 /* confdefs.h. */
39555 _ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h. */
39559 #include <${PWLIBDIR}/version.h>
39560 _ACEOF
39561 if { (ac_try="$ac_cpp conftest.$ac_ext"
39562 case "(($ac_try" in
39563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39564 *) ac_try_echo=$ac_try;;
39565 esac
39566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39568 ac_status=$?
39569 grep -v '^ *+' conftest.er1 >conftest.err
39570 rm -f conftest.er1
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } >/dev/null && {
39574 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39575 test ! -s conftest.err
39576 }; then
39577 ac_header_preproc=yes
39578 else
39579 echo "$as_me: failed program was:" >&5
39580 sed 's/^/| /' conftest.$ac_ext >&5
39582 ac_header_preproc=no
39585 rm -f conftest.err conftest.$ac_ext
39586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39587 echo "${ECHO_T}$ac_header_preproc" >&6; }
39589 # So? What about this header?
39590 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39591 yes:no: )
39592 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39593 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39594 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
39595 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
39596 ac_header_preproc=yes
39598 no:yes:* )
39599 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
39600 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
39601 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
39602 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
39603 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
39604 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
39605 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
39606 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39607 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
39608 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
39609 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
39610 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
39611 ( cat <<\_ASBOX
39612 ## ------------------------------- ##
39613 ## Report this to www.asterisk.org ##
39614 ## ------------------------------- ##
39615 _ASBOX
39616 ) | sed "s/^/$as_me: WARNING: /" >&2
39618 esac
39619 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39620 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39622 echo $ECHO_N "(cached) $ECHO_C" >&6
39623 else
39624 eval "$as_ac_Header=\$ac_header_preproc"
39626 ac_res=`eval echo '${'$as_ac_Header'}'`
39627 { echo "$as_me:$LINENO: result: $ac_res" >&5
39628 echo "${ECHO_T}$ac_res" >&6; }
39631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39632 HAS_PWLIB=1
39637 if test "${HAS_PWLIB:-unset}" = "unset" ; then
39638 if test "${OPENH323DIR:-unset}" != "unset"; then
39639 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
39640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39641 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39642 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39644 echo $ECHO_N "(cached) $ECHO_C" >&6
39646 ac_res=`eval echo '${'$as_ac_Header'}'`
39647 { echo "$as_me:$LINENO: result: $ac_res" >&5
39648 echo "${ECHO_T}$ac_res" >&6; }
39649 else
39650 # Is the header compilable?
39651 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39652 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39653 cat >conftest.$ac_ext <<_ACEOF
39654 /* confdefs.h. */
39655 _ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h. */
39659 $ac_includes_default
39660 #include <${OPENH323DIR}/../pwlib/version.h>
39661 _ACEOF
39662 rm -f conftest.$ac_objext
39663 if { (ac_try="$ac_compile"
39664 case "(($ac_try" in
39665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39666 *) ac_try_echo=$ac_try;;
39667 esac
39668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39669 (eval "$ac_compile") 2>conftest.er1
39670 ac_status=$?
39671 grep -v '^ *+' conftest.er1 >conftest.err
39672 rm -f conftest.er1
39673 cat conftest.err >&5
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); } && {
39676 test -z "$ac_cxx_werror_flag" ||
39677 test ! -s conftest.err
39678 } && test -s conftest.$ac_objext; then
39679 ac_header_compiler=yes
39680 else
39681 echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39684 ac_header_compiler=no
39687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39689 echo "${ECHO_T}$ac_header_compiler" >&6; }
39691 # Is the header present?
39692 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39693 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39694 cat >conftest.$ac_ext <<_ACEOF
39695 /* confdefs.h. */
39696 _ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h. */
39700 #include <${OPENH323DIR}/../pwlib/version.h>
39701 _ACEOF
39702 if { (ac_try="$ac_cpp conftest.$ac_ext"
39703 case "(($ac_try" in
39704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39705 *) ac_try_echo=$ac_try;;
39706 esac
39707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39709 ac_status=$?
39710 grep -v '^ *+' conftest.er1 >conftest.err
39711 rm -f conftest.er1
39712 cat conftest.err >&5
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); } >/dev/null && {
39715 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39716 test ! -s conftest.err
39717 }; then
39718 ac_header_preproc=yes
39719 else
39720 echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39723 ac_header_preproc=no
39726 rm -f conftest.err conftest.$ac_ext
39727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39728 echo "${ECHO_T}$ac_header_preproc" >&6; }
39730 # So? What about this header?
39731 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39732 yes:no: )
39733 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39734 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39735 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39736 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39737 ac_header_preproc=yes
39739 no:yes:* )
39740 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39741 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39742 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39743 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39744 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39745 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39746 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39747 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39748 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39749 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39750 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39751 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39752 ( cat <<\_ASBOX
39753 ## ------------------------------- ##
39754 ## Report this to www.asterisk.org ##
39755 ## ------------------------------- ##
39756 _ASBOX
39757 ) | sed "s/^/$as_me: WARNING: /" >&2
39759 esac
39760 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39761 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39763 echo $ECHO_N "(cached) $ECHO_C" >&6
39764 else
39765 eval "$as_ac_Header=\$ac_header_preproc"
39767 ac_res=`eval echo '${'$as_ac_Header'}'`
39768 { echo "$as_me:$LINENO: result: $ac_res" >&5
39769 echo "${ECHO_T}$ac_res" >&6; }
39772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39773 HAS_PWLIB=1
39778 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39779 PWLIBDIR="${OPENH323DIR}/../pwlib"
39780 else
39781 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39783 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39784 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39786 echo $ECHO_N "(cached) $ECHO_C" >&6
39788 ac_res=`eval echo '${'$as_ac_Header'}'`
39789 { echo "$as_me:$LINENO: result: $ac_res" >&5
39790 echo "${ECHO_T}$ac_res" >&6; }
39791 else
39792 # Is the header compilable?
39793 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39794 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39795 cat >conftest.$ac_ext <<_ACEOF
39796 /* confdefs.h. */
39797 _ACEOF
39798 cat confdefs.h >>conftest.$ac_ext
39799 cat >>conftest.$ac_ext <<_ACEOF
39800 /* end confdefs.h. */
39801 $ac_includes_default
39802 #include <${HOME}/pwlib/include/ptlib.h>
39803 _ACEOF
39804 rm -f conftest.$ac_objext
39805 if { (ac_try="$ac_compile"
39806 case "(($ac_try" in
39807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808 *) ac_try_echo=$ac_try;;
39809 esac
39810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39811 (eval "$ac_compile") 2>conftest.er1
39812 ac_status=$?
39813 grep -v '^ *+' conftest.er1 >conftest.err
39814 rm -f conftest.er1
39815 cat conftest.err >&5
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); } && {
39818 test -z "$ac_cxx_werror_flag" ||
39819 test ! -s conftest.err
39820 } && test -s conftest.$ac_objext; then
39821 ac_header_compiler=yes
39822 else
39823 echo "$as_me: failed program was:" >&5
39824 sed 's/^/| /' conftest.$ac_ext >&5
39826 ac_header_compiler=no
39829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39831 echo "${ECHO_T}$ac_header_compiler" >&6; }
39833 # Is the header present?
39834 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
39835 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
39836 cat >conftest.$ac_ext <<_ACEOF
39837 /* confdefs.h. */
39838 _ACEOF
39839 cat confdefs.h >>conftest.$ac_ext
39840 cat >>conftest.$ac_ext <<_ACEOF
39841 /* end confdefs.h. */
39842 #include <${HOME}/pwlib/include/ptlib.h>
39843 _ACEOF
39844 if { (ac_try="$ac_cpp conftest.$ac_ext"
39845 case "(($ac_try" in
39846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39847 *) ac_try_echo=$ac_try;;
39848 esac
39849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39851 ac_status=$?
39852 grep -v '^ *+' conftest.er1 >conftest.err
39853 rm -f conftest.er1
39854 cat conftest.err >&5
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); } >/dev/null && {
39857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39858 test ! -s conftest.err
39859 }; then
39860 ac_header_preproc=yes
39861 else
39862 echo "$as_me: failed program was:" >&5
39863 sed 's/^/| /' conftest.$ac_ext >&5
39865 ac_header_preproc=no
39868 rm -f conftest.err conftest.$ac_ext
39869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39870 echo "${ECHO_T}$ac_header_preproc" >&6; }
39872 # So? What about this header?
39873 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39874 yes:no: )
39875 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39876 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39877 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
39878 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
39879 ac_header_preproc=yes
39881 no:yes:* )
39882 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
39883 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
39884 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
39885 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39886 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
39887 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
39888 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39889 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39890 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
39891 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39892 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
39893 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39894 ( cat <<\_ASBOX
39895 ## ------------------------------- ##
39896 ## Report this to www.asterisk.org ##
39897 ## ------------------------------- ##
39898 _ASBOX
39899 ) | sed "s/^/$as_me: WARNING: /" >&2
39901 esac
39902 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39903 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39905 echo $ECHO_N "(cached) $ECHO_C" >&6
39906 else
39907 eval "$as_ac_Header=\$ac_header_preproc"
39909 ac_res=`eval echo '${'$as_ac_Header'}'`
39910 { echo "$as_me:$LINENO: result: $ac_res" >&5
39911 echo "${ECHO_T}$ac_res" >&6; }
39914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39915 HAS_PWLIB=1
39919 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39920 PWLIBDIR="${HOME}/pwlib"
39921 else
39922 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39923 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39924 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39925 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39926 echo $ECHO_N "(cached) $ECHO_C" >&6
39928 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39929 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39930 else
39931 # Is the header compilable?
39932 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
39933 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
39934 cat >conftest.$ac_ext <<_ACEOF
39935 /* confdefs.h. */
39936 _ACEOF
39937 cat confdefs.h >>conftest.$ac_ext
39938 cat >>conftest.$ac_ext <<_ACEOF
39939 /* end confdefs.h. */
39940 $ac_includes_default
39941 #include </usr/local/include/ptlib.h>
39942 _ACEOF
39943 rm -f conftest.$ac_objext
39944 if { (ac_try="$ac_compile"
39945 case "(($ac_try" in
39946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39947 *) ac_try_echo=$ac_try;;
39948 esac
39949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39950 (eval "$ac_compile") 2>conftest.er1
39951 ac_status=$?
39952 grep -v '^ *+' conftest.er1 >conftest.err
39953 rm -f conftest.er1
39954 cat conftest.err >&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); } && {
39957 test -z "$ac_cxx_werror_flag" ||
39958 test ! -s conftest.err
39959 } && test -s conftest.$ac_objext; then
39960 ac_header_compiler=yes
39961 else
39962 echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39965 ac_header_compiler=no
39968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39970 echo "${ECHO_T}$ac_header_compiler" >&6; }
39972 # Is the header present?
39973 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
39974 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
39975 cat >conftest.$ac_ext <<_ACEOF
39976 /* confdefs.h. */
39977 _ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h. */
39981 #include </usr/local/include/ptlib.h>
39982 _ACEOF
39983 if { (ac_try="$ac_cpp conftest.$ac_ext"
39984 case "(($ac_try" in
39985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39986 *) ac_try_echo=$ac_try;;
39987 esac
39988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39990 ac_status=$?
39991 grep -v '^ *+' conftest.er1 >conftest.err
39992 rm -f conftest.er1
39993 cat conftest.err >&5
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); } >/dev/null && {
39996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39997 test ! -s conftest.err
39998 }; then
39999 ac_header_preproc=yes
40000 else
40001 echo "$as_me: failed program was:" >&5
40002 sed 's/^/| /' conftest.$ac_ext >&5
40004 ac_header_preproc=no
40007 rm -f conftest.err conftest.$ac_ext
40008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40009 echo "${ECHO_T}$ac_header_preproc" >&6; }
40011 # So? What about this header?
40012 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40013 yes:no: )
40014 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40015 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40016 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40017 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40018 ac_header_preproc=yes
40020 no:yes:* )
40021 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40022 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40023 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40024 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40025 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40026 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40027 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40028 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40029 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40030 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40031 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40032 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40033 ( cat <<\_ASBOX
40034 ## ------------------------------- ##
40035 ## Report this to www.asterisk.org ##
40036 ## ------------------------------- ##
40037 _ASBOX
40038 ) | sed "s/^/$as_me: WARNING: /" >&2
40040 esac
40041 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40042 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40043 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40044 echo $ECHO_N "(cached) $ECHO_C" >&6
40045 else
40046 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40048 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40049 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40052 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40053 HAS_PWLIB=1
40057 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40058 # Extract the first word of "ptlib-config", so it can be a program name with args.
40059 set dummy ptlib-config; ac_word=$2
40060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40062 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40063 echo $ECHO_N "(cached) $ECHO_C" >&6
40064 else
40065 case $PTLIB_CONFIG in
40066 [\\/]* | ?:[\\/]*)
40067 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40071 for as_dir in /usr/local/bin
40073 IFS=$as_save_IFS
40074 test -z "$as_dir" && as_dir=.
40075 for ac_exec_ext in '' $ac_executable_extensions; do
40076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40077 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40079 break 2
40081 done
40082 done
40083 IFS=$as_save_IFS
40086 esac
40088 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40089 if test -n "$PTLIB_CONFIG"; then
40090 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40091 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40092 else
40093 { echo "$as_me:$LINENO: result: no" >&5
40094 echo "${ECHO_T}no" >&6; }
40098 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40099 # Extract the first word of "ptlib-config", so it can be a program name with args.
40100 set dummy ptlib-config; ac_word=$2
40101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40103 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40104 echo $ECHO_N "(cached) $ECHO_C" >&6
40105 else
40106 case $PTLIB_CONFIG in
40107 [\\/]* | ?:[\\/]*)
40108 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40112 for as_dir in /usr/local/share/pwlib/make
40114 IFS=$as_save_IFS
40115 test -z "$as_dir" && as_dir=.
40116 for ac_exec_ext in '' $ac_executable_extensions; do
40117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40118 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40120 break 2
40122 done
40123 done
40124 IFS=$as_save_IFS
40127 esac
40129 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40130 if test -n "$PTLIB_CONFIG"; then
40131 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40132 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40133 else
40134 { echo "$as_me:$LINENO: result: no" >&5
40135 echo "${ECHO_T}no" >&6; }
40140 PWLIB_INCDIR="/usr/local/include"
40141 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40142 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40143 if test "x$LIB64" != "x"; then
40144 PWLIB_LIBDIR="/usr/local/lib64"
40145 else
40146 PWLIB_LIBDIR="/usr/local/lib"
40149 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40150 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40151 else
40152 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40153 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40154 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40155 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40156 echo $ECHO_N "(cached) $ECHO_C" >&6
40158 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40159 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40160 else
40161 # Is the header compilable?
40162 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40163 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40164 cat >conftest.$ac_ext <<_ACEOF
40165 /* confdefs.h. */
40166 _ACEOF
40167 cat confdefs.h >>conftest.$ac_ext
40168 cat >>conftest.$ac_ext <<_ACEOF
40169 /* end confdefs.h. */
40170 $ac_includes_default
40171 #include </usr/include/ptlib.h>
40172 _ACEOF
40173 rm -f conftest.$ac_objext
40174 if { (ac_try="$ac_compile"
40175 case "(($ac_try" in
40176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177 *) ac_try_echo=$ac_try;;
40178 esac
40179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40180 (eval "$ac_compile") 2>conftest.er1
40181 ac_status=$?
40182 grep -v '^ *+' conftest.er1 >conftest.err
40183 rm -f conftest.er1
40184 cat conftest.err >&5
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); } && {
40187 test -z "$ac_cxx_werror_flag" ||
40188 test ! -s conftest.err
40189 } && test -s conftest.$ac_objext; then
40190 ac_header_compiler=yes
40191 else
40192 echo "$as_me: failed program was:" >&5
40193 sed 's/^/| /' conftest.$ac_ext >&5
40195 ac_header_compiler=no
40198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40200 echo "${ECHO_T}$ac_header_compiler" >&6; }
40202 # Is the header present?
40203 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40204 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40205 cat >conftest.$ac_ext <<_ACEOF
40206 /* confdefs.h. */
40207 _ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h. */
40211 #include </usr/include/ptlib.h>
40212 _ACEOF
40213 if { (ac_try="$ac_cpp conftest.$ac_ext"
40214 case "(($ac_try" in
40215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40216 *) ac_try_echo=$ac_try;;
40217 esac
40218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40220 ac_status=$?
40221 grep -v '^ *+' conftest.er1 >conftest.err
40222 rm -f conftest.er1
40223 cat conftest.err >&5
40224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225 (exit $ac_status); } >/dev/null && {
40226 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40227 test ! -s conftest.err
40228 }; then
40229 ac_header_preproc=yes
40230 else
40231 echo "$as_me: failed program was:" >&5
40232 sed 's/^/| /' conftest.$ac_ext >&5
40234 ac_header_preproc=no
40237 rm -f conftest.err conftest.$ac_ext
40238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40239 echo "${ECHO_T}$ac_header_preproc" >&6; }
40241 # So? What about this header?
40242 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40243 yes:no: )
40244 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40245 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40246 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
40247 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
40248 ac_header_preproc=yes
40250 no:yes:* )
40251 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
40252 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
40253 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
40254 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40255 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
40256 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
40257 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40258 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40259 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
40260 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40261 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
40262 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40263 ( cat <<\_ASBOX
40264 ## ------------------------------- ##
40265 ## Report this to www.asterisk.org ##
40266 ## ------------------------------- ##
40267 _ASBOX
40268 ) | sed "s/^/$as_me: WARNING: /" >&2
40270 esac
40271 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40272 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40273 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40274 echo $ECHO_N "(cached) $ECHO_C" >&6
40275 else
40276 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
40278 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40279 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40282 if test $ac_cv_header__usr_include_ptlib_h = yes; then
40283 HAS_PWLIB=1
40287 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40288 # Extract the first word of "ptlib-config", so it can be a program name with args.
40289 set dummy ptlib-config; ac_word=$2
40290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40292 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40293 echo $ECHO_N "(cached) $ECHO_C" >&6
40294 else
40295 case $PTLIB_CONFIG in
40296 [\\/]* | ?:[\\/]*)
40297 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40301 for as_dir in /usr/share/pwlib/make
40303 IFS=$as_save_IFS
40304 test -z "$as_dir" && as_dir=.
40305 for ac_exec_ext in '' $ac_executable_extensions; do
40306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40307 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40309 break 2
40311 done
40312 done
40313 IFS=$as_save_IFS
40316 esac
40318 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40319 if test -n "$PTLIB_CONFIG"; then
40320 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40321 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40322 else
40323 { echo "$as_me:$LINENO: result: no" >&5
40324 echo "${ECHO_T}no" >&6; }
40328 PWLIB_INCDIR="/usr/include"
40329 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40330 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40331 if test "x$LIB64" != "x"; then
40332 PWLIB_LIBDIR="/usr/lib64"
40333 else
40334 PWLIB_LIBDIR="/usr/lib"
40337 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40338 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40345 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
40346 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
40347 # exit
40350 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40351 if test "${PWLIBDIR:-unset}" = "unset" ; then
40352 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
40353 PWLIBDIR=`$PTLIB_CONFIG --prefix`
40354 else
40355 echo "Cannot find ptlib-config - please install and try again"
40356 exit
40360 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
40361 PWLIBDIR="/usr/share/pwlib"
40362 PWLIB_INCDIR="/usr/include"
40363 if test "x$LIB64" != "x"; then
40364 PWLIB_LIBDIR="/usr/lib64"
40365 else
40366 PWLIB_LIBDIR="/usr/lib"
40369 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
40370 PWLIBDIR="/usr/local/share/pwlib"
40371 PWLIB_INCDIR="/usr/local/include"
40372 if test "x$LIB64" != "x"; then
40373 PWLIB_LIBDIR="/usr/local/lib64"
40374 else
40375 PWLIB_LIBDIR="/usr/local/lib"
40379 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
40380 PWLIB_INCDIR="${PWLIBDIR}/include"
40382 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40383 PWLIB_LIBDIR="${PWLIBDIR}/lib"
40390 ac_ext=c
40391 ac_cpp='$CPP $CPPFLAGS'
40392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40398 if test "${HAS_PWLIB:-unset}" != "unset"; then
40399 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40400 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
40401 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
40402 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
40403 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
40404 let PWLIB_REQ=1*10000+9*100+2
40406 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
40407 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40408 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
40409 { echo "$as_me:$LINENO: result: no" >&5
40410 echo "${ECHO_T}no" >&6; }
40411 unset HAS_PWLIB
40412 else
40413 { echo "$as_me:$LINENO: result: yes" >&5
40414 echo "${ECHO_T}yes" >&6; }
40419 if test "${HAS_PWLIB:-unset}" != "unset"; then
40421 PWLIB_OSTYPE=
40422 case "$host_os" in
40423 linux*) PWLIB_OSTYPE=linux ;
40425 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
40427 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
40428 ENDLDLIBS="-lossaudio" ;
40430 netbsd* ) PWLIB_OSTYPE=NetBSD ;
40431 ENDLDLIBS="-lossaudio" ;
40433 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
40435 darwin* ) PWLIB_OSTYPE=Darwin ;
40437 beos*) PWLIB_OSTYPE=beos ;
40438 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
40440 cygwin*) PWLIB_OSTYPE=cygwin ;
40442 mingw*) PWLIB_OSTYPE=mingw ;
40443 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
40444 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
40446 * ) PWLIB_OSTYPE="$host_os" ;
40447 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
40448 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
40450 esac
40452 PWLIB_MACHTYPE=
40453 case "$host_cpu" in
40454 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
40457 x86_64) PWLIB_MACHTYPE=x86_64 ;
40458 P_64BIT=1 ;
40459 LIB64=1 ;
40462 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
40463 P_64BIT=1 ;
40466 sparc ) PWLIB_MACHTYPE=sparc ;
40469 powerpc ) PWLIB_MACHTYPE=ppc ;
40472 ppc ) PWLIB_MACHTYPE=ppc ;
40475 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
40476 P_64BIT=1 ;
40477 LIB64=1 ;
40480 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
40481 P_64BIT=1 ;
40482 LIB64=1 ;
40485 ia64) PWLIB_MACHTYPE=ia64 ;
40486 P_64BIT=1 ;
40489 s390x) PWLIB_MACHTYPE=s390x ;
40490 P_64BIT=1 ;
40491 LIB64=1 ;
40494 s390) PWLIB_MACHTYPE=s390 ;
40497 * ) PWLIB_MACHTYPE="$host_cpu";
40498 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
40499 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
40500 esac
40502 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
40507 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
40510 if test "${HAS_PWLIB:-unset}" != "unset"; then
40511 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
40512 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
40514 saved_cppflags="${CPPFLAGS}"
40515 saved_libs="${LIBS}"
40516 if test "${PWLIB_LIB:-unset}" != "unset"; then
40517 LIBS="${LIBS} ${PWLIB_LIB} "
40518 else
40519 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
40521 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
40523 ac_ext=cpp
40524 ac_cpp='$CXXCPP $CPPFLAGS'
40525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40530 cat >conftest.$ac_ext <<_ACEOF
40531 /* confdefs.h. */
40532 _ACEOF
40533 cat confdefs.h >>conftest.$ac_ext
40534 cat >>conftest.$ac_ext <<_ACEOF
40535 /* end confdefs.h. */
40536 #include "ptlib.h"
40538 main ()
40540 BOOL q = PTime::IsDaylightSavings();
40542 return 0;
40544 _ACEOF
40545 rm -f conftest.$ac_objext conftest$ac_exeext
40546 if { (ac_try="$ac_link"
40547 case "(($ac_try" in
40548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549 *) ac_try_echo=$ac_try;;
40550 esac
40551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40552 (eval "$ac_link") 2>conftest.er1
40553 ac_status=$?
40554 grep -v '^ *+' conftest.er1 >conftest.err
40555 rm -f conftest.er1
40556 cat conftest.err >&5
40557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558 (exit $ac_status); } && {
40559 test -z "$ac_cxx_werror_flag" ||
40560 test ! -s conftest.err
40561 } && test -s conftest$ac_exeext &&
40562 $as_test_x conftest$ac_exeext; then
40563 { echo "$as_me:$LINENO: result: yes" >&5
40564 echo "${ECHO_T}yes" >&6; }
40565 ac_cv_lib_PWLIB="yes"
40567 else
40568 echo "$as_me: failed program was:" >&5
40569 sed 's/^/| /' conftest.$ac_ext >&5
40571 { echo "$as_me:$LINENO: result: no" >&5
40572 echo "${ECHO_T}no" >&6; }
40573 ac_cv_lib_PWLIB="no"
40578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40579 conftest$ac_exeext conftest.$ac_ext
40581 ac_ext=c
40582 ac_cpp='$CPP $CPPFLAGS'
40583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40588 LIBS="${saved_libs}"
40589 CPPFLAGS="${saved_cppflags}"
40591 if test "${ac_cv_lib_PWLIB}" = "yes"; then
40592 if test "${PWLIB_LIB:-undef}" = "undef"; then
40593 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
40594 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
40595 else
40596 PWLIB_LIB="-l${PLATFORM_PWLIB}"
40599 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
40600 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
40602 PBX_PWLIB=1
40604 cat >>confdefs.h <<\_ACEOF
40605 #define HAVE_PWLIB 1
40606 _ACEOF
40614 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
40615 if test -n "${OPENH323_DIR}"; then
40616 OPENH323DIR="${OPENH323_DIR}"
40619 OPENH323_INCDIR=
40620 OPENH323_LIBDIR=
40621 ac_ext=cpp
40622 ac_cpp='$CXXCPP $CPPFLAGS'
40623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40627 if test "${OPENH323DIR:-unset}" != "unset" ; then
40628 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
40629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40630 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40631 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40633 echo $ECHO_N "(cached) $ECHO_C" >&6
40635 ac_res=`eval echo '${'$as_ac_Header'}'`
40636 { echo "$as_me:$LINENO: result: $ac_res" >&5
40637 echo "${ECHO_T}$ac_res" >&6; }
40638 else
40639 # Is the header compilable?
40640 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
40641 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
40642 cat >conftest.$ac_ext <<_ACEOF
40643 /* confdefs.h. */
40644 _ACEOF
40645 cat confdefs.h >>conftest.$ac_ext
40646 cat >>conftest.$ac_ext <<_ACEOF
40647 /* end confdefs.h. */
40648 $ac_includes_default
40649 #include <${OPENH323DIR}/version.h>
40650 _ACEOF
40651 rm -f conftest.$ac_objext
40652 if { (ac_try="$ac_compile"
40653 case "(($ac_try" in
40654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40655 *) ac_try_echo=$ac_try;;
40656 esac
40657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40658 (eval "$ac_compile") 2>conftest.er1
40659 ac_status=$?
40660 grep -v '^ *+' conftest.er1 >conftest.err
40661 rm -f conftest.er1
40662 cat conftest.err >&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } && {
40665 test -z "$ac_cxx_werror_flag" ||
40666 test ! -s conftest.err
40667 } && test -s conftest.$ac_objext; then
40668 ac_header_compiler=yes
40669 else
40670 echo "$as_me: failed program was:" >&5
40671 sed 's/^/| /' conftest.$ac_ext >&5
40673 ac_header_compiler=no
40676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40678 echo "${ECHO_T}$ac_header_compiler" >&6; }
40680 # Is the header present?
40681 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40682 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40683 cat >conftest.$ac_ext <<_ACEOF
40684 /* confdefs.h. */
40685 _ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h. */
40689 #include <${OPENH323DIR}/version.h>
40690 _ACEOF
40691 if { (ac_try="$ac_cpp conftest.$ac_ext"
40692 case "(($ac_try" in
40693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40694 *) ac_try_echo=$ac_try;;
40695 esac
40696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40698 ac_status=$?
40699 grep -v '^ *+' conftest.er1 >conftest.err
40700 rm -f conftest.er1
40701 cat conftest.err >&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); } >/dev/null && {
40704 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40705 test ! -s conftest.err
40706 }; then
40707 ac_header_preproc=yes
40708 else
40709 echo "$as_me: failed program was:" >&5
40710 sed 's/^/| /' conftest.$ac_ext >&5
40712 ac_header_preproc=no
40715 rm -f conftest.err conftest.$ac_ext
40716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40717 echo "${ECHO_T}$ac_header_preproc" >&6; }
40719 # So? What about this header?
40720 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40721 yes:no: )
40722 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40723 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40724 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40725 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40726 ac_header_preproc=yes
40728 no:yes:* )
40729 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40730 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40731 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40732 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40733 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40734 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40735 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40736 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40737 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40738 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40739 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40740 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40741 ( cat <<\_ASBOX
40742 ## ------------------------------- ##
40743 ## Report this to www.asterisk.org ##
40744 ## ------------------------------- ##
40745 _ASBOX
40746 ) | sed "s/^/$as_me: WARNING: /" >&2
40748 esac
40749 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40750 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40752 echo $ECHO_N "(cached) $ECHO_C" >&6
40753 else
40754 eval "$as_ac_Header=\$ac_header_preproc"
40756 ac_res=`eval echo '${'$as_ac_Header'}'`
40757 { echo "$as_me:$LINENO: result: $ac_res" >&5
40758 echo "${ECHO_T}$ac_res" >&6; }
40761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40762 HAS_OPENH323=1
40767 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40768 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40770 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40771 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40773 echo $ECHO_N "(cached) $ECHO_C" >&6
40775 ac_res=`eval echo '${'$as_ac_Header'}'`
40776 { echo "$as_me:$LINENO: result: $ac_res" >&5
40777 echo "${ECHO_T}$ac_res" >&6; }
40778 else
40779 # Is the header compilable?
40780 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40781 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40782 cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h. */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h. */
40788 $ac_includes_default
40789 #include <${PWLIBDIR}/../openh323/version.h>
40790 _ACEOF
40791 rm -f conftest.$ac_objext
40792 if { (ac_try="$ac_compile"
40793 case "(($ac_try" in
40794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40795 *) ac_try_echo=$ac_try;;
40796 esac
40797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40798 (eval "$ac_compile") 2>conftest.er1
40799 ac_status=$?
40800 grep -v '^ *+' conftest.er1 >conftest.err
40801 rm -f conftest.er1
40802 cat conftest.err >&5
40803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804 (exit $ac_status); } && {
40805 test -z "$ac_cxx_werror_flag" ||
40806 test ! -s conftest.err
40807 } && test -s conftest.$ac_objext; then
40808 ac_header_compiler=yes
40809 else
40810 echo "$as_me: failed program was:" >&5
40811 sed 's/^/| /' conftest.$ac_ext >&5
40813 ac_header_compiler=no
40816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40818 echo "${ECHO_T}$ac_header_compiler" >&6; }
40820 # Is the header present?
40821 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
40822 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
40823 cat >conftest.$ac_ext <<_ACEOF
40824 /* confdefs.h. */
40825 _ACEOF
40826 cat confdefs.h >>conftest.$ac_ext
40827 cat >>conftest.$ac_ext <<_ACEOF
40828 /* end confdefs.h. */
40829 #include <${PWLIBDIR}/../openh323/version.h>
40830 _ACEOF
40831 if { (ac_try="$ac_cpp conftest.$ac_ext"
40832 case "(($ac_try" in
40833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40834 *) ac_try_echo=$ac_try;;
40835 esac
40836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40838 ac_status=$?
40839 grep -v '^ *+' conftest.er1 >conftest.err
40840 rm -f conftest.er1
40841 cat conftest.err >&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } >/dev/null && {
40844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40845 test ! -s conftest.err
40846 }; then
40847 ac_header_preproc=yes
40848 else
40849 echo "$as_me: failed program was:" >&5
40850 sed 's/^/| /' conftest.$ac_ext >&5
40852 ac_header_preproc=no
40855 rm -f conftest.err conftest.$ac_ext
40856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40857 echo "${ECHO_T}$ac_header_preproc" >&6; }
40859 # So? What about this header?
40860 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40861 yes:no: )
40862 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40863 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40864 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
40865 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
40866 ac_header_preproc=yes
40868 no:yes:* )
40869 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
40870 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
40871 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
40872 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
40873 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
40874 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
40875 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
40876 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40877 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
40878 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
40879 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
40880 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
40881 ( cat <<\_ASBOX
40882 ## ------------------------------- ##
40883 ## Report this to www.asterisk.org ##
40884 ## ------------------------------- ##
40885 _ASBOX
40886 ) | sed "s/^/$as_me: WARNING: /" >&2
40888 esac
40889 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40890 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40892 echo $ECHO_N "(cached) $ECHO_C" >&6
40893 else
40894 eval "$as_ac_Header=\$ac_header_preproc"
40896 ac_res=`eval echo '${'$as_ac_Header'}'`
40897 { echo "$as_me:$LINENO: result: $ac_res" >&5
40898 echo "${ECHO_T}$ac_res" >&6; }
40901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40902 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
40906 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40907 OPENH323DIR="${PWLIBDIR}/../openh323"
40908 saved_cppflags="${CPPFLAGS}"
40909 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
40910 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
40911 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
40912 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
40913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40914 echo $ECHO_N "(cached) $ECHO_C" >&6
40915 else
40916 cat >conftest.$ac_ext <<_ACEOF
40917 /* confdefs.h. */
40918 _ACEOF
40919 cat confdefs.h >>conftest.$ac_ext
40920 cat >>conftest.$ac_ext <<_ACEOF
40921 /* end confdefs.h. */
40922 #include <ptlib.h>
40924 #include <${OPENH323DIR}/include/h323.h>
40925 _ACEOF
40926 rm -f conftest.$ac_objext
40927 if { (ac_try="$ac_compile"
40928 case "(($ac_try" in
40929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40930 *) ac_try_echo=$ac_try;;
40931 esac
40932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40933 (eval "$ac_compile") 2>conftest.er1
40934 ac_status=$?
40935 grep -v '^ *+' conftest.er1 >conftest.err
40936 rm -f conftest.er1
40937 cat conftest.err >&5
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); } && {
40940 test -z "$ac_cxx_werror_flag" ||
40941 test ! -s conftest.err
40942 } && test -s conftest.$ac_objext; then
40943 eval "$as_ac_Header=yes"
40944 else
40945 echo "$as_me: failed program was:" >&5
40946 sed 's/^/| /' conftest.$ac_ext >&5
40948 eval "$as_ac_Header=no"
40951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40953 ac_res=`eval echo '${'$as_ac_Header'}'`
40954 { echo "$as_me:$LINENO: result: $ac_res" >&5
40955 echo "${ECHO_T}$ac_res" >&6; }
40956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40958 else
40959 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
40963 CPPFLAGS="${saved_cppflags}"
40964 else
40965 saved_cppflags="${CPPFLAGS}"
40966 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
40967 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
40968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40969 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40970 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40972 echo $ECHO_N "(cached) $ECHO_C" >&6
40974 ac_res=`eval echo '${'$as_ac_Header'}'`
40975 { echo "$as_me:$LINENO: result: $ac_res" >&5
40976 echo "${ECHO_T}$ac_res" >&6; }
40977 else
40978 # Is the header compilable?
40979 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
40980 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
40981 cat >conftest.$ac_ext <<_ACEOF
40982 /* confdefs.h. */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h. */
40987 $ac_includes_default
40988 #include <${HOME}/openh323/include/h323.h>
40989 _ACEOF
40990 rm -f conftest.$ac_objext
40991 if { (ac_try="$ac_compile"
40992 case "(($ac_try" in
40993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40994 *) ac_try_echo=$ac_try;;
40995 esac
40996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40997 (eval "$ac_compile") 2>conftest.er1
40998 ac_status=$?
40999 grep -v '^ *+' conftest.er1 >conftest.err
41000 rm -f conftest.er1
41001 cat conftest.err >&5
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); } && {
41004 test -z "$ac_cxx_werror_flag" ||
41005 test ! -s conftest.err
41006 } && test -s conftest.$ac_objext; then
41007 ac_header_compiler=yes
41008 else
41009 echo "$as_me: failed program was:" >&5
41010 sed 's/^/| /' conftest.$ac_ext >&5
41012 ac_header_compiler=no
41015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41017 echo "${ECHO_T}$ac_header_compiler" >&6; }
41019 # Is the header present?
41020 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41021 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41022 cat >conftest.$ac_ext <<_ACEOF
41023 /* confdefs.h. */
41024 _ACEOF
41025 cat confdefs.h >>conftest.$ac_ext
41026 cat >>conftest.$ac_ext <<_ACEOF
41027 /* end confdefs.h. */
41028 #include <${HOME}/openh323/include/h323.h>
41029 _ACEOF
41030 if { (ac_try="$ac_cpp conftest.$ac_ext"
41031 case "(($ac_try" in
41032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41033 *) ac_try_echo=$ac_try;;
41034 esac
41035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41037 ac_status=$?
41038 grep -v '^ *+' conftest.er1 >conftest.err
41039 rm -f conftest.er1
41040 cat conftest.err >&5
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); } >/dev/null && {
41043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41044 test ! -s conftest.err
41045 }; then
41046 ac_header_preproc=yes
41047 else
41048 echo "$as_me: failed program was:" >&5
41049 sed 's/^/| /' conftest.$ac_ext >&5
41051 ac_header_preproc=no
41054 rm -f conftest.err conftest.$ac_ext
41055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41056 echo "${ECHO_T}$ac_header_preproc" >&6; }
41058 # So? What about this header?
41059 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41060 yes:no: )
41061 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41062 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41063 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41064 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41065 ac_header_preproc=yes
41067 no:yes:* )
41068 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41069 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41070 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41071 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41072 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41073 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41074 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41075 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41076 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41077 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41078 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41079 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41080 ( cat <<\_ASBOX
41081 ## ------------------------------- ##
41082 ## Report this to www.asterisk.org ##
41083 ## ------------------------------- ##
41084 _ASBOX
41085 ) | sed "s/^/$as_me: WARNING: /" >&2
41087 esac
41088 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41089 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41091 echo $ECHO_N "(cached) $ECHO_C" >&6
41092 else
41093 eval "$as_ac_Header=\$ac_header_preproc"
41095 ac_res=`eval echo '${'$as_ac_Header'}'`
41096 { echo "$as_me:$LINENO: result: $ac_res" >&5
41097 echo "${ECHO_T}$ac_res" >&6; }
41100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41101 HAS_OPENH323=1
41105 CPPFLAGS="${saved_cppflags}"
41106 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41107 OPENH323DIR="${HOME}/openh323"
41108 else
41109 saved_cppflags="${CPPFLAGS}"
41110 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41111 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41112 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41113 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41114 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41115 echo $ECHO_N "(cached) $ECHO_C" >&6
41117 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41118 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41119 else
41120 # Is the header compilable?
41121 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41122 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41123 cat >conftest.$ac_ext <<_ACEOF
41124 /* confdefs.h. */
41125 _ACEOF
41126 cat confdefs.h >>conftest.$ac_ext
41127 cat >>conftest.$ac_ext <<_ACEOF
41128 /* end confdefs.h. */
41129 $ac_includes_default
41130 #include </usr/local/include/openh323/h323.h>
41131 _ACEOF
41132 rm -f conftest.$ac_objext
41133 if { (ac_try="$ac_compile"
41134 case "(($ac_try" in
41135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41136 *) ac_try_echo=$ac_try;;
41137 esac
41138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41139 (eval "$ac_compile") 2>conftest.er1
41140 ac_status=$?
41141 grep -v '^ *+' conftest.er1 >conftest.err
41142 rm -f conftest.er1
41143 cat conftest.err >&5
41144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); } && {
41146 test -z "$ac_cxx_werror_flag" ||
41147 test ! -s conftest.err
41148 } && test -s conftest.$ac_objext; then
41149 ac_header_compiler=yes
41150 else
41151 echo "$as_me: failed program was:" >&5
41152 sed 's/^/| /' conftest.$ac_ext >&5
41154 ac_header_compiler=no
41157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41159 echo "${ECHO_T}$ac_header_compiler" >&6; }
41161 # Is the header present?
41162 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41163 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41164 cat >conftest.$ac_ext <<_ACEOF
41165 /* confdefs.h. */
41166 _ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h. */
41170 #include </usr/local/include/openh323/h323.h>
41171 _ACEOF
41172 if { (ac_try="$ac_cpp conftest.$ac_ext"
41173 case "(($ac_try" in
41174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175 *) ac_try_echo=$ac_try;;
41176 esac
41177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41179 ac_status=$?
41180 grep -v '^ *+' conftest.er1 >conftest.err
41181 rm -f conftest.er1
41182 cat conftest.err >&5
41183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184 (exit $ac_status); } >/dev/null && {
41185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41186 test ! -s conftest.err
41187 }; then
41188 ac_header_preproc=yes
41189 else
41190 echo "$as_me: failed program was:" >&5
41191 sed 's/^/| /' conftest.$ac_ext >&5
41193 ac_header_preproc=no
41196 rm -f conftest.err conftest.$ac_ext
41197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41198 echo "${ECHO_T}$ac_header_preproc" >&6; }
41200 # So? What about this header?
41201 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41202 yes:no: )
41203 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41204 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41205 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41206 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41207 ac_header_preproc=yes
41209 no:yes:* )
41210 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
41211 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
41212 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
41213 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
41214 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
41215 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
41216 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41217 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41218 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
41219 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
41220 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
41221 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
41222 ( cat <<\_ASBOX
41223 ## ------------------------------- ##
41224 ## Report this to www.asterisk.org ##
41225 ## ------------------------------- ##
41226 _ASBOX
41227 ) | sed "s/^/$as_me: WARNING: /" >&2
41229 esac
41230 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41231 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41232 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41233 echo $ECHO_N "(cached) $ECHO_C" >&6
41234 else
41235 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
41237 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41238 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41241 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
41242 HAS_OPENH323=1
41246 CPPFLAGS="${saved_cppflags}"
41247 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41248 OPENH323DIR="/usr/local/share/openh323"
41249 OPENH323_INCDIR="/usr/local/include/openh323"
41250 if test "x$LIB64" != "x"; then
41251 OPENH323_LIBDIR="/usr/local/lib64"
41252 else
41253 OPENH323_LIBDIR="/usr/local/lib"
41255 else
41256 saved_cppflags="${CPPFLAGS}"
41257 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
41258 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
41259 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
41260 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
41261 echo $ECHO_N "(cached) $ECHO_C" >&6
41262 else
41263 cat >conftest.$ac_ext <<_ACEOF
41264 /* confdefs.h. */
41265 _ACEOF
41266 cat confdefs.h >>conftest.$ac_ext
41267 cat >>conftest.$ac_ext <<_ACEOF
41268 /* end confdefs.h. */
41269 #include <ptlib.h>
41271 #include </usr/include/openh323/h323.h>
41272 _ACEOF
41273 rm -f conftest.$ac_objext
41274 if { (ac_try="$ac_compile"
41275 case "(($ac_try" in
41276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41277 *) ac_try_echo=$ac_try;;
41278 esac
41279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41280 (eval "$ac_compile") 2>conftest.er1
41281 ac_status=$?
41282 grep -v '^ *+' conftest.er1 >conftest.err
41283 rm -f conftest.er1
41284 cat conftest.err >&5
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); } && {
41287 test -z "$ac_cxx_werror_flag" ||
41288 test ! -s conftest.err
41289 } && test -s conftest.$ac_objext; then
41290 ac_cv_header__usr_include_openh323_h323_h=yes
41291 else
41292 echo "$as_me: failed program was:" >&5
41293 sed 's/^/| /' conftest.$ac_ext >&5
41295 ac_cv_header__usr_include_openh323_h323_h=no
41298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41300 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
41301 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
41302 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
41303 HAS_OPENH323=1
41307 CPPFLAGS="${saved_cppflags}"
41308 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41309 OPENH323DIR="/usr/share/openh323"
41310 OPENH323_INCDIR="/usr/include/openh323"
41311 if test "x$LIB64" != "x"; then
41312 OPENH323_LIBDIR="/usr/lib64"
41313 else
41314 OPENH323_LIBDIR="/usr/lib"
41322 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41323 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
41324 OPENH323_INCDIR="${OPENH323DIR}/include"
41326 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
41327 OPENH323_LIBDIR="${OPENH323DIR}/lib"
41330 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
41331 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
41332 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
41338 ac_ext=c
41339 ac_cpp='$CPP $CPPFLAGS'
41340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41346 if test "${HAS_OPENH323:-unset}" != "unset"; then
41347 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41348 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
41349 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
41350 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
41351 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
41352 let OPENH323_REQ=1*10000+17*100+3
41354 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
41355 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41356 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
41357 { echo "$as_me:$LINENO: result: no" >&5
41358 echo "${ECHO_T}no" >&6; }
41359 unset HAS_OPENH323
41360 else
41361 { echo "$as_me:$LINENO: result: yes" >&5
41362 echo "${ECHO_T}yes" >&6; }
41367 if test "${HAS_OPENH323:-unset}" != "unset"; then
41368 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
41369 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
41370 OPENH323_SUFFIX=
41371 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
41372 for pfx in $prefixes; do
41373 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
41374 libfile=
41375 if test -n "$files"; then
41376 for f in $files; do
41377 if test -f $f -a ! -L $f; then
41378 libfile=`basename $f`
41379 break;
41381 done
41383 if test -n "$libfile"; then
41384 OPENH323_PREFIX=$pfx
41385 break;
41387 done
41388 if test "${libfile:-unset}" != "unset"; then
41389 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
41391 case "${OPENH323_SUFFIX}" in
41393 OPENH323_BUILD="notrace";;
41395 OPENH323_BUILD="opt";;
41397 OPENH323_BUILD="debug";;
41399 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
41400 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
41401 if test "x$notrace" = "x"; then
41402 notrace="0"
41404 if test "$notrace" -ne 0; then
41405 OPENH323_BUILD="notrace"
41406 else
41407 OPENH323_BUILD="opt"
41409 OPENH323_LIB="-l${OPENH323_PREFIX}"
41410 else
41411 OPENH323_BUILD="notrace"
41414 esac
41415 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
41416 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
41422 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
41424 if test "${HAS_OPENH323:-unset}" != "unset"; then
41425 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
41426 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
41428 saved_cppflags="${CPPFLAGS}"
41429 saved_libs="${LIBS}"
41430 if test "${OPENH323_LIB:-unset}" != "unset"; then
41431 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
41432 else
41433 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
41435 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
41437 ac_ext=cpp
41438 ac_cpp='$CXXCPP $CPPFLAGS'
41439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41444 cat >conftest.$ac_ext <<_ACEOF
41445 /* confdefs.h. */
41446 _ACEOF
41447 cat confdefs.h >>conftest.$ac_ext
41448 cat >>conftest.$ac_ext <<_ACEOF
41449 /* end confdefs.h. */
41450 #include "ptlib.h"
41451 #include "h323.h"
41452 #include "h323ep.h"
41454 main ()
41456 H323EndPoint ep = H323EndPoint();
41458 return 0;
41460 _ACEOF
41461 rm -f conftest.$ac_objext conftest$ac_exeext
41462 if { (ac_try="$ac_link"
41463 case "(($ac_try" in
41464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41465 *) ac_try_echo=$ac_try;;
41466 esac
41467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41468 (eval "$ac_link") 2>conftest.er1
41469 ac_status=$?
41470 grep -v '^ *+' conftest.er1 >conftest.err
41471 rm -f conftest.er1
41472 cat conftest.err >&5
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); } && {
41475 test -z "$ac_cxx_werror_flag" ||
41476 test ! -s conftest.err
41477 } && test -s conftest$ac_exeext &&
41478 $as_test_x conftest$ac_exeext; then
41479 { echo "$as_me:$LINENO: result: yes" >&5
41480 echo "${ECHO_T}yes" >&6; }
41481 ac_cv_lib_OPENH323="yes"
41483 else
41484 echo "$as_me: failed program was:" >&5
41485 sed 's/^/| /' conftest.$ac_ext >&5
41487 { echo "$as_me:$LINENO: result: no" >&5
41488 echo "${ECHO_T}no" >&6; }
41489 ac_cv_lib_OPENH323="no"
41494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41495 conftest$ac_exeext conftest.$ac_ext
41497 ac_ext=c
41498 ac_cpp='$CPP $CPPFLAGS'
41499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41504 LIBS="${saved_libs}"
41505 CPPFLAGS="${saved_cppflags}"
41507 if test "${ac_cv_lib_OPENH323}" = "yes"; then
41508 if test "${OPENH323_LIB:-undef}" = "undef"; then
41509 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
41510 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
41511 else
41512 OPENH323_LIB="-l${PLATFORM_OPENH323}"
41515 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
41516 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
41518 PBX_OPENH323=1
41520 cat >>confdefs.h <<\_ACEOF
41521 #define HAVE_OPENH323 1
41522 _ACEOF
41529 LUA_INCLUDE="-I/usr/include/lua5.1"
41530 LUA_LIB="-llua5.1"
41532 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
41533 pbxlibdir=""
41534 # if --with-LUA=DIR has been specified, use it.
41535 if test "x${LUA_DIR}" != "x"; then
41536 if test -d ${LUA_DIR}/lib; then
41537 pbxlibdir="-L${LUA_DIR}/lib"
41538 else
41539 pbxlibdir="-L${LUA_DIR}"
41542 pbxfuncname="luaL_newstate"
41543 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41544 AST_LUA_FOUND=yes
41545 else
41546 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
41547 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
41548 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
41549 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41550 echo $ECHO_N "(cached) $ECHO_C" >&6
41551 else
41552 ac_check_lib_save_LIBS=$LIBS
41553 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
41554 cat >conftest.$ac_ext <<_ACEOF
41555 /* confdefs.h. */
41556 _ACEOF
41557 cat confdefs.h >>conftest.$ac_ext
41558 cat >>conftest.$ac_ext <<_ACEOF
41559 /* end confdefs.h. */
41561 /* Override any GCC internal prototype to avoid an error.
41562 Use char because int might match the return type of a GCC
41563 builtin and then its argument prototype would still apply. */
41564 #ifdef __cplusplus
41565 extern "C"
41566 #endif
41567 char ${pbxfuncname} ();
41569 main ()
41571 return ${pbxfuncname} ();
41573 return 0;
41575 _ACEOF
41576 rm -f conftest.$ac_objext conftest$ac_exeext
41577 if { (ac_try="$ac_link"
41578 case "(($ac_try" in
41579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41580 *) ac_try_echo=$ac_try;;
41581 esac
41582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41583 (eval "$ac_link") 2>conftest.er1
41584 ac_status=$?
41585 grep -v '^ *+' conftest.er1 >conftest.err
41586 rm -f conftest.er1
41587 cat conftest.err >&5
41588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589 (exit $ac_status); } && {
41590 test -z "$ac_c_werror_flag" ||
41591 test ! -s conftest.err
41592 } && test -s conftest$ac_exeext &&
41593 $as_test_x conftest$ac_exeext; then
41594 eval "$as_ac_Lib=yes"
41595 else
41596 echo "$as_me: failed program was:" >&5
41597 sed 's/^/| /' conftest.$ac_ext >&5
41599 eval "$as_ac_Lib=no"
41602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41603 conftest$ac_exeext conftest.$ac_ext
41604 LIBS=$ac_check_lib_save_LIBS
41606 ac_res=`eval echo '${'$as_ac_Lib'}'`
41607 { echo "$as_me:$LINENO: result: $ac_res" >&5
41608 echo "${ECHO_T}$ac_res" >&6; }
41609 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41610 AST_LUA_FOUND=yes
41611 else
41612 AST_LUA_FOUND=no
41617 # now check for the header.
41618 if test "${AST_LUA_FOUND}" = "yes"; then
41619 LUA_LIB="${pbxlibdir} -llua5.1 "
41620 # if --with-LUA=DIR has been specified, use it.
41621 if test "x${LUA_DIR}" != "x"; then
41622 LUA_INCLUDE="-I${LUA_DIR}/include"
41624 LUA_INCLUDE="${LUA_INCLUDE} "
41625 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
41626 LUA_HEADER_FOUND="1"
41627 else # check for the header
41628 saved_cppflags="${CPPFLAGS}"
41629 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
41630 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41631 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41632 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41633 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41634 echo $ECHO_N "(cached) $ECHO_C" >&6
41636 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41637 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41638 else
41639 # Is the header compilable?
41640 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
41641 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
41642 cat >conftest.$ac_ext <<_ACEOF
41643 /* confdefs.h. */
41644 _ACEOF
41645 cat confdefs.h >>conftest.$ac_ext
41646 cat >>conftest.$ac_ext <<_ACEOF
41647 /* end confdefs.h. */
41648 $ac_includes_default
41649 #include <lua5.1/lua.h>
41650 _ACEOF
41651 rm -f conftest.$ac_objext
41652 if { (ac_try="$ac_compile"
41653 case "(($ac_try" in
41654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41655 *) ac_try_echo=$ac_try;;
41656 esac
41657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41658 (eval "$ac_compile") 2>conftest.er1
41659 ac_status=$?
41660 grep -v '^ *+' conftest.er1 >conftest.err
41661 rm -f conftest.er1
41662 cat conftest.err >&5
41663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); } && {
41665 test -z "$ac_c_werror_flag" ||
41666 test ! -s conftest.err
41667 } && test -s conftest.$ac_objext; then
41668 ac_header_compiler=yes
41669 else
41670 echo "$as_me: failed program was:" >&5
41671 sed 's/^/| /' conftest.$ac_ext >&5
41673 ac_header_compiler=no
41676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41678 echo "${ECHO_T}$ac_header_compiler" >&6; }
41680 # Is the header present?
41681 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41682 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41683 cat >conftest.$ac_ext <<_ACEOF
41684 /* confdefs.h. */
41685 _ACEOF
41686 cat confdefs.h >>conftest.$ac_ext
41687 cat >>conftest.$ac_ext <<_ACEOF
41688 /* end confdefs.h. */
41689 #include <lua5.1/lua.h>
41690 _ACEOF
41691 if { (ac_try="$ac_cpp conftest.$ac_ext"
41692 case "(($ac_try" in
41693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41694 *) ac_try_echo=$ac_try;;
41695 esac
41696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41698 ac_status=$?
41699 grep -v '^ *+' conftest.er1 >conftest.err
41700 rm -f conftest.er1
41701 cat conftest.err >&5
41702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703 (exit $ac_status); } >/dev/null && {
41704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41705 test ! -s conftest.err
41706 }; then
41707 ac_header_preproc=yes
41708 else
41709 echo "$as_me: failed program was:" >&5
41710 sed 's/^/| /' conftest.$ac_ext >&5
41712 ac_header_preproc=no
41715 rm -f conftest.err conftest.$ac_ext
41716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41717 echo "${ECHO_T}$ac_header_preproc" >&6; }
41719 # So? What about this header?
41720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41721 yes:no: )
41722 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41723 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41724 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41725 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41726 ac_header_preproc=yes
41728 no:yes:* )
41729 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41730 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41731 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41732 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41733 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41734 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41735 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41736 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41737 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41738 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41739 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41740 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41741 ( cat <<\_ASBOX
41742 ## ------------------------------- ##
41743 ## Report this to www.asterisk.org ##
41744 ## ------------------------------- ##
41745 _ASBOX
41746 ) | sed "s/^/$as_me: WARNING: /" >&2
41748 esac
41749 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41750 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41751 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41752 echo $ECHO_N "(cached) $ECHO_C" >&6
41753 else
41754 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41756 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41757 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41760 if test $ac_cv_header_lua5_1_lua_h = yes; then
41761 LUA_HEADER_FOUND=1
41762 else
41763 LUA_HEADER_FOUND=0
41767 CPPFLAGS="${saved_cppflags}"
41769 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41770 LUA_LIB=""
41771 LUA_INCLUDE=""
41772 else
41773 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41774 LUA_LIB=""
41776 PBX_LUA=1
41777 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41779 cat >>confdefs.h <<_ACEOF
41780 #define HAVE_LUA 1
41781 _ACEOF
41784 cat >>confdefs.h <<_ACEOF
41785 #define HAVE_LUA_VERSION
41786 _ACEOF
41794 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41795 pbxlibdir=""
41796 # if --with-RADIUS=DIR has been specified, use it.
41797 if test "x${RADIUS_DIR}" != "x"; then
41798 if test -d ${RADIUS_DIR}/lib; then
41799 pbxlibdir="-L${RADIUS_DIR}/lib"
41800 else
41801 pbxlibdir="-L${RADIUS_DIR}"
41804 pbxfuncname="rc_read_config"
41805 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41806 AST_RADIUS_FOUND=yes
41807 else
41808 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
41809 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
41810 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
41811 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41812 echo $ECHO_N "(cached) $ECHO_C" >&6
41813 else
41814 ac_check_lib_save_LIBS=$LIBS
41815 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
41816 cat >conftest.$ac_ext <<_ACEOF
41817 /* confdefs.h. */
41818 _ACEOF
41819 cat confdefs.h >>conftest.$ac_ext
41820 cat >>conftest.$ac_ext <<_ACEOF
41821 /* end confdefs.h. */
41823 /* Override any GCC internal prototype to avoid an error.
41824 Use char because int might match the return type of a GCC
41825 builtin and then its argument prototype would still apply. */
41826 #ifdef __cplusplus
41827 extern "C"
41828 #endif
41829 char ${pbxfuncname} ();
41831 main ()
41833 return ${pbxfuncname} ();
41835 return 0;
41837 _ACEOF
41838 rm -f conftest.$ac_objext conftest$ac_exeext
41839 if { (ac_try="$ac_link"
41840 case "(($ac_try" in
41841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41842 *) ac_try_echo=$ac_try;;
41843 esac
41844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41845 (eval "$ac_link") 2>conftest.er1
41846 ac_status=$?
41847 grep -v '^ *+' conftest.er1 >conftest.err
41848 rm -f conftest.er1
41849 cat conftest.err >&5
41850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851 (exit $ac_status); } && {
41852 test -z "$ac_c_werror_flag" ||
41853 test ! -s conftest.err
41854 } && test -s conftest$ac_exeext &&
41855 $as_test_x conftest$ac_exeext; then
41856 eval "$as_ac_Lib=yes"
41857 else
41858 echo "$as_me: failed program was:" >&5
41859 sed 's/^/| /' conftest.$ac_ext >&5
41861 eval "$as_ac_Lib=no"
41864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41865 conftest$ac_exeext conftest.$ac_ext
41866 LIBS=$ac_check_lib_save_LIBS
41868 ac_res=`eval echo '${'$as_ac_Lib'}'`
41869 { echo "$as_me:$LINENO: result: $ac_res" >&5
41870 echo "${ECHO_T}$ac_res" >&6; }
41871 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41872 AST_RADIUS_FOUND=yes
41873 else
41874 AST_RADIUS_FOUND=no
41879 # now check for the header.
41880 if test "${AST_RADIUS_FOUND}" = "yes"; then
41881 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
41882 # if --with-RADIUS=DIR has been specified, use it.
41883 if test "x${RADIUS_DIR}" != "x"; then
41884 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
41886 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
41887 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
41888 RADIUS_HEADER_FOUND="1"
41889 else # check for the header
41890 saved_cppflags="${CPPFLAGS}"
41891 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
41892 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41893 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41894 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41895 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41896 echo $ECHO_N "(cached) $ECHO_C" >&6
41898 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41899 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41900 else
41901 # Is the header compilable?
41902 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
41903 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
41904 cat >conftest.$ac_ext <<_ACEOF
41905 /* confdefs.h. */
41906 _ACEOF
41907 cat confdefs.h >>conftest.$ac_ext
41908 cat >>conftest.$ac_ext <<_ACEOF
41909 /* end confdefs.h. */
41910 $ac_includes_default
41911 #include <radiusclient-ng.h>
41912 _ACEOF
41913 rm -f conftest.$ac_objext
41914 if { (ac_try="$ac_compile"
41915 case "(($ac_try" in
41916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41917 *) ac_try_echo=$ac_try;;
41918 esac
41919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41920 (eval "$ac_compile") 2>conftest.er1
41921 ac_status=$?
41922 grep -v '^ *+' conftest.er1 >conftest.err
41923 rm -f conftest.er1
41924 cat conftest.err >&5
41925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926 (exit $ac_status); } && {
41927 test -z "$ac_c_werror_flag" ||
41928 test ! -s conftest.err
41929 } && test -s conftest.$ac_objext; then
41930 ac_header_compiler=yes
41931 else
41932 echo "$as_me: failed program was:" >&5
41933 sed 's/^/| /' conftest.$ac_ext >&5
41935 ac_header_compiler=no
41938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41940 echo "${ECHO_T}$ac_header_compiler" >&6; }
41942 # Is the header present?
41943 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
41944 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
41945 cat >conftest.$ac_ext <<_ACEOF
41946 /* confdefs.h. */
41947 _ACEOF
41948 cat confdefs.h >>conftest.$ac_ext
41949 cat >>conftest.$ac_ext <<_ACEOF
41950 /* end confdefs.h. */
41951 #include <radiusclient-ng.h>
41952 _ACEOF
41953 if { (ac_try="$ac_cpp conftest.$ac_ext"
41954 case "(($ac_try" in
41955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41956 *) ac_try_echo=$ac_try;;
41957 esac
41958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41960 ac_status=$?
41961 grep -v '^ *+' conftest.er1 >conftest.err
41962 rm -f conftest.er1
41963 cat conftest.err >&5
41964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41965 (exit $ac_status); } >/dev/null && {
41966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41967 test ! -s conftest.err
41968 }; then
41969 ac_header_preproc=yes
41970 else
41971 echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41974 ac_header_preproc=no
41977 rm -f conftest.err conftest.$ac_ext
41978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41979 echo "${ECHO_T}$ac_header_preproc" >&6; }
41981 # So? What about this header?
41982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41983 yes:no: )
41984 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
41985 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41986 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
41987 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
41988 ac_header_preproc=yes
41990 no:yes:* )
41991 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
41992 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
41993 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
41994 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
41995 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
41996 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
41997 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
41998 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
41999 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42000 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42001 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42002 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42003 ( cat <<\_ASBOX
42004 ## ------------------------------- ##
42005 ## Report this to www.asterisk.org ##
42006 ## ------------------------------- ##
42007 _ASBOX
42008 ) | sed "s/^/$as_me: WARNING: /" >&2
42010 esac
42011 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42012 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42013 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42014 echo $ECHO_N "(cached) $ECHO_C" >&6
42015 else
42016 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42018 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42019 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42022 if test $ac_cv_header_radiusclient_ng_h = yes; then
42023 RADIUS_HEADER_FOUND=1
42024 else
42025 RADIUS_HEADER_FOUND=0
42029 CPPFLAGS="${saved_cppflags}"
42031 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42032 RADIUS_LIB=""
42033 RADIUS_INCLUDE=""
42034 else
42035 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42036 RADIUS_LIB=""
42038 PBX_RADIUS=1
42039 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42041 cat >>confdefs.h <<_ACEOF
42042 #define HAVE_RADIUS 1
42043 _ACEOF
42046 cat >>confdefs.h <<_ACEOF
42047 #define HAVE_RADIUS_VERSION
42048 _ACEOF
42056 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
42057 pbxlibdir=""
42058 # if --with-SPEEX=DIR has been specified, use it.
42059 if test "x${SPEEX_DIR}" != "x"; then
42060 if test -d ${SPEEX_DIR}/lib; then
42061 pbxlibdir="-L${SPEEX_DIR}/lib"
42062 else
42063 pbxlibdir="-L${SPEEX_DIR}"
42066 pbxfuncname="speex_encode"
42067 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42068 AST_SPEEX_FOUND=yes
42069 else
42070 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42071 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42072 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42073 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42074 echo $ECHO_N "(cached) $ECHO_C" >&6
42075 else
42076 ac_check_lib_save_LIBS=$LIBS
42077 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42078 cat >conftest.$ac_ext <<_ACEOF
42079 /* confdefs.h. */
42080 _ACEOF
42081 cat confdefs.h >>conftest.$ac_ext
42082 cat >>conftest.$ac_ext <<_ACEOF
42083 /* end confdefs.h. */
42085 /* Override any GCC internal prototype to avoid an error.
42086 Use char because int might match the return type of a GCC
42087 builtin and then its argument prototype would still apply. */
42088 #ifdef __cplusplus
42089 extern "C"
42090 #endif
42091 char ${pbxfuncname} ();
42093 main ()
42095 return ${pbxfuncname} ();
42097 return 0;
42099 _ACEOF
42100 rm -f conftest.$ac_objext conftest$ac_exeext
42101 if { (ac_try="$ac_link"
42102 case "(($ac_try" in
42103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42104 *) ac_try_echo=$ac_try;;
42105 esac
42106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42107 (eval "$ac_link") 2>conftest.er1
42108 ac_status=$?
42109 grep -v '^ *+' conftest.er1 >conftest.err
42110 rm -f conftest.er1
42111 cat conftest.err >&5
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); } && {
42114 test -z "$ac_c_werror_flag" ||
42115 test ! -s conftest.err
42116 } && test -s conftest$ac_exeext &&
42117 $as_test_x conftest$ac_exeext; then
42118 eval "$as_ac_Lib=yes"
42119 else
42120 echo "$as_me: failed program was:" >&5
42121 sed 's/^/| /' conftest.$ac_ext >&5
42123 eval "$as_ac_Lib=no"
42126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42127 conftest$ac_exeext conftest.$ac_ext
42128 LIBS=$ac_check_lib_save_LIBS
42130 ac_res=`eval echo '${'$as_ac_Lib'}'`
42131 { echo "$as_me:$LINENO: result: $ac_res" >&5
42132 echo "${ECHO_T}$ac_res" >&6; }
42133 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42134 AST_SPEEX_FOUND=yes
42135 else
42136 AST_SPEEX_FOUND=no
42141 # now check for the header.
42142 if test "${AST_SPEEX_FOUND}" = "yes"; then
42143 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
42144 # if --with-SPEEX=DIR has been specified, use it.
42145 if test "x${SPEEX_DIR}" != "x"; then
42146 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
42148 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
42149 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42150 SPEEX_HEADER_FOUND="1"
42151 else # check for the header
42152 saved_cppflags="${CPPFLAGS}"
42153 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
42154 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42155 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42156 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42157 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42158 echo $ECHO_N "(cached) $ECHO_C" >&6
42160 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42161 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42162 else
42163 # Is the header compilable?
42164 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42165 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42166 cat >conftest.$ac_ext <<_ACEOF
42167 /* confdefs.h. */
42168 _ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h. */
42172 $ac_includes_default
42173 #include <speex/speex.h>
42174 _ACEOF
42175 rm -f conftest.$ac_objext
42176 if { (ac_try="$ac_compile"
42177 case "(($ac_try" in
42178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42179 *) ac_try_echo=$ac_try;;
42180 esac
42181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42182 (eval "$ac_compile") 2>conftest.er1
42183 ac_status=$?
42184 grep -v '^ *+' conftest.er1 >conftest.err
42185 rm -f conftest.er1
42186 cat conftest.err >&5
42187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188 (exit $ac_status); } && {
42189 test -z "$ac_c_werror_flag" ||
42190 test ! -s conftest.err
42191 } && test -s conftest.$ac_objext; then
42192 ac_header_compiler=yes
42193 else
42194 echo "$as_me: failed program was:" >&5
42195 sed 's/^/| /' conftest.$ac_ext >&5
42197 ac_header_compiler=no
42200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42202 echo "${ECHO_T}$ac_header_compiler" >&6; }
42204 # Is the header present?
42205 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42206 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42207 cat >conftest.$ac_ext <<_ACEOF
42208 /* confdefs.h. */
42209 _ACEOF
42210 cat confdefs.h >>conftest.$ac_ext
42211 cat >>conftest.$ac_ext <<_ACEOF
42212 /* end confdefs.h. */
42213 #include <speex/speex.h>
42214 _ACEOF
42215 if { (ac_try="$ac_cpp conftest.$ac_ext"
42216 case "(($ac_try" in
42217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42218 *) ac_try_echo=$ac_try;;
42219 esac
42220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42222 ac_status=$?
42223 grep -v '^ *+' conftest.er1 >conftest.err
42224 rm -f conftest.er1
42225 cat conftest.err >&5
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); } >/dev/null && {
42228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42229 test ! -s conftest.err
42230 }; then
42231 ac_header_preproc=yes
42232 else
42233 echo "$as_me: failed program was:" >&5
42234 sed 's/^/| /' conftest.$ac_ext >&5
42236 ac_header_preproc=no
42239 rm -f conftest.err conftest.$ac_ext
42240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42241 echo "${ECHO_T}$ac_header_preproc" >&6; }
42243 # So? What about this header?
42244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42245 yes:no: )
42246 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42247 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42248 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42249 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42250 ac_header_preproc=yes
42252 no:yes:* )
42253 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42254 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42255 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42256 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42257 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42258 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42259 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42260 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42261 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42262 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42263 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42264 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42265 ( cat <<\_ASBOX
42266 ## ------------------------------- ##
42267 ## Report this to www.asterisk.org ##
42268 ## ------------------------------- ##
42269 _ASBOX
42270 ) | sed "s/^/$as_me: WARNING: /" >&2
42272 esac
42273 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42274 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42275 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42276 echo $ECHO_N "(cached) $ECHO_C" >&6
42277 else
42278 ac_cv_header_speex_speex_h=$ac_header_preproc
42280 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42281 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42284 if test $ac_cv_header_speex_speex_h = yes; then
42285 SPEEX_HEADER_FOUND=1
42286 else
42287 SPEEX_HEADER_FOUND=0
42291 CPPFLAGS="${saved_cppflags}"
42293 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
42294 SPEEX_LIB=""
42295 SPEEX_INCLUDE=""
42296 else
42297 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42298 SPEEX_LIB=""
42300 PBX_SPEEX=1
42301 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42303 cat >>confdefs.h <<_ACEOF
42304 #define HAVE_SPEEX 1
42305 _ACEOF
42308 cat >>confdefs.h <<_ACEOF
42309 #define HAVE_SPEEX_VERSION
42310 _ACEOF
42317 # See if the main speex library contains the preprocess functions
42319 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
42320 pbxlibdir=""
42321 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42322 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42323 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
42324 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
42325 else
42326 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
42329 pbxfuncname="speex_preprocess_ctl"
42330 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42331 AST_SPEEX_PREPROCESS_FOUND=yes
42332 else
42333 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42334 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42335 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42336 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42337 echo $ECHO_N "(cached) $ECHO_C" >&6
42338 else
42339 ac_check_lib_save_LIBS=$LIBS
42340 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42341 cat >conftest.$ac_ext <<_ACEOF
42342 /* confdefs.h. */
42343 _ACEOF
42344 cat confdefs.h >>conftest.$ac_ext
42345 cat >>conftest.$ac_ext <<_ACEOF
42346 /* end confdefs.h. */
42348 /* Override any GCC internal prototype to avoid an error.
42349 Use char because int might match the return type of a GCC
42350 builtin and then its argument prototype would still apply. */
42351 #ifdef __cplusplus
42352 extern "C"
42353 #endif
42354 char ${pbxfuncname} ();
42356 main ()
42358 return ${pbxfuncname} ();
42360 return 0;
42362 _ACEOF
42363 rm -f conftest.$ac_objext conftest$ac_exeext
42364 if { (ac_try="$ac_link"
42365 case "(($ac_try" in
42366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42367 *) ac_try_echo=$ac_try;;
42368 esac
42369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42370 (eval "$ac_link") 2>conftest.er1
42371 ac_status=$?
42372 grep -v '^ *+' conftest.er1 >conftest.err
42373 rm -f conftest.er1
42374 cat conftest.err >&5
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); } && {
42377 test -z "$ac_c_werror_flag" ||
42378 test ! -s conftest.err
42379 } && test -s conftest$ac_exeext &&
42380 $as_test_x conftest$ac_exeext; then
42381 eval "$as_ac_Lib=yes"
42382 else
42383 echo "$as_me: failed program was:" >&5
42384 sed 's/^/| /' conftest.$ac_ext >&5
42386 eval "$as_ac_Lib=no"
42389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42390 conftest$ac_exeext conftest.$ac_ext
42391 LIBS=$ac_check_lib_save_LIBS
42393 ac_res=`eval echo '${'$as_ac_Lib'}'`
42394 { echo "$as_me:$LINENO: result: $ac_res" >&5
42395 echo "${ECHO_T}$ac_res" >&6; }
42396 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42397 AST_SPEEX_PREPROCESS_FOUND=yes
42398 else
42399 AST_SPEEX_PREPROCESS_FOUND=no
42404 # now check for the header.
42405 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
42406 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
42407 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
42408 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
42409 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
42411 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
42412 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42413 SPEEX_PREPROCESS_HEADER_FOUND="1"
42414 else # check for the header
42415 saved_cppflags="${CPPFLAGS}"
42416 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE} "
42417 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42418 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42419 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42420 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42421 echo $ECHO_N "(cached) $ECHO_C" >&6
42423 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42424 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42425 else
42426 # Is the header compilable?
42427 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42428 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42429 cat >conftest.$ac_ext <<_ACEOF
42430 /* confdefs.h. */
42431 _ACEOF
42432 cat confdefs.h >>conftest.$ac_ext
42433 cat >>conftest.$ac_ext <<_ACEOF
42434 /* end confdefs.h. */
42435 $ac_includes_default
42436 #include <speex/speex.h>
42437 _ACEOF
42438 rm -f conftest.$ac_objext
42439 if { (ac_try="$ac_compile"
42440 case "(($ac_try" in
42441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42442 *) ac_try_echo=$ac_try;;
42443 esac
42444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42445 (eval "$ac_compile") 2>conftest.er1
42446 ac_status=$?
42447 grep -v '^ *+' conftest.er1 >conftest.err
42448 rm -f conftest.er1
42449 cat conftest.err >&5
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); } && {
42452 test -z "$ac_c_werror_flag" ||
42453 test ! -s conftest.err
42454 } && test -s conftest.$ac_objext; then
42455 ac_header_compiler=yes
42456 else
42457 echo "$as_me: failed program was:" >&5
42458 sed 's/^/| /' conftest.$ac_ext >&5
42460 ac_header_compiler=no
42463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42465 echo "${ECHO_T}$ac_header_compiler" >&6; }
42467 # Is the header present?
42468 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42469 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42470 cat >conftest.$ac_ext <<_ACEOF
42471 /* confdefs.h. */
42472 _ACEOF
42473 cat confdefs.h >>conftest.$ac_ext
42474 cat >>conftest.$ac_ext <<_ACEOF
42475 /* end confdefs.h. */
42476 #include <speex/speex.h>
42477 _ACEOF
42478 if { (ac_try="$ac_cpp conftest.$ac_ext"
42479 case "(($ac_try" in
42480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42481 *) ac_try_echo=$ac_try;;
42482 esac
42483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42485 ac_status=$?
42486 grep -v '^ *+' conftest.er1 >conftest.err
42487 rm -f conftest.er1
42488 cat conftest.err >&5
42489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490 (exit $ac_status); } >/dev/null && {
42491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42492 test ! -s conftest.err
42493 }; then
42494 ac_header_preproc=yes
42495 else
42496 echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42499 ac_header_preproc=no
42502 rm -f conftest.err conftest.$ac_ext
42503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42504 echo "${ECHO_T}$ac_header_preproc" >&6; }
42506 # So? What about this header?
42507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42508 yes:no: )
42509 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42510 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42511 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42512 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42513 ac_header_preproc=yes
42515 no:yes:* )
42516 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42517 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42518 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42519 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42520 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42521 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42522 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42523 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42524 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42525 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42526 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42527 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42528 ( cat <<\_ASBOX
42529 ## ------------------------------- ##
42530 ## Report this to www.asterisk.org ##
42531 ## ------------------------------- ##
42532 _ASBOX
42533 ) | sed "s/^/$as_me: WARNING: /" >&2
42535 esac
42536 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42537 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42538 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42539 echo $ECHO_N "(cached) $ECHO_C" >&6
42540 else
42541 ac_cv_header_speex_speex_h=$ac_header_preproc
42543 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42544 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42547 if test $ac_cv_header_speex_speex_h = yes; then
42548 SPEEX_PREPROCESS_HEADER_FOUND=1
42549 else
42550 SPEEX_PREPROCESS_HEADER_FOUND=0
42554 CPPFLAGS="${saved_cppflags}"
42556 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
42557 SPEEX_PREPROCESS_LIB=""
42558 SPEEX_PREPROCESS_INCLUDE=""
42559 else
42560 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42561 SPEEX_PREPROCESS_LIB=""
42563 PBX_SPEEX_PREPROCESS=1
42564 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42566 cat >>confdefs.h <<_ACEOF
42567 #define HAVE_SPEEX_PREPROCESS 1
42568 _ACEOF
42571 cat >>confdefs.h <<_ACEOF
42572 #define HAVE_SPEEX_PREPROCESS_VERSION
42573 _ACEOF
42579 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
42580 PBX_SPEEX_PREPROCESS=1
42584 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
42585 pbxlibdir=""
42586 # if --with-SPEEXDSP=DIR has been specified, use it.
42587 if test "x${SPEEXDSP_DIR}" != "x"; then
42588 if test -d ${SPEEXDSP_DIR}/lib; then
42589 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
42590 else
42591 pbxlibdir="-L${SPEEXDSP_DIR}"
42594 pbxfuncname="speex_preprocess_ctl"
42595 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42596 AST_SPEEXDSP_FOUND=yes
42597 else
42598 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
42599 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
42600 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
42601 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42602 echo $ECHO_N "(cached) $ECHO_C" >&6
42603 else
42604 ac_check_lib_save_LIBS=$LIBS
42605 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
42606 cat >conftest.$ac_ext <<_ACEOF
42607 /* confdefs.h. */
42608 _ACEOF
42609 cat confdefs.h >>conftest.$ac_ext
42610 cat >>conftest.$ac_ext <<_ACEOF
42611 /* end confdefs.h. */
42613 /* Override any GCC internal prototype to avoid an error.
42614 Use char because int might match the return type of a GCC
42615 builtin and then its argument prototype would still apply. */
42616 #ifdef __cplusplus
42617 extern "C"
42618 #endif
42619 char ${pbxfuncname} ();
42621 main ()
42623 return ${pbxfuncname} ();
42625 return 0;
42627 _ACEOF
42628 rm -f conftest.$ac_objext conftest$ac_exeext
42629 if { (ac_try="$ac_link"
42630 case "(($ac_try" in
42631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42632 *) ac_try_echo=$ac_try;;
42633 esac
42634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42635 (eval "$ac_link") 2>conftest.er1
42636 ac_status=$?
42637 grep -v '^ *+' conftest.er1 >conftest.err
42638 rm -f conftest.er1
42639 cat conftest.err >&5
42640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42641 (exit $ac_status); } && {
42642 test -z "$ac_c_werror_flag" ||
42643 test ! -s conftest.err
42644 } && test -s conftest$ac_exeext &&
42645 $as_test_x conftest$ac_exeext; then
42646 eval "$as_ac_Lib=yes"
42647 else
42648 echo "$as_me: failed program was:" >&5
42649 sed 's/^/| /' conftest.$ac_ext >&5
42651 eval "$as_ac_Lib=no"
42654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42655 conftest$ac_exeext conftest.$ac_ext
42656 LIBS=$ac_check_lib_save_LIBS
42658 ac_res=`eval echo '${'$as_ac_Lib'}'`
42659 { echo "$as_me:$LINENO: result: $ac_res" >&5
42660 echo "${ECHO_T}$ac_res" >&6; }
42661 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42662 AST_SPEEXDSP_FOUND=yes
42663 else
42664 AST_SPEEXDSP_FOUND=no
42669 # now check for the header.
42670 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
42671 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
42672 # if --with-SPEEXDSP=DIR has been specified, use it.
42673 if test "x${SPEEXDSP_DIR}" != "x"; then
42674 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
42676 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
42677 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42678 SPEEXDSP_HEADER_FOUND="1"
42679 else # check for the header
42680 saved_cppflags="${CPPFLAGS}"
42681 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
42682 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42683 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42684 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42685 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42686 echo $ECHO_N "(cached) $ECHO_C" >&6
42688 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42689 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42690 else
42691 # Is the header compilable?
42692 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42693 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42694 cat >conftest.$ac_ext <<_ACEOF
42695 /* confdefs.h. */
42696 _ACEOF
42697 cat confdefs.h >>conftest.$ac_ext
42698 cat >>conftest.$ac_ext <<_ACEOF
42699 /* end confdefs.h. */
42700 $ac_includes_default
42701 #include <speex/speex.h>
42702 _ACEOF
42703 rm -f conftest.$ac_objext
42704 if { (ac_try="$ac_compile"
42705 case "(($ac_try" in
42706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42707 *) ac_try_echo=$ac_try;;
42708 esac
42709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42710 (eval "$ac_compile") 2>conftest.er1
42711 ac_status=$?
42712 grep -v '^ *+' conftest.er1 >conftest.err
42713 rm -f conftest.er1
42714 cat conftest.err >&5
42715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716 (exit $ac_status); } && {
42717 test -z "$ac_c_werror_flag" ||
42718 test ! -s conftest.err
42719 } && test -s conftest.$ac_objext; then
42720 ac_header_compiler=yes
42721 else
42722 echo "$as_me: failed program was:" >&5
42723 sed 's/^/| /' conftest.$ac_ext >&5
42725 ac_header_compiler=no
42728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42730 echo "${ECHO_T}$ac_header_compiler" >&6; }
42732 # Is the header present?
42733 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42734 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42735 cat >conftest.$ac_ext <<_ACEOF
42736 /* confdefs.h. */
42737 _ACEOF
42738 cat confdefs.h >>conftest.$ac_ext
42739 cat >>conftest.$ac_ext <<_ACEOF
42740 /* end confdefs.h. */
42741 #include <speex/speex.h>
42742 _ACEOF
42743 if { (ac_try="$ac_cpp conftest.$ac_ext"
42744 case "(($ac_try" in
42745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42746 *) ac_try_echo=$ac_try;;
42747 esac
42748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42750 ac_status=$?
42751 grep -v '^ *+' conftest.er1 >conftest.err
42752 rm -f conftest.er1
42753 cat conftest.err >&5
42754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); } >/dev/null && {
42756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42757 test ! -s conftest.err
42758 }; then
42759 ac_header_preproc=yes
42760 else
42761 echo "$as_me: failed program was:" >&5
42762 sed 's/^/| /' conftest.$ac_ext >&5
42764 ac_header_preproc=no
42767 rm -f conftest.err conftest.$ac_ext
42768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42769 echo "${ECHO_T}$ac_header_preproc" >&6; }
42771 # So? What about this header?
42772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42773 yes:no: )
42774 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42775 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42776 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42777 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42778 ac_header_preproc=yes
42780 no:yes:* )
42781 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42782 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42783 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42784 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42785 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42786 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42787 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42788 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42789 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42790 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42791 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42792 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42793 ( cat <<\_ASBOX
42794 ## ------------------------------- ##
42795 ## Report this to www.asterisk.org ##
42796 ## ------------------------------- ##
42797 _ASBOX
42798 ) | sed "s/^/$as_me: WARNING: /" >&2
42800 esac
42801 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42802 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42803 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42804 echo $ECHO_N "(cached) $ECHO_C" >&6
42805 else
42806 ac_cv_header_speex_speex_h=$ac_header_preproc
42808 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42809 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42812 if test $ac_cv_header_speex_speex_h = yes; then
42813 SPEEXDSP_HEADER_FOUND=1
42814 else
42815 SPEEXDSP_HEADER_FOUND=0
42819 CPPFLAGS="${saved_cppflags}"
42821 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
42822 SPEEXDSP_LIB=""
42823 SPEEXDSP_INCLUDE=""
42824 else
42825 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42826 SPEEXDSP_LIB=""
42828 PBX_SPEEXDSP=1
42829 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42831 cat >>confdefs.h <<_ACEOF
42832 #define HAVE_SPEEXDSP 1
42833 _ACEOF
42836 cat >>confdefs.h <<_ACEOF
42837 #define HAVE_SPEEXDSP_VERSION
42838 _ACEOF
42844 if test "${PBX_SPEEXDSP}" = 1; then
42845 PBX_SPEEX_PREPROCESS=1
42851 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
42852 pbxlibdir=""
42853 # if --with-SQLITE=DIR has been specified, use it.
42854 if test "x${SQLITE_DIR}" != "x"; then
42855 if test -d ${SQLITE_DIR}/lib; then
42856 pbxlibdir="-L${SQLITE_DIR}/lib"
42857 else
42858 pbxlibdir="-L${SQLITE_DIR}"
42861 pbxfuncname="sqlite_exec"
42862 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42863 AST_SQLITE_FOUND=yes
42864 else
42865 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
42866 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
42867 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
42868 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42869 echo $ECHO_N "(cached) $ECHO_C" >&6
42870 else
42871 ac_check_lib_save_LIBS=$LIBS
42872 LIBS="-lsqlite ${pbxlibdir} $LIBS"
42873 cat >conftest.$ac_ext <<_ACEOF
42874 /* confdefs.h. */
42875 _ACEOF
42876 cat confdefs.h >>conftest.$ac_ext
42877 cat >>conftest.$ac_ext <<_ACEOF
42878 /* end confdefs.h. */
42880 /* Override any GCC internal prototype to avoid an error.
42881 Use char because int might match the return type of a GCC
42882 builtin and then its argument prototype would still apply. */
42883 #ifdef __cplusplus
42884 extern "C"
42885 #endif
42886 char ${pbxfuncname} ();
42888 main ()
42890 return ${pbxfuncname} ();
42892 return 0;
42894 _ACEOF
42895 rm -f conftest.$ac_objext conftest$ac_exeext
42896 if { (ac_try="$ac_link"
42897 case "(($ac_try" in
42898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42899 *) ac_try_echo=$ac_try;;
42900 esac
42901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42902 (eval "$ac_link") 2>conftest.er1
42903 ac_status=$?
42904 grep -v '^ *+' conftest.er1 >conftest.err
42905 rm -f conftest.er1
42906 cat conftest.err >&5
42907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); } && {
42909 test -z "$ac_c_werror_flag" ||
42910 test ! -s conftest.err
42911 } && test -s conftest$ac_exeext &&
42912 $as_test_x conftest$ac_exeext; then
42913 eval "$as_ac_Lib=yes"
42914 else
42915 echo "$as_me: failed program was:" >&5
42916 sed 's/^/| /' conftest.$ac_ext >&5
42918 eval "$as_ac_Lib=no"
42921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42922 conftest$ac_exeext conftest.$ac_ext
42923 LIBS=$ac_check_lib_save_LIBS
42925 ac_res=`eval echo '${'$as_ac_Lib'}'`
42926 { echo "$as_me:$LINENO: result: $ac_res" >&5
42927 echo "${ECHO_T}$ac_res" >&6; }
42928 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42929 AST_SQLITE_FOUND=yes
42930 else
42931 AST_SQLITE_FOUND=no
42936 # now check for the header.
42937 if test "${AST_SQLITE_FOUND}" = "yes"; then
42938 SQLITE_LIB="${pbxlibdir} -lsqlite "
42939 # if --with-SQLITE=DIR has been specified, use it.
42940 if test "x${SQLITE_DIR}" != "x"; then
42941 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
42943 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
42944 if test "xsqlite.h" = "x" ; then # no header, assume found
42945 SQLITE_HEADER_FOUND="1"
42946 else # check for the header
42947 saved_cppflags="${CPPFLAGS}"
42948 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
42949 if test "${ac_cv_header_sqlite_h+set}" = set; then
42950 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42951 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42952 if test "${ac_cv_header_sqlite_h+set}" = set; then
42953 echo $ECHO_N "(cached) $ECHO_C" >&6
42955 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42956 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42957 else
42958 # Is the header compilable?
42959 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
42960 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
42961 cat >conftest.$ac_ext <<_ACEOF
42962 /* confdefs.h. */
42963 _ACEOF
42964 cat confdefs.h >>conftest.$ac_ext
42965 cat >>conftest.$ac_ext <<_ACEOF
42966 /* end confdefs.h. */
42967 $ac_includes_default
42968 #include <sqlite.h>
42969 _ACEOF
42970 rm -f conftest.$ac_objext
42971 if { (ac_try="$ac_compile"
42972 case "(($ac_try" in
42973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42974 *) ac_try_echo=$ac_try;;
42975 esac
42976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42977 (eval "$ac_compile") 2>conftest.er1
42978 ac_status=$?
42979 grep -v '^ *+' conftest.er1 >conftest.err
42980 rm -f conftest.er1
42981 cat conftest.err >&5
42982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42983 (exit $ac_status); } && {
42984 test -z "$ac_c_werror_flag" ||
42985 test ! -s conftest.err
42986 } && test -s conftest.$ac_objext; then
42987 ac_header_compiler=yes
42988 else
42989 echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42992 ac_header_compiler=no
42995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42997 echo "${ECHO_T}$ac_header_compiler" >&6; }
42999 # Is the header present?
43000 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
43001 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
43002 cat >conftest.$ac_ext <<_ACEOF
43003 /* confdefs.h. */
43004 _ACEOF
43005 cat confdefs.h >>conftest.$ac_ext
43006 cat >>conftest.$ac_ext <<_ACEOF
43007 /* end confdefs.h. */
43008 #include <sqlite.h>
43009 _ACEOF
43010 if { (ac_try="$ac_cpp conftest.$ac_ext"
43011 case "(($ac_try" in
43012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43013 *) ac_try_echo=$ac_try;;
43014 esac
43015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43017 ac_status=$?
43018 grep -v '^ *+' conftest.er1 >conftest.err
43019 rm -f conftest.er1
43020 cat conftest.err >&5
43021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43022 (exit $ac_status); } >/dev/null && {
43023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43024 test ! -s conftest.err
43025 }; then
43026 ac_header_preproc=yes
43027 else
43028 echo "$as_me: failed program was:" >&5
43029 sed 's/^/| /' conftest.$ac_ext >&5
43031 ac_header_preproc=no
43034 rm -f conftest.err conftest.$ac_ext
43035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43036 echo "${ECHO_T}$ac_header_preproc" >&6; }
43038 # So? What about this header?
43039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43040 yes:no: )
43041 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
43042 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43043 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
43044 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
43045 ac_header_preproc=yes
43047 no:yes:* )
43048 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
43049 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
43050 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
43051 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
43052 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
43053 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
43054 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
43055 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
43056 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
43057 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
43058 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
43059 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
43060 ( cat <<\_ASBOX
43061 ## ------------------------------- ##
43062 ## Report this to www.asterisk.org ##
43063 ## ------------------------------- ##
43064 _ASBOX
43065 ) | sed "s/^/$as_me: WARNING: /" >&2
43067 esac
43068 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43069 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43070 if test "${ac_cv_header_sqlite_h+set}" = set; then
43071 echo $ECHO_N "(cached) $ECHO_C" >&6
43072 else
43073 ac_cv_header_sqlite_h=$ac_header_preproc
43075 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43076 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43079 if test $ac_cv_header_sqlite_h = yes; then
43080 SQLITE_HEADER_FOUND=1
43081 else
43082 SQLITE_HEADER_FOUND=0
43086 CPPFLAGS="${saved_cppflags}"
43088 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
43089 SQLITE_LIB=""
43090 SQLITE_INCLUDE=""
43091 else
43092 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43093 SQLITE_LIB=""
43095 PBX_SQLITE=1
43096 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43098 cat >>confdefs.h <<_ACEOF
43099 #define HAVE_SQLITE 1
43100 _ACEOF
43103 cat >>confdefs.h <<_ACEOF
43104 #define HAVE_SQLITE_VERSION
43105 _ACEOF
43113 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
43114 pbxlibdir=""
43115 # if --with-SQLITE3=DIR has been specified, use it.
43116 if test "x${SQLITE3_DIR}" != "x"; then
43117 if test -d ${SQLITE3_DIR}/lib; then
43118 pbxlibdir="-L${SQLITE3_DIR}/lib"
43119 else
43120 pbxlibdir="-L${SQLITE3_DIR}"
43123 pbxfuncname="sqlite3_open"
43124 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43125 AST_SQLITE3_FOUND=yes
43126 else
43127 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
43128 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
43129 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
43130 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43131 echo $ECHO_N "(cached) $ECHO_C" >&6
43132 else
43133 ac_check_lib_save_LIBS=$LIBS
43134 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
43135 cat >conftest.$ac_ext <<_ACEOF
43136 /* confdefs.h. */
43137 _ACEOF
43138 cat confdefs.h >>conftest.$ac_ext
43139 cat >>conftest.$ac_ext <<_ACEOF
43140 /* end confdefs.h. */
43142 /* Override any GCC internal prototype to avoid an error.
43143 Use char because int might match the return type of a GCC
43144 builtin and then its argument prototype would still apply. */
43145 #ifdef __cplusplus
43146 extern "C"
43147 #endif
43148 char ${pbxfuncname} ();
43150 main ()
43152 return ${pbxfuncname} ();
43154 return 0;
43156 _ACEOF
43157 rm -f conftest.$ac_objext conftest$ac_exeext
43158 if { (ac_try="$ac_link"
43159 case "(($ac_try" in
43160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43161 *) ac_try_echo=$ac_try;;
43162 esac
43163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43164 (eval "$ac_link") 2>conftest.er1
43165 ac_status=$?
43166 grep -v '^ *+' conftest.er1 >conftest.err
43167 rm -f conftest.er1
43168 cat conftest.err >&5
43169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43170 (exit $ac_status); } && {
43171 test -z "$ac_c_werror_flag" ||
43172 test ! -s conftest.err
43173 } && test -s conftest$ac_exeext &&
43174 $as_test_x conftest$ac_exeext; then
43175 eval "$as_ac_Lib=yes"
43176 else
43177 echo "$as_me: failed program was:" >&5
43178 sed 's/^/| /' conftest.$ac_ext >&5
43180 eval "$as_ac_Lib=no"
43183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43184 conftest$ac_exeext conftest.$ac_ext
43185 LIBS=$ac_check_lib_save_LIBS
43187 ac_res=`eval echo '${'$as_ac_Lib'}'`
43188 { echo "$as_me:$LINENO: result: $ac_res" >&5
43189 echo "${ECHO_T}$ac_res" >&6; }
43190 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43191 AST_SQLITE3_FOUND=yes
43192 else
43193 AST_SQLITE3_FOUND=no
43198 # now check for the header.
43199 if test "${AST_SQLITE3_FOUND}" = "yes"; then
43200 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
43201 # if --with-SQLITE3=DIR has been specified, use it.
43202 if test "x${SQLITE3_DIR}" != "x"; then
43203 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
43205 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
43206 if test "xsqlite3.h" = "x" ; then # no header, assume found
43207 SQLITE3_HEADER_FOUND="1"
43208 else # check for the header
43209 saved_cppflags="${CPPFLAGS}"
43210 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
43211 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43212 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43213 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43214 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43215 echo $ECHO_N "(cached) $ECHO_C" >&6
43217 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43218 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43219 else
43220 # Is the header compilable?
43221 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
43222 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
43223 cat >conftest.$ac_ext <<_ACEOF
43224 /* confdefs.h. */
43225 _ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h. */
43229 $ac_includes_default
43230 #include <sqlite3.h>
43231 _ACEOF
43232 rm -f conftest.$ac_objext
43233 if { (ac_try="$ac_compile"
43234 case "(($ac_try" in
43235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43236 *) ac_try_echo=$ac_try;;
43237 esac
43238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43239 (eval "$ac_compile") 2>conftest.er1
43240 ac_status=$?
43241 grep -v '^ *+' conftest.er1 >conftest.err
43242 rm -f conftest.er1
43243 cat conftest.err >&5
43244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43245 (exit $ac_status); } && {
43246 test -z "$ac_c_werror_flag" ||
43247 test ! -s conftest.err
43248 } && test -s conftest.$ac_objext; then
43249 ac_header_compiler=yes
43250 else
43251 echo "$as_me: failed program was:" >&5
43252 sed 's/^/| /' conftest.$ac_ext >&5
43254 ac_header_compiler=no
43257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43259 echo "${ECHO_T}$ac_header_compiler" >&6; }
43261 # Is the header present?
43262 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
43263 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
43264 cat >conftest.$ac_ext <<_ACEOF
43265 /* confdefs.h. */
43266 _ACEOF
43267 cat confdefs.h >>conftest.$ac_ext
43268 cat >>conftest.$ac_ext <<_ACEOF
43269 /* end confdefs.h. */
43270 #include <sqlite3.h>
43271 _ACEOF
43272 if { (ac_try="$ac_cpp conftest.$ac_ext"
43273 case "(($ac_try" in
43274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43275 *) ac_try_echo=$ac_try;;
43276 esac
43277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43279 ac_status=$?
43280 grep -v '^ *+' conftest.er1 >conftest.err
43281 rm -f conftest.er1
43282 cat conftest.err >&5
43283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284 (exit $ac_status); } >/dev/null && {
43285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43286 test ! -s conftest.err
43287 }; then
43288 ac_header_preproc=yes
43289 else
43290 echo "$as_me: failed program was:" >&5
43291 sed 's/^/| /' conftest.$ac_ext >&5
43293 ac_header_preproc=no
43296 rm -f conftest.err conftest.$ac_ext
43297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43298 echo "${ECHO_T}$ac_header_preproc" >&6; }
43300 # So? What about this header?
43301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43302 yes:no: )
43303 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
43304 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43305 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
43306 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
43307 ac_header_preproc=yes
43309 no:yes:* )
43310 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
43311 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
43312 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
43313 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
43314 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
43315 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
43316 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
43317 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
43318 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
43319 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
43320 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
43321 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
43322 ( cat <<\_ASBOX
43323 ## ------------------------------- ##
43324 ## Report this to www.asterisk.org ##
43325 ## ------------------------------- ##
43326 _ASBOX
43327 ) | sed "s/^/$as_me: WARNING: /" >&2
43329 esac
43330 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43331 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43332 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43333 echo $ECHO_N "(cached) $ECHO_C" >&6
43334 else
43335 ac_cv_header_sqlite3_h=$ac_header_preproc
43337 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43338 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43341 if test $ac_cv_header_sqlite3_h = yes; then
43342 SQLITE3_HEADER_FOUND=1
43343 else
43344 SQLITE3_HEADER_FOUND=0
43348 CPPFLAGS="${saved_cppflags}"
43350 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
43351 SQLITE3_LIB=""
43352 SQLITE3_INCLUDE=""
43353 else
43354 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43355 SQLITE3_LIB=""
43357 PBX_SQLITE3=1
43358 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43360 cat >>confdefs.h <<_ACEOF
43361 #define HAVE_SQLITE3 1
43362 _ACEOF
43365 cat >>confdefs.h <<_ACEOF
43366 #define HAVE_SQLITE3_VERSION
43367 _ACEOF
43375 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
43376 pbxlibdir=""
43377 # if --with-CRYPTO=DIR has been specified, use it.
43378 if test "x${CRYPTO_DIR}" != "x"; then
43379 if test -d ${CRYPTO_DIR}/lib; then
43380 pbxlibdir="-L${CRYPTO_DIR}/lib"
43381 else
43382 pbxlibdir="-L${CRYPTO_DIR}"
43385 pbxfuncname="AES_encrypt"
43386 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43387 AST_CRYPTO_FOUND=yes
43388 else
43389 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
43390 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
43391 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
43392 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43393 echo $ECHO_N "(cached) $ECHO_C" >&6
43394 else
43395 ac_check_lib_save_LIBS=$LIBS
43396 LIBS="-lcrypto ${pbxlibdir} $LIBS"
43397 cat >conftest.$ac_ext <<_ACEOF
43398 /* confdefs.h. */
43399 _ACEOF
43400 cat confdefs.h >>conftest.$ac_ext
43401 cat >>conftest.$ac_ext <<_ACEOF
43402 /* end confdefs.h. */
43404 /* Override any GCC internal prototype to avoid an error.
43405 Use char because int might match the return type of a GCC
43406 builtin and then its argument prototype would still apply. */
43407 #ifdef __cplusplus
43408 extern "C"
43409 #endif
43410 char ${pbxfuncname} ();
43412 main ()
43414 return ${pbxfuncname} ();
43416 return 0;
43418 _ACEOF
43419 rm -f conftest.$ac_objext conftest$ac_exeext
43420 if { (ac_try="$ac_link"
43421 case "(($ac_try" in
43422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43423 *) ac_try_echo=$ac_try;;
43424 esac
43425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43426 (eval "$ac_link") 2>conftest.er1
43427 ac_status=$?
43428 grep -v '^ *+' conftest.er1 >conftest.err
43429 rm -f conftest.er1
43430 cat conftest.err >&5
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); } && {
43433 test -z "$ac_c_werror_flag" ||
43434 test ! -s conftest.err
43435 } && test -s conftest$ac_exeext &&
43436 $as_test_x conftest$ac_exeext; then
43437 eval "$as_ac_Lib=yes"
43438 else
43439 echo "$as_me: failed program was:" >&5
43440 sed 's/^/| /' conftest.$ac_ext >&5
43442 eval "$as_ac_Lib=no"
43445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43446 conftest$ac_exeext conftest.$ac_ext
43447 LIBS=$ac_check_lib_save_LIBS
43449 ac_res=`eval echo '${'$as_ac_Lib'}'`
43450 { echo "$as_me:$LINENO: result: $ac_res" >&5
43451 echo "${ECHO_T}$ac_res" >&6; }
43452 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43453 AST_CRYPTO_FOUND=yes
43454 else
43455 AST_CRYPTO_FOUND=no
43460 # now check for the header.
43461 if test "${AST_CRYPTO_FOUND}" = "yes"; then
43462 CRYPTO_LIB="${pbxlibdir} -lcrypto "
43463 # if --with-CRYPTO=DIR has been specified, use it.
43464 if test "x${CRYPTO_DIR}" != "x"; then
43465 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
43467 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
43468 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
43469 CRYPTO_HEADER_FOUND="1"
43470 else # check for the header
43471 saved_cppflags="${CPPFLAGS}"
43472 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
43473 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43474 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
43475 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
43476 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43477 echo $ECHO_N "(cached) $ECHO_C" >&6
43479 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
43480 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
43481 else
43482 # Is the header compilable?
43483 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
43484 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
43485 cat >conftest.$ac_ext <<_ACEOF
43486 /* confdefs.h. */
43487 _ACEOF
43488 cat confdefs.h >>conftest.$ac_ext
43489 cat >>conftest.$ac_ext <<_ACEOF
43490 /* end confdefs.h. */
43491 $ac_includes_default
43492 #include <openssl/aes.h>
43493 _ACEOF
43494 rm -f conftest.$ac_objext
43495 if { (ac_try="$ac_compile"
43496 case "(($ac_try" in
43497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43498 *) ac_try_echo=$ac_try;;
43499 esac
43500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43501 (eval "$ac_compile") 2>conftest.er1
43502 ac_status=$?
43503 grep -v '^ *+' conftest.er1 >conftest.err
43504 rm -f conftest.er1
43505 cat conftest.err >&5
43506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43507 (exit $ac_status); } && {
43508 test -z "$ac_c_werror_flag" ||
43509 test ! -s conftest.err
43510 } && test -s conftest.$ac_objext; then
43511 ac_header_compiler=yes
43512 else
43513 echo "$as_me: failed program was:" >&5
43514 sed 's/^/| /' conftest.$ac_ext >&5
43516 ac_header_compiler=no
43519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43521 echo "${ECHO_T}$ac_header_compiler" >&6; }
43523 # Is the header present?
43524 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
43525 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
43526 cat >conftest.$ac_ext <<_ACEOF
43527 /* confdefs.h. */
43528 _ACEOF
43529 cat confdefs.h >>conftest.$ac_ext
43530 cat >>conftest.$ac_ext <<_ACEOF
43531 /* end confdefs.h. */
43532 #include <openssl/aes.h>
43533 _ACEOF
43534 if { (ac_try="$ac_cpp conftest.$ac_ext"
43535 case "(($ac_try" in
43536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43537 *) ac_try_echo=$ac_try;;
43538 esac
43539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43541 ac_status=$?
43542 grep -v '^ *+' conftest.er1 >conftest.err
43543 rm -f conftest.er1
43544 cat conftest.err >&5
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); } >/dev/null && {
43547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43548 test ! -s conftest.err
43549 }; then
43550 ac_header_preproc=yes
43551 else
43552 echo "$as_me: failed program was:" >&5
43553 sed 's/^/| /' conftest.$ac_ext >&5
43555 ac_header_preproc=no
43558 rm -f conftest.err conftest.$ac_ext
43559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43560 echo "${ECHO_T}$ac_header_preproc" >&6; }
43562 # So? What about this header?
43563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43564 yes:no: )
43565 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
43566 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43567 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
43568 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
43569 ac_header_preproc=yes
43571 no:yes:* )
43572 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
43573 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
43574 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
43575 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
43576 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
43577 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
43578 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
43579 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
43580 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
43581 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
43582 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
43583 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
43584 ( cat <<\_ASBOX
43585 ## ------------------------------- ##
43586 ## Report this to www.asterisk.org ##
43587 ## ------------------------------- ##
43588 _ASBOX
43589 ) | sed "s/^/$as_me: WARNING: /" >&2
43591 esac
43592 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
43593 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
43594 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43595 echo $ECHO_N "(cached) $ECHO_C" >&6
43596 else
43597 ac_cv_header_openssl_aes_h=$ac_header_preproc
43599 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
43600 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
43603 if test $ac_cv_header_openssl_aes_h = yes; then
43604 CRYPTO_HEADER_FOUND=1
43605 else
43606 CRYPTO_HEADER_FOUND=0
43610 CPPFLAGS="${saved_cppflags}"
43612 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
43613 CRYPTO_LIB=""
43614 CRYPTO_INCLUDE=""
43615 else
43616 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43617 CRYPTO_LIB=""
43619 PBX_CRYPTO=1
43620 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43622 cat >>confdefs.h <<_ACEOF
43623 #define HAVE_CRYPTO 1
43624 _ACEOF
43627 cat >>confdefs.h <<_ACEOF
43628 #define HAVE_CRYPTO_VERSION
43629 _ACEOF
43636 if test "$PBX_CRYPTO" = "1";
43637 then
43639 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
43640 pbxlibdir=""
43641 # if --with-OPENSSL=DIR has been specified, use it.
43642 if test "x${OPENSSL_DIR}" != "x"; then
43643 if test -d ${OPENSSL_DIR}/lib; then
43644 pbxlibdir="-L${OPENSSL_DIR}/lib"
43645 else
43646 pbxlibdir="-L${OPENSSL_DIR}"
43649 pbxfuncname="ssl2_connect"
43650 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43651 AST_OPENSSL_FOUND=yes
43652 else
43653 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
43654 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
43655 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
43656 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43657 echo $ECHO_N "(cached) $ECHO_C" >&6
43658 else
43659 ac_check_lib_save_LIBS=$LIBS
43660 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
43661 cat >conftest.$ac_ext <<_ACEOF
43662 /* confdefs.h. */
43663 _ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h. */
43668 /* Override any GCC internal prototype to avoid an error.
43669 Use char because int might match the return type of a GCC
43670 builtin and then its argument prototype would still apply. */
43671 #ifdef __cplusplus
43672 extern "C"
43673 #endif
43674 char ${pbxfuncname} ();
43676 main ()
43678 return ${pbxfuncname} ();
43680 return 0;
43682 _ACEOF
43683 rm -f conftest.$ac_objext conftest$ac_exeext
43684 if { (ac_try="$ac_link"
43685 case "(($ac_try" in
43686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43687 *) ac_try_echo=$ac_try;;
43688 esac
43689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43690 (eval "$ac_link") 2>conftest.er1
43691 ac_status=$?
43692 grep -v '^ *+' conftest.er1 >conftest.err
43693 rm -f conftest.er1
43694 cat conftest.err >&5
43695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43696 (exit $ac_status); } && {
43697 test -z "$ac_c_werror_flag" ||
43698 test ! -s conftest.err
43699 } && test -s conftest$ac_exeext &&
43700 $as_test_x conftest$ac_exeext; then
43701 eval "$as_ac_Lib=yes"
43702 else
43703 echo "$as_me: failed program was:" >&5
43704 sed 's/^/| /' conftest.$ac_ext >&5
43706 eval "$as_ac_Lib=no"
43709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43710 conftest$ac_exeext conftest.$ac_ext
43711 LIBS=$ac_check_lib_save_LIBS
43713 ac_res=`eval echo '${'$as_ac_Lib'}'`
43714 { echo "$as_me:$LINENO: result: $ac_res" >&5
43715 echo "${ECHO_T}$ac_res" >&6; }
43716 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43717 AST_OPENSSL_FOUND=yes
43718 else
43719 AST_OPENSSL_FOUND=no
43724 # now check for the header.
43725 if test "${AST_OPENSSL_FOUND}" = "yes"; then
43726 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
43727 # if --with-OPENSSL=DIR has been specified, use it.
43728 if test "x${OPENSSL_DIR}" != "x"; then
43729 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
43731 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
43732 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
43733 OPENSSL_HEADER_FOUND="1"
43734 else # check for the header
43735 saved_cppflags="${CPPFLAGS}"
43736 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
43737 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43738 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43739 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43740 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43741 echo $ECHO_N "(cached) $ECHO_C" >&6
43743 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43744 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43745 else
43746 # Is the header compilable?
43747 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
43748 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
43749 cat >conftest.$ac_ext <<_ACEOF
43750 /* confdefs.h. */
43751 _ACEOF
43752 cat confdefs.h >>conftest.$ac_ext
43753 cat >>conftest.$ac_ext <<_ACEOF
43754 /* end confdefs.h. */
43755 $ac_includes_default
43756 #include <openssl/ssl.h>
43757 _ACEOF
43758 rm -f conftest.$ac_objext
43759 if { (ac_try="$ac_compile"
43760 case "(($ac_try" in
43761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43762 *) ac_try_echo=$ac_try;;
43763 esac
43764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43765 (eval "$ac_compile") 2>conftest.er1
43766 ac_status=$?
43767 grep -v '^ *+' conftest.er1 >conftest.err
43768 rm -f conftest.er1
43769 cat conftest.err >&5
43770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771 (exit $ac_status); } && {
43772 test -z "$ac_c_werror_flag" ||
43773 test ! -s conftest.err
43774 } && test -s conftest.$ac_objext; then
43775 ac_header_compiler=yes
43776 else
43777 echo "$as_me: failed program was:" >&5
43778 sed 's/^/| /' conftest.$ac_ext >&5
43780 ac_header_compiler=no
43783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43785 echo "${ECHO_T}$ac_header_compiler" >&6; }
43787 # Is the header present?
43788 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
43789 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
43790 cat >conftest.$ac_ext <<_ACEOF
43791 /* confdefs.h. */
43792 _ACEOF
43793 cat confdefs.h >>conftest.$ac_ext
43794 cat >>conftest.$ac_ext <<_ACEOF
43795 /* end confdefs.h. */
43796 #include <openssl/ssl.h>
43797 _ACEOF
43798 if { (ac_try="$ac_cpp conftest.$ac_ext"
43799 case "(($ac_try" in
43800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43801 *) ac_try_echo=$ac_try;;
43802 esac
43803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43805 ac_status=$?
43806 grep -v '^ *+' conftest.er1 >conftest.err
43807 rm -f conftest.er1
43808 cat conftest.err >&5
43809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810 (exit $ac_status); } >/dev/null && {
43811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43812 test ! -s conftest.err
43813 }; then
43814 ac_header_preproc=yes
43815 else
43816 echo "$as_me: failed program was:" >&5
43817 sed 's/^/| /' conftest.$ac_ext >&5
43819 ac_header_preproc=no
43822 rm -f conftest.err conftest.$ac_ext
43823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43824 echo "${ECHO_T}$ac_header_preproc" >&6; }
43826 # So? What about this header?
43827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43828 yes:no: )
43829 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
43830 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43831 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
43832 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
43833 ac_header_preproc=yes
43835 no:yes:* )
43836 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
43837 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
43838 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
43839 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
43840 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
43841 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
43842 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
43843 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
43844 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
43845 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
43846 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
43847 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
43848 ( cat <<\_ASBOX
43849 ## ------------------------------- ##
43850 ## Report this to www.asterisk.org ##
43851 ## ------------------------------- ##
43852 _ASBOX
43853 ) | sed "s/^/$as_me: WARNING: /" >&2
43855 esac
43856 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43857 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43858 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43859 echo $ECHO_N "(cached) $ECHO_C" >&6
43860 else
43861 ac_cv_header_openssl_ssl_h=$ac_header_preproc
43863 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43864 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43867 if test $ac_cv_header_openssl_ssl_h = yes; then
43868 OPENSSL_HEADER_FOUND=1
43869 else
43870 OPENSSL_HEADER_FOUND=0
43874 CPPFLAGS="${saved_cppflags}"
43876 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
43877 OPENSSL_LIB=""
43878 OPENSSL_INCLUDE=""
43879 else
43880 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43881 OPENSSL_LIB=""
43883 PBX_OPENSSL=1
43884 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43886 cat >>confdefs.h <<_ACEOF
43887 #define HAVE_OPENSSL 1
43888 _ACEOF
43891 cat >>confdefs.h <<_ACEOF
43892 #define HAVE_OPENSSL_VERSION
43893 _ACEOF
43901 if test "$PBX_OPENSSL" = "1";
43902 then
43904 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
43905 pbxlibdir=""
43906 # if --with-OSPTK=DIR has been specified, use it.
43907 if test "x${OSPTK_DIR}" != "x"; then
43908 if test -d ${OSPTK_DIR}/lib; then
43909 pbxlibdir="-L${OSPTK_DIR}/lib"
43910 else
43911 pbxlibdir="-L${OSPTK_DIR}"
43914 pbxfuncname="OSPPCryptoDecrypt"
43915 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43916 AST_OSPTK_FOUND=yes
43917 else
43918 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
43919 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
43920 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
43921 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43922 echo $ECHO_N "(cached) $ECHO_C" >&6
43923 else
43924 ac_check_lib_save_LIBS=$LIBS
43925 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
43926 cat >conftest.$ac_ext <<_ACEOF
43927 /* confdefs.h. */
43928 _ACEOF
43929 cat confdefs.h >>conftest.$ac_ext
43930 cat >>conftest.$ac_ext <<_ACEOF
43931 /* end confdefs.h. */
43933 /* Override any GCC internal prototype to avoid an error.
43934 Use char because int might match the return type of a GCC
43935 builtin and then its argument prototype would still apply. */
43936 #ifdef __cplusplus
43937 extern "C"
43938 #endif
43939 char ${pbxfuncname} ();
43941 main ()
43943 return ${pbxfuncname} ();
43945 return 0;
43947 _ACEOF
43948 rm -f conftest.$ac_objext conftest$ac_exeext
43949 if { (ac_try="$ac_link"
43950 case "(($ac_try" in
43951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43952 *) ac_try_echo=$ac_try;;
43953 esac
43954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43955 (eval "$ac_link") 2>conftest.er1
43956 ac_status=$?
43957 grep -v '^ *+' conftest.er1 >conftest.err
43958 rm -f conftest.er1
43959 cat conftest.err >&5
43960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43961 (exit $ac_status); } && {
43962 test -z "$ac_c_werror_flag" ||
43963 test ! -s conftest.err
43964 } && test -s conftest$ac_exeext &&
43965 $as_test_x conftest$ac_exeext; then
43966 eval "$as_ac_Lib=yes"
43967 else
43968 echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43971 eval "$as_ac_Lib=no"
43974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43975 conftest$ac_exeext conftest.$ac_ext
43976 LIBS=$ac_check_lib_save_LIBS
43978 ac_res=`eval echo '${'$as_ac_Lib'}'`
43979 { echo "$as_me:$LINENO: result: $ac_res" >&5
43980 echo "${ECHO_T}$ac_res" >&6; }
43981 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43982 AST_OSPTK_FOUND=yes
43983 else
43984 AST_OSPTK_FOUND=no
43989 # now check for the header.
43990 if test "${AST_OSPTK_FOUND}" = "yes"; then
43991 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
43992 # if --with-OSPTK=DIR has been specified, use it.
43993 if test "x${OSPTK_DIR}" != "x"; then
43994 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
43996 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
43997 if test "xosp/osp.h" = "x" ; then # no header, assume found
43998 OSPTK_HEADER_FOUND="1"
43999 else # check for the header
44000 saved_cppflags="${CPPFLAGS}"
44001 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
44002 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44003 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44004 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44005 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44006 echo $ECHO_N "(cached) $ECHO_C" >&6
44008 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44009 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44010 else
44011 # Is the header compilable?
44012 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
44013 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
44014 cat >conftest.$ac_ext <<_ACEOF
44015 /* confdefs.h. */
44016 _ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h. */
44020 $ac_includes_default
44021 #include <osp/osp.h>
44022 _ACEOF
44023 rm -f conftest.$ac_objext
44024 if { (ac_try="$ac_compile"
44025 case "(($ac_try" in
44026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44027 *) ac_try_echo=$ac_try;;
44028 esac
44029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44030 (eval "$ac_compile") 2>conftest.er1
44031 ac_status=$?
44032 grep -v '^ *+' conftest.er1 >conftest.err
44033 rm -f conftest.er1
44034 cat conftest.err >&5
44035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 (exit $ac_status); } && {
44037 test -z "$ac_c_werror_flag" ||
44038 test ! -s conftest.err
44039 } && test -s conftest.$ac_objext; then
44040 ac_header_compiler=yes
44041 else
44042 echo "$as_me: failed program was:" >&5
44043 sed 's/^/| /' conftest.$ac_ext >&5
44045 ac_header_compiler=no
44048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44050 echo "${ECHO_T}$ac_header_compiler" >&6; }
44052 # Is the header present?
44053 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
44054 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
44055 cat >conftest.$ac_ext <<_ACEOF
44056 /* confdefs.h. */
44057 _ACEOF
44058 cat confdefs.h >>conftest.$ac_ext
44059 cat >>conftest.$ac_ext <<_ACEOF
44060 /* end confdefs.h. */
44061 #include <osp/osp.h>
44062 _ACEOF
44063 if { (ac_try="$ac_cpp conftest.$ac_ext"
44064 case "(($ac_try" in
44065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44066 *) ac_try_echo=$ac_try;;
44067 esac
44068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44070 ac_status=$?
44071 grep -v '^ *+' conftest.er1 >conftest.err
44072 rm -f conftest.er1
44073 cat conftest.err >&5
44074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44075 (exit $ac_status); } >/dev/null && {
44076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44077 test ! -s conftest.err
44078 }; then
44079 ac_header_preproc=yes
44080 else
44081 echo "$as_me: failed program was:" >&5
44082 sed 's/^/| /' conftest.$ac_ext >&5
44084 ac_header_preproc=no
44087 rm -f conftest.err conftest.$ac_ext
44088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44089 echo "${ECHO_T}$ac_header_preproc" >&6; }
44091 # So? What about this header?
44092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44093 yes:no: )
44094 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
44095 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44096 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
44097 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
44098 ac_header_preproc=yes
44100 no:yes:* )
44101 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
44102 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
44103 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
44104 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
44105 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
44106 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
44107 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
44108 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
44109 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
44110 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
44111 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
44112 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
44113 ( cat <<\_ASBOX
44114 ## ------------------------------- ##
44115 ## Report this to www.asterisk.org ##
44116 ## ------------------------------- ##
44117 _ASBOX
44118 ) | sed "s/^/$as_me: WARNING: /" >&2
44120 esac
44121 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44122 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44123 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44124 echo $ECHO_N "(cached) $ECHO_C" >&6
44125 else
44126 ac_cv_header_osp_osp_h=$ac_header_preproc
44128 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44129 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44132 if test $ac_cv_header_osp_osp_h = yes; then
44133 OSPTK_HEADER_FOUND=1
44134 else
44135 OSPTK_HEADER_FOUND=0
44139 CPPFLAGS="${saved_cppflags}"
44141 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
44142 OSPTK_LIB=""
44143 OSPTK_INCLUDE=""
44144 else
44145 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44146 OSPTK_LIB=""
44148 PBX_OSPTK=1
44149 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44151 cat >>confdefs.h <<_ACEOF
44152 #define HAVE_OSPTK 1
44153 _ACEOF
44156 cat >>confdefs.h <<_ACEOF
44157 #define HAVE_OSPTK_VERSION
44158 _ACEOF
44167 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
44168 PBX_GMIME=0
44169 if test -n "$ac_tool_prefix"; then
44170 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
44171 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
44172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44174 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
44175 echo $ECHO_N "(cached) $ECHO_C" >&6
44176 else
44177 if test -n "$CONFIG_GMIME"; then
44178 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
44179 else
44180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44181 for as_dir in $PATH
44183 IFS=$as_save_IFS
44184 test -z "$as_dir" && as_dir=.
44185 for ac_exec_ext in '' $ac_executable_extensions; do
44186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44187 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
44188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44189 break 2
44191 done
44192 done
44193 IFS=$as_save_IFS
44197 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
44198 if test -n "$CONFIG_GMIME"; then
44199 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
44200 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
44201 else
44202 { echo "$as_me:$LINENO: result: no" >&5
44203 echo "${ECHO_T}no" >&6; }
44208 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
44209 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
44210 # Extract the first word of "gmime-config", so it can be a program name with args.
44211 set dummy gmime-config; ac_word=$2
44212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44214 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
44215 echo $ECHO_N "(cached) $ECHO_C" >&6
44216 else
44217 if test -n "$ac_ct_CONFIG_GMIME"; then
44218 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
44219 else
44220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44221 for as_dir in $PATH
44223 IFS=$as_save_IFS
44224 test -z "$as_dir" && as_dir=.
44225 for ac_exec_ext in '' $ac_executable_extensions; do
44226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44227 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
44228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44229 break 2
44231 done
44232 done
44233 IFS=$as_save_IFS
44237 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
44238 if test -n "$ac_ct_CONFIG_GMIME"; then
44239 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
44240 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
44241 else
44242 { echo "$as_me:$LINENO: result: no" >&5
44243 echo "${ECHO_T}no" >&6; }
44246 if test "x$ac_ct_CONFIG_GMIME" = x; then
44247 CONFIG_GMIME="No"
44248 else
44249 case $cross_compiling:$ac_tool_warned in
44250 yes:)
44251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44252 whose name does not start with the host triplet. If you think this
44253 configuration is useful to you, please write to autoconf@gnu.org." >&5
44254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44255 whose name does not start with the host triplet. If you think this
44256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44257 ac_tool_warned=yes ;;
44258 esac
44259 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
44261 else
44262 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
44265 if test ! "x${CONFIG_GMIME}" = xNo; then
44266 if test x"" = x ; then A=--cflags ; else A="" ; fi
44267 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
44268 if test x"" = x ; then A=--libs ; else A="" ; fi
44269 GMIME_LIB=$(${CONFIG_GMIME} $A)
44270 if test x"" != x ; then
44271 saved_cppflags="${CPPFLAGS}"
44272 if test "x${GMIME_DIR}" != "x"; then
44273 GMIME_INCLUDE="-I${GMIME_DIR}/include"
44275 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
44277 saved_ldflags="${LDFLAGS}"
44278 LDFLAGS="${GMIME_LIB}"
44280 cat >conftest.$ac_ext <<_ACEOF
44281 /* confdefs.h. */
44282 _ACEOF
44283 cat confdefs.h >>conftest.$ac_ext
44284 cat >>conftest.$ac_ext <<_ACEOF
44285 /* end confdefs.h. */
44288 main ()
44293 return 0;
44295 _ACEOF
44296 rm -f conftest.$ac_objext conftest$ac_exeext
44297 if { (ac_try="$ac_link"
44298 case "(($ac_try" in
44299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44300 *) ac_try_echo=$ac_try;;
44301 esac
44302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44303 (eval "$ac_link") 2>conftest.er1
44304 ac_status=$?
44305 grep -v '^ *+' conftest.er1 >conftest.err
44306 rm -f conftest.er1
44307 cat conftest.err >&5
44308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44309 (exit $ac_status); } && {
44310 test -z "$ac_c_werror_flag" ||
44311 test ! -s conftest.err
44312 } && test -s conftest$ac_exeext &&
44313 $as_test_x conftest$ac_exeext; then
44314 PBX_GMIME=1
44316 cat >>confdefs.h <<\_ACEOF
44317 #define HAVE_GMIME 1
44318 _ACEOF
44321 else
44322 echo "$as_me: failed program was:" >&5
44323 sed 's/^/| /' conftest.$ac_ext >&5
44329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44330 conftest$ac_exeext conftest.$ac_ext
44331 CPPFLAGS="${saved_cppflags}"
44332 LDFLAGS="${saved_ldflags}"
44333 else
44334 PBX_GMIME=1
44336 cat >>confdefs.h <<\_ACEOF
44337 #define HAVE_GMIME 1
44338 _ACEOF
44346 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
44347 pbxlibdir=""
44348 # if --with-FREETDS=DIR has been specified, use it.
44349 if test "x${FREETDS_DIR}" != "x"; then
44350 if test -d ${FREETDS_DIR}/lib; then
44351 pbxlibdir="-L${FREETDS_DIR}/lib"
44352 else
44353 pbxlibdir="-L${FREETDS_DIR}"
44356 pbxfuncname="tds_version"
44357 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44358 AST_FREETDS_FOUND=yes
44359 else
44360 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
44361 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
44362 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
44363 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44364 echo $ECHO_N "(cached) $ECHO_C" >&6
44365 else
44366 ac_check_lib_save_LIBS=$LIBS
44367 LIBS="-ltds ${pbxlibdir} $LIBS"
44368 cat >conftest.$ac_ext <<_ACEOF
44369 /* confdefs.h. */
44370 _ACEOF
44371 cat confdefs.h >>conftest.$ac_ext
44372 cat >>conftest.$ac_ext <<_ACEOF
44373 /* end confdefs.h. */
44375 /* Override any GCC internal prototype to avoid an error.
44376 Use char because int might match the return type of a GCC
44377 builtin and then its argument prototype would still apply. */
44378 #ifdef __cplusplus
44379 extern "C"
44380 #endif
44381 char ${pbxfuncname} ();
44383 main ()
44385 return ${pbxfuncname} ();
44387 return 0;
44389 _ACEOF
44390 rm -f conftest.$ac_objext conftest$ac_exeext
44391 if { (ac_try="$ac_link"
44392 case "(($ac_try" in
44393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44394 *) ac_try_echo=$ac_try;;
44395 esac
44396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44397 (eval "$ac_link") 2>conftest.er1
44398 ac_status=$?
44399 grep -v '^ *+' conftest.er1 >conftest.err
44400 rm -f conftest.er1
44401 cat conftest.err >&5
44402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403 (exit $ac_status); } && {
44404 test -z "$ac_c_werror_flag" ||
44405 test ! -s conftest.err
44406 } && test -s conftest$ac_exeext &&
44407 $as_test_x conftest$ac_exeext; then
44408 eval "$as_ac_Lib=yes"
44409 else
44410 echo "$as_me: failed program was:" >&5
44411 sed 's/^/| /' conftest.$ac_ext >&5
44413 eval "$as_ac_Lib=no"
44416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44417 conftest$ac_exeext conftest.$ac_ext
44418 LIBS=$ac_check_lib_save_LIBS
44420 ac_res=`eval echo '${'$as_ac_Lib'}'`
44421 { echo "$as_me:$LINENO: result: $ac_res" >&5
44422 echo "${ECHO_T}$ac_res" >&6; }
44423 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44424 AST_FREETDS_FOUND=yes
44425 else
44426 AST_FREETDS_FOUND=no
44431 # now check for the header.
44432 if test "${AST_FREETDS_FOUND}" = "yes"; then
44433 FREETDS_LIB="${pbxlibdir} -ltds "
44434 # if --with-FREETDS=DIR has been specified, use it.
44435 if test "x${FREETDS_DIR}" != "x"; then
44436 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
44438 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
44439 if test "xtds.h" = "x" ; then # no header, assume found
44440 FREETDS_HEADER_FOUND="1"
44441 else # check for the header
44442 saved_cppflags="${CPPFLAGS}"
44443 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
44444 if test "${ac_cv_header_tds_h+set}" = set; then
44445 { echo "$as_me:$LINENO: checking for tds.h" >&5
44446 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
44447 if test "${ac_cv_header_tds_h+set}" = set; then
44448 echo $ECHO_N "(cached) $ECHO_C" >&6
44450 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
44451 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
44452 else
44453 # Is the header compilable?
44454 { echo "$as_me:$LINENO: checking tds.h usability" >&5
44455 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
44456 cat >conftest.$ac_ext <<_ACEOF
44457 /* confdefs.h. */
44458 _ACEOF
44459 cat confdefs.h >>conftest.$ac_ext
44460 cat >>conftest.$ac_ext <<_ACEOF
44461 /* end confdefs.h. */
44462 $ac_includes_default
44463 #include <tds.h>
44464 _ACEOF
44465 rm -f conftest.$ac_objext
44466 if { (ac_try="$ac_compile"
44467 case "(($ac_try" in
44468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44469 *) ac_try_echo=$ac_try;;
44470 esac
44471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44472 (eval "$ac_compile") 2>conftest.er1
44473 ac_status=$?
44474 grep -v '^ *+' conftest.er1 >conftest.err
44475 rm -f conftest.er1
44476 cat conftest.err >&5
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); } && {
44479 test -z "$ac_c_werror_flag" ||
44480 test ! -s conftest.err
44481 } && test -s conftest.$ac_objext; then
44482 ac_header_compiler=yes
44483 else
44484 echo "$as_me: failed program was:" >&5
44485 sed 's/^/| /' conftest.$ac_ext >&5
44487 ac_header_compiler=no
44490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44492 echo "${ECHO_T}$ac_header_compiler" >&6; }
44494 # Is the header present?
44495 { echo "$as_me:$LINENO: checking tds.h presence" >&5
44496 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
44497 cat >conftest.$ac_ext <<_ACEOF
44498 /* confdefs.h. */
44499 _ACEOF
44500 cat confdefs.h >>conftest.$ac_ext
44501 cat >>conftest.$ac_ext <<_ACEOF
44502 /* end confdefs.h. */
44503 #include <tds.h>
44504 _ACEOF
44505 if { (ac_try="$ac_cpp conftest.$ac_ext"
44506 case "(($ac_try" in
44507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44508 *) ac_try_echo=$ac_try;;
44509 esac
44510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44512 ac_status=$?
44513 grep -v '^ *+' conftest.er1 >conftest.err
44514 rm -f conftest.er1
44515 cat conftest.err >&5
44516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517 (exit $ac_status); } >/dev/null && {
44518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44519 test ! -s conftest.err
44520 }; then
44521 ac_header_preproc=yes
44522 else
44523 echo "$as_me: failed program was:" >&5
44524 sed 's/^/| /' conftest.$ac_ext >&5
44526 ac_header_preproc=no
44529 rm -f conftest.err conftest.$ac_ext
44530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44531 echo "${ECHO_T}$ac_header_preproc" >&6; }
44533 # So? What about this header?
44534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44535 yes:no: )
44536 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
44537 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44538 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
44539 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
44540 ac_header_preproc=yes
44542 no:yes:* )
44543 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
44544 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
44545 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
44546 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
44547 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
44548 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
44549 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
44550 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
44551 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
44552 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
44553 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
44554 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
44555 ( cat <<\_ASBOX
44556 ## ------------------------------- ##
44557 ## Report this to www.asterisk.org ##
44558 ## ------------------------------- ##
44559 _ASBOX
44560 ) | sed "s/^/$as_me: WARNING: /" >&2
44562 esac
44563 { echo "$as_me:$LINENO: checking for tds.h" >&5
44564 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
44565 if test "${ac_cv_header_tds_h+set}" = set; then
44566 echo $ECHO_N "(cached) $ECHO_C" >&6
44567 else
44568 ac_cv_header_tds_h=$ac_header_preproc
44570 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
44571 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
44574 if test $ac_cv_header_tds_h = yes; then
44575 FREETDS_HEADER_FOUND=1
44576 else
44577 FREETDS_HEADER_FOUND=0
44581 CPPFLAGS="${saved_cppflags}"
44583 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
44584 FREETDS_LIB=""
44585 FREETDS_INCLUDE=""
44586 else
44587 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44588 FREETDS_LIB=""
44590 PBX_FREETDS=1
44591 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44593 cat >>confdefs.h <<_ACEOF
44594 #define HAVE_FREETDS 1
44595 _ACEOF
44598 cat >>confdefs.h <<_ACEOF
44599 #define HAVE_FREETDS_VERSION
44600 _ACEOF
44606 if test "${PBX_FREETDS}" != "0";
44607 then
44608 if test "${FREETDS_DIR}x" = "x";
44609 then
44610 for tds_dir in /usr /usr/local;
44612 if test -f "${tds_dir}/include/tdsver.h";
44613 then
44614 FREETDS_DIR="${tds_dir}"
44616 done
44618 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
44619 *0.64*)
44620 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
44622 *0.63*)
44623 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
44625 *0.62*)
44626 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
44629 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
44631 esac
44635 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
44636 pbxlibdir=""
44637 # if --with-TERMCAP=DIR has been specified, use it.
44638 if test "x${TERMCAP_DIR}" != "x"; then
44639 if test -d ${TERMCAP_DIR}/lib; then
44640 pbxlibdir="-L${TERMCAP_DIR}/lib"
44641 else
44642 pbxlibdir="-L${TERMCAP_DIR}"
44645 pbxfuncname="tgetent"
44646 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44647 AST_TERMCAP_FOUND=yes
44648 else
44649 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
44650 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
44651 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
44652 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44653 echo $ECHO_N "(cached) $ECHO_C" >&6
44654 else
44655 ac_check_lib_save_LIBS=$LIBS
44656 LIBS="-ltermcap ${pbxlibdir} $LIBS"
44657 cat >conftest.$ac_ext <<_ACEOF
44658 /* confdefs.h. */
44659 _ACEOF
44660 cat confdefs.h >>conftest.$ac_ext
44661 cat >>conftest.$ac_ext <<_ACEOF
44662 /* end confdefs.h. */
44664 /* Override any GCC internal prototype to avoid an error.
44665 Use char because int might match the return type of a GCC
44666 builtin and then its argument prototype would still apply. */
44667 #ifdef __cplusplus
44668 extern "C"
44669 #endif
44670 char ${pbxfuncname} ();
44672 main ()
44674 return ${pbxfuncname} ();
44676 return 0;
44678 _ACEOF
44679 rm -f conftest.$ac_objext conftest$ac_exeext
44680 if { (ac_try="$ac_link"
44681 case "(($ac_try" in
44682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44683 *) ac_try_echo=$ac_try;;
44684 esac
44685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44686 (eval "$ac_link") 2>conftest.er1
44687 ac_status=$?
44688 grep -v '^ *+' conftest.er1 >conftest.err
44689 rm -f conftest.er1
44690 cat conftest.err >&5
44691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692 (exit $ac_status); } && {
44693 test -z "$ac_c_werror_flag" ||
44694 test ! -s conftest.err
44695 } && test -s conftest$ac_exeext &&
44696 $as_test_x conftest$ac_exeext; then
44697 eval "$as_ac_Lib=yes"
44698 else
44699 echo "$as_me: failed program was:" >&5
44700 sed 's/^/| /' conftest.$ac_ext >&5
44702 eval "$as_ac_Lib=no"
44705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44706 conftest$ac_exeext conftest.$ac_ext
44707 LIBS=$ac_check_lib_save_LIBS
44709 ac_res=`eval echo '${'$as_ac_Lib'}'`
44710 { echo "$as_me:$LINENO: result: $ac_res" >&5
44711 echo "${ECHO_T}$ac_res" >&6; }
44712 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44713 AST_TERMCAP_FOUND=yes
44714 else
44715 AST_TERMCAP_FOUND=no
44720 # now check for the header.
44721 if test "${AST_TERMCAP_FOUND}" = "yes"; then
44722 TERMCAP_LIB="${pbxlibdir} -ltermcap "
44723 # if --with-TERMCAP=DIR has been specified, use it.
44724 if test "x${TERMCAP_DIR}" != "x"; then
44725 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
44727 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
44728 if test "x" = "x" ; then # no header, assume found
44729 TERMCAP_HEADER_FOUND="1"
44730 else # check for the header
44731 saved_cppflags="${CPPFLAGS}"
44732 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
44733 if test "${ac_cv_header_+set}" = set; then
44734 { echo "$as_me:$LINENO: checking for " >&5
44735 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44736 if test "${ac_cv_header_+set}" = set; then
44737 echo $ECHO_N "(cached) $ECHO_C" >&6
44739 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44740 echo "${ECHO_T}$ac_cv_header_" >&6; }
44741 else
44742 # Is the header compilable?
44743 { echo "$as_me:$LINENO: checking usability" >&5
44744 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44745 cat >conftest.$ac_ext <<_ACEOF
44746 /* confdefs.h. */
44747 _ACEOF
44748 cat confdefs.h >>conftest.$ac_ext
44749 cat >>conftest.$ac_ext <<_ACEOF
44750 /* end confdefs.h. */
44751 $ac_includes_default
44752 #include <>
44753 _ACEOF
44754 rm -f conftest.$ac_objext
44755 if { (ac_try="$ac_compile"
44756 case "(($ac_try" in
44757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44758 *) ac_try_echo=$ac_try;;
44759 esac
44760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44761 (eval "$ac_compile") 2>conftest.er1
44762 ac_status=$?
44763 grep -v '^ *+' conftest.er1 >conftest.err
44764 rm -f conftest.er1
44765 cat conftest.err >&5
44766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767 (exit $ac_status); } && {
44768 test -z "$ac_c_werror_flag" ||
44769 test ! -s conftest.err
44770 } && test -s conftest.$ac_objext; then
44771 ac_header_compiler=yes
44772 else
44773 echo "$as_me: failed program was:" >&5
44774 sed 's/^/| /' conftest.$ac_ext >&5
44776 ac_header_compiler=no
44779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44781 echo "${ECHO_T}$ac_header_compiler" >&6; }
44783 # Is the header present?
44784 { echo "$as_me:$LINENO: checking presence" >&5
44785 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44786 cat >conftest.$ac_ext <<_ACEOF
44787 /* confdefs.h. */
44788 _ACEOF
44789 cat confdefs.h >>conftest.$ac_ext
44790 cat >>conftest.$ac_ext <<_ACEOF
44791 /* end confdefs.h. */
44792 #include <>
44793 _ACEOF
44794 if { (ac_try="$ac_cpp conftest.$ac_ext"
44795 case "(($ac_try" in
44796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44797 *) ac_try_echo=$ac_try;;
44798 esac
44799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44801 ac_status=$?
44802 grep -v '^ *+' conftest.er1 >conftest.err
44803 rm -f conftest.er1
44804 cat conftest.err >&5
44805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806 (exit $ac_status); } >/dev/null && {
44807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44808 test ! -s conftest.err
44809 }; then
44810 ac_header_preproc=yes
44811 else
44812 echo "$as_me: failed program was:" >&5
44813 sed 's/^/| /' conftest.$ac_ext >&5
44815 ac_header_preproc=no
44818 rm -f conftest.err conftest.$ac_ext
44819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44820 echo "${ECHO_T}$ac_header_preproc" >&6; }
44822 # So? What about this header?
44823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44824 yes:no: )
44825 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44826 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44827 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44828 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44829 ac_header_preproc=yes
44831 no:yes:* )
44832 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44833 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44834 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44835 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44836 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44837 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44838 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44839 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44840 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44841 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44842 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44843 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44844 ( cat <<\_ASBOX
44845 ## ------------------------------- ##
44846 ## Report this to www.asterisk.org ##
44847 ## ------------------------------- ##
44848 _ASBOX
44849 ) | sed "s/^/$as_me: WARNING: /" >&2
44851 esac
44852 { echo "$as_me:$LINENO: checking for " >&5
44853 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44854 if test "${ac_cv_header_+set}" = set; then
44855 echo $ECHO_N "(cached) $ECHO_C" >&6
44856 else
44857 ac_cv_header_=$ac_header_preproc
44859 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44860 echo "${ECHO_T}$ac_cv_header_" >&6; }
44863 if test $ac_cv_header_ = yes; then
44864 TERMCAP_HEADER_FOUND=1
44865 else
44866 TERMCAP_HEADER_FOUND=0
44870 CPPFLAGS="${saved_cppflags}"
44872 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
44873 TERMCAP_LIB=""
44874 TERMCAP_INCLUDE=""
44875 else
44876 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44877 TERMCAP_LIB=""
44879 PBX_TERMCAP=1
44880 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44882 cat >>confdefs.h <<_ACEOF
44883 #define HAVE_TERMCAP 1
44884 _ACEOF
44887 cat >>confdefs.h <<_ACEOF
44888 #define HAVE_TERMCAP_VERSION
44889 _ACEOF
44897 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
44898 pbxlibdir=""
44899 # if --with-TINFO=DIR has been specified, use it.
44900 if test "x${TINFO_DIR}" != "x"; then
44901 if test -d ${TINFO_DIR}/lib; then
44902 pbxlibdir="-L${TINFO_DIR}/lib"
44903 else
44904 pbxlibdir="-L${TINFO_DIR}"
44907 pbxfuncname="tgetent"
44908 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44909 AST_TINFO_FOUND=yes
44910 else
44911 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
44912 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
44913 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
44914 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44915 echo $ECHO_N "(cached) $ECHO_C" >&6
44916 else
44917 ac_check_lib_save_LIBS=$LIBS
44918 LIBS="-ltinfo ${pbxlibdir} $LIBS"
44919 cat >conftest.$ac_ext <<_ACEOF
44920 /* confdefs.h. */
44921 _ACEOF
44922 cat confdefs.h >>conftest.$ac_ext
44923 cat >>conftest.$ac_ext <<_ACEOF
44924 /* end confdefs.h. */
44926 /* Override any GCC internal prototype to avoid an error.
44927 Use char because int might match the return type of a GCC
44928 builtin and then its argument prototype would still apply. */
44929 #ifdef __cplusplus
44930 extern "C"
44931 #endif
44932 char ${pbxfuncname} ();
44934 main ()
44936 return ${pbxfuncname} ();
44938 return 0;
44940 _ACEOF
44941 rm -f conftest.$ac_objext conftest$ac_exeext
44942 if { (ac_try="$ac_link"
44943 case "(($ac_try" in
44944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44945 *) ac_try_echo=$ac_try;;
44946 esac
44947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44948 (eval "$ac_link") 2>conftest.er1
44949 ac_status=$?
44950 grep -v '^ *+' conftest.er1 >conftest.err
44951 rm -f conftest.er1
44952 cat conftest.err >&5
44953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); } && {
44955 test -z "$ac_c_werror_flag" ||
44956 test ! -s conftest.err
44957 } && test -s conftest$ac_exeext &&
44958 $as_test_x conftest$ac_exeext; then
44959 eval "$as_ac_Lib=yes"
44960 else
44961 echo "$as_me: failed program was:" >&5
44962 sed 's/^/| /' conftest.$ac_ext >&5
44964 eval "$as_ac_Lib=no"
44967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44968 conftest$ac_exeext conftest.$ac_ext
44969 LIBS=$ac_check_lib_save_LIBS
44971 ac_res=`eval echo '${'$as_ac_Lib'}'`
44972 { echo "$as_me:$LINENO: result: $ac_res" >&5
44973 echo "${ECHO_T}$ac_res" >&6; }
44974 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44975 AST_TINFO_FOUND=yes
44976 else
44977 AST_TINFO_FOUND=no
44982 # now check for the header.
44983 if test "${AST_TINFO_FOUND}" = "yes"; then
44984 TINFO_LIB="${pbxlibdir} -ltinfo "
44985 # if --with-TINFO=DIR has been specified, use it.
44986 if test "x${TINFO_DIR}" != "x"; then
44987 TINFO_INCLUDE="-I${TINFO_DIR}/include"
44989 TINFO_INCLUDE="${TINFO_INCLUDE} "
44990 if test "x" = "x" ; then # no header, assume found
44991 TINFO_HEADER_FOUND="1"
44992 else # check for the header
44993 saved_cppflags="${CPPFLAGS}"
44994 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
44995 if test "${ac_cv_header_+set}" = set; then
44996 { echo "$as_me:$LINENO: checking for " >&5
44997 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44998 if test "${ac_cv_header_+set}" = set; then
44999 echo $ECHO_N "(cached) $ECHO_C" >&6
45001 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45002 echo "${ECHO_T}$ac_cv_header_" >&6; }
45003 else
45004 # Is the header compilable?
45005 { echo "$as_me:$LINENO: checking usability" >&5
45006 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45007 cat >conftest.$ac_ext <<_ACEOF
45008 /* confdefs.h. */
45009 _ACEOF
45010 cat confdefs.h >>conftest.$ac_ext
45011 cat >>conftest.$ac_ext <<_ACEOF
45012 /* end confdefs.h. */
45013 $ac_includes_default
45014 #include <>
45015 _ACEOF
45016 rm -f conftest.$ac_objext
45017 if { (ac_try="$ac_compile"
45018 case "(($ac_try" in
45019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45020 *) ac_try_echo=$ac_try;;
45021 esac
45022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45023 (eval "$ac_compile") 2>conftest.er1
45024 ac_status=$?
45025 grep -v '^ *+' conftest.er1 >conftest.err
45026 rm -f conftest.er1
45027 cat conftest.err >&5
45028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029 (exit $ac_status); } && {
45030 test -z "$ac_c_werror_flag" ||
45031 test ! -s conftest.err
45032 } && test -s conftest.$ac_objext; then
45033 ac_header_compiler=yes
45034 else
45035 echo "$as_me: failed program was:" >&5
45036 sed 's/^/| /' conftest.$ac_ext >&5
45038 ac_header_compiler=no
45041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45043 echo "${ECHO_T}$ac_header_compiler" >&6; }
45045 # Is the header present?
45046 { echo "$as_me:$LINENO: checking presence" >&5
45047 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45048 cat >conftest.$ac_ext <<_ACEOF
45049 /* confdefs.h. */
45050 _ACEOF
45051 cat confdefs.h >>conftest.$ac_ext
45052 cat >>conftest.$ac_ext <<_ACEOF
45053 /* end confdefs.h. */
45054 #include <>
45055 _ACEOF
45056 if { (ac_try="$ac_cpp conftest.$ac_ext"
45057 case "(($ac_try" in
45058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45059 *) ac_try_echo=$ac_try;;
45060 esac
45061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45063 ac_status=$?
45064 grep -v '^ *+' conftest.er1 >conftest.err
45065 rm -f conftest.er1
45066 cat conftest.err >&5
45067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45068 (exit $ac_status); } >/dev/null && {
45069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45070 test ! -s conftest.err
45071 }; then
45072 ac_header_preproc=yes
45073 else
45074 echo "$as_me: failed program was:" >&5
45075 sed 's/^/| /' conftest.$ac_ext >&5
45077 ac_header_preproc=no
45080 rm -f conftest.err conftest.$ac_ext
45081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45082 echo "${ECHO_T}$ac_header_preproc" >&6; }
45084 # So? What about this header?
45085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45086 yes:no: )
45087 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45088 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45089 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45090 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45091 ac_header_preproc=yes
45093 no:yes:* )
45094 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45095 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45096 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45097 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45098 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45099 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45100 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45101 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45102 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45103 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45104 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45105 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45106 ( cat <<\_ASBOX
45107 ## ------------------------------- ##
45108 ## Report this to www.asterisk.org ##
45109 ## ------------------------------- ##
45110 _ASBOX
45111 ) | sed "s/^/$as_me: WARNING: /" >&2
45113 esac
45114 { echo "$as_me:$LINENO: checking for " >&5
45115 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45116 if test "${ac_cv_header_+set}" = set; then
45117 echo $ECHO_N "(cached) $ECHO_C" >&6
45118 else
45119 ac_cv_header_=$ac_header_preproc
45121 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45122 echo "${ECHO_T}$ac_cv_header_" >&6; }
45125 if test $ac_cv_header_ = yes; then
45126 TINFO_HEADER_FOUND=1
45127 else
45128 TINFO_HEADER_FOUND=0
45132 CPPFLAGS="${saved_cppflags}"
45134 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
45135 TINFO_LIB=""
45136 TINFO_INCLUDE=""
45137 else
45138 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45139 TINFO_LIB=""
45141 PBX_TINFO=1
45142 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45144 cat >>confdefs.h <<_ACEOF
45145 #define HAVE_TINFO 1
45146 _ACEOF
45149 cat >>confdefs.h <<_ACEOF
45150 #define HAVE_TINFO_VERSION
45151 _ACEOF
45158 if test "${host_os}" != "linux-gnu" ; then
45159 tonezone_extra="-lm"
45162 # new tonezone, version 1.4.0
45164 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
45165 pbxlibdir=""
45166 # if --with-TONEZONE=DIR has been specified, use it.
45167 if test "x${TONEZONE_DIR}" != "x"; then
45168 if test -d ${TONEZONE_DIR}/lib; then
45169 pbxlibdir="-L${TONEZONE_DIR}/lib"
45170 else
45171 pbxlibdir="-L${TONEZONE_DIR}"
45174 pbxfuncname="tone_zone_find"
45175 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45176 AST_TONEZONE_FOUND=yes
45177 else
45178 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
45179 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
45180 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
45181 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45182 echo $ECHO_N "(cached) $ECHO_C" >&6
45183 else
45184 ac_check_lib_save_LIBS=$LIBS
45185 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
45186 cat >conftest.$ac_ext <<_ACEOF
45187 /* confdefs.h. */
45188 _ACEOF
45189 cat confdefs.h >>conftest.$ac_ext
45190 cat >>conftest.$ac_ext <<_ACEOF
45191 /* end confdefs.h. */
45193 /* Override any GCC internal prototype to avoid an error.
45194 Use char because int might match the return type of a GCC
45195 builtin and then its argument prototype would still apply. */
45196 #ifdef __cplusplus
45197 extern "C"
45198 #endif
45199 char ${pbxfuncname} ();
45201 main ()
45203 return ${pbxfuncname} ();
45205 return 0;
45207 _ACEOF
45208 rm -f conftest.$ac_objext conftest$ac_exeext
45209 if { (ac_try="$ac_link"
45210 case "(($ac_try" in
45211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45212 *) ac_try_echo=$ac_try;;
45213 esac
45214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45215 (eval "$ac_link") 2>conftest.er1
45216 ac_status=$?
45217 grep -v '^ *+' conftest.er1 >conftest.err
45218 rm -f conftest.er1
45219 cat conftest.err >&5
45220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221 (exit $ac_status); } && {
45222 test -z "$ac_c_werror_flag" ||
45223 test ! -s conftest.err
45224 } && test -s conftest$ac_exeext &&
45225 $as_test_x conftest$ac_exeext; then
45226 eval "$as_ac_Lib=yes"
45227 else
45228 echo "$as_me: failed program was:" >&5
45229 sed 's/^/| /' conftest.$ac_ext >&5
45231 eval "$as_ac_Lib=no"
45234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45235 conftest$ac_exeext conftest.$ac_ext
45236 LIBS=$ac_check_lib_save_LIBS
45238 ac_res=`eval echo '${'$as_ac_Lib'}'`
45239 { echo "$as_me:$LINENO: result: $ac_res" >&5
45240 echo "${ECHO_T}$ac_res" >&6; }
45241 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45242 AST_TONEZONE_FOUND=yes
45243 else
45244 AST_TONEZONE_FOUND=no
45249 # now check for the header.
45250 if test "${AST_TONEZONE_FOUND}" = "yes"; then
45251 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
45252 # if --with-TONEZONE=DIR has been specified, use it.
45253 if test "x${TONEZONE_DIR}" != "x"; then
45254 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
45256 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
45257 if test "xzaptel/tonezone.h" = "x" ; then # no header, assume found
45258 TONEZONE_HEADER_FOUND="1"
45259 else # check for the header
45260 saved_cppflags="${CPPFLAGS}"
45261 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
45262 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45263 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
45264 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
45265 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45266 echo $ECHO_N "(cached) $ECHO_C" >&6
45268 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
45269 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
45270 else
45271 # Is the header compilable?
45272 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
45273 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
45274 cat >conftest.$ac_ext <<_ACEOF
45275 /* confdefs.h. */
45276 _ACEOF
45277 cat confdefs.h >>conftest.$ac_ext
45278 cat >>conftest.$ac_ext <<_ACEOF
45279 /* end confdefs.h. */
45280 $ac_includes_default
45281 #include <zaptel/tonezone.h>
45282 _ACEOF
45283 rm -f conftest.$ac_objext
45284 if { (ac_try="$ac_compile"
45285 case "(($ac_try" in
45286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45287 *) ac_try_echo=$ac_try;;
45288 esac
45289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45290 (eval "$ac_compile") 2>conftest.er1
45291 ac_status=$?
45292 grep -v '^ *+' conftest.er1 >conftest.err
45293 rm -f conftest.er1
45294 cat conftest.err >&5
45295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45296 (exit $ac_status); } && {
45297 test -z "$ac_c_werror_flag" ||
45298 test ! -s conftest.err
45299 } && test -s conftest.$ac_objext; then
45300 ac_header_compiler=yes
45301 else
45302 echo "$as_me: failed program was:" >&5
45303 sed 's/^/| /' conftest.$ac_ext >&5
45305 ac_header_compiler=no
45308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45310 echo "${ECHO_T}$ac_header_compiler" >&6; }
45312 # Is the header present?
45313 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
45314 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
45315 cat >conftest.$ac_ext <<_ACEOF
45316 /* confdefs.h. */
45317 _ACEOF
45318 cat confdefs.h >>conftest.$ac_ext
45319 cat >>conftest.$ac_ext <<_ACEOF
45320 /* end confdefs.h. */
45321 #include <zaptel/tonezone.h>
45322 _ACEOF
45323 if { (ac_try="$ac_cpp conftest.$ac_ext"
45324 case "(($ac_try" in
45325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45326 *) ac_try_echo=$ac_try;;
45327 esac
45328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45330 ac_status=$?
45331 grep -v '^ *+' conftest.er1 >conftest.err
45332 rm -f conftest.er1
45333 cat conftest.err >&5
45334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45335 (exit $ac_status); } >/dev/null && {
45336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45337 test ! -s conftest.err
45338 }; then
45339 ac_header_preproc=yes
45340 else
45341 echo "$as_me: failed program was:" >&5
45342 sed 's/^/| /' conftest.$ac_ext >&5
45344 ac_header_preproc=no
45347 rm -f conftest.err conftest.$ac_ext
45348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45349 echo "${ECHO_T}$ac_header_preproc" >&6; }
45351 # So? What about this header?
45352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45353 yes:no: )
45354 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
45355 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45356 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
45357 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
45358 ac_header_preproc=yes
45360 no:yes:* )
45361 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
45362 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
45363 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
45364 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
45365 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
45366 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
45367 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
45368 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
45369 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
45370 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
45371 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
45372 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
45373 ( cat <<\_ASBOX
45374 ## ------------------------------- ##
45375 ## Report this to www.asterisk.org ##
45376 ## ------------------------------- ##
45377 _ASBOX
45378 ) | sed "s/^/$as_me: WARNING: /" >&2
45380 esac
45381 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
45382 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
45383 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
45384 echo $ECHO_N "(cached) $ECHO_C" >&6
45385 else
45386 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
45388 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
45389 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
45392 if test $ac_cv_header_zaptel_tonezone_h = yes; then
45393 TONEZONE_HEADER_FOUND=1
45394 else
45395 TONEZONE_HEADER_FOUND=0
45399 CPPFLAGS="${saved_cppflags}"
45401 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
45402 TONEZONE_LIB=""
45403 TONEZONE_INCLUDE=""
45404 else
45405 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45406 TONEZONE_LIB=""
45408 PBX_TONEZONE=1
45409 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45411 cat >>confdefs.h <<_ACEOF
45412 #define HAVE_TONEZONE 1
45413 _ACEOF
45416 cat >>confdefs.h <<_ACEOF
45417 #define HAVE_TONEZONE_VERSION 140
45418 _ACEOF
45424 # other case, old tonezone (0.80)
45426 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
45427 pbxlibdir=""
45428 # if --with-TONEZONE=DIR has been specified, use it.
45429 if test "x${TONEZONE_DIR}" != "x"; then
45430 if test -d ${TONEZONE_DIR}/lib; then
45431 pbxlibdir="-L${TONEZONE_DIR}/lib"
45432 else
45433 pbxlibdir="-L${TONEZONE_DIR}"
45436 pbxfuncname="tone_zone_find"
45437 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45438 AST_TONEZONE_FOUND=yes
45439 else
45440 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
45441 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
45442 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
45443 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45444 echo $ECHO_N "(cached) $ECHO_C" >&6
45445 else
45446 ac_check_lib_save_LIBS=$LIBS
45447 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
45448 cat >conftest.$ac_ext <<_ACEOF
45449 /* confdefs.h. */
45450 _ACEOF
45451 cat confdefs.h >>conftest.$ac_ext
45452 cat >>conftest.$ac_ext <<_ACEOF
45453 /* end confdefs.h. */
45455 /* Override any GCC internal prototype to avoid an error.
45456 Use char because int might match the return type of a GCC
45457 builtin and then its argument prototype would still apply. */
45458 #ifdef __cplusplus
45459 extern "C"
45460 #endif
45461 char ${pbxfuncname} ();
45463 main ()
45465 return ${pbxfuncname} ();
45467 return 0;
45469 _ACEOF
45470 rm -f conftest.$ac_objext conftest$ac_exeext
45471 if { (ac_try="$ac_link"
45472 case "(($ac_try" in
45473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45474 *) ac_try_echo=$ac_try;;
45475 esac
45476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45477 (eval "$ac_link") 2>conftest.er1
45478 ac_status=$?
45479 grep -v '^ *+' conftest.er1 >conftest.err
45480 rm -f conftest.er1
45481 cat conftest.err >&5
45482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45483 (exit $ac_status); } && {
45484 test -z "$ac_c_werror_flag" ||
45485 test ! -s conftest.err
45486 } && test -s conftest$ac_exeext &&
45487 $as_test_x conftest$ac_exeext; then
45488 eval "$as_ac_Lib=yes"
45489 else
45490 echo "$as_me: failed program was:" >&5
45491 sed 's/^/| /' conftest.$ac_ext >&5
45493 eval "$as_ac_Lib=no"
45496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45497 conftest$ac_exeext conftest.$ac_ext
45498 LIBS=$ac_check_lib_save_LIBS
45500 ac_res=`eval echo '${'$as_ac_Lib'}'`
45501 { echo "$as_me:$LINENO: result: $ac_res" >&5
45502 echo "${ECHO_T}$ac_res" >&6; }
45503 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45504 AST_TONEZONE_FOUND=yes
45505 else
45506 AST_TONEZONE_FOUND=no
45511 # now check for the header.
45512 if test "${AST_TONEZONE_FOUND}" = "yes"; then
45513 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
45514 # if --with-TONEZONE=DIR has been specified, use it.
45515 if test "x${TONEZONE_DIR}" != "x"; then
45516 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
45518 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
45519 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
45520 TONEZONE_HEADER_FOUND="1"
45521 else # check for the header
45522 saved_cppflags="${CPPFLAGS}"
45523 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
45524 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
45525 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
45526 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
45527 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
45528 echo $ECHO_N "(cached) $ECHO_C" >&6
45530 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
45531 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
45532 else
45533 # Is the header compilable?
45534 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
45535 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
45536 cat >conftest.$ac_ext <<_ACEOF
45537 /* confdefs.h. */
45538 _ACEOF
45539 cat confdefs.h >>conftest.$ac_ext
45540 cat >>conftest.$ac_ext <<_ACEOF
45541 /* end confdefs.h. */
45542 $ac_includes_default
45543 #include <zaptel/zaptel.h>
45544 _ACEOF
45545 rm -f conftest.$ac_objext
45546 if { (ac_try="$ac_compile"
45547 case "(($ac_try" in
45548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45549 *) ac_try_echo=$ac_try;;
45550 esac
45551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45552 (eval "$ac_compile") 2>conftest.er1
45553 ac_status=$?
45554 grep -v '^ *+' conftest.er1 >conftest.err
45555 rm -f conftest.er1
45556 cat conftest.err >&5
45557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45558 (exit $ac_status); } && {
45559 test -z "$ac_c_werror_flag" ||
45560 test ! -s conftest.err
45561 } && test -s conftest.$ac_objext; then
45562 ac_header_compiler=yes
45563 else
45564 echo "$as_me: failed program was:" >&5
45565 sed 's/^/| /' conftest.$ac_ext >&5
45567 ac_header_compiler=no
45570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45572 echo "${ECHO_T}$ac_header_compiler" >&6; }
45574 # Is the header present?
45575 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
45576 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
45577 cat >conftest.$ac_ext <<_ACEOF
45578 /* confdefs.h. */
45579 _ACEOF
45580 cat confdefs.h >>conftest.$ac_ext
45581 cat >>conftest.$ac_ext <<_ACEOF
45582 /* end confdefs.h. */
45583 #include <zaptel/zaptel.h>
45584 _ACEOF
45585 if { (ac_try="$ac_cpp conftest.$ac_ext"
45586 case "(($ac_try" in
45587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45588 *) ac_try_echo=$ac_try;;
45589 esac
45590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45592 ac_status=$?
45593 grep -v '^ *+' conftest.er1 >conftest.err
45594 rm -f conftest.er1
45595 cat conftest.err >&5
45596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597 (exit $ac_status); } >/dev/null && {
45598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45599 test ! -s conftest.err
45600 }; then
45601 ac_header_preproc=yes
45602 else
45603 echo "$as_me: failed program was:" >&5
45604 sed 's/^/| /' conftest.$ac_ext >&5
45606 ac_header_preproc=no
45609 rm -f conftest.err conftest.$ac_ext
45610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45611 echo "${ECHO_T}$ac_header_preproc" >&6; }
45613 # So? What about this header?
45614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45615 yes:no: )
45616 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
45617 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45618 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
45619 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
45620 ac_header_preproc=yes
45622 no:yes:* )
45623 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
45624 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
45625 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
45626 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
45627 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
45628 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
45629 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
45630 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
45631 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
45632 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
45633 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
45634 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
45635 ( cat <<\_ASBOX
45636 ## ------------------------------- ##
45637 ## Report this to www.asterisk.org ##
45638 ## ------------------------------- ##
45639 _ASBOX
45640 ) | sed "s/^/$as_me: WARNING: /" >&2
45642 esac
45643 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
45644 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
45645 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
45646 echo $ECHO_N "(cached) $ECHO_C" >&6
45647 else
45648 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
45650 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
45651 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
45654 if test $ac_cv_header_zaptel_zaptel_h = yes; then
45655 TONEZONE_HEADER_FOUND=1
45656 else
45657 TONEZONE_HEADER_FOUND=0
45661 CPPFLAGS="${saved_cppflags}"
45663 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
45664 TONEZONE_LIB=""
45665 TONEZONE_INCLUDE=""
45666 else
45667 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45668 TONEZONE_LIB=""
45670 PBX_TONEZONE=1
45671 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45673 cat >>confdefs.h <<_ACEOF
45674 #define HAVE_TONEZONE 1
45675 _ACEOF
45678 cat >>confdefs.h <<_ACEOF
45679 #define HAVE_TONEZONE_VERSION 80
45680 _ACEOF
45688 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
45689 pbxlibdir=""
45690 # if --with-USB=DIR has been specified, use it.
45691 if test "x${USB_DIR}" != "x"; then
45692 if test -d ${USB_DIR}/lib; then
45693 pbxlibdir="-L${USB_DIR}/lib"
45694 else
45695 pbxlibdir="-L${USB_DIR}"
45698 pbxfuncname="usb_init"
45699 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45700 AST_USB_FOUND=yes
45701 else
45702 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
45703 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
45704 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
45705 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45706 echo $ECHO_N "(cached) $ECHO_C" >&6
45707 else
45708 ac_check_lib_save_LIBS=$LIBS
45709 LIBS="-lusb ${pbxlibdir} $LIBS"
45710 cat >conftest.$ac_ext <<_ACEOF
45711 /* confdefs.h. */
45712 _ACEOF
45713 cat confdefs.h >>conftest.$ac_ext
45714 cat >>conftest.$ac_ext <<_ACEOF
45715 /* end confdefs.h. */
45717 /* Override any GCC internal prototype to avoid an error.
45718 Use char because int might match the return type of a GCC
45719 builtin and then its argument prototype would still apply. */
45720 #ifdef __cplusplus
45721 extern "C"
45722 #endif
45723 char ${pbxfuncname} ();
45725 main ()
45727 return ${pbxfuncname} ();
45729 return 0;
45731 _ACEOF
45732 rm -f conftest.$ac_objext conftest$ac_exeext
45733 if { (ac_try="$ac_link"
45734 case "(($ac_try" in
45735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45736 *) ac_try_echo=$ac_try;;
45737 esac
45738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45739 (eval "$ac_link") 2>conftest.er1
45740 ac_status=$?
45741 grep -v '^ *+' conftest.er1 >conftest.err
45742 rm -f conftest.er1
45743 cat conftest.err >&5
45744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45745 (exit $ac_status); } && {
45746 test -z "$ac_c_werror_flag" ||
45747 test ! -s conftest.err
45748 } && test -s conftest$ac_exeext &&
45749 $as_test_x conftest$ac_exeext; then
45750 eval "$as_ac_Lib=yes"
45751 else
45752 echo "$as_me: failed program was:" >&5
45753 sed 's/^/| /' conftest.$ac_ext >&5
45755 eval "$as_ac_Lib=no"
45758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45759 conftest$ac_exeext conftest.$ac_ext
45760 LIBS=$ac_check_lib_save_LIBS
45762 ac_res=`eval echo '${'$as_ac_Lib'}'`
45763 { echo "$as_me:$LINENO: result: $ac_res" >&5
45764 echo "${ECHO_T}$ac_res" >&6; }
45765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45766 AST_USB_FOUND=yes
45767 else
45768 AST_USB_FOUND=no
45773 # now check for the header.
45774 if test "${AST_USB_FOUND}" = "yes"; then
45775 USB_LIB="${pbxlibdir} -lusb "
45776 # if --with-USB=DIR has been specified, use it.
45777 if test "x${USB_DIR}" != "x"; then
45778 USB_INCLUDE="-I${USB_DIR}/include"
45780 USB_INCLUDE="${USB_INCLUDE} "
45781 if test "xusb.h" = "x" ; then # no header, assume found
45782 USB_HEADER_FOUND="1"
45783 else # check for the header
45784 saved_cppflags="${CPPFLAGS}"
45785 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
45786 if test "${ac_cv_header_usb_h+set}" = set; then
45787 { echo "$as_me:$LINENO: checking for usb.h" >&5
45788 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45789 if test "${ac_cv_header_usb_h+set}" = set; then
45790 echo $ECHO_N "(cached) $ECHO_C" >&6
45792 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45793 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45794 else
45795 # Is the header compilable?
45796 { echo "$as_me:$LINENO: checking usb.h usability" >&5
45797 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
45798 cat >conftest.$ac_ext <<_ACEOF
45799 /* confdefs.h. */
45800 _ACEOF
45801 cat confdefs.h >>conftest.$ac_ext
45802 cat >>conftest.$ac_ext <<_ACEOF
45803 /* end confdefs.h. */
45804 $ac_includes_default
45805 #include <usb.h>
45806 _ACEOF
45807 rm -f conftest.$ac_objext
45808 if { (ac_try="$ac_compile"
45809 case "(($ac_try" in
45810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45811 *) ac_try_echo=$ac_try;;
45812 esac
45813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45814 (eval "$ac_compile") 2>conftest.er1
45815 ac_status=$?
45816 grep -v '^ *+' conftest.er1 >conftest.err
45817 rm -f conftest.er1
45818 cat conftest.err >&5
45819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820 (exit $ac_status); } && {
45821 test -z "$ac_c_werror_flag" ||
45822 test ! -s conftest.err
45823 } && test -s conftest.$ac_objext; then
45824 ac_header_compiler=yes
45825 else
45826 echo "$as_me: failed program was:" >&5
45827 sed 's/^/| /' conftest.$ac_ext >&5
45829 ac_header_compiler=no
45832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45834 echo "${ECHO_T}$ac_header_compiler" >&6; }
45836 # Is the header present?
45837 { echo "$as_me:$LINENO: checking usb.h presence" >&5
45838 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
45839 cat >conftest.$ac_ext <<_ACEOF
45840 /* confdefs.h. */
45841 _ACEOF
45842 cat confdefs.h >>conftest.$ac_ext
45843 cat >>conftest.$ac_ext <<_ACEOF
45844 /* end confdefs.h. */
45845 #include <usb.h>
45846 _ACEOF
45847 if { (ac_try="$ac_cpp conftest.$ac_ext"
45848 case "(($ac_try" in
45849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45850 *) ac_try_echo=$ac_try;;
45851 esac
45852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45854 ac_status=$?
45855 grep -v '^ *+' conftest.er1 >conftest.err
45856 rm -f conftest.er1
45857 cat conftest.err >&5
45858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45859 (exit $ac_status); } >/dev/null && {
45860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45861 test ! -s conftest.err
45862 }; then
45863 ac_header_preproc=yes
45864 else
45865 echo "$as_me: failed program was:" >&5
45866 sed 's/^/| /' conftest.$ac_ext >&5
45868 ac_header_preproc=no
45871 rm -f conftest.err conftest.$ac_ext
45872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45873 echo "${ECHO_T}$ac_header_preproc" >&6; }
45875 # So? What about this header?
45876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45877 yes:no: )
45878 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45879 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45880 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
45881 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
45882 ac_header_preproc=yes
45884 no:yes:* )
45885 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
45886 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
45887 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
45888 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
45889 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
45890 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
45891 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
45892 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45893 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
45894 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
45895 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
45896 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
45897 ( cat <<\_ASBOX
45898 ## ------------------------------- ##
45899 ## Report this to www.asterisk.org ##
45900 ## ------------------------------- ##
45901 _ASBOX
45902 ) | sed "s/^/$as_me: WARNING: /" >&2
45904 esac
45905 { echo "$as_me:$LINENO: checking for usb.h" >&5
45906 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45907 if test "${ac_cv_header_usb_h+set}" = set; then
45908 echo $ECHO_N "(cached) $ECHO_C" >&6
45909 else
45910 ac_cv_header_usb_h=$ac_header_preproc
45912 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45913 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45916 if test $ac_cv_header_usb_h = yes; then
45917 USB_HEADER_FOUND=1
45918 else
45919 USB_HEADER_FOUND=0
45923 CPPFLAGS="${saved_cppflags}"
45925 if test "x${USB_HEADER_FOUND}" = "x0" ; then
45926 USB_LIB=""
45927 USB_INCLUDE=""
45928 else
45929 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45930 USB_LIB=""
45932 PBX_USB=1
45933 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45935 cat >>confdefs.h <<_ACEOF
45936 #define HAVE_USB 1
45937 _ACEOF
45940 cat >>confdefs.h <<_ACEOF
45941 #define HAVE_USB_VERSION
45942 _ACEOF
45950 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
45951 pbxlibdir=""
45952 # if --with-VORBIS=DIR has been specified, use it.
45953 if test "x${VORBIS_DIR}" != "x"; then
45954 if test -d ${VORBIS_DIR}/lib; then
45955 pbxlibdir="-L${VORBIS_DIR}/lib"
45956 else
45957 pbxlibdir="-L${VORBIS_DIR}"
45960 pbxfuncname="vorbis_info_init"
45961 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45962 AST_VORBIS_FOUND=yes
45963 else
45964 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
45965 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
45966 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
45967 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45968 echo $ECHO_N "(cached) $ECHO_C" >&6
45969 else
45970 ac_check_lib_save_LIBS=$LIBS
45971 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
45972 cat >conftest.$ac_ext <<_ACEOF
45973 /* confdefs.h. */
45974 _ACEOF
45975 cat confdefs.h >>conftest.$ac_ext
45976 cat >>conftest.$ac_ext <<_ACEOF
45977 /* end confdefs.h. */
45979 /* Override any GCC internal prototype to avoid an error.
45980 Use char because int might match the return type of a GCC
45981 builtin and then its argument prototype would still apply. */
45982 #ifdef __cplusplus
45983 extern "C"
45984 #endif
45985 char ${pbxfuncname} ();
45987 main ()
45989 return ${pbxfuncname} ();
45991 return 0;
45993 _ACEOF
45994 rm -f conftest.$ac_objext conftest$ac_exeext
45995 if { (ac_try="$ac_link"
45996 case "(($ac_try" in
45997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45998 *) ac_try_echo=$ac_try;;
45999 esac
46000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46001 (eval "$ac_link") 2>conftest.er1
46002 ac_status=$?
46003 grep -v '^ *+' conftest.er1 >conftest.err
46004 rm -f conftest.er1
46005 cat conftest.err >&5
46006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46007 (exit $ac_status); } && {
46008 test -z "$ac_c_werror_flag" ||
46009 test ! -s conftest.err
46010 } && test -s conftest$ac_exeext &&
46011 $as_test_x conftest$ac_exeext; then
46012 eval "$as_ac_Lib=yes"
46013 else
46014 echo "$as_me: failed program was:" >&5
46015 sed 's/^/| /' conftest.$ac_ext >&5
46017 eval "$as_ac_Lib=no"
46020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46021 conftest$ac_exeext conftest.$ac_ext
46022 LIBS=$ac_check_lib_save_LIBS
46024 ac_res=`eval echo '${'$as_ac_Lib'}'`
46025 { echo "$as_me:$LINENO: result: $ac_res" >&5
46026 echo "${ECHO_T}$ac_res" >&6; }
46027 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46028 AST_VORBIS_FOUND=yes
46029 else
46030 AST_VORBIS_FOUND=no
46035 # now check for the header.
46036 if test "${AST_VORBIS_FOUND}" = "yes"; then
46037 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
46038 # if --with-VORBIS=DIR has been specified, use it.
46039 if test "x${VORBIS_DIR}" != "x"; then
46040 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
46042 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
46043 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
46044 VORBIS_HEADER_FOUND="1"
46045 else # check for the header
46046 saved_cppflags="${CPPFLAGS}"
46047 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
46048 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46049 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46050 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46051 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46052 echo $ECHO_N "(cached) $ECHO_C" >&6
46054 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46055 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46056 else
46057 # Is the header compilable?
46058 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
46059 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
46060 cat >conftest.$ac_ext <<_ACEOF
46061 /* confdefs.h. */
46062 _ACEOF
46063 cat confdefs.h >>conftest.$ac_ext
46064 cat >>conftest.$ac_ext <<_ACEOF
46065 /* end confdefs.h. */
46066 $ac_includes_default
46067 #include <vorbis/codec.h>
46068 _ACEOF
46069 rm -f conftest.$ac_objext
46070 if { (ac_try="$ac_compile"
46071 case "(($ac_try" in
46072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46073 *) ac_try_echo=$ac_try;;
46074 esac
46075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46076 (eval "$ac_compile") 2>conftest.er1
46077 ac_status=$?
46078 grep -v '^ *+' conftest.er1 >conftest.err
46079 rm -f conftest.er1
46080 cat conftest.err >&5
46081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46082 (exit $ac_status); } && {
46083 test -z "$ac_c_werror_flag" ||
46084 test ! -s conftest.err
46085 } && test -s conftest.$ac_objext; then
46086 ac_header_compiler=yes
46087 else
46088 echo "$as_me: failed program was:" >&5
46089 sed 's/^/| /' conftest.$ac_ext >&5
46091 ac_header_compiler=no
46094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46096 echo "${ECHO_T}$ac_header_compiler" >&6; }
46098 # Is the header present?
46099 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
46100 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
46101 cat >conftest.$ac_ext <<_ACEOF
46102 /* confdefs.h. */
46103 _ACEOF
46104 cat confdefs.h >>conftest.$ac_ext
46105 cat >>conftest.$ac_ext <<_ACEOF
46106 /* end confdefs.h. */
46107 #include <vorbis/codec.h>
46108 _ACEOF
46109 if { (ac_try="$ac_cpp conftest.$ac_ext"
46110 case "(($ac_try" in
46111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46112 *) ac_try_echo=$ac_try;;
46113 esac
46114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46116 ac_status=$?
46117 grep -v '^ *+' conftest.er1 >conftest.err
46118 rm -f conftest.er1
46119 cat conftest.err >&5
46120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46121 (exit $ac_status); } >/dev/null && {
46122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46123 test ! -s conftest.err
46124 }; then
46125 ac_header_preproc=yes
46126 else
46127 echo "$as_me: failed program was:" >&5
46128 sed 's/^/| /' conftest.$ac_ext >&5
46130 ac_header_preproc=no
46133 rm -f conftest.err conftest.$ac_ext
46134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46135 echo "${ECHO_T}$ac_header_preproc" >&6; }
46137 # So? What about this header?
46138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46139 yes:no: )
46140 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46141 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46142 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
46143 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
46144 ac_header_preproc=yes
46146 no:yes:* )
46147 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
46148 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
46149 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
46150 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
46151 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
46152 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
46153 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
46154 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46155 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
46156 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
46157 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
46158 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
46159 ( cat <<\_ASBOX
46160 ## ------------------------------- ##
46161 ## Report this to www.asterisk.org ##
46162 ## ------------------------------- ##
46163 _ASBOX
46164 ) | sed "s/^/$as_me: WARNING: /" >&2
46166 esac
46167 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46168 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46169 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46170 echo $ECHO_N "(cached) $ECHO_C" >&6
46171 else
46172 ac_cv_header_vorbis_codec_h=$ac_header_preproc
46174 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46175 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46178 if test $ac_cv_header_vorbis_codec_h = yes; then
46179 VORBIS_HEADER_FOUND=1
46180 else
46181 VORBIS_HEADER_FOUND=0
46185 CPPFLAGS="${saved_cppflags}"
46187 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
46188 VORBIS_LIB=""
46189 VORBIS_INCLUDE=""
46190 else
46191 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46192 VORBIS_LIB=""
46194 PBX_VORBIS=1
46195 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46197 cat >>confdefs.h <<_ACEOF
46198 #define HAVE_VORBIS 1
46199 _ACEOF
46202 cat >>confdefs.h <<_ACEOF
46203 #define HAVE_VORBIS_VERSION
46204 _ACEOF
46211 ac_ext=cpp
46212 ac_cpp='$CXXCPP $CPPFLAGS'
46213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46218 if test "${USE_VPB}" != "no"; then
46219 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
46220 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
46221 saved_libs="${LIBS}"
46222 saved_cppflags="${CPPFLAGS}"
46223 if test "x${VPB_DIR}" != "x"; then
46224 if test -d ${VPB_DIR}/lib; then
46225 vpblibdir=${VPB_DIR}/lib
46226 else
46227 vpblibdir=${VPB_DIR}
46229 LIBS="${LIBS} -L${vpblibdir}"
46230 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
46232 LIBS="${LIBS} -lvpb -lpthread"
46233 cat >conftest.$ac_ext <<_ACEOF
46235 /* confdefs.h. */
46236 _ACEOF
46237 cat confdefs.h >>conftest.$ac_ext
46238 cat >>conftest.$ac_ext <<_ACEOF
46239 /* end confdefs.h. */
46240 #include <vpbapi.h>
46242 main ()
46244 int q = vpb_open(0,0);
46246 return 0;
46249 _ACEOF
46250 rm -f conftest.$ac_objext conftest$ac_exeext
46251 if { (ac_try="$ac_link"
46252 case "(($ac_try" in
46253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46254 *) ac_try_echo=$ac_try;;
46255 esac
46256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46257 (eval "$ac_link") 2>conftest.er1
46258 ac_status=$?
46259 grep -v '^ *+' conftest.er1 >conftest.err
46260 rm -f conftest.er1
46261 cat conftest.err >&5
46262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46263 (exit $ac_status); } && {
46264 test -z "$ac_cxx_werror_flag" ||
46265 test ! -s conftest.err
46266 } && test -s conftest$ac_exeext &&
46267 $as_test_x conftest$ac_exeext; then
46268 { echo "$as_me:$LINENO: result: yes" >&5
46269 echo "${ECHO_T}yes" >&6; }
46270 ac_cv_lib_vpb_vpb_open="yes"
46272 else
46273 echo "$as_me: failed program was:" >&5
46274 sed 's/^/| /' conftest.$ac_ext >&5
46276 { echo "$as_me:$LINENO: result: no" >&5
46277 echo "${ECHO_T}no" >&6; }
46278 ac_cv_lib_vpb_vpb_open="no"
46283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46284 conftest$ac_exeext conftest.$ac_ext
46285 LIBS="${saved_libs}"
46286 CPPFLAGS="${saved_cppflags}"
46287 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
46288 VPB_LIB="-lvpb"
46289 if test "${VPB_DIR}" != ""; then
46290 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
46291 VPB_INCLUDE="-I${VPB_DIR}/include"
46293 PBX_VPB=1
46295 cat >>confdefs.h <<\_ACEOF
46296 #define HAVE_VPB 1
46297 _ACEOF
46302 ac_ext=c
46303 ac_cpp='$CPP $CPPFLAGS'
46304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46310 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
46311 pbxlibdir=""
46312 # if --with-ZLIB=DIR has been specified, use it.
46313 if test "x${ZLIB_DIR}" != "x"; then
46314 if test -d ${ZLIB_DIR}/lib; then
46315 pbxlibdir="-L${ZLIB_DIR}/lib"
46316 else
46317 pbxlibdir="-L${ZLIB_DIR}"
46320 pbxfuncname="compress"
46321 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46322 AST_ZLIB_FOUND=yes
46323 else
46324 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
46325 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
46326 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
46327 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46328 echo $ECHO_N "(cached) $ECHO_C" >&6
46329 else
46330 ac_check_lib_save_LIBS=$LIBS
46331 LIBS="-lz ${pbxlibdir} $LIBS"
46332 cat >conftest.$ac_ext <<_ACEOF
46333 /* confdefs.h. */
46334 _ACEOF
46335 cat confdefs.h >>conftest.$ac_ext
46336 cat >>conftest.$ac_ext <<_ACEOF
46337 /* end confdefs.h. */
46339 /* Override any GCC internal prototype to avoid an error.
46340 Use char because int might match the return type of a GCC
46341 builtin and then its argument prototype would still apply. */
46342 #ifdef __cplusplus
46343 extern "C"
46344 #endif
46345 char ${pbxfuncname} ();
46347 main ()
46349 return ${pbxfuncname} ();
46351 return 0;
46353 _ACEOF
46354 rm -f conftest.$ac_objext conftest$ac_exeext
46355 if { (ac_try="$ac_link"
46356 case "(($ac_try" in
46357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46358 *) ac_try_echo=$ac_try;;
46359 esac
46360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46361 (eval "$ac_link") 2>conftest.er1
46362 ac_status=$?
46363 grep -v '^ *+' conftest.er1 >conftest.err
46364 rm -f conftest.er1
46365 cat conftest.err >&5
46366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367 (exit $ac_status); } && {
46368 test -z "$ac_c_werror_flag" ||
46369 test ! -s conftest.err
46370 } && test -s conftest$ac_exeext &&
46371 $as_test_x conftest$ac_exeext; then
46372 eval "$as_ac_Lib=yes"
46373 else
46374 echo "$as_me: failed program was:" >&5
46375 sed 's/^/| /' conftest.$ac_ext >&5
46377 eval "$as_ac_Lib=no"
46380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46381 conftest$ac_exeext conftest.$ac_ext
46382 LIBS=$ac_check_lib_save_LIBS
46384 ac_res=`eval echo '${'$as_ac_Lib'}'`
46385 { echo "$as_me:$LINENO: result: $ac_res" >&5
46386 echo "${ECHO_T}$ac_res" >&6; }
46387 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46388 AST_ZLIB_FOUND=yes
46389 else
46390 AST_ZLIB_FOUND=no
46395 # now check for the header.
46396 if test "${AST_ZLIB_FOUND}" = "yes"; then
46397 ZLIB_LIB="${pbxlibdir} -lz "
46398 # if --with-ZLIB=DIR has been specified, use it.
46399 if test "x${ZLIB_DIR}" != "x"; then
46400 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
46402 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
46403 if test "xzlib.h" = "x" ; then # no header, assume found
46404 ZLIB_HEADER_FOUND="1"
46405 else # check for the header
46406 saved_cppflags="${CPPFLAGS}"
46407 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
46408 if test "${ac_cv_header_zlib_h+set}" = set; then
46409 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46410 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46411 if test "${ac_cv_header_zlib_h+set}" = set; then
46412 echo $ECHO_N "(cached) $ECHO_C" >&6
46414 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46415 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46416 else
46417 # Is the header compilable?
46418 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
46419 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
46420 cat >conftest.$ac_ext <<_ACEOF
46421 /* confdefs.h. */
46422 _ACEOF
46423 cat confdefs.h >>conftest.$ac_ext
46424 cat >>conftest.$ac_ext <<_ACEOF
46425 /* end confdefs.h. */
46426 $ac_includes_default
46427 #include <zlib.h>
46428 _ACEOF
46429 rm -f conftest.$ac_objext
46430 if { (ac_try="$ac_compile"
46431 case "(($ac_try" in
46432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46433 *) ac_try_echo=$ac_try;;
46434 esac
46435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46436 (eval "$ac_compile") 2>conftest.er1
46437 ac_status=$?
46438 grep -v '^ *+' conftest.er1 >conftest.err
46439 rm -f conftest.er1
46440 cat conftest.err >&5
46441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46442 (exit $ac_status); } && {
46443 test -z "$ac_c_werror_flag" ||
46444 test ! -s conftest.err
46445 } && test -s conftest.$ac_objext; then
46446 ac_header_compiler=yes
46447 else
46448 echo "$as_me: failed program was:" >&5
46449 sed 's/^/| /' conftest.$ac_ext >&5
46451 ac_header_compiler=no
46454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46456 echo "${ECHO_T}$ac_header_compiler" >&6; }
46458 # Is the header present?
46459 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
46460 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
46461 cat >conftest.$ac_ext <<_ACEOF
46462 /* confdefs.h. */
46463 _ACEOF
46464 cat confdefs.h >>conftest.$ac_ext
46465 cat >>conftest.$ac_ext <<_ACEOF
46466 /* end confdefs.h. */
46467 #include <zlib.h>
46468 _ACEOF
46469 if { (ac_try="$ac_cpp conftest.$ac_ext"
46470 case "(($ac_try" in
46471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46472 *) ac_try_echo=$ac_try;;
46473 esac
46474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46476 ac_status=$?
46477 grep -v '^ *+' conftest.er1 >conftest.err
46478 rm -f conftest.er1
46479 cat conftest.err >&5
46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481 (exit $ac_status); } >/dev/null && {
46482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46483 test ! -s conftest.err
46484 }; then
46485 ac_header_preproc=yes
46486 else
46487 echo "$as_me: failed program was:" >&5
46488 sed 's/^/| /' conftest.$ac_ext >&5
46490 ac_header_preproc=no
46493 rm -f conftest.err conftest.$ac_ext
46494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46495 echo "${ECHO_T}$ac_header_preproc" >&6; }
46497 # So? What about this header?
46498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46499 yes:no: )
46500 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
46501 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46502 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
46503 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
46504 ac_header_preproc=yes
46506 no:yes:* )
46507 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
46508 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
46509 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
46510 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
46511 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
46512 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
46513 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
46514 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
46515 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
46516 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
46517 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
46518 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
46519 ( cat <<\_ASBOX
46520 ## ------------------------------- ##
46521 ## Report this to www.asterisk.org ##
46522 ## ------------------------------- ##
46523 _ASBOX
46524 ) | sed "s/^/$as_me: WARNING: /" >&2
46526 esac
46527 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46528 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46529 if test "${ac_cv_header_zlib_h+set}" = set; then
46530 echo $ECHO_N "(cached) $ECHO_C" >&6
46531 else
46532 ac_cv_header_zlib_h=$ac_header_preproc
46534 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46535 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46538 if test $ac_cv_header_zlib_h = yes; then
46539 ZLIB_HEADER_FOUND=1
46540 else
46541 ZLIB_HEADER_FOUND=0
46545 CPPFLAGS="${saved_cppflags}"
46547 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
46548 ZLIB_LIB=""
46549 ZLIB_INCLUDE=""
46550 else
46551 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46552 ZLIB_LIB=""
46554 PBX_ZLIB=1
46555 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46557 cat >>confdefs.h <<_ACEOF
46558 #define HAVE_ZLIB 1
46559 _ACEOF
46562 cat >>confdefs.h <<_ACEOF
46563 #define HAVE_ZLIB_VERSION
46564 _ACEOF
46571 # Check for various zaptel features and locations.
46572 # The version number, which goes into HAVE_ZAPTEL_VERSION,
46573 # will be used in the system headers to determine the location
46574 # of the zaptel.h header.
46577 if test "x${PBX_ZAPTEL}" != "x1"; then
46578 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
46579 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
46580 saved_cppflags="${CPPFLAGS}"
46581 if test "x${ZAPTEL_DIR}" != "x"; then
46582 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46584 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
46586 cat >conftest.$ac_ext <<_ACEOF
46587 /* confdefs.h. */
46588 _ACEOF
46589 cat confdefs.h >>conftest.$ac_ext
46590 cat >>conftest.$ac_ext <<_ACEOF
46591 /* end confdefs.h. */
46592 #include <zaptel/zaptel.h>
46594 main ()
46596 #if defined(ZT_TONE_DTMF_BASE)
46597 int foo = 0;
46598 #else
46599 int foo = bar;
46600 #endif
46604 return 0;
46606 _ACEOF
46607 rm -f conftest.$ac_objext
46608 if { (ac_try="$ac_compile"
46609 case "(($ac_try" in
46610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46611 *) ac_try_echo=$ac_try;;
46612 esac
46613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46614 (eval "$ac_compile") 2>conftest.er1
46615 ac_status=$?
46616 grep -v '^ *+' conftest.er1 >conftest.err
46617 rm -f conftest.er1
46618 cat conftest.err >&5
46619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46620 (exit $ac_status); } && {
46621 test -z "$ac_c_werror_flag" ||
46622 test ! -s conftest.err
46623 } && test -s conftest.$ac_objext; then
46624 { echo "$as_me:$LINENO: result: yes" >&5
46625 echo "${ECHO_T}yes" >&6; }
46626 PBX_ZAPTEL=1
46628 cat >>confdefs.h <<\_ACEOF
46629 #define HAVE_ZAPTEL 1
46630 _ACEOF
46633 cat >>confdefs.h <<\_ACEOF
46634 #define HAVE_ZAPTEL_VERSION 140
46635 _ACEOF
46638 else
46639 echo "$as_me: failed program was:" >&5
46640 sed 's/^/| /' conftest.$ac_ext >&5
46642 { echo "$as_me:$LINENO: result: no" >&5
46643 echo "${ECHO_T}no" >&6; }
46647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46648 CPPFLAGS="${saved_cppflags}"
46653 if test "x${PBX_ZAPTEL}" != "x1"; then
46654 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
46655 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
46656 saved_cppflags="${CPPFLAGS}"
46657 if test "x${ZAPTEL_DIR}" != "x"; then
46658 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46660 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
46662 cat >conftest.$ac_ext <<_ACEOF
46663 /* confdefs.h. */
46664 _ACEOF
46665 cat confdefs.h >>conftest.$ac_ext
46666 cat >>conftest.$ac_ext <<_ACEOF
46667 /* end confdefs.h. */
46668 #include <zaptel/zaptel.h>
46670 main ()
46672 #if defined(ZT_DIAL_OP_CANCEL)
46673 int foo = 0;
46674 #else
46675 int foo = bar;
46676 #endif
46680 return 0;
46682 _ACEOF
46683 rm -f conftest.$ac_objext
46684 if { (ac_try="$ac_compile"
46685 case "(($ac_try" in
46686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46687 *) ac_try_echo=$ac_try;;
46688 esac
46689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46690 (eval "$ac_compile") 2>conftest.er1
46691 ac_status=$?
46692 grep -v '^ *+' conftest.er1 >conftest.err
46693 rm -f conftest.er1
46694 cat conftest.err >&5
46695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46696 (exit $ac_status); } && {
46697 test -z "$ac_c_werror_flag" ||
46698 test ! -s conftest.err
46699 } && test -s conftest.$ac_objext; then
46700 { echo "$as_me:$LINENO: result: yes" >&5
46701 echo "${ECHO_T}yes" >&6; }
46702 PBX_ZAPTEL=1
46704 cat >>confdefs.h <<\_ACEOF
46705 #define HAVE_ZAPTEL 1
46706 _ACEOF
46709 cat >>confdefs.h <<\_ACEOF
46710 #define HAVE_ZAPTEL_VERSION 90
46711 _ACEOF
46714 else
46715 echo "$as_me: failed program was:" >&5
46716 sed 's/^/| /' conftest.$ac_ext >&5
46718 { echo "$as_me:$LINENO: result: no" >&5
46719 echo "${ECHO_T}no" >&6; }
46723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46724 CPPFLAGS="${saved_cppflags}"
46729 # Check for VLDTMF support
46731 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1"; then
46732 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
46733 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
46734 saved_cppflags="${CPPFLAGS}"
46735 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46736 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
46738 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE}"
46740 cat >conftest.$ac_ext <<_ACEOF
46741 /* confdefs.h. */
46742 _ACEOF
46743 cat confdefs.h >>conftest.$ac_ext
46744 cat >>conftest.$ac_ext <<_ACEOF
46745 /* end confdefs.h. */
46746 #include <zaptel/zaptel.h>
46748 main ()
46750 #if defined(ZT_EVENT_REMOVED)
46751 int foo = 0;
46752 #else
46753 int foo = bar;
46754 #endif
46758 return 0;
46760 _ACEOF
46761 rm -f conftest.$ac_objext
46762 if { (ac_try="$ac_compile"
46763 case "(($ac_try" in
46764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46765 *) ac_try_echo=$ac_try;;
46766 esac
46767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46768 (eval "$ac_compile") 2>conftest.er1
46769 ac_status=$?
46770 grep -v '^ *+' conftest.er1 >conftest.err
46771 rm -f conftest.er1
46772 cat conftest.err >&5
46773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46774 (exit $ac_status); } && {
46775 test -z "$ac_c_werror_flag" ||
46776 test ! -s conftest.err
46777 } && test -s conftest.$ac_objext; then
46778 { echo "$as_me:$LINENO: result: yes" >&5
46779 echo "${ECHO_T}yes" >&6; }
46780 PBX_ZAPTEL_VLDTMF=1
46782 cat >>confdefs.h <<\_ACEOF
46783 #define HAVE_ZAPTEL_VLDTMF 1
46784 _ACEOF
46787 cat >>confdefs.h <<\_ACEOF
46788 #define HAVE_ZAPTEL_VLDTMF_VERSION
46789 _ACEOF
46792 else
46793 echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46796 { echo "$as_me:$LINENO: result: no" >&5
46797 echo "${ECHO_T}no" >&6; }
46801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46802 CPPFLAGS="${saved_cppflags}"
46807 # Check for echo canceler parameters support
46809 if test "x${PBX_ZAPTEL_ECHOCANPARAMS}" != "x1"; then
46810 { echo "$as_me:$LINENO: checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h" >&5
46811 echo $ECHO_N "checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h... $ECHO_C" >&6; }
46812 saved_cppflags="${CPPFLAGS}"
46813 if test "x${ZAPTEL_ECHOCANPARAMS_DIR}" != "x"; then
46814 ZAPTEL_ECHOCANPARAMS_INCLUDE="-I${ZAPTEL_ECHOCANPARAMS_DIR}/include"
46816 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_ECHOCANPARAMS_INCLUDE}"
46818 cat >conftest.$ac_ext <<_ACEOF
46819 /* confdefs.h. */
46820 _ACEOF
46821 cat confdefs.h >>conftest.$ac_ext
46822 cat >>conftest.$ac_ext <<_ACEOF
46823 /* end confdefs.h. */
46824 #include <zaptel/zaptel.h>
46826 main ()
46828 #if defined(ZT_ECHOCANCEL_PARAMS)
46829 int foo = 0;
46830 #else
46831 int foo = bar;
46832 #endif
46836 return 0;
46838 _ACEOF
46839 rm -f conftest.$ac_objext
46840 if { (ac_try="$ac_compile"
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_compile") 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_c_werror_flag" ||
46854 test ! -s conftest.err
46855 } && test -s conftest.$ac_objext; then
46856 { echo "$as_me:$LINENO: result: yes" >&5
46857 echo "${ECHO_T}yes" >&6; }
46858 PBX_ZAPTEL_ECHOCANPARAMS=1
46860 cat >>confdefs.h <<\_ACEOF
46861 #define HAVE_ZAPTEL_ECHOCANPARAMS 1
46862 _ACEOF
46865 cat >>confdefs.h <<\_ACEOF
46866 #define HAVE_ZAPTEL_ECHOCANPARAMS_VERSION
46867 _ACEOF
46870 else
46871 echo "$as_me: failed program was:" >&5
46872 sed 's/^/| /' conftest.$ac_ext >&5
46874 { echo "$as_me:$LINENO: result: no" >&5
46875 echo "${ECHO_T}no" >&6; }
46879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46880 CPPFLAGS="${saved_cppflags}"
46885 # Check for transcoder support
46887 if test "x${PBX_ZAPTEL_TRANSCODE}" != "x1"; then
46888 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
46889 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
46890 saved_cppflags="${CPPFLAGS}"
46891 if test "x${ZAPTEL_TRANSCODE_DIR}" != "x"; then
46892 ZAPTEL_TRANSCODE_INCLUDE="-I${ZAPTEL_TRANSCODE_DIR}/include"
46894 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_TRANSCODE_INCLUDE}"
46896 cat >conftest.$ac_ext <<_ACEOF
46897 /* confdefs.h. */
46898 _ACEOF
46899 cat confdefs.h >>conftest.$ac_ext
46900 cat >>conftest.$ac_ext <<_ACEOF
46901 /* end confdefs.h. */
46902 #include <zaptel/zaptel.h>
46904 main ()
46906 #if defined(ZT_TCOP_ALLOCATE)
46907 int foo = 0;
46908 #else
46909 int foo = bar;
46910 #endif
46914 return 0;
46916 _ACEOF
46917 rm -f conftest.$ac_objext
46918 if { (ac_try="$ac_compile"
46919 case "(($ac_try" in
46920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46921 *) ac_try_echo=$ac_try;;
46922 esac
46923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46924 (eval "$ac_compile") 2>conftest.er1
46925 ac_status=$?
46926 grep -v '^ *+' conftest.er1 >conftest.err
46927 rm -f conftest.er1
46928 cat conftest.err >&5
46929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930 (exit $ac_status); } && {
46931 test -z "$ac_c_werror_flag" ||
46932 test ! -s conftest.err
46933 } && test -s conftest.$ac_objext; then
46934 { echo "$as_me:$LINENO: result: yes" >&5
46935 echo "${ECHO_T}yes" >&6; }
46936 PBX_ZAPTEL_TRANSCODE=1
46938 cat >>confdefs.h <<\_ACEOF
46939 #define HAVE_ZAPTEL_TRANSCODE 1
46940 _ACEOF
46943 cat >>confdefs.h <<\_ACEOF
46944 #define HAVE_ZAPTEL_TRANSCODE_VERSION
46945 _ACEOF
46948 else
46949 echo "$as_me: failed program was:" >&5
46950 sed 's/^/| /' conftest.$ac_ext >&5
46952 { echo "$as_me:$LINENO: result: no" >&5
46953 echo "${ECHO_T}no" >&6; }
46957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46958 CPPFLAGS="${saved_cppflags}"
46963 # Check for hwgain support
46965 if test "x${PBX_ZAPTEL_HWGAIN}" != "x1"; then
46966 { echo "$as_me:$LINENO: checking for ZT_SET_HWGAIN in zaptel/zaptel.h" >&5
46967 echo $ECHO_N "checking for ZT_SET_HWGAIN in zaptel/zaptel.h... $ECHO_C" >&6; }
46968 saved_cppflags="${CPPFLAGS}"
46969 if test "x${ZAPTEL_HWGAIN_DIR}" != "x"; then
46970 ZAPTEL_HWGAIN_INCLUDE="-I${ZAPTEL_HWGAIN_DIR}/include"
46972 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_HWGAIN_INCLUDE}"
46974 cat >conftest.$ac_ext <<_ACEOF
46975 /* confdefs.h. */
46976 _ACEOF
46977 cat confdefs.h >>conftest.$ac_ext
46978 cat >>conftest.$ac_ext <<_ACEOF
46979 /* end confdefs.h. */
46980 #include <zaptel/zaptel.h>
46982 main ()
46984 #if defined(ZT_SET_HWGAIN)
46985 int foo = 0;
46986 #else
46987 int foo = bar;
46988 #endif
46992 return 0;
46994 _ACEOF
46995 rm -f conftest.$ac_objext
46996 if { (ac_try="$ac_compile"
46997 case "(($ac_try" in
46998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46999 *) ac_try_echo=$ac_try;;
47000 esac
47001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47002 (eval "$ac_compile") 2>conftest.er1
47003 ac_status=$?
47004 grep -v '^ *+' conftest.er1 >conftest.err
47005 rm -f conftest.er1
47006 cat conftest.err >&5
47007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47008 (exit $ac_status); } && {
47009 test -z "$ac_c_werror_flag" ||
47010 test ! -s conftest.err
47011 } && test -s conftest.$ac_objext; then
47012 { echo "$as_me:$LINENO: result: yes" >&5
47013 echo "${ECHO_T}yes" >&6; }
47014 PBX_ZAPTEL_HWGAIN=1
47016 cat >>confdefs.h <<\_ACEOF
47017 #define HAVE_ZAPTEL_HWGAIN 1
47018 _ACEOF
47021 cat >>confdefs.h <<\_ACEOF
47022 #define HAVE_ZAPTEL_HWGAIN_VERSION
47023 _ACEOF
47026 else
47027 echo "$as_me: failed program was:" >&5
47028 sed 's/^/| /' conftest.$ac_ext >&5
47030 { echo "$as_me:$LINENO: result: no" >&5
47031 echo "${ECHO_T}no" >&6; }
47035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47036 CPPFLAGS="${saved_cppflags}"
47041 # Check for neon mwi support
47043 if test "x${PBX_ZAPTEL_NEONMWI}" != "x1"; then
47044 { echo "$as_me:$LINENO: checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h" >&5
47045 echo $ECHO_N "checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h... $ECHO_C" >&6; }
47046 saved_cppflags="${CPPFLAGS}"
47047 if test "x${ZAPTEL_NEONMWI_DIR}" != "x"; then
47048 ZAPTEL_NEONMWI_INCLUDE="-I${ZAPTEL_NEONMWI_DIR}/include"
47050 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_NEONMWI_INCLUDE}"
47052 cat >conftest.$ac_ext <<_ACEOF
47053 /* confdefs.h. */
47054 _ACEOF
47055 cat confdefs.h >>conftest.$ac_ext
47056 cat >>conftest.$ac_ext <<_ACEOF
47057 /* end confdefs.h. */
47058 #include <zaptel/zaptel.h>
47060 main ()
47062 #if defined(ZT_EVENT_NEONMWI_ACTIVE)
47063 int foo = 0;
47064 #else
47065 int foo = bar;
47066 #endif
47070 return 0;
47072 _ACEOF
47073 rm -f conftest.$ac_objext
47074 if { (ac_try="$ac_compile"
47075 case "(($ac_try" in
47076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47077 *) ac_try_echo=$ac_try;;
47078 esac
47079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47080 (eval "$ac_compile") 2>conftest.er1
47081 ac_status=$?
47082 grep -v '^ *+' conftest.er1 >conftest.err
47083 rm -f conftest.er1
47084 cat conftest.err >&5
47085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); } && {
47087 test -z "$ac_c_werror_flag" ||
47088 test ! -s conftest.err
47089 } && test -s conftest.$ac_objext; then
47090 { echo "$as_me:$LINENO: result: yes" >&5
47091 echo "${ECHO_T}yes" >&6; }
47092 PBX_ZAPTEL_NEONMWI=1
47094 cat >>confdefs.h <<\_ACEOF
47095 #define HAVE_ZAPTEL_NEONMWI 1
47096 _ACEOF
47099 cat >>confdefs.h <<\_ACEOF
47100 #define HAVE_ZAPTEL_NEONMWI_VERSION
47101 _ACEOF
47104 else
47105 echo "$as_me: failed program was:" >&5
47106 sed 's/^/| /' conftest.$ac_ext >&5
47108 { echo "$as_me:$LINENO: result: no" >&5
47109 echo "${ECHO_T}no" >&6; }
47113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47114 CPPFLAGS="${saved_cppflags}"
47119 # Check for channel alarm support
47121 if test "x${PBX_ZAPTEL_CHANALARMS}" != "x1" -a "${USE_ZAPTEL_CHANALARMS}" != "no"; then
47122 { echo "$as_me:$LINENO: checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h" >&5
47123 echo $ECHO_N "checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h... $ECHO_C" >&6; }
47124 saved_cppflags="${CPPFLAGS}"
47125 if test "x${ZAPTEL_CHANALARMS_DIR}" != "x"; then
47126 ZAPTEL_CHANALARMS_INCLUDE="-I${ZAPTEL_CHANALARMS_DIR}/include"
47128 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_CHANALARMS_INCLUDE}"
47130 cat >conftest.$ac_ext <<_ACEOF
47131 /* confdefs.h. */
47132 _ACEOF
47133 cat confdefs.h >>conftest.$ac_ext
47134 cat >>conftest.$ac_ext <<_ACEOF
47135 /* end confdefs.h. */
47136 #include <zaptel/zaptel.h>
47138 main ()
47140 size_t foo = sizeof(struct zt_params_v1);
47143 return 0;
47145 _ACEOF
47146 rm -f conftest.$ac_objext
47147 if { (ac_try="$ac_compile"
47148 case "(($ac_try" in
47149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47150 *) ac_try_echo=$ac_try;;
47151 esac
47152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47153 (eval "$ac_compile") 2>conftest.er1
47154 ac_status=$?
47155 grep -v '^ *+' conftest.er1 >conftest.err
47156 rm -f conftest.er1
47157 cat conftest.err >&5
47158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47159 (exit $ac_status); } && {
47160 test -z "$ac_c_werror_flag" ||
47161 test ! -s conftest.err
47162 } && test -s conftest.$ac_objext; then
47163 { echo "$as_me:$LINENO: result: yes" >&5
47164 echo "${ECHO_T}yes" >&6; }
47165 PBX_ZAPTEL_CHANALARMS=1
47167 cat >>confdefs.h <<\_ACEOF
47168 #define HAVE_ZAPTEL_CHANALARMS 1
47169 _ACEOF
47172 cat >>confdefs.h <<\_ACEOF
47173 #define HAVE_ZAPTEL_CHANALARMS_VERSION
47174 _ACEOF
47177 else
47178 echo "$as_me: failed program was:" >&5
47179 sed 's/^/| /' conftest.$ac_ext >&5
47181 { echo "$as_me:$LINENO: result: no" >&5
47182 echo "${ECHO_T}no" >&6; }
47186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47187 CPPFLAGS="${saved_cppflags}"
47191 # Check for ZT_SIG_MTP2
47193 if test "x${PBX_ZAPTEL_SIG_MTP2}" != "x1"; then
47194 { echo "$as_me:$LINENO: checking for ZT_SIG_MTP2 in zaptel/zaptel.h" >&5
47195 echo $ECHO_N "checking for ZT_SIG_MTP2 in zaptel/zaptel.h... $ECHO_C" >&6; }
47196 saved_cppflags="${CPPFLAGS}"
47197 if test "x${ZAPTEL_SIG_MTP2_DIR}" != "x"; then
47198 ZAPTEL_SIG_MTP2_INCLUDE="-I${ZAPTEL_SIG_MTP2_DIR}/include"
47200 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_SIG_MTP2_INCLUDE}"
47202 cat >conftest.$ac_ext <<_ACEOF
47203 /* confdefs.h. */
47204 _ACEOF
47205 cat confdefs.h >>conftest.$ac_ext
47206 cat >>conftest.$ac_ext <<_ACEOF
47207 /* end confdefs.h. */
47208 #include <zaptel/zaptel.h>
47210 main ()
47212 #if defined(ZT_SIG_MTP2)
47213 int foo = 0;
47214 #else
47215 int foo = bar;
47216 #endif
47220 return 0;
47222 _ACEOF
47223 rm -f conftest.$ac_objext
47224 if { (ac_try="$ac_compile"
47225 case "(($ac_try" in
47226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47227 *) ac_try_echo=$ac_try;;
47228 esac
47229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47230 (eval "$ac_compile") 2>conftest.er1
47231 ac_status=$?
47232 grep -v '^ *+' conftest.er1 >conftest.err
47233 rm -f conftest.er1
47234 cat conftest.err >&5
47235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47236 (exit $ac_status); } && {
47237 test -z "$ac_c_werror_flag" ||
47238 test ! -s conftest.err
47239 } && test -s conftest.$ac_objext; then
47240 { echo "$as_me:$LINENO: result: yes" >&5
47241 echo "${ECHO_T}yes" >&6; }
47242 PBX_ZAPTEL_SIG_MTP2=1
47244 cat >>confdefs.h <<\_ACEOF
47245 #define HAVE_ZAPTEL_SIG_MTP2 1
47246 _ACEOF
47249 cat >>confdefs.h <<\_ACEOF
47250 #define HAVE_ZAPTEL_SIG_MTP2_VERSION
47251 _ACEOF
47254 else
47255 echo "$as_me: failed program was:" >&5
47256 sed 's/^/| /' conftest.$ac_ext >&5
47258 { echo "$as_me:$LINENO: result: no" >&5
47259 echo "${ECHO_T}no" >&6; }
47263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47264 CPPFLAGS="${saved_cppflags}"
47269 # On FreeBSD, try old zaptel (0.80 or so) and pretend we have vldtmf
47270 case "${host_os}" in
47271 freebsd*)
47273 if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then
47274 pbxlibdir=""
47275 # if --with-ZAPTEL=DIR has been specified, use it.
47276 if test "x${ZAPTEL_DIR}" != "x"; then
47277 if test -d ${ZAPTEL_DIR}/lib; then
47278 pbxlibdir="-L${ZAPTEL_DIR}/lib"
47279 else
47280 pbxlibdir="-L${ZAPTEL_DIR}"
47283 pbxfuncname=""
47284 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47285 AST_ZAPTEL_FOUND=yes
47286 else
47287 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
47288 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
47289 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
47290 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47291 echo $ECHO_N "(cached) $ECHO_C" >&6
47292 else
47293 ac_check_lib_save_LIBS=$LIBS
47294 LIBS="-lzaptel ${pbxlibdir} $LIBS"
47295 cat >conftest.$ac_ext <<_ACEOF
47296 /* confdefs.h. */
47297 _ACEOF
47298 cat confdefs.h >>conftest.$ac_ext
47299 cat >>conftest.$ac_ext <<_ACEOF
47300 /* end confdefs.h. */
47302 /* Override any GCC internal prototype to avoid an error.
47303 Use char because int might match the return type of a GCC
47304 builtin and then its argument prototype would still apply. */
47305 #ifdef __cplusplus
47306 extern "C"
47307 #endif
47308 char ${pbxfuncname} ();
47310 main ()
47312 return ${pbxfuncname} ();
47314 return 0;
47316 _ACEOF
47317 rm -f conftest.$ac_objext conftest$ac_exeext
47318 if { (ac_try="$ac_link"
47319 case "(($ac_try" in
47320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47321 *) ac_try_echo=$ac_try;;
47322 esac
47323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47324 (eval "$ac_link") 2>conftest.er1
47325 ac_status=$?
47326 grep -v '^ *+' conftest.er1 >conftest.err
47327 rm -f conftest.er1
47328 cat conftest.err >&5
47329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330 (exit $ac_status); } && {
47331 test -z "$ac_c_werror_flag" ||
47332 test ! -s conftest.err
47333 } && test -s conftest$ac_exeext &&
47334 $as_test_x conftest$ac_exeext; then
47335 eval "$as_ac_Lib=yes"
47336 else
47337 echo "$as_me: failed program was:" >&5
47338 sed 's/^/| /' conftest.$ac_ext >&5
47340 eval "$as_ac_Lib=no"
47343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47344 conftest$ac_exeext conftest.$ac_ext
47345 LIBS=$ac_check_lib_save_LIBS
47347 ac_res=`eval echo '${'$as_ac_Lib'}'`
47348 { echo "$as_me:$LINENO: result: $ac_res" >&5
47349 echo "${ECHO_T}$ac_res" >&6; }
47350 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47351 AST_ZAPTEL_FOUND=yes
47352 else
47353 AST_ZAPTEL_FOUND=no
47358 # now check for the header.
47359 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
47360 ZAPTEL_LIB="${pbxlibdir} -lzaptel "
47361 # if --with-ZAPTEL=DIR has been specified, use it.
47362 if test "x${ZAPTEL_DIR}" != "x"; then
47363 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
47365 ZAPTEL_INCLUDE="${ZAPTEL_INCLUDE} "
47366 if test "xzaptel.h" = "x" ; then # no header, assume found
47367 ZAPTEL_HEADER_FOUND="1"
47368 else # check for the header
47369 saved_cppflags="${CPPFLAGS}"
47370 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE} "
47371 if test "${ac_cv_header_zaptel_h+set}" = set; then
47372 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47373 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47374 if test "${ac_cv_header_zaptel_h+set}" = set; then
47375 echo $ECHO_N "(cached) $ECHO_C" >&6
47377 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47378 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47379 else
47380 # Is the header compilable?
47381 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47382 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47383 cat >conftest.$ac_ext <<_ACEOF
47384 /* confdefs.h. */
47385 _ACEOF
47386 cat confdefs.h >>conftest.$ac_ext
47387 cat >>conftest.$ac_ext <<_ACEOF
47388 /* end confdefs.h. */
47389 $ac_includes_default
47390 #include <zaptel.h>
47391 _ACEOF
47392 rm -f conftest.$ac_objext
47393 if { (ac_try="$ac_compile"
47394 case "(($ac_try" in
47395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47396 *) ac_try_echo=$ac_try;;
47397 esac
47398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47399 (eval "$ac_compile") 2>conftest.er1
47400 ac_status=$?
47401 grep -v '^ *+' conftest.er1 >conftest.err
47402 rm -f conftest.er1
47403 cat conftest.err >&5
47404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47405 (exit $ac_status); } && {
47406 test -z "$ac_c_werror_flag" ||
47407 test ! -s conftest.err
47408 } && test -s conftest.$ac_objext; then
47409 ac_header_compiler=yes
47410 else
47411 echo "$as_me: failed program was:" >&5
47412 sed 's/^/| /' conftest.$ac_ext >&5
47414 ac_header_compiler=no
47417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47419 echo "${ECHO_T}$ac_header_compiler" >&6; }
47421 # Is the header present?
47422 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
47423 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
47424 cat >conftest.$ac_ext <<_ACEOF
47425 /* confdefs.h. */
47426 _ACEOF
47427 cat confdefs.h >>conftest.$ac_ext
47428 cat >>conftest.$ac_ext <<_ACEOF
47429 /* end confdefs.h. */
47430 #include <zaptel.h>
47431 _ACEOF
47432 if { (ac_try="$ac_cpp conftest.$ac_ext"
47433 case "(($ac_try" in
47434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47435 *) ac_try_echo=$ac_try;;
47436 esac
47437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47439 ac_status=$?
47440 grep -v '^ *+' conftest.er1 >conftest.err
47441 rm -f conftest.er1
47442 cat conftest.err >&5
47443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47444 (exit $ac_status); } >/dev/null && {
47445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47446 test ! -s conftest.err
47447 }; then
47448 ac_header_preproc=yes
47449 else
47450 echo "$as_me: failed program was:" >&5
47451 sed 's/^/| /' conftest.$ac_ext >&5
47453 ac_header_preproc=no
47456 rm -f conftest.err conftest.$ac_ext
47457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47458 echo "${ECHO_T}$ac_header_preproc" >&6; }
47460 # So? What about this header?
47461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47462 yes:no: )
47463 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47464 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47465 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
47466 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
47467 ac_header_preproc=yes
47469 no:yes:* )
47470 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
47471 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
47472 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
47473 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
47474 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
47475 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
47476 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47477 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47478 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
47479 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
47480 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
47481 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
47482 ( cat <<\_ASBOX
47483 ## ------------------------------- ##
47484 ## Report this to www.asterisk.org ##
47485 ## ------------------------------- ##
47486 _ASBOX
47487 ) | sed "s/^/$as_me: WARNING: /" >&2
47489 esac
47490 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47491 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47492 if test "${ac_cv_header_zaptel_h+set}" = set; then
47493 echo $ECHO_N "(cached) $ECHO_C" >&6
47494 else
47495 ac_cv_header_zaptel_h=$ac_header_preproc
47497 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47498 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47501 if test $ac_cv_header_zaptel_h = yes; then
47502 ZAPTEL_HEADER_FOUND=1
47503 else
47504 ZAPTEL_HEADER_FOUND=0
47508 CPPFLAGS="${saved_cppflags}"
47510 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
47511 ZAPTEL_LIB=""
47512 ZAPTEL_INCLUDE=""
47513 else
47514 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47515 ZAPTEL_LIB=""
47517 PBX_ZAPTEL=1
47518 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47520 cat >>confdefs.h <<_ACEOF
47521 #define HAVE_ZAPTEL 1
47522 _ACEOF
47525 cat >>confdefs.h <<_ACEOF
47526 #define HAVE_ZAPTEL_VERSION 80
47527 _ACEOF
47534 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
47535 pbxlibdir=""
47536 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47537 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47538 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
47539 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
47540 else
47541 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
47544 pbxfuncname=""
47545 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47546 AST_ZAPTEL_VLDTMF_FOUND=yes
47547 else
47548 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
47549 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
47550 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
47551 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47552 echo $ECHO_N "(cached) $ECHO_C" >&6
47553 else
47554 ac_check_lib_save_LIBS=$LIBS
47555 LIBS="-lzaptel ${pbxlibdir} $LIBS"
47556 cat >conftest.$ac_ext <<_ACEOF
47557 /* confdefs.h. */
47558 _ACEOF
47559 cat confdefs.h >>conftest.$ac_ext
47560 cat >>conftest.$ac_ext <<_ACEOF
47561 /* end confdefs.h. */
47563 /* Override any GCC internal prototype to avoid an error.
47564 Use char because int might match the return type of a GCC
47565 builtin and then its argument prototype would still apply. */
47566 #ifdef __cplusplus
47567 extern "C"
47568 #endif
47569 char ${pbxfuncname} ();
47571 main ()
47573 return ${pbxfuncname} ();
47575 return 0;
47577 _ACEOF
47578 rm -f conftest.$ac_objext conftest$ac_exeext
47579 if { (ac_try="$ac_link"
47580 case "(($ac_try" in
47581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47582 *) ac_try_echo=$ac_try;;
47583 esac
47584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47585 (eval "$ac_link") 2>conftest.er1
47586 ac_status=$?
47587 grep -v '^ *+' conftest.er1 >conftest.err
47588 rm -f conftest.er1
47589 cat conftest.err >&5
47590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47591 (exit $ac_status); } && {
47592 test -z "$ac_c_werror_flag" ||
47593 test ! -s conftest.err
47594 } && test -s conftest$ac_exeext &&
47595 $as_test_x conftest$ac_exeext; then
47596 eval "$as_ac_Lib=yes"
47597 else
47598 echo "$as_me: failed program was:" >&5
47599 sed 's/^/| /' conftest.$ac_ext >&5
47601 eval "$as_ac_Lib=no"
47604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47605 conftest$ac_exeext conftest.$ac_ext
47606 LIBS=$ac_check_lib_save_LIBS
47608 ac_res=`eval echo '${'$as_ac_Lib'}'`
47609 { echo "$as_me:$LINENO: result: $ac_res" >&5
47610 echo "${ECHO_T}$ac_res" >&6; }
47611 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47612 AST_ZAPTEL_VLDTMF_FOUND=yes
47613 else
47614 AST_ZAPTEL_VLDTMF_FOUND=no
47619 # now check for the header.
47620 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
47621 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
47622 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47623 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47624 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
47626 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
47627 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
47628 ZAPTEL_VLDTMF_HEADER_FOUND="1"
47629 else # check for the header
47630 saved_cppflags="${CPPFLAGS}"
47631 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
47632 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
47633 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
47634 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
47635 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
47636 echo $ECHO_N "(cached) $ECHO_C" >&6
47638 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
47639 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
47640 else
47641 # Is the header compilable?
47642 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
47643 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
47644 cat >conftest.$ac_ext <<_ACEOF
47645 /* confdefs.h. */
47646 _ACEOF
47647 cat confdefs.h >>conftest.$ac_ext
47648 cat >>conftest.$ac_ext <<_ACEOF
47649 /* end confdefs.h. */
47650 $ac_includes_default
47651 #include <zaptel/zaptel.h>
47652 _ACEOF
47653 rm -f conftest.$ac_objext
47654 if { (ac_try="$ac_compile"
47655 case "(($ac_try" in
47656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47657 *) ac_try_echo=$ac_try;;
47658 esac
47659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47660 (eval "$ac_compile") 2>conftest.er1
47661 ac_status=$?
47662 grep -v '^ *+' conftest.er1 >conftest.err
47663 rm -f conftest.er1
47664 cat conftest.err >&5
47665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47666 (exit $ac_status); } && {
47667 test -z "$ac_c_werror_flag" ||
47668 test ! -s conftest.err
47669 } && test -s conftest.$ac_objext; then
47670 ac_header_compiler=yes
47671 else
47672 echo "$as_me: failed program was:" >&5
47673 sed 's/^/| /' conftest.$ac_ext >&5
47675 ac_header_compiler=no
47678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47680 echo "${ECHO_T}$ac_header_compiler" >&6; }
47682 # Is the header present?
47683 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
47684 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
47685 cat >conftest.$ac_ext <<_ACEOF
47686 /* confdefs.h. */
47687 _ACEOF
47688 cat confdefs.h >>conftest.$ac_ext
47689 cat >>conftest.$ac_ext <<_ACEOF
47690 /* end confdefs.h. */
47691 #include <zaptel/zaptel.h>
47692 _ACEOF
47693 if { (ac_try="$ac_cpp conftest.$ac_ext"
47694 case "(($ac_try" in
47695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47696 *) ac_try_echo=$ac_try;;
47697 esac
47698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47700 ac_status=$?
47701 grep -v '^ *+' conftest.er1 >conftest.err
47702 rm -f conftest.er1
47703 cat conftest.err >&5
47704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47705 (exit $ac_status); } >/dev/null && {
47706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47707 test ! -s conftest.err
47708 }; then
47709 ac_header_preproc=yes
47710 else
47711 echo "$as_me: failed program was:" >&5
47712 sed 's/^/| /' conftest.$ac_ext >&5
47714 ac_header_preproc=no
47717 rm -f conftest.err conftest.$ac_ext
47718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47719 echo "${ECHO_T}$ac_header_preproc" >&6; }
47721 # So? What about this header?
47722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47723 yes:no: )
47724 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47725 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47726 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
47727 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
47728 ac_header_preproc=yes
47730 no:yes:* )
47731 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
47732 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
47733 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
47734 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
47735 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
47736 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
47737 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47738 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47739 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
47740 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
47741 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
47742 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
47743 ( cat <<\_ASBOX
47744 ## ------------------------------- ##
47745 ## Report this to www.asterisk.org ##
47746 ## ------------------------------- ##
47747 _ASBOX
47748 ) | sed "s/^/$as_me: WARNING: /" >&2
47750 esac
47751 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
47752 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
47753 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
47754 echo $ECHO_N "(cached) $ECHO_C" >&6
47755 else
47756 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
47758 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
47759 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
47762 if test $ac_cv_header_zaptel_zaptel_h = yes; then
47763 ZAPTEL_VLDTMF_HEADER_FOUND=1
47764 else
47765 ZAPTEL_VLDTMF_HEADER_FOUND=0
47769 CPPFLAGS="${saved_cppflags}"
47771 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
47772 ZAPTEL_VLDTMF_LIB=""
47773 ZAPTEL_VLDTMF_INCLUDE=""
47774 else
47775 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47776 ZAPTEL_VLDTMF_LIB=""
47778 PBX_ZAPTEL_VLDTMF=1
47779 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47781 cat >>confdefs.h <<_ACEOF
47782 #define HAVE_ZAPTEL_VLDTMF 1
47783 _ACEOF
47786 cat >>confdefs.h <<_ACEOF
47787 #define HAVE_ZAPTEL_VLDTMF_VERSION 90
47788 _ACEOF
47795 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
47796 pbxlibdir=""
47797 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47798 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47799 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
47800 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
47801 else
47802 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
47805 pbxfuncname=""
47806 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47807 AST_ZAPTEL_VLDTMF_FOUND=yes
47808 else
47809 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
47810 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
47811 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
47812 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47813 echo $ECHO_N "(cached) $ECHO_C" >&6
47814 else
47815 ac_check_lib_save_LIBS=$LIBS
47816 LIBS="-lzaptel ${pbxlibdir} $LIBS"
47817 cat >conftest.$ac_ext <<_ACEOF
47818 /* confdefs.h. */
47819 _ACEOF
47820 cat confdefs.h >>conftest.$ac_ext
47821 cat >>conftest.$ac_ext <<_ACEOF
47822 /* end confdefs.h. */
47824 /* Override any GCC internal prototype to avoid an error.
47825 Use char because int might match the return type of a GCC
47826 builtin and then its argument prototype would still apply. */
47827 #ifdef __cplusplus
47828 extern "C"
47829 #endif
47830 char ${pbxfuncname} ();
47832 main ()
47834 return ${pbxfuncname} ();
47836 return 0;
47838 _ACEOF
47839 rm -f conftest.$ac_objext conftest$ac_exeext
47840 if { (ac_try="$ac_link"
47841 case "(($ac_try" in
47842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47843 *) ac_try_echo=$ac_try;;
47844 esac
47845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47846 (eval "$ac_link") 2>conftest.er1
47847 ac_status=$?
47848 grep -v '^ *+' conftest.er1 >conftest.err
47849 rm -f conftest.er1
47850 cat conftest.err >&5
47851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47852 (exit $ac_status); } && {
47853 test -z "$ac_c_werror_flag" ||
47854 test ! -s conftest.err
47855 } && test -s conftest$ac_exeext &&
47856 $as_test_x conftest$ac_exeext; then
47857 eval "$as_ac_Lib=yes"
47858 else
47859 echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47862 eval "$as_ac_Lib=no"
47865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47866 conftest$ac_exeext conftest.$ac_ext
47867 LIBS=$ac_check_lib_save_LIBS
47869 ac_res=`eval echo '${'$as_ac_Lib'}'`
47870 { echo "$as_me:$LINENO: result: $ac_res" >&5
47871 echo "${ECHO_T}$ac_res" >&6; }
47872 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47873 AST_ZAPTEL_VLDTMF_FOUND=yes
47874 else
47875 AST_ZAPTEL_VLDTMF_FOUND=no
47880 # now check for the header.
47881 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
47882 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
47883 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47884 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47885 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
47887 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
47888 if test "xzaptel.h" = "x" ; then # no header, assume found
47889 ZAPTEL_VLDTMF_HEADER_FOUND="1"
47890 else # check for the header
47891 saved_cppflags="${CPPFLAGS}"
47892 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
47893 if test "${ac_cv_header_zaptel_h+set}" = set; then
47894 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47895 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47896 if test "${ac_cv_header_zaptel_h+set}" = set; then
47897 echo $ECHO_N "(cached) $ECHO_C" >&6
47899 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47900 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47901 else
47902 # Is the header compilable?
47903 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47904 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47905 cat >conftest.$ac_ext <<_ACEOF
47906 /* confdefs.h. */
47907 _ACEOF
47908 cat confdefs.h >>conftest.$ac_ext
47909 cat >>conftest.$ac_ext <<_ACEOF
47910 /* end confdefs.h. */
47911 $ac_includes_default
47912 #include <zaptel.h>
47913 _ACEOF
47914 rm -f conftest.$ac_objext
47915 if { (ac_try="$ac_compile"
47916 case "(($ac_try" in
47917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47918 *) ac_try_echo=$ac_try;;
47919 esac
47920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47921 (eval "$ac_compile") 2>conftest.er1
47922 ac_status=$?
47923 grep -v '^ *+' conftest.er1 >conftest.err
47924 rm -f conftest.er1
47925 cat conftest.err >&5
47926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47927 (exit $ac_status); } && {
47928 test -z "$ac_c_werror_flag" ||
47929 test ! -s conftest.err
47930 } && test -s conftest.$ac_objext; then
47931 ac_header_compiler=yes
47932 else
47933 echo "$as_me: failed program was:" >&5
47934 sed 's/^/| /' conftest.$ac_ext >&5
47936 ac_header_compiler=no
47939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47941 echo "${ECHO_T}$ac_header_compiler" >&6; }
47943 # Is the header present?
47944 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
47945 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
47946 cat >conftest.$ac_ext <<_ACEOF
47947 /* confdefs.h. */
47948 _ACEOF
47949 cat confdefs.h >>conftest.$ac_ext
47950 cat >>conftest.$ac_ext <<_ACEOF
47951 /* end confdefs.h. */
47952 #include <zaptel.h>
47953 _ACEOF
47954 if { (ac_try="$ac_cpp conftest.$ac_ext"
47955 case "(($ac_try" in
47956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47957 *) ac_try_echo=$ac_try;;
47958 esac
47959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47961 ac_status=$?
47962 grep -v '^ *+' conftest.er1 >conftest.err
47963 rm -f conftest.er1
47964 cat conftest.err >&5
47965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966 (exit $ac_status); } >/dev/null && {
47967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47968 test ! -s conftest.err
47969 }; then
47970 ac_header_preproc=yes
47971 else
47972 echo "$as_me: failed program was:" >&5
47973 sed 's/^/| /' conftest.$ac_ext >&5
47975 ac_header_preproc=no
47978 rm -f conftest.err conftest.$ac_ext
47979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47980 echo "${ECHO_T}$ac_header_preproc" >&6; }
47982 # So? What about this header?
47983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47984 yes:no: )
47985 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47986 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47987 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
47988 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
47989 ac_header_preproc=yes
47991 no:yes:* )
47992 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
47993 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
47994 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
47995 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
47996 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
47997 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
47998 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47999 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48000 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
48001 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
48002 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
48003 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
48004 ( cat <<\_ASBOX
48005 ## ------------------------------- ##
48006 ## Report this to www.asterisk.org ##
48007 ## ------------------------------- ##
48008 _ASBOX
48009 ) | sed "s/^/$as_me: WARNING: /" >&2
48011 esac
48012 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48013 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48014 if test "${ac_cv_header_zaptel_h+set}" = set; then
48015 echo $ECHO_N "(cached) $ECHO_C" >&6
48016 else
48017 ac_cv_header_zaptel_h=$ac_header_preproc
48019 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48020 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48023 if test $ac_cv_header_zaptel_h = yes; then
48024 ZAPTEL_VLDTMF_HEADER_FOUND=1
48025 else
48026 ZAPTEL_VLDTMF_HEADER_FOUND=0
48030 CPPFLAGS="${saved_cppflags}"
48032 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
48033 ZAPTEL_VLDTMF_LIB=""
48034 ZAPTEL_VLDTMF_INCLUDE=""
48035 else
48036 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48037 ZAPTEL_VLDTMF_LIB=""
48039 PBX_ZAPTEL_VLDTMF=1
48040 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48042 cat >>confdefs.h <<_ACEOF
48043 #define HAVE_ZAPTEL_VLDTMF 1
48044 _ACEOF
48047 cat >>confdefs.h <<_ACEOF
48048 #define HAVE_ZAPTEL_VLDTMF_VERSION 80
48049 _ACEOF
48056 # other case, old tonezone (0.80)
48058 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
48059 pbxlibdir=""
48060 # if --with-TONEZONE=DIR has been specified, use it.
48061 if test "x${TONEZONE_DIR}" != "x"; then
48062 if test -d ${TONEZONE_DIR}/lib; then
48063 pbxlibdir="-L${TONEZONE_DIR}/lib"
48064 else
48065 pbxlibdir="-L${TONEZONE_DIR}"
48068 pbxfuncname="tone_zone_find"
48069 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48070 AST_TONEZONE_FOUND=yes
48071 else
48072 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
48073 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
48074 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
48075 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48076 echo $ECHO_N "(cached) $ECHO_C" >&6
48077 else
48078 ac_check_lib_save_LIBS=$LIBS
48079 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
48080 cat >conftest.$ac_ext <<_ACEOF
48081 /* confdefs.h. */
48082 _ACEOF
48083 cat confdefs.h >>conftest.$ac_ext
48084 cat >>conftest.$ac_ext <<_ACEOF
48085 /* end confdefs.h. */
48087 /* Override any GCC internal prototype to avoid an error.
48088 Use char because int might match the return type of a GCC
48089 builtin and then its argument prototype would still apply. */
48090 #ifdef __cplusplus
48091 extern "C"
48092 #endif
48093 char ${pbxfuncname} ();
48095 main ()
48097 return ${pbxfuncname} ();
48099 return 0;
48101 _ACEOF
48102 rm -f conftest.$ac_objext conftest$ac_exeext
48103 if { (ac_try="$ac_link"
48104 case "(($ac_try" in
48105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48106 *) ac_try_echo=$ac_try;;
48107 esac
48108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48109 (eval "$ac_link") 2>conftest.er1
48110 ac_status=$?
48111 grep -v '^ *+' conftest.er1 >conftest.err
48112 rm -f conftest.er1
48113 cat conftest.err >&5
48114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48115 (exit $ac_status); } && {
48116 test -z "$ac_c_werror_flag" ||
48117 test ! -s conftest.err
48118 } && test -s conftest$ac_exeext &&
48119 $as_test_x conftest$ac_exeext; then
48120 eval "$as_ac_Lib=yes"
48121 else
48122 echo "$as_me: failed program was:" >&5
48123 sed 's/^/| /' conftest.$ac_ext >&5
48125 eval "$as_ac_Lib=no"
48128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48129 conftest$ac_exeext conftest.$ac_ext
48130 LIBS=$ac_check_lib_save_LIBS
48132 ac_res=`eval echo '${'$as_ac_Lib'}'`
48133 { echo "$as_me:$LINENO: result: $ac_res" >&5
48134 echo "${ECHO_T}$ac_res" >&6; }
48135 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48136 AST_TONEZONE_FOUND=yes
48137 else
48138 AST_TONEZONE_FOUND=no
48143 # now check for the header.
48144 if test "${AST_TONEZONE_FOUND}" = "yes"; then
48145 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
48146 # if --with-TONEZONE=DIR has been specified, use it.
48147 if test "x${TONEZONE_DIR}" != "x"; then
48148 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
48150 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
48151 if test "xzaptel.h" = "x" ; then # no header, assume found
48152 TONEZONE_HEADER_FOUND="1"
48153 else # check for the header
48154 saved_cppflags="${CPPFLAGS}"
48155 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
48156 if test "${ac_cv_header_zaptel_h+set}" = set; then
48157 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48158 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48159 if test "${ac_cv_header_zaptel_h+set}" = set; then
48160 echo $ECHO_N "(cached) $ECHO_C" >&6
48162 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48163 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48164 else
48165 # Is the header compilable?
48166 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
48167 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
48168 cat >conftest.$ac_ext <<_ACEOF
48169 /* confdefs.h. */
48170 _ACEOF
48171 cat confdefs.h >>conftest.$ac_ext
48172 cat >>conftest.$ac_ext <<_ACEOF
48173 /* end confdefs.h. */
48174 $ac_includes_default
48175 #include <zaptel.h>
48176 _ACEOF
48177 rm -f conftest.$ac_objext
48178 if { (ac_try="$ac_compile"
48179 case "(($ac_try" in
48180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48181 *) ac_try_echo=$ac_try;;
48182 esac
48183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48184 (eval "$ac_compile") 2>conftest.er1
48185 ac_status=$?
48186 grep -v '^ *+' conftest.er1 >conftest.err
48187 rm -f conftest.er1
48188 cat conftest.err >&5
48189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190 (exit $ac_status); } && {
48191 test -z "$ac_c_werror_flag" ||
48192 test ! -s conftest.err
48193 } && test -s conftest.$ac_objext; then
48194 ac_header_compiler=yes
48195 else
48196 echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48199 ac_header_compiler=no
48202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48204 echo "${ECHO_T}$ac_header_compiler" >&6; }
48206 # Is the header present?
48207 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
48208 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
48209 cat >conftest.$ac_ext <<_ACEOF
48210 /* confdefs.h. */
48211 _ACEOF
48212 cat confdefs.h >>conftest.$ac_ext
48213 cat >>conftest.$ac_ext <<_ACEOF
48214 /* end confdefs.h. */
48215 #include <zaptel.h>
48216 _ACEOF
48217 if { (ac_try="$ac_cpp conftest.$ac_ext"
48218 case "(($ac_try" in
48219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48220 *) ac_try_echo=$ac_try;;
48221 esac
48222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48224 ac_status=$?
48225 grep -v '^ *+' conftest.er1 >conftest.err
48226 rm -f conftest.er1
48227 cat conftest.err >&5
48228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48229 (exit $ac_status); } >/dev/null && {
48230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48231 test ! -s conftest.err
48232 }; then
48233 ac_header_preproc=yes
48234 else
48235 echo "$as_me: failed program was:" >&5
48236 sed 's/^/| /' conftest.$ac_ext >&5
48238 ac_header_preproc=no
48241 rm -f conftest.err conftest.$ac_ext
48242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48243 echo "${ECHO_T}$ac_header_preproc" >&6; }
48245 # So? What about this header?
48246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48247 yes:no: )
48248 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
48249 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48250 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
48251 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
48252 ac_header_preproc=yes
48254 no:yes:* )
48255 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
48256 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
48257 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
48258 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
48259 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
48260 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
48261 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
48262 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
48263 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
48264 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
48265 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
48266 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
48267 ( cat <<\_ASBOX
48268 ## ------------------------------- ##
48269 ## Report this to www.asterisk.org ##
48270 ## ------------------------------- ##
48271 _ASBOX
48272 ) | sed "s/^/$as_me: WARNING: /" >&2
48274 esac
48275 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
48276 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
48277 if test "${ac_cv_header_zaptel_h+set}" = set; then
48278 echo $ECHO_N "(cached) $ECHO_C" >&6
48279 else
48280 ac_cv_header_zaptel_h=$ac_header_preproc
48282 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
48283 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
48286 if test $ac_cv_header_zaptel_h = yes; then
48287 TONEZONE_HEADER_FOUND=1
48288 else
48289 TONEZONE_HEADER_FOUND=0
48293 CPPFLAGS="${saved_cppflags}"
48295 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
48296 TONEZONE_LIB=""
48297 TONEZONE_INCLUDE=""
48298 else
48299 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48300 TONEZONE_LIB=""
48302 PBX_TONEZONE=1
48303 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48305 cat >>confdefs.h <<_ACEOF
48306 #define HAVE_TONEZONE 1
48307 _ACEOF
48310 cat >>confdefs.h <<_ACEOF
48311 #define HAVE_TONEZONE_VERSION 80
48312 _ACEOF
48319 esac
48321 EDITLINE_LIB=""
48322 if test "x$TERMCAP_LIB" != "x" ; then
48323 EDITLINE_LIB="$TERMCAP_LIB"
48324 elif test "x$TINFO_LIB" != "x" ; then
48325 EDITLINE_LIB="$TINFO_LIB"
48326 elif test "x$CURSES_LIB" != "x" ; then
48327 EDITLINE_LIB="$CURSES_LIB"
48328 elif test "x$NCURSES_LIB" != "x" ; then
48329 EDITLINE_LIB="$NCURSES_LIB"
48330 else
48331 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
48332 echo "$as_me: error: *** termcap support not found" >&2;}
48333 { (exit 1); exit 1; }; }
48337 if test "${ac_cv_header_h323_h+set}" = set; then
48338 { echo "$as_me:$LINENO: checking for h323.h" >&5
48339 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
48340 if test "${ac_cv_header_h323_h+set}" = set; then
48341 echo $ECHO_N "(cached) $ECHO_C" >&6
48343 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
48344 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
48345 else
48346 # Is the header compilable?
48347 { echo "$as_me:$LINENO: checking h323.h usability" >&5
48348 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
48349 cat >conftest.$ac_ext <<_ACEOF
48350 /* confdefs.h. */
48351 _ACEOF
48352 cat confdefs.h >>conftest.$ac_ext
48353 cat >>conftest.$ac_ext <<_ACEOF
48354 /* end confdefs.h. */
48355 $ac_includes_default
48356 #include <h323.h>
48357 _ACEOF
48358 rm -f conftest.$ac_objext
48359 if { (ac_try="$ac_compile"
48360 case "(($ac_try" in
48361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48362 *) ac_try_echo=$ac_try;;
48363 esac
48364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48365 (eval "$ac_compile") 2>conftest.er1
48366 ac_status=$?
48367 grep -v '^ *+' conftest.er1 >conftest.err
48368 rm -f conftest.er1
48369 cat conftest.err >&5
48370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371 (exit $ac_status); } && {
48372 test -z "$ac_c_werror_flag" ||
48373 test ! -s conftest.err
48374 } && test -s conftest.$ac_objext; then
48375 ac_header_compiler=yes
48376 else
48377 echo "$as_me: failed program was:" >&5
48378 sed 's/^/| /' conftest.$ac_ext >&5
48380 ac_header_compiler=no
48383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48385 echo "${ECHO_T}$ac_header_compiler" >&6; }
48387 # Is the header present?
48388 { echo "$as_me:$LINENO: checking h323.h presence" >&5
48389 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
48390 cat >conftest.$ac_ext <<_ACEOF
48391 /* confdefs.h. */
48392 _ACEOF
48393 cat confdefs.h >>conftest.$ac_ext
48394 cat >>conftest.$ac_ext <<_ACEOF
48395 /* end confdefs.h. */
48396 #include <h323.h>
48397 _ACEOF
48398 if { (ac_try="$ac_cpp conftest.$ac_ext"
48399 case "(($ac_try" in
48400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48401 *) ac_try_echo=$ac_try;;
48402 esac
48403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48405 ac_status=$?
48406 grep -v '^ *+' conftest.er1 >conftest.err
48407 rm -f conftest.er1
48408 cat conftest.err >&5
48409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48410 (exit $ac_status); } >/dev/null && {
48411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48412 test ! -s conftest.err
48413 }; then
48414 ac_header_preproc=yes
48415 else
48416 echo "$as_me: failed program was:" >&5
48417 sed 's/^/| /' conftest.$ac_ext >&5
48419 ac_header_preproc=no
48422 rm -f conftest.err conftest.$ac_ext
48423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48424 echo "${ECHO_T}$ac_header_preproc" >&6; }
48426 # So? What about this header?
48427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48428 yes:no: )
48429 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
48430 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48431 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
48432 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
48433 ac_header_preproc=yes
48435 no:yes:* )
48436 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
48437 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
48438 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
48439 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
48440 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
48441 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
48442 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
48443 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
48444 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
48445 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
48446 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
48447 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
48448 ( cat <<\_ASBOX
48449 ## ------------------------------- ##
48450 ## Report this to www.asterisk.org ##
48451 ## ------------------------------- ##
48452 _ASBOX
48453 ) | sed "s/^/$as_me: WARNING: /" >&2
48455 esac
48456 { echo "$as_me:$LINENO: checking for h323.h" >&5
48457 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
48458 if test "${ac_cv_header_h323_h+set}" = set; then
48459 echo $ECHO_N "(cached) $ECHO_C" >&6
48460 else
48461 ac_cv_header_h323_h=$ac_header_preproc
48463 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
48464 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
48467 if test $ac_cv_header_h323_h = yes; then
48468 PBX_H323=1
48469 else
48470 PBX_H323=0
48476 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
48477 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
48478 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
48479 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
48480 echo $ECHO_N "(cached) $ECHO_C" >&6
48482 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
48483 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
48484 else
48485 # Is the header compilable?
48486 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
48487 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
48488 cat >conftest.$ac_ext <<_ACEOF
48489 /* confdefs.h. */
48490 _ACEOF
48491 cat confdefs.h >>conftest.$ac_ext
48492 cat >>conftest.$ac_ext <<_ACEOF
48493 /* end confdefs.h. */
48494 $ac_includes_default
48495 #include <linux/compiler.h>
48496 _ACEOF
48497 rm -f conftest.$ac_objext
48498 if { (ac_try="$ac_compile"
48499 case "(($ac_try" in
48500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48501 *) ac_try_echo=$ac_try;;
48502 esac
48503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48504 (eval "$ac_compile") 2>conftest.er1
48505 ac_status=$?
48506 grep -v '^ *+' conftest.er1 >conftest.err
48507 rm -f conftest.er1
48508 cat conftest.err >&5
48509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510 (exit $ac_status); } && {
48511 test -z "$ac_c_werror_flag" ||
48512 test ! -s conftest.err
48513 } && test -s conftest.$ac_objext; then
48514 ac_header_compiler=yes
48515 else
48516 echo "$as_me: failed program was:" >&5
48517 sed 's/^/| /' conftest.$ac_ext >&5
48519 ac_header_compiler=no
48522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48524 echo "${ECHO_T}$ac_header_compiler" >&6; }
48526 # Is the header present?
48527 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
48528 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
48529 cat >conftest.$ac_ext <<_ACEOF
48530 /* confdefs.h. */
48531 _ACEOF
48532 cat confdefs.h >>conftest.$ac_ext
48533 cat >>conftest.$ac_ext <<_ACEOF
48534 /* end confdefs.h. */
48535 #include <linux/compiler.h>
48536 _ACEOF
48537 if { (ac_try="$ac_cpp conftest.$ac_ext"
48538 case "(($ac_try" in
48539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48540 *) ac_try_echo=$ac_try;;
48541 esac
48542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48544 ac_status=$?
48545 grep -v '^ *+' conftest.er1 >conftest.err
48546 rm -f conftest.er1
48547 cat conftest.err >&5
48548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48549 (exit $ac_status); } >/dev/null && {
48550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48551 test ! -s conftest.err
48552 }; then
48553 ac_header_preproc=yes
48554 else
48555 echo "$as_me: failed program was:" >&5
48556 sed 's/^/| /' conftest.$ac_ext >&5
48558 ac_header_preproc=no
48561 rm -f conftest.err conftest.$ac_ext
48562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48563 echo "${ECHO_T}$ac_header_preproc" >&6; }
48565 # So? What about this header?
48566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48567 yes:no: )
48568 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
48569 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48570 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
48571 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
48572 ac_header_preproc=yes
48574 no:yes:* )
48575 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
48576 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
48577 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
48578 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
48579 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
48580 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
48581 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
48582 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
48583 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
48584 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
48585 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
48586 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
48587 ( cat <<\_ASBOX
48588 ## ------------------------------- ##
48589 ## Report this to www.asterisk.org ##
48590 ## ------------------------------- ##
48591 _ASBOX
48592 ) | sed "s/^/$as_me: WARNING: /" >&2
48594 esac
48595 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
48596 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
48597 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
48598 echo $ECHO_N "(cached) $ECHO_C" >&6
48599 else
48600 ac_cv_header_linux_compiler_h=$ac_header_preproc
48602 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
48603 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
48606 if test $ac_cv_header_linux_compiler_h = yes; then
48608 cat >>confdefs.h <<_ACEOF
48609 #define HAVE_LINUX_COMPILER_H 1
48610 _ACEOF
48616 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
48617 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
48618 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
48619 echo $ECHO_N "(cached) $ECHO_C" >&6
48620 else
48621 cat >conftest.$ac_ext <<_ACEOF
48622 /* confdefs.h. */
48623 _ACEOF
48624 cat confdefs.h >>conftest.$ac_ext
48625 cat >>conftest.$ac_ext <<_ACEOF
48626 /* end confdefs.h. */
48628 #include <linux/version.h>
48629 #ifdef HAVE_LINUX_COMPILER_H
48630 #include <linux/compiler.h>
48631 #endif
48634 #include <linux/ixjuser.h>
48635 _ACEOF
48636 rm -f conftest.$ac_objext
48637 if { (ac_try="$ac_compile"
48638 case "(($ac_try" in
48639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48640 *) ac_try_echo=$ac_try;;
48641 esac
48642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48643 (eval "$ac_compile") 2>conftest.er1
48644 ac_status=$?
48645 grep -v '^ *+' conftest.er1 >conftest.err
48646 rm -f conftest.er1
48647 cat conftest.err >&5
48648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649 (exit $ac_status); } && {
48650 test -z "$ac_c_werror_flag" ||
48651 test ! -s conftest.err
48652 } && test -s conftest.$ac_objext; then
48653 ac_cv_header_linux_ixjuser_h=yes
48654 else
48655 echo "$as_me: failed program was:" >&5
48656 sed 's/^/| /' conftest.$ac_ext >&5
48658 ac_cv_header_linux_ixjuser_h=no
48661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48663 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
48664 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
48665 if test $ac_cv_header_linux_ixjuser_h = yes; then
48666 PBX_IXJUSER=1
48667 else
48668 PBX_IXJUSER=0
48675 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
48676 PBX_SDL=0
48677 if test -n "$ac_tool_prefix"; then
48678 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
48679 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
48680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48682 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
48683 echo $ECHO_N "(cached) $ECHO_C" >&6
48684 else
48685 if test -n "$CONFIG_SDL"; then
48686 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
48687 else
48688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48689 for as_dir in $PATH
48691 IFS=$as_save_IFS
48692 test -z "$as_dir" && as_dir=.
48693 for ac_exec_ext in '' $ac_executable_extensions; do
48694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48695 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
48696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48697 break 2
48699 done
48700 done
48701 IFS=$as_save_IFS
48705 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
48706 if test -n "$CONFIG_SDL"; then
48707 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
48708 echo "${ECHO_T}$CONFIG_SDL" >&6; }
48709 else
48710 { echo "$as_me:$LINENO: result: no" >&5
48711 echo "${ECHO_T}no" >&6; }
48716 if test -z "$ac_cv_prog_CONFIG_SDL"; then
48717 ac_ct_CONFIG_SDL=$CONFIG_SDL
48718 # Extract the first word of "sdl-config", so it can be a program name with args.
48719 set dummy sdl-config; ac_word=$2
48720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48722 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
48723 echo $ECHO_N "(cached) $ECHO_C" >&6
48724 else
48725 if test -n "$ac_ct_CONFIG_SDL"; then
48726 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
48727 else
48728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48729 for as_dir in $PATH
48731 IFS=$as_save_IFS
48732 test -z "$as_dir" && as_dir=.
48733 for ac_exec_ext in '' $ac_executable_extensions; do
48734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48735 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
48736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48737 break 2
48739 done
48740 done
48741 IFS=$as_save_IFS
48745 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
48746 if test -n "$ac_ct_CONFIG_SDL"; then
48747 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
48748 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
48749 else
48750 { echo "$as_me:$LINENO: result: no" >&5
48751 echo "${ECHO_T}no" >&6; }
48754 if test "x$ac_ct_CONFIG_SDL" = x; then
48755 CONFIG_SDL="No"
48756 else
48757 case $cross_compiling:$ac_tool_warned in
48758 yes:)
48759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48760 whose name does not start with the host triplet. If you think this
48761 configuration is useful to you, please write to autoconf@gnu.org." >&5
48762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48763 whose name does not start with the host triplet. If you think this
48764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48765 ac_tool_warned=yes ;;
48766 esac
48767 CONFIG_SDL=$ac_ct_CONFIG_SDL
48769 else
48770 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
48773 if test ! "x${CONFIG_SDL}" = xNo; then
48774 if test x"" = x ; then A=--cflags ; else A="" ; fi
48775 SDL_INCLUDE=$(${CONFIG_SDL} $A)
48776 if test x"" = x ; then A=--libs ; else A="" ; fi
48777 SDL_LIB=$(${CONFIG_SDL} $A)
48778 if test x"" != x ; then
48779 saved_cppflags="${CPPFLAGS}"
48780 if test "x${SDL_DIR}" != "x"; then
48781 SDL_INCLUDE="-I${SDL_DIR}/include"
48783 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
48785 saved_ldflags="${LDFLAGS}"
48786 LDFLAGS="${SDL_LIB}"
48788 cat >conftest.$ac_ext <<_ACEOF
48789 /* confdefs.h. */
48790 _ACEOF
48791 cat confdefs.h >>conftest.$ac_ext
48792 cat >>conftest.$ac_ext <<_ACEOF
48793 /* end confdefs.h. */
48796 main ()
48801 return 0;
48803 _ACEOF
48804 rm -f conftest.$ac_objext conftest$ac_exeext
48805 if { (ac_try="$ac_link"
48806 case "(($ac_try" in
48807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48808 *) ac_try_echo=$ac_try;;
48809 esac
48810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48811 (eval "$ac_link") 2>conftest.er1
48812 ac_status=$?
48813 grep -v '^ *+' conftest.er1 >conftest.err
48814 rm -f conftest.er1
48815 cat conftest.err >&5
48816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48817 (exit $ac_status); } && {
48818 test -z "$ac_c_werror_flag" ||
48819 test ! -s conftest.err
48820 } && test -s conftest$ac_exeext &&
48821 $as_test_x conftest$ac_exeext; then
48822 PBX_SDL=1
48824 cat >>confdefs.h <<\_ACEOF
48825 #define HAVE_SDL 1
48826 _ACEOF
48829 else
48830 echo "$as_me: failed program was:" >&5
48831 sed 's/^/| /' conftest.$ac_ext >&5
48837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48838 conftest$ac_exeext conftest.$ac_ext
48839 CPPFLAGS="${saved_cppflags}"
48840 LDFLAGS="${saved_ldflags}"
48841 else
48842 PBX_SDL=1
48844 cat >>confdefs.h <<\_ACEOF
48845 #define HAVE_SDL 1
48846 _ACEOF
48853 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
48854 pbxlibdir=""
48855 # if --with-SDL_IMAGE=DIR has been specified, use it.
48856 if test "x${SDL_IMAGE_DIR}" != "x"; then
48857 if test -d ${SDL_IMAGE_DIR}/lib; then
48858 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
48859 else
48860 pbxlibdir="-L${SDL_IMAGE_DIR}"
48863 pbxfuncname="IMG_Load"
48864 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48865 AST_SDL_IMAGE_FOUND=yes
48866 else
48867 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
48868 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
48869 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
48870 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48871 echo $ECHO_N "(cached) $ECHO_C" >&6
48872 else
48873 ac_check_lib_save_LIBS=$LIBS
48874 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
48875 cat >conftest.$ac_ext <<_ACEOF
48876 /* confdefs.h. */
48877 _ACEOF
48878 cat confdefs.h >>conftest.$ac_ext
48879 cat >>conftest.$ac_ext <<_ACEOF
48880 /* end confdefs.h. */
48882 /* Override any GCC internal prototype to avoid an error.
48883 Use char because int might match the return type of a GCC
48884 builtin and then its argument prototype would still apply. */
48885 #ifdef __cplusplus
48886 extern "C"
48887 #endif
48888 char ${pbxfuncname} ();
48890 main ()
48892 return ${pbxfuncname} ();
48894 return 0;
48896 _ACEOF
48897 rm -f conftest.$ac_objext conftest$ac_exeext
48898 if { (ac_try="$ac_link"
48899 case "(($ac_try" in
48900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48901 *) ac_try_echo=$ac_try;;
48902 esac
48903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48904 (eval "$ac_link") 2>conftest.er1
48905 ac_status=$?
48906 grep -v '^ *+' conftest.er1 >conftest.err
48907 rm -f conftest.er1
48908 cat conftest.err >&5
48909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910 (exit $ac_status); } && {
48911 test -z "$ac_c_werror_flag" ||
48912 test ! -s conftest.err
48913 } && test -s conftest$ac_exeext &&
48914 $as_test_x conftest$ac_exeext; then
48915 eval "$as_ac_Lib=yes"
48916 else
48917 echo "$as_me: failed program was:" >&5
48918 sed 's/^/| /' conftest.$ac_ext >&5
48920 eval "$as_ac_Lib=no"
48923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48924 conftest$ac_exeext conftest.$ac_ext
48925 LIBS=$ac_check_lib_save_LIBS
48927 ac_res=`eval echo '${'$as_ac_Lib'}'`
48928 { echo "$as_me:$LINENO: result: $ac_res" >&5
48929 echo "${ECHO_T}$ac_res" >&6; }
48930 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48931 AST_SDL_IMAGE_FOUND=yes
48932 else
48933 AST_SDL_IMAGE_FOUND=no
48938 # now check for the header.
48939 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
48940 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
48941 # if --with-SDL_IMAGE=DIR has been specified, use it.
48942 if test "x${SDL_IMAGE_DIR}" != "x"; then
48943 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
48945 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
48946 if test "xSDL_image.h" = "x" ; then # no header, assume found
48947 SDL_IMAGE_HEADER_FOUND="1"
48948 else # check for the header
48949 saved_cppflags="${CPPFLAGS}"
48950 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
48951 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48952 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48953 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48954 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48955 echo $ECHO_N "(cached) $ECHO_C" >&6
48957 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48958 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48959 else
48960 # Is the header compilable?
48961 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
48962 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
48963 cat >conftest.$ac_ext <<_ACEOF
48964 /* confdefs.h. */
48965 _ACEOF
48966 cat confdefs.h >>conftest.$ac_ext
48967 cat >>conftest.$ac_ext <<_ACEOF
48968 /* end confdefs.h. */
48969 $ac_includes_default
48970 #include <SDL_image.h>
48971 _ACEOF
48972 rm -f conftest.$ac_objext
48973 if { (ac_try="$ac_compile"
48974 case "(($ac_try" in
48975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48976 *) ac_try_echo=$ac_try;;
48977 esac
48978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48979 (eval "$ac_compile") 2>conftest.er1
48980 ac_status=$?
48981 grep -v '^ *+' conftest.er1 >conftest.err
48982 rm -f conftest.er1
48983 cat conftest.err >&5
48984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48985 (exit $ac_status); } && {
48986 test -z "$ac_c_werror_flag" ||
48987 test ! -s conftest.err
48988 } && test -s conftest.$ac_objext; then
48989 ac_header_compiler=yes
48990 else
48991 echo "$as_me: failed program was:" >&5
48992 sed 's/^/| /' conftest.$ac_ext >&5
48994 ac_header_compiler=no
48997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48999 echo "${ECHO_T}$ac_header_compiler" >&6; }
49001 # Is the header present?
49002 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
49003 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
49004 cat >conftest.$ac_ext <<_ACEOF
49005 /* confdefs.h. */
49006 _ACEOF
49007 cat confdefs.h >>conftest.$ac_ext
49008 cat >>conftest.$ac_ext <<_ACEOF
49009 /* end confdefs.h. */
49010 #include <SDL_image.h>
49011 _ACEOF
49012 if { (ac_try="$ac_cpp conftest.$ac_ext"
49013 case "(($ac_try" in
49014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49015 *) ac_try_echo=$ac_try;;
49016 esac
49017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49019 ac_status=$?
49020 grep -v '^ *+' conftest.er1 >conftest.err
49021 rm -f conftest.er1
49022 cat conftest.err >&5
49023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49024 (exit $ac_status); } >/dev/null && {
49025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49026 test ! -s conftest.err
49027 }; then
49028 ac_header_preproc=yes
49029 else
49030 echo "$as_me: failed program was:" >&5
49031 sed 's/^/| /' conftest.$ac_ext >&5
49033 ac_header_preproc=no
49036 rm -f conftest.err conftest.$ac_ext
49037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49038 echo "${ECHO_T}$ac_header_preproc" >&6; }
49040 # So? What about this header?
49041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49042 yes:no: )
49043 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
49044 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49045 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
49046 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
49047 ac_header_preproc=yes
49049 no:yes:* )
49050 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
49051 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
49052 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
49053 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
49054 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
49055 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
49056 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
49057 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
49058 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
49059 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
49060 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
49061 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
49062 ( cat <<\_ASBOX
49063 ## ------------------------------- ##
49064 ## Report this to www.asterisk.org ##
49065 ## ------------------------------- ##
49066 _ASBOX
49067 ) | sed "s/^/$as_me: WARNING: /" >&2
49069 esac
49070 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
49071 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
49072 if test "${ac_cv_header_SDL_image_h+set}" = set; then
49073 echo $ECHO_N "(cached) $ECHO_C" >&6
49074 else
49075 ac_cv_header_SDL_image_h=$ac_header_preproc
49077 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
49078 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
49081 if test $ac_cv_header_SDL_image_h = yes; then
49082 SDL_IMAGE_HEADER_FOUND=1
49083 else
49084 SDL_IMAGE_HEADER_FOUND=0
49088 CPPFLAGS="${saved_cppflags}"
49090 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
49091 SDL_IMAGE_LIB=""
49092 SDL_IMAGE_INCLUDE=""
49093 else
49094 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49095 SDL_IMAGE_LIB=""
49097 PBX_SDL_IMAGE=1
49098 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49100 cat >>confdefs.h <<_ACEOF
49101 #define HAVE_SDL_IMAGE 1
49102 _ACEOF
49105 cat >>confdefs.h <<_ACEOF
49106 #define HAVE_SDL_IMAGE_VERSION
49107 _ACEOF
49114 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
49115 pbxlibdir=""
49116 # if --with-FFMPEG=DIR has been specified, use it.
49117 if test "x${FFMPEG_DIR}" != "x"; then
49118 if test -d ${FFMPEG_DIR}/lib; then
49119 pbxlibdir="-L${FFMPEG_DIR}/lib"
49120 else
49121 pbxlibdir="-L${FFMPEG_DIR}"
49124 pbxfuncname="sws_getContext"
49125 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49126 AST_FFMPEG_FOUND=yes
49127 else
49128 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
49129 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
49130 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
49131 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49132 echo $ECHO_N "(cached) $ECHO_C" >&6
49133 else
49134 ac_check_lib_save_LIBS=$LIBS
49135 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
49136 cat >conftest.$ac_ext <<_ACEOF
49137 /* confdefs.h. */
49138 _ACEOF
49139 cat confdefs.h >>conftest.$ac_ext
49140 cat >>conftest.$ac_ext <<_ACEOF
49141 /* end confdefs.h. */
49143 /* Override any GCC internal prototype to avoid an error.
49144 Use char because int might match the return type of a GCC
49145 builtin and then its argument prototype would still apply. */
49146 #ifdef __cplusplus
49147 extern "C"
49148 #endif
49149 char ${pbxfuncname} ();
49151 main ()
49153 return ${pbxfuncname} ();
49155 return 0;
49157 _ACEOF
49158 rm -f conftest.$ac_objext conftest$ac_exeext
49159 if { (ac_try="$ac_link"
49160 case "(($ac_try" in
49161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49162 *) ac_try_echo=$ac_try;;
49163 esac
49164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49165 (eval "$ac_link") 2>conftest.er1
49166 ac_status=$?
49167 grep -v '^ *+' conftest.er1 >conftest.err
49168 rm -f conftest.er1
49169 cat conftest.err >&5
49170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49171 (exit $ac_status); } && {
49172 test -z "$ac_c_werror_flag" ||
49173 test ! -s conftest.err
49174 } && test -s conftest$ac_exeext &&
49175 $as_test_x conftest$ac_exeext; then
49176 eval "$as_ac_Lib=yes"
49177 else
49178 echo "$as_me: failed program was:" >&5
49179 sed 's/^/| /' conftest.$ac_ext >&5
49181 eval "$as_ac_Lib=no"
49184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49185 conftest$ac_exeext conftest.$ac_ext
49186 LIBS=$ac_check_lib_save_LIBS
49188 ac_res=`eval echo '${'$as_ac_Lib'}'`
49189 { echo "$as_me:$LINENO: result: $ac_res" >&5
49190 echo "${ECHO_T}$ac_res" >&6; }
49191 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49192 AST_FFMPEG_FOUND=yes
49193 else
49194 AST_FFMPEG_FOUND=no
49199 # now check for the header.
49200 if test "${AST_FFMPEG_FOUND}" = "yes"; then
49201 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
49202 # if --with-FFMPEG=DIR has been specified, use it.
49203 if test "x${FFMPEG_DIR}" != "x"; then
49204 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
49206 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
49207 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
49208 FFMPEG_HEADER_FOUND="1"
49209 else # check for the header
49210 saved_cppflags="${CPPFLAGS}"
49211 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
49212 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49213 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
49214 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
49215 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49216 echo $ECHO_N "(cached) $ECHO_C" >&6
49218 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
49219 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
49220 else
49221 # Is the header compilable?
49222 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
49223 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
49224 cat >conftest.$ac_ext <<_ACEOF
49225 /* confdefs.h. */
49226 _ACEOF
49227 cat confdefs.h >>conftest.$ac_ext
49228 cat >>conftest.$ac_ext <<_ACEOF
49229 /* end confdefs.h. */
49230 $ac_includes_default
49231 #include <ffmpeg/avcodec.h>
49232 _ACEOF
49233 rm -f conftest.$ac_objext
49234 if { (ac_try="$ac_compile"
49235 case "(($ac_try" in
49236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49237 *) ac_try_echo=$ac_try;;
49238 esac
49239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49240 (eval "$ac_compile") 2>conftest.er1
49241 ac_status=$?
49242 grep -v '^ *+' conftest.er1 >conftest.err
49243 rm -f conftest.er1
49244 cat conftest.err >&5
49245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49246 (exit $ac_status); } && {
49247 test -z "$ac_c_werror_flag" ||
49248 test ! -s conftest.err
49249 } && test -s conftest.$ac_objext; then
49250 ac_header_compiler=yes
49251 else
49252 echo "$as_me: failed program was:" >&5
49253 sed 's/^/| /' conftest.$ac_ext >&5
49255 ac_header_compiler=no
49258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49260 echo "${ECHO_T}$ac_header_compiler" >&6; }
49262 # Is the header present?
49263 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
49264 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
49265 cat >conftest.$ac_ext <<_ACEOF
49266 /* confdefs.h. */
49267 _ACEOF
49268 cat confdefs.h >>conftest.$ac_ext
49269 cat >>conftest.$ac_ext <<_ACEOF
49270 /* end confdefs.h. */
49271 #include <ffmpeg/avcodec.h>
49272 _ACEOF
49273 if { (ac_try="$ac_cpp conftest.$ac_ext"
49274 case "(($ac_try" in
49275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49276 *) ac_try_echo=$ac_try;;
49277 esac
49278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49280 ac_status=$?
49281 grep -v '^ *+' conftest.er1 >conftest.err
49282 rm -f conftest.er1
49283 cat conftest.err >&5
49284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49285 (exit $ac_status); } >/dev/null && {
49286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49287 test ! -s conftest.err
49288 }; then
49289 ac_header_preproc=yes
49290 else
49291 echo "$as_me: failed program was:" >&5
49292 sed 's/^/| /' conftest.$ac_ext >&5
49294 ac_header_preproc=no
49297 rm -f conftest.err conftest.$ac_ext
49298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49299 echo "${ECHO_T}$ac_header_preproc" >&6; }
49301 # So? What about this header?
49302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49303 yes:no: )
49304 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
49305 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49306 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
49307 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
49308 ac_header_preproc=yes
49310 no:yes:* )
49311 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
49312 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
49313 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
49314 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
49315 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
49316 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
49317 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
49318 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
49319 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
49320 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
49321 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
49322 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
49323 ( cat <<\_ASBOX
49324 ## ------------------------------- ##
49325 ## Report this to www.asterisk.org ##
49326 ## ------------------------------- ##
49327 _ASBOX
49328 ) | sed "s/^/$as_me: WARNING: /" >&2
49330 esac
49331 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
49332 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
49333 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
49334 echo $ECHO_N "(cached) $ECHO_C" >&6
49335 else
49336 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
49338 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
49339 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
49342 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
49343 FFMPEG_HEADER_FOUND=1
49344 else
49345 FFMPEG_HEADER_FOUND=0
49349 CPPFLAGS="${saved_cppflags}"
49351 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
49352 FFMPEG_LIB=""
49353 FFMPEG_INCLUDE=""
49354 else
49355 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49356 FFMPEG_LIB=""
49358 PBX_FFMPEG=1
49359 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49361 cat >>confdefs.h <<_ACEOF
49362 #define HAVE_FFMPEG 1
49363 _ACEOF
49366 cat >>confdefs.h <<_ACEOF
49367 #define HAVE_FFMPEG_VERSION
49368 _ACEOF
49375 # possible places for video4linux version 1
49376 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
49377 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
49378 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
49379 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
49380 echo $ECHO_N "(cached) $ECHO_C" >&6
49382 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
49383 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
49384 else
49385 # Is the header compilable?
49386 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
49387 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
49388 cat >conftest.$ac_ext <<_ACEOF
49389 /* confdefs.h. */
49390 _ACEOF
49391 cat confdefs.h >>conftest.$ac_ext
49392 cat >>conftest.$ac_ext <<_ACEOF
49393 /* end confdefs.h. */
49394 $ac_includes_default
49395 #include <linux/videodev.h>
49396 _ACEOF
49397 rm -f conftest.$ac_objext
49398 if { (ac_try="$ac_compile"
49399 case "(($ac_try" in
49400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49401 *) ac_try_echo=$ac_try;;
49402 esac
49403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49404 (eval "$ac_compile") 2>conftest.er1
49405 ac_status=$?
49406 grep -v '^ *+' conftest.er1 >conftest.err
49407 rm -f conftest.er1
49408 cat conftest.err >&5
49409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49410 (exit $ac_status); } && {
49411 test -z "$ac_c_werror_flag" ||
49412 test ! -s conftest.err
49413 } && test -s conftest.$ac_objext; then
49414 ac_header_compiler=yes
49415 else
49416 echo "$as_me: failed program was:" >&5
49417 sed 's/^/| /' conftest.$ac_ext >&5
49419 ac_header_compiler=no
49422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49424 echo "${ECHO_T}$ac_header_compiler" >&6; }
49426 # Is the header present?
49427 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
49428 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
49429 cat >conftest.$ac_ext <<_ACEOF
49430 /* confdefs.h. */
49431 _ACEOF
49432 cat confdefs.h >>conftest.$ac_ext
49433 cat >>conftest.$ac_ext <<_ACEOF
49434 /* end confdefs.h. */
49435 #include <linux/videodev.h>
49436 _ACEOF
49437 if { (ac_try="$ac_cpp conftest.$ac_ext"
49438 case "(($ac_try" in
49439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49440 *) ac_try_echo=$ac_try;;
49441 esac
49442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49444 ac_status=$?
49445 grep -v '^ *+' conftest.er1 >conftest.err
49446 rm -f conftest.er1
49447 cat conftest.err >&5
49448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49449 (exit $ac_status); } >/dev/null && {
49450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49451 test ! -s conftest.err
49452 }; then
49453 ac_header_preproc=yes
49454 else
49455 echo "$as_me: failed program was:" >&5
49456 sed 's/^/| /' conftest.$ac_ext >&5
49458 ac_header_preproc=no
49461 rm -f conftest.err conftest.$ac_ext
49462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49463 echo "${ECHO_T}$ac_header_preproc" >&6; }
49465 # So? What about this header?
49466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49467 yes:no: )
49468 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
49469 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49470 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
49471 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
49472 ac_header_preproc=yes
49474 no:yes:* )
49475 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
49476 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
49477 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
49478 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
49479 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
49480 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
49481 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
49482 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
49483 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
49484 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
49485 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
49486 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
49487 ( cat <<\_ASBOX
49488 ## ------------------------------- ##
49489 ## Report this to www.asterisk.org ##
49490 ## ------------------------------- ##
49491 _ASBOX
49492 ) | sed "s/^/$as_me: WARNING: /" >&2
49494 esac
49495 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
49496 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
49497 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
49498 echo $ECHO_N "(cached) $ECHO_C" >&6
49499 else
49500 ac_cv_header_linux_videodev_h=$ac_header_preproc
49502 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
49503 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
49506 if test $ac_cv_header_linux_videodev_h = yes; then
49508 cat >>confdefs.h <<_ACEOF
49509 #define HAVE_VIDEODEV_H 1
49510 _ACEOF
49516 # possible places for X11
49518 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
49519 pbxlibdir=""
49520 # if --with-X11=DIR has been specified, use it.
49521 if test "x${X11_DIR}" != "x"; then
49522 if test -d ${X11_DIR}/lib; then
49523 pbxlibdir="-L${X11_DIR}/lib"
49524 else
49525 pbxlibdir="-L${X11_DIR}"
49528 pbxfuncname="XOpenDisplay"
49529 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49530 AST_X11_FOUND=yes
49531 else
49532 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
49533 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
49534 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
49535 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49536 echo $ECHO_N "(cached) $ECHO_C" >&6
49537 else
49538 ac_check_lib_save_LIBS=$LIBS
49539 LIBS="-lX11 ${pbxlibdir} $LIBS"
49540 cat >conftest.$ac_ext <<_ACEOF
49541 /* confdefs.h. */
49542 _ACEOF
49543 cat confdefs.h >>conftest.$ac_ext
49544 cat >>conftest.$ac_ext <<_ACEOF
49545 /* end confdefs.h. */
49547 /* Override any GCC internal prototype to avoid an error.
49548 Use char because int might match the return type of a GCC
49549 builtin and then its argument prototype would still apply. */
49550 #ifdef __cplusplus
49551 extern "C"
49552 #endif
49553 char ${pbxfuncname} ();
49555 main ()
49557 return ${pbxfuncname} ();
49559 return 0;
49561 _ACEOF
49562 rm -f conftest.$ac_objext conftest$ac_exeext
49563 if { (ac_try="$ac_link"
49564 case "(($ac_try" in
49565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49566 *) ac_try_echo=$ac_try;;
49567 esac
49568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49569 (eval "$ac_link") 2>conftest.er1
49570 ac_status=$?
49571 grep -v '^ *+' conftest.er1 >conftest.err
49572 rm -f conftest.er1
49573 cat conftest.err >&5
49574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49575 (exit $ac_status); } && {
49576 test -z "$ac_c_werror_flag" ||
49577 test ! -s conftest.err
49578 } && test -s conftest$ac_exeext &&
49579 $as_test_x conftest$ac_exeext; then
49580 eval "$as_ac_Lib=yes"
49581 else
49582 echo "$as_me: failed program was:" >&5
49583 sed 's/^/| /' conftest.$ac_ext >&5
49585 eval "$as_ac_Lib=no"
49588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49589 conftest$ac_exeext conftest.$ac_ext
49590 LIBS=$ac_check_lib_save_LIBS
49592 ac_res=`eval echo '${'$as_ac_Lib'}'`
49593 { echo "$as_me:$LINENO: result: $ac_res" >&5
49594 echo "${ECHO_T}$ac_res" >&6; }
49595 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49596 AST_X11_FOUND=yes
49597 else
49598 AST_X11_FOUND=no
49603 # now check for the header.
49604 if test "${AST_X11_FOUND}" = "yes"; then
49605 X11_LIB="${pbxlibdir} -lX11 "
49606 # if --with-X11=DIR has been specified, use it.
49607 if test "x${X11_DIR}" != "x"; then
49608 X11_INCLUDE="-I${X11_DIR}/include"
49610 X11_INCLUDE="${X11_INCLUDE} "
49611 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
49612 X11_HEADER_FOUND="1"
49613 else # check for the header
49614 saved_cppflags="${CPPFLAGS}"
49615 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
49616 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49617 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49618 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49619 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49620 echo $ECHO_N "(cached) $ECHO_C" >&6
49622 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49623 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49624 else
49625 # Is the header compilable?
49626 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
49627 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
49628 cat >conftest.$ac_ext <<_ACEOF
49629 /* confdefs.h. */
49630 _ACEOF
49631 cat confdefs.h >>conftest.$ac_ext
49632 cat >>conftest.$ac_ext <<_ACEOF
49633 /* end confdefs.h. */
49634 $ac_includes_default
49635 #include <X11/Xlib.h>
49636 _ACEOF
49637 rm -f conftest.$ac_objext
49638 if { (ac_try="$ac_compile"
49639 case "(($ac_try" in
49640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49641 *) ac_try_echo=$ac_try;;
49642 esac
49643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49644 (eval "$ac_compile") 2>conftest.er1
49645 ac_status=$?
49646 grep -v '^ *+' conftest.er1 >conftest.err
49647 rm -f conftest.er1
49648 cat conftest.err >&5
49649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49650 (exit $ac_status); } && {
49651 test -z "$ac_c_werror_flag" ||
49652 test ! -s conftest.err
49653 } && test -s conftest.$ac_objext; then
49654 ac_header_compiler=yes
49655 else
49656 echo "$as_me: failed program was:" >&5
49657 sed 's/^/| /' conftest.$ac_ext >&5
49659 ac_header_compiler=no
49662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49664 echo "${ECHO_T}$ac_header_compiler" >&6; }
49666 # Is the header present?
49667 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
49668 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
49669 cat >conftest.$ac_ext <<_ACEOF
49670 /* confdefs.h. */
49671 _ACEOF
49672 cat confdefs.h >>conftest.$ac_ext
49673 cat >>conftest.$ac_ext <<_ACEOF
49674 /* end confdefs.h. */
49675 #include <X11/Xlib.h>
49676 _ACEOF
49677 if { (ac_try="$ac_cpp conftest.$ac_ext"
49678 case "(($ac_try" in
49679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49680 *) ac_try_echo=$ac_try;;
49681 esac
49682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49684 ac_status=$?
49685 grep -v '^ *+' conftest.er1 >conftest.err
49686 rm -f conftest.er1
49687 cat conftest.err >&5
49688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49689 (exit $ac_status); } >/dev/null && {
49690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49691 test ! -s conftest.err
49692 }; then
49693 ac_header_preproc=yes
49694 else
49695 echo "$as_me: failed program was:" >&5
49696 sed 's/^/| /' conftest.$ac_ext >&5
49698 ac_header_preproc=no
49701 rm -f conftest.err conftest.$ac_ext
49702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49703 echo "${ECHO_T}$ac_header_preproc" >&6; }
49705 # So? What about this header?
49706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49707 yes:no: )
49708 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49709 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49710 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49711 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49712 ac_header_preproc=yes
49714 no:yes:* )
49715 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49716 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49717 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49718 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49719 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49720 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49721 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49722 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49723 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49724 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49725 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49726 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49727 ( cat <<\_ASBOX
49728 ## ------------------------------- ##
49729 ## Report this to www.asterisk.org ##
49730 ## ------------------------------- ##
49731 _ASBOX
49732 ) | sed "s/^/$as_me: WARNING: /" >&2
49734 esac
49735 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49736 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49737 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49738 echo $ECHO_N "(cached) $ECHO_C" >&6
49739 else
49740 ac_cv_header_X11_Xlib_h=$ac_header_preproc
49742 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49743 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49746 if test $ac_cv_header_X11_Xlib_h = yes; then
49747 X11_HEADER_FOUND=1
49748 else
49749 X11_HEADER_FOUND=0
49753 CPPFLAGS="${saved_cppflags}"
49755 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49756 X11_LIB=""
49757 X11_INCLUDE=""
49758 else
49759 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49760 X11_LIB=""
49762 PBX_X11=1
49763 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49765 cat >>confdefs.h <<_ACEOF
49766 #define HAVE_X11 1
49767 _ACEOF
49770 cat >>confdefs.h <<_ACEOF
49771 #define HAVE_X11_VERSION standard_path
49772 _ACEOF
49779 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
49780 pbxlibdir=""
49781 # if --with-X11=DIR has been specified, use it.
49782 if test "x${X11_DIR}" != "x"; then
49783 if test -d ${X11_DIR}/lib; then
49784 pbxlibdir="-L${X11_DIR}/lib"
49785 else
49786 pbxlibdir="-L${X11_DIR}"
49789 pbxfuncname="XOpenDisplay"
49790 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49791 AST_X11_FOUND=yes
49792 else
49793 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
49794 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
49795 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
49796 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49797 echo $ECHO_N "(cached) $ECHO_C" >&6
49798 else
49799 ac_check_lib_save_LIBS=$LIBS
49800 LIBS="-lX11 ${pbxlibdir} $LIBS"
49801 cat >conftest.$ac_ext <<_ACEOF
49802 /* confdefs.h. */
49803 _ACEOF
49804 cat confdefs.h >>conftest.$ac_ext
49805 cat >>conftest.$ac_ext <<_ACEOF
49806 /* end confdefs.h. */
49808 /* Override any GCC internal prototype to avoid an error.
49809 Use char because int might match the return type of a GCC
49810 builtin and then its argument prototype would still apply. */
49811 #ifdef __cplusplus
49812 extern "C"
49813 #endif
49814 char ${pbxfuncname} ();
49816 main ()
49818 return ${pbxfuncname} ();
49820 return 0;
49822 _ACEOF
49823 rm -f conftest.$ac_objext conftest$ac_exeext
49824 if { (ac_try="$ac_link"
49825 case "(($ac_try" in
49826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49827 *) ac_try_echo=$ac_try;;
49828 esac
49829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49830 (eval "$ac_link") 2>conftest.er1
49831 ac_status=$?
49832 grep -v '^ *+' conftest.er1 >conftest.err
49833 rm -f conftest.er1
49834 cat conftest.err >&5
49835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49836 (exit $ac_status); } && {
49837 test -z "$ac_c_werror_flag" ||
49838 test ! -s conftest.err
49839 } && test -s conftest$ac_exeext &&
49840 $as_test_x conftest$ac_exeext; then
49841 eval "$as_ac_Lib=yes"
49842 else
49843 echo "$as_me: failed program was:" >&5
49844 sed 's/^/| /' conftest.$ac_ext >&5
49846 eval "$as_ac_Lib=no"
49849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49850 conftest$ac_exeext conftest.$ac_ext
49851 LIBS=$ac_check_lib_save_LIBS
49853 ac_res=`eval echo '${'$as_ac_Lib'}'`
49854 { echo "$as_me:$LINENO: result: $ac_res" >&5
49855 echo "${ECHO_T}$ac_res" >&6; }
49856 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49857 AST_X11_FOUND=yes
49858 else
49859 AST_X11_FOUND=no
49864 # now check for the header.
49865 if test "${AST_X11_FOUND}" = "yes"; then
49866 X11_LIB="${pbxlibdir} -lX11 "
49867 # if --with-X11=DIR has been specified, use it.
49868 if test "x${X11_DIR}" != "x"; then
49869 X11_INCLUDE="-I${X11_DIR}/include"
49871 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
49872 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
49873 X11_HEADER_FOUND="1"
49874 else # check for the header
49875 saved_cppflags="${CPPFLAGS}"
49876 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
49877 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49878 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49879 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49880 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49881 echo $ECHO_N "(cached) $ECHO_C" >&6
49883 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49884 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49885 else
49886 # Is the header compilable?
49887 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
49888 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
49889 cat >conftest.$ac_ext <<_ACEOF
49890 /* confdefs.h. */
49891 _ACEOF
49892 cat confdefs.h >>conftest.$ac_ext
49893 cat >>conftest.$ac_ext <<_ACEOF
49894 /* end confdefs.h. */
49895 $ac_includes_default
49896 #include <X11/Xlib.h>
49897 _ACEOF
49898 rm -f conftest.$ac_objext
49899 if { (ac_try="$ac_compile"
49900 case "(($ac_try" in
49901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49902 *) ac_try_echo=$ac_try;;
49903 esac
49904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49905 (eval "$ac_compile") 2>conftest.er1
49906 ac_status=$?
49907 grep -v '^ *+' conftest.er1 >conftest.err
49908 rm -f conftest.er1
49909 cat conftest.err >&5
49910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911 (exit $ac_status); } && {
49912 test -z "$ac_c_werror_flag" ||
49913 test ! -s conftest.err
49914 } && test -s conftest.$ac_objext; then
49915 ac_header_compiler=yes
49916 else
49917 echo "$as_me: failed program was:" >&5
49918 sed 's/^/| /' conftest.$ac_ext >&5
49920 ac_header_compiler=no
49923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49925 echo "${ECHO_T}$ac_header_compiler" >&6; }
49927 # Is the header present?
49928 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
49929 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
49930 cat >conftest.$ac_ext <<_ACEOF
49931 /* confdefs.h. */
49932 _ACEOF
49933 cat confdefs.h >>conftest.$ac_ext
49934 cat >>conftest.$ac_ext <<_ACEOF
49935 /* end confdefs.h. */
49936 #include <X11/Xlib.h>
49937 _ACEOF
49938 if { (ac_try="$ac_cpp conftest.$ac_ext"
49939 case "(($ac_try" in
49940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49941 *) ac_try_echo=$ac_try;;
49942 esac
49943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49945 ac_status=$?
49946 grep -v '^ *+' conftest.er1 >conftest.err
49947 rm -f conftest.er1
49948 cat conftest.err >&5
49949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49950 (exit $ac_status); } >/dev/null && {
49951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49952 test ! -s conftest.err
49953 }; then
49954 ac_header_preproc=yes
49955 else
49956 echo "$as_me: failed program was:" >&5
49957 sed 's/^/| /' conftest.$ac_ext >&5
49959 ac_header_preproc=no
49962 rm -f conftest.err conftest.$ac_ext
49963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49964 echo "${ECHO_T}$ac_header_preproc" >&6; }
49966 # So? What about this header?
49967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49968 yes:no: )
49969 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49970 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49971 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49972 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49973 ac_header_preproc=yes
49975 no:yes:* )
49976 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49977 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49978 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49979 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49980 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49981 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49982 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49983 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49984 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49985 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49986 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49987 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49988 ( cat <<\_ASBOX
49989 ## ------------------------------- ##
49990 ## Report this to www.asterisk.org ##
49991 ## ------------------------------- ##
49992 _ASBOX
49993 ) | sed "s/^/$as_me: WARNING: /" >&2
49995 esac
49996 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49997 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49998 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49999 echo $ECHO_N "(cached) $ECHO_C" >&6
50000 else
50001 ac_cv_header_X11_Xlib_h=$ac_header_preproc
50003 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
50004 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
50007 if test $ac_cv_header_X11_Xlib_h = yes; then
50008 X11_HEADER_FOUND=1
50009 else
50010 X11_HEADER_FOUND=0
50014 CPPFLAGS="${saved_cppflags}"
50016 if test "x${X11_HEADER_FOUND}" = "x0" ; then
50017 X11_LIB=""
50018 X11_INCLUDE=""
50019 else
50020 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
50021 X11_LIB=""
50023 PBX_X11=1
50024 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
50026 cat >>confdefs.h <<_ACEOF
50027 #define HAVE_X11 1
50028 _ACEOF
50031 cat >>confdefs.h <<_ACEOF
50032 #define HAVE_X11_VERSION X11R6
50033 _ACEOF
50040 if test "${cross_compiling}" = "no";
50041 then
50042 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
50043 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
50044 if test "${ac_cv_file__sbin_launchd+set}" = set; then
50045 echo $ECHO_N "(cached) $ECHO_C" >&6
50046 else
50047 test "$cross_compiling" = yes &&
50048 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
50049 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
50050 { (exit 1); exit 1; }; }
50051 if test -r "/sbin/launchd"; then
50052 ac_cv_file__sbin_launchd=yes
50053 else
50054 ac_cv_file__sbin_launchd=no
50057 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
50058 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
50059 if test $ac_cv_file__sbin_launchd = yes; then
50061 cat >>confdefs.h <<\_ACEOF
50062 #define HAVE_SBIN_LAUNCHD 1
50063 _ACEOF
50069 PBX_GTK=0
50071 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
50072 PBX_GTK=0
50073 if test -n "$ac_tool_prefix"; then
50074 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
50075 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
50076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50078 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
50079 echo $ECHO_N "(cached) $ECHO_C" >&6
50080 else
50081 if test -n "$CONFIG_GTK"; then
50082 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
50083 else
50084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50085 for as_dir in $PATH
50087 IFS=$as_save_IFS
50088 test -z "$as_dir" && as_dir=.
50089 for ac_exec_ext in '' $ac_executable_extensions; do
50090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50091 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
50092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50093 break 2
50095 done
50096 done
50097 IFS=$as_save_IFS
50101 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
50102 if test -n "$CONFIG_GTK"; then
50103 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
50104 echo "${ECHO_T}$CONFIG_GTK" >&6; }
50105 else
50106 { echo "$as_me:$LINENO: result: no" >&5
50107 echo "${ECHO_T}no" >&6; }
50112 if test -z "$ac_cv_prog_CONFIG_GTK"; then
50113 ac_ct_CONFIG_GTK=$CONFIG_GTK
50114 # Extract the first word of "gtk-config", so it can be a program name with args.
50115 set dummy gtk-config; ac_word=$2
50116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50118 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
50119 echo $ECHO_N "(cached) $ECHO_C" >&6
50120 else
50121 if test -n "$ac_ct_CONFIG_GTK"; then
50122 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
50123 else
50124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50125 for as_dir in $PATH
50127 IFS=$as_save_IFS
50128 test -z "$as_dir" && as_dir=.
50129 for ac_exec_ext in '' $ac_executable_extensions; do
50130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50131 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
50132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50133 break 2
50135 done
50136 done
50137 IFS=$as_save_IFS
50141 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
50142 if test -n "$ac_ct_CONFIG_GTK"; then
50143 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
50144 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
50145 else
50146 { echo "$as_me:$LINENO: result: no" >&5
50147 echo "${ECHO_T}no" >&6; }
50150 if test "x$ac_ct_CONFIG_GTK" = x; then
50151 CONFIG_GTK="No"
50152 else
50153 case $cross_compiling:$ac_tool_warned in
50154 yes:)
50155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50156 whose name does not start with the host triplet. If you think this
50157 configuration is useful to you, please write to autoconf@gnu.org." >&5
50158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50159 whose name does not start with the host triplet. If you think this
50160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50161 ac_tool_warned=yes ;;
50162 esac
50163 CONFIG_GTK=$ac_ct_CONFIG_GTK
50165 else
50166 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
50169 if test ! "x${CONFIG_GTK}" = xNo; then
50170 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
50171 GTK_INCLUDE=$(${CONFIG_GTK} $A)
50172 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
50173 GTK_LIB=$(${CONFIG_GTK} $A)
50174 if test x"" != x ; then
50175 saved_cppflags="${CPPFLAGS}"
50176 if test "x${GTK_DIR}" != "x"; then
50177 GTK_INCLUDE="-I${GTK_DIR}/include"
50179 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
50181 saved_ldflags="${LDFLAGS}"
50182 LDFLAGS="${GTK_LIB}"
50184 cat >conftest.$ac_ext <<_ACEOF
50185 /* confdefs.h. */
50186 _ACEOF
50187 cat confdefs.h >>conftest.$ac_ext
50188 cat >>conftest.$ac_ext <<_ACEOF
50189 /* end confdefs.h. */
50192 main ()
50197 return 0;
50199 _ACEOF
50200 rm -f conftest.$ac_objext conftest$ac_exeext
50201 if { (ac_try="$ac_link"
50202 case "(($ac_try" in
50203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50204 *) ac_try_echo=$ac_try;;
50205 esac
50206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50207 (eval "$ac_link") 2>conftest.er1
50208 ac_status=$?
50209 grep -v '^ *+' conftest.er1 >conftest.err
50210 rm -f conftest.er1
50211 cat conftest.err >&5
50212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213 (exit $ac_status); } && {
50214 test -z "$ac_c_werror_flag" ||
50215 test ! -s conftest.err
50216 } && test -s conftest$ac_exeext &&
50217 $as_test_x conftest$ac_exeext; then
50218 PBX_GTK=1
50220 cat >>confdefs.h <<\_ACEOF
50221 #define HAVE_GTK 1
50222 _ACEOF
50225 else
50226 echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50234 conftest$ac_exeext conftest.$ac_ext
50235 CPPFLAGS="${saved_cppflags}"
50236 LDFLAGS="${saved_ldflags}"
50237 else
50238 PBX_GTK=1
50240 cat >>confdefs.h <<\_ACEOF
50241 #define HAVE_GTK 1
50242 _ACEOF
50249 PBX_GTK2=0
50250 if test -n "$ac_tool_prefix"; then
50251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
50252 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
50253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50255 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
50256 echo $ECHO_N "(cached) $ECHO_C" >&6
50257 else
50258 if test -n "$PKGCONFIG"; then
50259 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
50260 else
50261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50262 for as_dir in $PATH
50264 IFS=$as_save_IFS
50265 test -z "$as_dir" && as_dir=.
50266 for ac_exec_ext in '' $ac_executable_extensions; do
50267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50268 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
50269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50270 break 2
50272 done
50273 done
50274 IFS=$as_save_IFS
50278 PKGCONFIG=$ac_cv_prog_PKGCONFIG
50279 if test -n "$PKGCONFIG"; then
50280 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
50281 echo "${ECHO_T}$PKGCONFIG" >&6; }
50282 else
50283 { echo "$as_me:$LINENO: result: no" >&5
50284 echo "${ECHO_T}no" >&6; }
50289 if test -z "$ac_cv_prog_PKGCONFIG"; then
50290 ac_ct_PKGCONFIG=$PKGCONFIG
50291 # Extract the first word of "pkg-config", so it can be a program name with args.
50292 set dummy pkg-config; ac_word=$2
50293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50295 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
50296 echo $ECHO_N "(cached) $ECHO_C" >&6
50297 else
50298 if test -n "$ac_ct_PKGCONFIG"; then
50299 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
50300 else
50301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50302 for as_dir in $PATH
50304 IFS=$as_save_IFS
50305 test -z "$as_dir" && as_dir=.
50306 for ac_exec_ext in '' $ac_executable_extensions; do
50307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50308 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
50309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50310 break 2
50312 done
50313 done
50314 IFS=$as_save_IFS
50318 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
50319 if test -n "$ac_ct_PKGCONFIG"; then
50320 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
50321 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
50322 else
50323 { echo "$as_me:$LINENO: result: no" >&5
50324 echo "${ECHO_T}no" >&6; }
50327 if test "x$ac_ct_PKGCONFIG" = x; then
50328 PKGCONFIG="No"
50329 else
50330 case $cross_compiling:$ac_tool_warned in
50331 yes:)
50332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50333 whose name does not start with the host triplet. If you think this
50334 configuration is useful to you, please write to autoconf@gnu.org." >&5
50335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50336 whose name does not start with the host triplet. If you think this
50337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50338 ac_tool_warned=yes ;;
50339 esac
50340 PKGCONFIG=$ac_ct_PKGCONFIG
50342 else
50343 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
50346 if test ! "x${PKGCONFIG}" = xNo; then
50347 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
50348 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
50349 PBX_GTK2=1
50351 cat >>confdefs.h <<\_ACEOF
50352 #define HAVE_GTK2 1
50353 _ACEOF
50360 if test "${USE_CURL}" != "no"; then
50361 if test -n "$ac_tool_prefix"; then
50362 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
50363 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
50364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50366 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
50367 echo $ECHO_N "(cached) $ECHO_C" >&6
50368 else
50369 case $CURL_CONFIG in
50370 [\\/]* | ?:[\\/]*)
50371 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
50374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50375 for as_dir in $PATH
50377 IFS=$as_save_IFS
50378 test -z "$as_dir" && as_dir=.
50379 for ac_exec_ext in '' $ac_executable_extensions; do
50380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50381 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50383 break 2
50385 done
50386 done
50387 IFS=$as_save_IFS
50390 esac
50392 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
50393 if test -n "$CURL_CONFIG"; then
50394 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
50395 echo "${ECHO_T}$CURL_CONFIG" >&6; }
50396 else
50397 { echo "$as_me:$LINENO: result: no" >&5
50398 echo "${ECHO_T}no" >&6; }
50403 if test -z "$ac_cv_path_CURL_CONFIG"; then
50404 ac_pt_CURL_CONFIG=$CURL_CONFIG
50405 # Extract the first word of "curl-config", so it can be a program name with args.
50406 set dummy curl-config; ac_word=$2
50407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50409 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
50410 echo $ECHO_N "(cached) $ECHO_C" >&6
50411 else
50412 case $ac_pt_CURL_CONFIG in
50413 [\\/]* | ?:[\\/]*)
50414 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
50417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50418 for as_dir in $PATH
50420 IFS=$as_save_IFS
50421 test -z "$as_dir" && as_dir=.
50422 for ac_exec_ext in '' $ac_executable_extensions; do
50423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50424 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50426 break 2
50428 done
50429 done
50430 IFS=$as_save_IFS
50433 esac
50435 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
50436 if test -n "$ac_pt_CURL_CONFIG"; then
50437 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
50438 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
50439 else
50440 { echo "$as_me:$LINENO: result: no" >&5
50441 echo "${ECHO_T}no" >&6; }
50444 if test "x$ac_pt_CURL_CONFIG" = x; then
50445 CURL_CONFIG="No"
50446 else
50447 case $cross_compiling:$ac_tool_warned in
50448 yes:)
50449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50450 whose name does not start with the host triplet. If you think this
50451 configuration is useful to you, please write to autoconf@gnu.org." >&5
50452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50453 whose name does not start with the host triplet. If you think this
50454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50455 ac_tool_warned=yes ;;
50456 esac
50457 CURL_CONFIG=$ac_pt_CURL_CONFIG
50459 else
50460 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
50463 if test ! x"${CURL_CONFIG}" = xNo; then
50464 # check for version
50465 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
50466 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
50467 CURL_LIB=$(${CURL_CONFIG} --libs)
50469 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
50470 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
50471 saved_cppflags="${CPPFLAGS}"
50472 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
50473 cat >conftest.$ac_ext <<_ACEOF
50474 /* confdefs.h. */
50475 _ACEOF
50476 cat confdefs.h >>conftest.$ac_ext
50477 cat >>conftest.$ac_ext <<_ACEOF
50478 /* end confdefs.h. */
50479 #include <curl/curl.h>
50481 main ()
50483 curl_version();
50485 return 0;
50488 _ACEOF
50489 rm -f conftest.$ac_objext
50490 if { (ac_try="$ac_compile"
50491 case "(($ac_try" in
50492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50493 *) ac_try_echo=$ac_try;;
50494 esac
50495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50496 (eval "$ac_compile") 2>conftest.er1
50497 ac_status=$?
50498 grep -v '^ *+' conftest.er1 >conftest.err
50499 rm -f conftest.er1
50500 cat conftest.err >&5
50501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50502 (exit $ac_status); } && {
50503 test -z "$ac_c_werror_flag" ||
50504 test ! -s conftest.err
50505 } && test -s conftest.$ac_objext; then
50507 { echo "$as_me:$LINENO: result: yes" >&5
50508 echo "${ECHO_T}yes" >&6; }
50509 ac_cv_curl_h="yes"
50511 else
50512 echo "$as_me: failed program was:" >&5
50513 sed 's/^/| /' conftest.$ac_ext >&5
50516 { echo "$as_me:$LINENO: result: no" >&5
50517 echo "${ECHO_T}no" >&6; }
50518 ac_cv_curl_h="no"
50523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50524 CPPFLAGS="${saved_cppflags}"
50525 if test "${ac_cv_curl_h}" = "yes"; then
50526 PBX_CURL=1
50528 cat >>confdefs.h <<\_ACEOF
50529 #define HAVE_CURL 1
50530 _ACEOF
50537 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
50540 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
50541 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
50542 err=0;
50543 for i in ${ac_mandatory_list}; do
50544 eval "a=\${PBX_$i}"
50545 if test "x${a}" = "x1" ; then continue; fi
50546 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
50547 echo "${ECHO_T}fail" >&6; } ; fi
50548 { echo "$as_me:$LINENO: result: " >&5
50549 echo "${ECHO_T}" >&6; }
50550 eval "a=\${${i}_OPTION}"
50551 { echo "$as_me:$LINENO: ***" >&5
50552 echo "$as_me: ***" >&6;}
50553 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
50554 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
50555 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
50556 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
50557 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
50558 echo "$as_me: *** including --without-${a}." >&6;}
50559 err=1
50560 done
50561 if test $err = 1 ; then exit 1; fi
50562 { echo "$as_me:$LINENO: result: ok" >&5
50563 echo "${ECHO_T}ok" >&6; }
50566 cat >confcache <<\_ACEOF
50567 # This file is a shell script that caches the results of configure
50568 # tests run on this system so they can be shared between configure
50569 # scripts and configure runs, see configure's option --config-cache.
50570 # It is not useful on other systems. If it contains results you don't
50571 # want to keep, you may remove or edit it.
50573 # config.status only pays attention to the cache file if you give it
50574 # the --recheck option to rerun configure.
50576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50578 # following values.
50580 _ACEOF
50582 # The following way of writing the cache mishandles newlines in values,
50583 # but we know of no workaround that is simple, portable, and efficient.
50584 # So, we kill variables containing newlines.
50585 # Ultrix sh set writes to stderr and can't be redirected directly,
50586 # and sets the high bit in the cache file unless we assign to the vars.
50588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50589 eval ac_val=\$$ac_var
50590 case $ac_val in #(
50591 *${as_nl}*)
50592 case $ac_var in #(
50593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
50594 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
50595 esac
50596 case $ac_var in #(
50597 _ | IFS | as_nl) ;; #(
50598 *) $as_unset $ac_var ;;
50599 esac ;;
50600 esac
50601 done
50603 (set) 2>&1 |
50604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
50605 *${as_nl}ac_space=\ *)
50606 # `set' does not quote correctly, so add quotes (double-quote
50607 # substitution turns \\\\ into \\, and sed turns \\ into \).
50608 sed -n \
50609 "s/'/'\\\\''/g;
50610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50611 ;; #(
50613 # `set' quotes correctly as required by POSIX, so do not add quotes.
50614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50616 esac |
50617 sort
50619 sed '
50620 /^ac_cv_env_/b end
50621 t clear
50622 :clear
50623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50624 t end
50625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50626 :end' >>confcache
50627 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50628 if test -w "$cache_file"; then
50629 test "x$cache_file" != "x/dev/null" &&
50630 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
50631 echo "$as_me: updating cache $cache_file" >&6;}
50632 cat confcache >$cache_file
50633 else
50634 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
50635 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50638 rm -f confcache
50640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50641 # Let make expand exec_prefix.
50642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50644 DEFS=-DHAVE_CONFIG_H
50646 ac_libobjs=
50647 ac_ltlibobjs=
50648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50649 # 1. Remove the extension, and $U if already installed.
50650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50651 ac_i=`echo "$ac_i" | sed "$ac_script"`
50652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
50653 # will be set to the directory where LIBOBJS objects are built.
50654 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50655 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50656 done
50657 LIBOBJS=$ac_libobjs
50659 LTLIBOBJS=$ac_ltlibobjs
50663 : ${CONFIG_STATUS=./config.status}
50664 ac_clean_files_save=$ac_clean_files
50665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50666 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50667 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50668 cat >$CONFIG_STATUS <<_ACEOF
50669 #! $SHELL
50670 # Generated by $as_me.
50671 # Run this file to recreate the current configuration.
50672 # Compiler output produced by configure, useful for debugging
50673 # configure, is in config.log if it exists.
50675 debug=false
50676 ac_cs_recheck=false
50677 ac_cs_silent=false
50678 SHELL=\${CONFIG_SHELL-$SHELL}
50679 _ACEOF
50681 cat >>$CONFIG_STATUS <<\_ACEOF
50682 ## --------------------- ##
50683 ## M4sh Initialization. ##
50684 ## --------------------- ##
50686 # Be more Bourne compatible
50687 DUALCASE=1; export DUALCASE # for MKS sh
50688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50689 emulate sh
50690 NULLCMD=:
50691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50692 # is contrary to our usage. Disable this feature.
50693 alias -g '${1+"$@"}'='"$@"'
50694 setopt NO_GLOB_SUBST
50695 else
50696 case `(set -o) 2>/dev/null` in
50697 *posix*) set -o posix ;;
50698 esac
50705 # PATH needs CR
50706 # Avoid depending upon Character Ranges.
50707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50710 as_cr_digits='0123456789'
50711 as_cr_alnum=$as_cr_Letters$as_cr_digits
50713 # The user is always right.
50714 if test "${PATH_SEPARATOR+set}" != set; then
50715 echo "#! /bin/sh" >conf$$.sh
50716 echo "exit 0" >>conf$$.sh
50717 chmod +x conf$$.sh
50718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50719 PATH_SEPARATOR=';'
50720 else
50721 PATH_SEPARATOR=:
50723 rm -f conf$$.sh
50726 # Support unset when possible.
50727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50728 as_unset=unset
50729 else
50730 as_unset=false
50734 # IFS
50735 # We need space, tab and new line, in precisely that order. Quoting is
50736 # there to prevent editors from complaining about space-tab.
50737 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50738 # splitting by setting IFS to empty value.)
50739 as_nl='
50741 IFS=" "" $as_nl"
50743 # Find who we are. Look in the path if we contain no directory separator.
50744 case $0 in
50745 *[\\/]* ) as_myself=$0 ;;
50746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50747 for as_dir in $PATH
50749 IFS=$as_save_IFS
50750 test -z "$as_dir" && as_dir=.
50751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50752 done
50753 IFS=$as_save_IFS
50756 esac
50757 # We did not find ourselves, most probably we were run as `sh COMMAND'
50758 # in which case we are not to be found in the path.
50759 if test "x$as_myself" = x; then
50760 as_myself=$0
50762 if test ! -f "$as_myself"; then
50763 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50764 { (exit 1); exit 1; }
50767 # Work around bugs in pre-3.0 UWIN ksh.
50768 for as_var in ENV MAIL MAILPATH
50769 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50770 done
50771 PS1='$ '
50772 PS2='> '
50773 PS4='+ '
50775 # NLS nuisances.
50776 for as_var in \
50777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50779 LC_TELEPHONE LC_TIME
50781 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50782 eval $as_var=C; export $as_var
50783 else
50784 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50786 done
50788 # Required to use basename.
50789 if expr a : '\(a\)' >/dev/null 2>&1 &&
50790 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50791 as_expr=expr
50792 else
50793 as_expr=false
50796 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50797 as_basename=basename
50798 else
50799 as_basename=false
50803 # Name of the executable.
50804 as_me=`$as_basename -- "$0" ||
50805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50806 X"$0" : 'X\(//\)$' \| \
50807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50808 echo X/"$0" |
50809 sed '/^.*\/\([^/][^/]*\)\/*$/{
50810 s//\1/
50813 /^X\/\(\/\/\)$/{
50814 s//\1/
50817 /^X\/\(\/\).*/{
50818 s//\1/
50821 s/.*/./; q'`
50823 # CDPATH.
50824 $as_unset CDPATH
50828 as_lineno_1=$LINENO
50829 as_lineno_2=$LINENO
50830 test "x$as_lineno_1" != "x$as_lineno_2" &&
50831 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50834 # uniformly replaced by the line number. The first 'sed' inserts a
50835 # line-number line after each line using $LINENO; the second 'sed'
50836 # does the real work. The second script uses 'N' to pair each
50837 # line-number line with the line containing $LINENO, and appends
50838 # trailing '-' during substitution so that $LINENO is not a special
50839 # case at line end.
50840 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50841 # scripts with optimization help from Paolo Bonzini. Blame Lee
50842 # E. McMahon (1931-1989) for sed's syntax. :-)
50843 sed -n '
50845 /[$]LINENO/=
50846 ' <$as_myself |
50847 sed '
50848 s/[$]LINENO.*/&-/
50849 t lineno
50851 :lineno
50853 :loop
50854 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50855 t loop
50856 s/-\n.*//
50857 ' >$as_me.lineno &&
50858 chmod +x "$as_me.lineno" ||
50859 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50860 { (exit 1); exit 1; }; }
50862 # Don't try to exec as it changes $[0], causing all sort of problems
50863 # (the dirname of $[0] is not the place where we might find the
50864 # original and so on. Autoconf is especially sensitive to this).
50865 . "./$as_me.lineno"
50866 # Exit status is that of the last command.
50867 exit
50871 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50872 as_dirname=dirname
50873 else
50874 as_dirname=false
50877 ECHO_C= ECHO_N= ECHO_T=
50878 case `echo -n x` in
50879 -n*)
50880 case `echo 'x\c'` in
50881 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
50882 *) ECHO_C='\c';;
50883 esac;;
50885 ECHO_N='-n';;
50886 esac
50888 if expr a : '\(a\)' >/dev/null 2>&1 &&
50889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50890 as_expr=expr
50891 else
50892 as_expr=false
50895 rm -f conf$$ conf$$.exe conf$$.file
50896 if test -d conf$$.dir; then
50897 rm -f conf$$.dir/conf$$.file
50898 else
50899 rm -f conf$$.dir
50900 mkdir conf$$.dir
50902 echo >conf$$.file
50903 if ln -s conf$$.file conf$$ 2>/dev/null; then
50904 as_ln_s='ln -s'
50905 # ... but there are two gotchas:
50906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50908 # In both cases, we have to default to `cp -p'.
50909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50910 as_ln_s='cp -p'
50911 elif ln conf$$.file conf$$ 2>/dev/null; then
50912 as_ln_s=ln
50913 else
50914 as_ln_s='cp -p'
50916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50917 rmdir conf$$.dir 2>/dev/null
50919 if mkdir -p . 2>/dev/null; then
50920 as_mkdir_p=:
50921 else
50922 test -d ./-p && rmdir ./-p
50923 as_mkdir_p=false
50926 if test -x / >/dev/null 2>&1; then
50927 as_test_x='test -x'
50928 else
50929 if ls -dL / >/dev/null 2>&1; then
50930 as_ls_L_option=L
50931 else
50932 as_ls_L_option=
50934 as_test_x='
50935 eval sh -c '\''
50936 if test -d "$1"; then
50937 test -d "$1/.";
50938 else
50939 case $1 in
50940 -*)set "./$1";;
50941 esac;
50942 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50943 ???[sx]*):;;*)false;;esac;fi
50944 '\'' sh
50947 as_executable_p=$as_test_x
50949 # Sed expression to map a string onto a valid CPP name.
50950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50952 # Sed expression to map a string onto a valid variable name.
50953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50956 exec 6>&1
50958 # Save the log message, to keep $[0] and so on meaningful, and to
50959 # report actual input values of CONFIG_FILES etc. instead of their
50960 # values after options handling.
50961 ac_log="
50962 This file was extended by asterisk $as_me 1.6, which was
50963 generated by GNU Autoconf 2.61. Invocation command line was
50965 CONFIG_FILES = $CONFIG_FILES
50966 CONFIG_HEADERS = $CONFIG_HEADERS
50967 CONFIG_LINKS = $CONFIG_LINKS
50968 CONFIG_COMMANDS = $CONFIG_COMMANDS
50969 $ $0 $@
50971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50974 _ACEOF
50976 cat >>$CONFIG_STATUS <<_ACEOF
50977 # Files that config.status was made for.
50978 config_files="$ac_config_files"
50979 config_headers="$ac_config_headers"
50981 _ACEOF
50983 cat >>$CONFIG_STATUS <<\_ACEOF
50984 ac_cs_usage="\
50985 \`$as_me' instantiates files from templates according to the
50986 current configuration.
50988 Usage: $0 [OPTIONS] [FILE]...
50990 -h, --help print this help, then exit
50991 -V, --version print version number and configuration settings, then exit
50992 -q, --quiet do not print progress messages
50993 -d, --debug don't remove temporary files
50994 --recheck update $as_me by reconfiguring in the same conditions
50995 --file=FILE[:TEMPLATE]
50996 instantiate the configuration file FILE
50997 --header=FILE[:TEMPLATE]
50998 instantiate the configuration header FILE
51000 Configuration files:
51001 $config_files
51003 Configuration headers:
51004 $config_headers
51006 Report bugs to <bug-autoconf@gnu.org>."
51008 _ACEOF
51009 cat >>$CONFIG_STATUS <<_ACEOF
51010 ac_cs_version="\\
51011 asterisk config.status 1.6
51012 configured by $0, generated by GNU Autoconf 2.61,
51013 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51015 Copyright (C) 2006 Free Software Foundation, Inc.
51016 This config.status script is free software; the Free Software Foundation
51017 gives unlimited permission to copy, distribute and modify it."
51019 ac_pwd='$ac_pwd'
51020 srcdir='$srcdir'
51021 INSTALL='$INSTALL'
51022 _ACEOF
51024 cat >>$CONFIG_STATUS <<\_ACEOF
51025 # If no file are specified by the user, then we need to provide default
51026 # value. By we need to know if files were specified by the user.
51027 ac_need_defaults=:
51028 while test $# != 0
51030 case $1 in
51031 --*=*)
51032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
51033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51034 ac_shift=:
51037 ac_option=$1
51038 ac_optarg=$2
51039 ac_shift=shift
51041 esac
51043 case $ac_option in
51044 # Handling of the options.
51045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51046 ac_cs_recheck=: ;;
51047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51048 echo "$ac_cs_version"; exit ;;
51049 --debug | --debu | --deb | --de | --d | -d )
51050 debug=: ;;
51051 --file | --fil | --fi | --f )
51052 $ac_shift
51053 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51054 ac_need_defaults=false;;
51055 --header | --heade | --head | --hea )
51056 $ac_shift
51057 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51058 ac_need_defaults=false;;
51059 --he | --h)
51060 # Conflict between --help and --header
51061 { echo "$as_me: error: ambiguous option: $1
51062 Try \`$0 --help' for more information." >&2
51063 { (exit 1); exit 1; }; };;
51064 --help | --hel | -h )
51065 echo "$ac_cs_usage"; exit ;;
51066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51068 ac_cs_silent=: ;;
51070 # This is an error.
51071 -*) { echo "$as_me: error: unrecognized option: $1
51072 Try \`$0 --help' for more information." >&2
51073 { (exit 1); exit 1; }; } ;;
51075 *) ac_config_targets="$ac_config_targets $1"
51076 ac_need_defaults=false ;;
51078 esac
51079 shift
51080 done
51082 ac_configure_extra_args=
51084 if $ac_cs_silent; then
51085 exec 6>/dev/null
51086 ac_configure_extra_args="$ac_configure_extra_args --silent"
51089 _ACEOF
51090 cat >>$CONFIG_STATUS <<_ACEOF
51091 if \$ac_cs_recheck; then
51092 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51093 CONFIG_SHELL=$SHELL
51094 export CONFIG_SHELL
51095 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51098 _ACEOF
51099 cat >>$CONFIG_STATUS <<\_ACEOF
51100 exec 5>>config.log
51102 echo
51103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51104 ## Running $as_me. ##
51105 _ASBOX
51106 echo "$ac_log"
51107 } >&5
51109 _ACEOF
51110 cat >>$CONFIG_STATUS <<_ACEOF
51111 _ACEOF
51113 cat >>$CONFIG_STATUS <<\_ACEOF
51115 # Handling of arguments.
51116 for ac_config_target in $ac_config_targets
51118 case $ac_config_target in
51119 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
51120 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
51121 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
51122 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
51124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51126 { (exit 1); exit 1; }; };;
51127 esac
51128 done
51131 # If the user did not use the arguments to specify the items to instantiate,
51132 # then the envvar interface is used. Set only those that are not.
51133 # We use the long form for the default assignment because of an extremely
51134 # bizarre bug on SunOS 4.1.3.
51135 if $ac_need_defaults; then
51136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51140 # Have a temporary directory for convenience. Make it in the build tree
51141 # simply because there is no reason against having it here, and in addition,
51142 # creating and moving files from /tmp can sometimes cause problems.
51143 # Hook for its removal unless debugging.
51144 # Note that there is a small window in which the directory will not be cleaned:
51145 # after its creation but before its name has been assigned to `$tmp'.
51146 $debug ||
51148 tmp=
51149 trap 'exit_status=$?
51150 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51152 trap '{ (exit 1); exit 1; }' 1 2 13 15
51154 # Create a (secure) tmp directory for tmp files.
51157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51158 test -n "$tmp" && test -d "$tmp"
51159 } ||
51161 tmp=./conf$$-$RANDOM
51162 (umask 077 && mkdir "$tmp")
51163 } ||
51165 echo "$me: cannot create a temporary directory in ." >&2
51166 { (exit 1); exit 1; }
51170 # Set up the sed scripts for CONFIG_FILES section.
51173 # No need to generate the scripts if there are no CONFIG_FILES.
51174 # This happens for instance when ./config.status config.h
51175 if test -n "$CONFIG_FILES"; then
51177 _ACEOF
51181 ac_delim='%!_!# '
51182 for ac_last_try in false false false false false :; do
51183 cat >conf$$subs.sed <<_ACEOF
51184 SHELL!$SHELL$ac_delim
51185 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51186 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51187 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51188 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51189 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51190 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51191 exec_prefix!$exec_prefix$ac_delim
51192 prefix!$prefix$ac_delim
51193 program_transform_name!$program_transform_name$ac_delim
51194 bindir!$bindir$ac_delim
51195 sbindir!$sbindir$ac_delim
51196 libexecdir!$libexecdir$ac_delim
51197 datarootdir!$datarootdir$ac_delim
51198 datadir!$datadir$ac_delim
51199 sysconfdir!$sysconfdir$ac_delim
51200 sharedstatedir!$sharedstatedir$ac_delim
51201 localstatedir!$localstatedir$ac_delim
51202 includedir!$includedir$ac_delim
51203 oldincludedir!$oldincludedir$ac_delim
51204 docdir!$docdir$ac_delim
51205 infodir!$infodir$ac_delim
51206 htmldir!$htmldir$ac_delim
51207 dvidir!$dvidir$ac_delim
51208 pdfdir!$pdfdir$ac_delim
51209 psdir!$psdir$ac_delim
51210 libdir!$libdir$ac_delim
51211 localedir!$localedir$ac_delim
51212 mandir!$mandir$ac_delim
51213 DEFS!$DEFS$ac_delim
51214 ECHO_C!$ECHO_C$ac_delim
51215 ECHO_N!$ECHO_N$ac_delim
51216 ECHO_T!$ECHO_T$ac_delim
51217 LIBS!$LIBS$ac_delim
51218 build_alias!$build_alias$ac_delim
51219 host_alias!$host_alias$ac_delim
51220 target_alias!$target_alias$ac_delim
51221 build!$build$ac_delim
51222 build_cpu!$build_cpu$ac_delim
51223 build_vendor!$build_vendor$ac_delim
51224 build_os!$build_os$ac_delim
51225 host!$host$ac_delim
51226 host_cpu!$host_cpu$ac_delim
51227 host_vendor!$host_vendor$ac_delim
51228 host_os!$host_os$ac_delim
51229 CC!$CC$ac_delim
51230 CFLAGS!$CFLAGS$ac_delim
51231 LDFLAGS!$LDFLAGS$ac_delim
51232 CPPFLAGS!$CPPFLAGS$ac_delim
51233 ac_ct_CC!$ac_ct_CC$ac_delim
51234 EXEEXT!$EXEEXT$ac_delim
51235 OBJEXT!$OBJEXT$ac_delim
51236 CPP!$CPP$ac_delim
51237 GREP!$GREP$ac_delim
51238 EGREP!$EGREP$ac_delim
51239 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
51240 BUILD_CPU!$BUILD_CPU$ac_delim
51241 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
51242 BUILD_OS!$BUILD_OS$ac_delim
51243 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
51244 HOST_CPU!$HOST_CPU$ac_delim
51245 HOST_VENDOR!$HOST_VENDOR$ac_delim
51246 HOST_OS!$HOST_OS$ac_delim
51247 OSARCH!$OSARCH$ac_delim
51248 WINARCH!$WINARCH$ac_delim
51249 UNAME!$UNAME$ac_delim
51250 PBX_OSREV!$PBX_OSREV$ac_delim
51251 CXX!$CXX$ac_delim
51252 LD!$LD$ac_delim
51253 RANLIB!$RANLIB$ac_delim
51254 CXXFLAGS!$CXXFLAGS$ac_delim
51255 ac_ct_CXX!$ac_ct_CXX$ac_delim
51256 CXXCPP!$CXXCPP$ac_delim
51257 SED!$SED$ac_delim
51258 AWK!$AWK$ac_delim
51259 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51260 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51261 INSTALL_DATA!$INSTALL_DATA$ac_delim
51262 LN_S!$LN_S$ac_delim
51263 GNU_MAKE!$GNU_MAKE$ac_delim
51264 STRIP!$STRIP$ac_delim
51265 AR!$AR$ac_delim
51266 GNU_LD!$GNU_LD$ac_delim
51267 FIND!$FIND$ac_delim
51268 COMPRESS!$COMPRESS$ac_delim
51269 BASENAME!$BASENAME$ac_delim
51270 ID!$ID$ac_delim
51271 DIRNAME!$DIRNAME$ac_delim
51272 LN!$LN$ac_delim
51273 DOT!$DOT$ac_delim
51274 WGET!$WGET$ac_delim
51275 RUBBER!$RUBBER$ac_delim
51276 KPATHSEA!$KPATHSEA$ac_delim
51277 FETCH!$FETCH$ac_delim
51278 DOWNLOAD!$DOWNLOAD$ac_delim
51279 SOXMIX!$SOXMIX$ac_delim
51280 acx_pthread_config!$acx_pthread_config$ac_delim
51281 _ACEOF
51283 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51284 break
51285 elif $ac_last_try; then
51286 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51287 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51288 { (exit 1); exit 1; }; }
51289 else
51290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51292 done
51294 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51295 if test -n "$ac_eof"; then
51296 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51297 ac_eof=`expr $ac_eof + 1`
51300 cat >>$CONFIG_STATUS <<_ACEOF
51301 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51303 _ACEOF
51304 sed '
51305 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51306 s/^/s,@/; s/!/@,|#_!!_#|/
51309 s/'"$ac_delim"'$/,g/; t
51310 s/$/\\/; p
51311 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51312 ' >>$CONFIG_STATUS <conf$$subs.sed
51313 rm -f conf$$subs.sed
51314 cat >>$CONFIG_STATUS <<_ACEOF
51315 CEOF$ac_eof
51316 _ACEOF
51319 ac_delim='%!_!# '
51320 for ac_last_try in false false false false false :; do
51321 cat >conf$$subs.sed <<_ACEOF
51322 PTHREAD_CC!$PTHREAD_CC$ac_delim
51323 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
51324 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
51325 AST_DEVMODE!$AST_DEVMODE$ac_delim
51326 ALSA_LIB!$ALSA_LIB$ac_delim
51327 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
51328 ALSA_DIR!$ALSA_DIR$ac_delim
51329 PBX_ALSA!$PBX_ALSA$ac_delim
51330 BKTR_LIB!$BKTR_LIB$ac_delim
51331 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
51332 BKTR_DIR!$BKTR_DIR$ac_delim
51333 PBX_BKTR!$PBX_BKTR$ac_delim
51334 CAP_LIB!$CAP_LIB$ac_delim
51335 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
51336 CAP_DIR!$CAP_DIR$ac_delim
51337 PBX_CAP!$PBX_CAP$ac_delim
51338 CURL_LIB!$CURL_LIB$ac_delim
51339 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
51340 CURL_DIR!$CURL_DIR$ac_delim
51341 PBX_CURL!$PBX_CURL$ac_delim
51342 CURSES_LIB!$CURSES_LIB$ac_delim
51343 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
51344 CURSES_DIR!$CURSES_DIR$ac_delim
51345 PBX_CURSES!$PBX_CURSES$ac_delim
51346 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
51347 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
51348 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
51349 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
51350 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
51351 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
51352 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
51353 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
51354 GSM_LIB!$GSM_LIB$ac_delim
51355 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
51356 GSM_DIR!$GSM_DIR$ac_delim
51357 PBX_GSM!$PBX_GSM$ac_delim
51358 GTK_LIB!$GTK_LIB$ac_delim
51359 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
51360 GTK_DIR!$GTK_DIR$ac_delim
51361 PBX_GTK!$PBX_GTK$ac_delim
51362 GTK2_LIB!$GTK2_LIB$ac_delim
51363 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
51364 GTK2_DIR!$GTK2_DIR$ac_delim
51365 PBX_GTK2!$PBX_GTK2$ac_delim
51366 GMIME_LIB!$GMIME_LIB$ac_delim
51367 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
51368 GMIME_DIR!$GMIME_DIR$ac_delim
51369 PBX_GMIME!$PBX_GMIME$ac_delim
51370 ICONV_LIB!$ICONV_LIB$ac_delim
51371 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
51372 ICONV_DIR!$ICONV_DIR$ac_delim
51373 PBX_ICONV!$PBX_ICONV$ac_delim
51374 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
51375 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
51376 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
51377 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
51378 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
51379 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
51380 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
51381 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
51382 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
51383 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
51384 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
51385 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
51386 JACK_LIB!$JACK_LIB$ac_delim
51387 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
51388 JACK_DIR!$JACK_DIR$ac_delim
51389 PBX_JACK!$PBX_JACK$ac_delim
51390 LDAP_LIB!$LDAP_LIB$ac_delim
51391 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
51392 LDAP_DIR!$LDAP_DIR$ac_delim
51393 PBX_LDAP!$PBX_LDAP$ac_delim
51394 LTDL_LIB!$LTDL_LIB$ac_delim
51395 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
51396 LTDL_DIR!$LTDL_DIR$ac_delim
51397 PBX_LTDL!$PBX_LTDL$ac_delim
51398 LUA_LIB!$LUA_LIB$ac_delim
51399 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
51400 LUA_DIR!$LUA_DIR$ac_delim
51401 PBX_LUA!$PBX_LUA$ac_delim
51402 MISDN_LIB!$MISDN_LIB$ac_delim
51403 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
51404 MISDN_DIR!$MISDN_DIR$ac_delim
51405 PBX_MISDN!$PBX_MISDN$ac_delim
51406 NBS_LIB!$NBS_LIB$ac_delim
51407 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
51408 NBS_DIR!$NBS_DIR$ac_delim
51409 PBX_NBS!$PBX_NBS$ac_delim
51410 NCURSES_LIB!$NCURSES_LIB$ac_delim
51411 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
51412 NCURSES_DIR!$NCURSES_DIR$ac_delim
51413 PBX_NCURSES!$PBX_NCURSES$ac_delim
51414 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
51415 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
51416 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
51417 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
51418 NEWT_LIB!$NEWT_LIB$ac_delim
51419 _ACEOF
51421 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51422 break
51423 elif $ac_last_try; then
51424 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51425 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51426 { (exit 1); exit 1; }; }
51427 else
51428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51430 done
51432 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51433 if test -n "$ac_eof"; then
51434 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51435 ac_eof=`expr $ac_eof + 1`
51438 cat >>$CONFIG_STATUS <<_ACEOF
51439 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
51440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51441 _ACEOF
51442 sed '
51443 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51444 s/^/s,@/; s/!/@,|#_!!_#|/
51447 s/'"$ac_delim"'$/,g/; t
51448 s/$/\\/; p
51449 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51450 ' >>$CONFIG_STATUS <conf$$subs.sed
51451 rm -f conf$$subs.sed
51452 cat >>$CONFIG_STATUS <<_ACEOF
51453 CEOF$ac_eof
51454 _ACEOF
51457 ac_delim='%!_!# '
51458 for ac_last_try in false false false false false :; do
51459 cat >conf$$subs.sed <<_ACEOF
51460 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
51461 NEWT_DIR!$NEWT_DIR$ac_delim
51462 PBX_NEWT!$PBX_NEWT$ac_delim
51463 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
51464 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
51465 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
51466 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
51467 OGG_LIB!$OGG_LIB$ac_delim
51468 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
51469 OGG_DIR!$OGG_DIR$ac_delim
51470 PBX_OGG!$PBX_OGG$ac_delim
51471 OSPTK_LIB!$OSPTK_LIB$ac_delim
51472 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
51473 OSPTK_DIR!$OSPTK_DIR$ac_delim
51474 PBX_OSPTK!$PBX_OSPTK$ac_delim
51475 OSS_LIB!$OSS_LIB$ac_delim
51476 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
51477 OSS_DIR!$OSS_DIR$ac_delim
51478 PBX_OSS!$PBX_OSS$ac_delim
51479 PGSQL_LIB!$PGSQL_LIB$ac_delim
51480 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
51481 PGSQL_DIR!$PGSQL_DIR$ac_delim
51482 PBX_PGSQL!$PBX_PGSQL$ac_delim
51483 POPT_LIB!$POPT_LIB$ac_delim
51484 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
51485 POPT_DIR!$POPT_DIR$ac_delim
51486 PBX_POPT!$PBX_POPT$ac_delim
51487 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
51488 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
51489 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
51490 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
51491 PRI_LIB!$PRI_LIB$ac_delim
51492 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
51493 PRI_DIR!$PRI_DIR$ac_delim
51494 PBX_PRI!$PBX_PRI$ac_delim
51495 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
51496 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
51497 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
51498 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
51499 SS7_LIB!$SS7_LIB$ac_delim
51500 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
51501 SS7_DIR!$SS7_DIR$ac_delim
51502 PBX_SS7!$PBX_SS7$ac_delim
51503 PWLIB_LIB!$PWLIB_LIB$ac_delim
51504 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
51505 PWLIB_DIR!$PWLIB_DIR$ac_delim
51506 PBX_PWLIB!$PBX_PWLIB$ac_delim
51507 OPENH323_LIB!$OPENH323_LIB$ac_delim
51508 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
51509 OPENH323_DIR!$OPENH323_DIR$ac_delim
51510 PBX_OPENH323!$PBX_OPENH323$ac_delim
51511 RADIUS_LIB!$RADIUS_LIB$ac_delim
51512 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
51513 RADIUS_DIR!$RADIUS_DIR$ac_delim
51514 PBX_RADIUS!$PBX_RADIUS$ac_delim
51515 SDL_LIB!$SDL_LIB$ac_delim
51516 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
51517 SDL_DIR!$SDL_DIR$ac_delim
51518 PBX_SDL!$PBX_SDL$ac_delim
51519 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
51520 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
51521 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
51522 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
51523 SPEEX_LIB!$SPEEX_LIB$ac_delim
51524 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
51525 SPEEX_DIR!$SPEEX_DIR$ac_delim
51526 PBX_SPEEX!$PBX_SPEEX$ac_delim
51527 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
51528 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
51529 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
51530 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
51531 SQLITE_LIB!$SQLITE_LIB$ac_delim
51532 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
51533 SQLITE_DIR!$SQLITE_DIR$ac_delim
51534 PBX_SQLITE!$PBX_SQLITE$ac_delim
51535 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
51536 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
51537 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
51538 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
51539 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
51540 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
51541 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
51542 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
51543 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
51544 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
51545 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
51546 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
51547 FREETDS_LIB!$FREETDS_LIB$ac_delim
51548 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
51549 FREETDS_DIR!$FREETDS_DIR$ac_delim
51550 PBX_FREETDS!$PBX_FREETDS$ac_delim
51551 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
51552 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
51553 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
51554 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
51555 TINFO_LIB!$TINFO_LIB$ac_delim
51556 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
51557 _ACEOF
51559 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51560 break
51561 elif $ac_last_try; then
51562 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51563 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51564 { (exit 1); exit 1; }; }
51565 else
51566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51568 done
51570 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51571 if test -n "$ac_eof"; then
51572 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51573 ac_eof=`expr $ac_eof + 1`
51576 cat >>$CONFIG_STATUS <<_ACEOF
51577 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
51578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51579 _ACEOF
51580 sed '
51581 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51582 s/^/s,@/; s/!/@,|#_!!_#|/
51585 s/'"$ac_delim"'$/,g/; t
51586 s/$/\\/; p
51587 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51588 ' >>$CONFIG_STATUS <conf$$subs.sed
51589 rm -f conf$$subs.sed
51590 cat >>$CONFIG_STATUS <<_ACEOF
51591 CEOF$ac_eof
51592 _ACEOF
51595 ac_delim='%!_!# '
51596 for ac_last_try in false false false false false :; do
51597 cat >conf$$subs.sed <<_ACEOF
51598 TINFO_DIR!$TINFO_DIR$ac_delim
51599 PBX_TINFO!$PBX_TINFO$ac_delim
51600 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
51601 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
51602 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
51603 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
51604 USB_LIB!$USB_LIB$ac_delim
51605 USB_INCLUDE!$USB_INCLUDE$ac_delim
51606 USB_DIR!$USB_DIR$ac_delim
51607 PBX_USB!$PBX_USB$ac_delim
51608 VORBIS_LIB!$VORBIS_LIB$ac_delim
51609 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
51610 VORBIS_DIR!$VORBIS_DIR$ac_delim
51611 PBX_VORBIS!$PBX_VORBIS$ac_delim
51612 VPB_LIB!$VPB_LIB$ac_delim
51613 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
51614 VPB_DIR!$VPB_DIR$ac_delim
51615 PBX_VPB!$PBX_VPB$ac_delim
51616 X11_LIB!$X11_LIB$ac_delim
51617 X11_INCLUDE!$X11_INCLUDE$ac_delim
51618 X11_DIR!$X11_DIR$ac_delim
51619 PBX_X11!$PBX_X11$ac_delim
51620 ZLIB_LIB!$ZLIB_LIB$ac_delim
51621 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
51622 ZLIB_DIR!$ZLIB_DIR$ac_delim
51623 PBX_ZLIB!$PBX_ZLIB$ac_delim
51624 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
51625 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
51626 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
51627 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
51628 ALLOCA!$ALLOCA$ac_delim
51629 LIBOBJS!$LIBOBJS$ac_delim
51630 POW_LIB!$POW_LIB$ac_delim
51631 HAS_POLL!$HAS_POLL$ac_delim
51632 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
51633 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
51634 GC_CFLAGS!$GC_CFLAGS$ac_delim
51635 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
51636 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
51637 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
51638 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
51639 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
51640 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
51641 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
51642 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
51643 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
51644 PG_CONFIG!$PG_CONFIG$ac_delim
51645 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
51646 PWLIBDIR!$PWLIBDIR$ac_delim
51647 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
51648 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
51649 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
51650 OPENH323DIR!$OPENH323DIR$ac_delim
51651 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
51652 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
51653 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
51654 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
51655 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
51656 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
51657 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
51658 PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim
51659 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
51660 PBX_ZAPTEL_HWGAIN!$PBX_ZAPTEL_HWGAIN$ac_delim
51661 PBX_ZAPTEL_NEONMWI!$PBX_ZAPTEL_NEONMWI$ac_delim
51662 PBX_ZAPTEL_SIG_MTP2!$PBX_ZAPTEL_SIG_MTP2$ac_delim
51663 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
51664 PBX_H323!$PBX_H323$ac_delim
51665 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
51666 CONFIG_SDL!$CONFIG_SDL$ac_delim
51667 CONFIG_GTK!$CONFIG_GTK$ac_delim
51668 PKGCONFIG!$PKGCONFIG$ac_delim
51669 CURL_CONFIG!$CURL_CONFIG$ac_delim
51670 LTLIBOBJS!$LTLIBOBJS$ac_delim
51671 _ACEOF
51673 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
51674 break
51675 elif $ac_last_try; then
51676 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51677 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51678 { (exit 1); exit 1; }; }
51679 else
51680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51682 done
51684 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51685 if test -n "$ac_eof"; then
51686 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51687 ac_eof=`expr $ac_eof + 1`
51690 cat >>$CONFIG_STATUS <<_ACEOF
51691 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51693 _ACEOF
51694 sed '
51695 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51696 s/^/s,@/; s/!/@,|#_!!_#|/
51699 s/'"$ac_delim"'$/,g/; t
51700 s/$/\\/; p
51701 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51702 ' >>$CONFIG_STATUS <conf$$subs.sed
51703 rm -f conf$$subs.sed
51704 cat >>$CONFIG_STATUS <<_ACEOF
51705 :end
51706 s/|#_!!_#|//g
51707 CEOF$ac_eof
51708 _ACEOF
51711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51713 # trailing colons and then remove the whole line if VPATH becomes empty
51714 # (actually we leave an empty line to preserve line numbers).
51715 if test "x$srcdir" = x.; then
51716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51717 s/:*\$(srcdir):*/:/
51718 s/:*\${srcdir}:*/:/
51719 s/:*@srcdir@:*/:/
51720 s/^\([^=]*=[ ]*\):*/\1/
51721 s/:*$//
51722 s/^[^=]*=[ ]*$//
51726 cat >>$CONFIG_STATUS <<\_ACEOF
51727 fi # test -n "$CONFIG_FILES"
51730 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
51732 case $ac_tag in
51733 :[FHLC]) ac_mode=$ac_tag; continue;;
51734 esac
51735 case $ac_mode$ac_tag in
51736 :[FHL]*:*);;
51737 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51738 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51739 { (exit 1); exit 1; }; };;
51740 :[FH]-) ac_tag=-:-;;
51741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51742 esac
51743 ac_save_IFS=$IFS
51744 IFS=:
51745 set x $ac_tag
51746 IFS=$ac_save_IFS
51747 shift
51748 ac_file=$1
51749 shift
51751 case $ac_mode in
51752 :L) ac_source=$1;;
51753 :[FH])
51754 ac_file_inputs=
51755 for ac_f
51757 case $ac_f in
51758 -) ac_f="$tmp/stdin";;
51759 *) # Look for the file first in the build tree, then in the source tree
51760 # (if the path is not absolute). The absolute path cannot be DOS-style,
51761 # because $ac_f cannot contain `:'.
51762 test -f "$ac_f" ||
51763 case $ac_f in
51764 [\\/$]*) false;;
51765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51766 esac ||
51767 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51768 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51769 { (exit 1); exit 1; }; };;
51770 esac
51771 ac_file_inputs="$ac_file_inputs $ac_f"
51772 done
51774 # Let's still pretend it is `configure' which instantiates (i.e., don't
51775 # use $as_me), people would be surprised to read:
51776 # /* config.h. Generated by config.status. */
51777 configure_input="Generated from "`IFS=:
51778 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51779 if test x"$ac_file" != x-; then
51780 configure_input="$ac_file. $configure_input"
51781 { echo "$as_me:$LINENO: creating $ac_file" >&5
51782 echo "$as_me: creating $ac_file" >&6;}
51785 case $ac_tag in
51786 *:-:* | *:-) cat >"$tmp/stdin";;
51787 esac
51789 esac
51791 ac_dir=`$as_dirname -- "$ac_file" ||
51792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51793 X"$ac_file" : 'X\(//\)[^/]' \| \
51794 X"$ac_file" : 'X\(//\)$' \| \
51795 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51796 echo X"$ac_file" |
51797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51798 s//\1/
51801 /^X\(\/\/\)[^/].*/{
51802 s//\1/
51805 /^X\(\/\/\)$/{
51806 s//\1/
51809 /^X\(\/\).*/{
51810 s//\1/
51813 s/.*/./; q'`
51814 { as_dir="$ac_dir"
51815 case $as_dir in #(
51816 -*) as_dir=./$as_dir;;
51817 esac
51818 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51819 as_dirs=
51820 while :; do
51821 case $as_dir in #(
51822 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51823 *) as_qdir=$as_dir;;
51824 esac
51825 as_dirs="'$as_qdir' $as_dirs"
51826 as_dir=`$as_dirname -- "$as_dir" ||
51827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51828 X"$as_dir" : 'X\(//\)[^/]' \| \
51829 X"$as_dir" : 'X\(//\)$' \| \
51830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51831 echo X"$as_dir" |
51832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51833 s//\1/
51836 /^X\(\/\/\)[^/].*/{
51837 s//\1/
51840 /^X\(\/\/\)$/{
51841 s//\1/
51844 /^X\(\/\).*/{
51845 s//\1/
51848 s/.*/./; q'`
51849 test -d "$as_dir" && break
51850 done
51851 test -z "$as_dirs" || eval "mkdir $as_dirs"
51852 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51853 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51854 { (exit 1); exit 1; }; }; }
51855 ac_builddir=.
51857 case "$ac_dir" in
51858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51861 # A ".." for each directory in $ac_dir_suffix.
51862 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51863 case $ac_top_builddir_sub in
51864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51866 esac ;;
51867 esac
51868 ac_abs_top_builddir=$ac_pwd
51869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51870 # for backward compatibility:
51871 ac_top_builddir=$ac_top_build_prefix
51873 case $srcdir in
51874 .) # We are building in place.
51875 ac_srcdir=.
51876 ac_top_srcdir=$ac_top_builddir_sub
51877 ac_abs_top_srcdir=$ac_pwd ;;
51878 [\\/]* | ?:[\\/]* ) # Absolute name.
51879 ac_srcdir=$srcdir$ac_dir_suffix;
51880 ac_top_srcdir=$srcdir
51881 ac_abs_top_srcdir=$srcdir ;;
51882 *) # Relative name.
51883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51884 ac_top_srcdir=$ac_top_build_prefix$srcdir
51885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51886 esac
51887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51890 case $ac_mode in
51893 # CONFIG_FILE
51896 case $INSTALL in
51897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51899 esac
51900 _ACEOF
51902 cat >>$CONFIG_STATUS <<\_ACEOF
51903 # If the template does not know about datarootdir, expand it.
51904 # FIXME: This hack should be removed a few years after 2.60.
51905 ac_datarootdir_hack=; ac_datarootdir_seen=
51907 case `sed -n '/datarootdir/ {
51911 /@datadir@/p
51912 /@docdir@/p
51913 /@infodir@/p
51914 /@localedir@/p
51915 /@mandir@/p
51916 ' $ac_file_inputs` in
51917 *datarootdir*) ac_datarootdir_seen=yes;;
51918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51919 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51920 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51921 _ACEOF
51922 cat >>$CONFIG_STATUS <<_ACEOF
51923 ac_datarootdir_hack='
51924 s&@datadir@&$datadir&g
51925 s&@docdir@&$docdir&g
51926 s&@infodir@&$infodir&g
51927 s&@localedir@&$localedir&g
51928 s&@mandir@&$mandir&g
51929 s&\\\${datarootdir}&$datarootdir&g' ;;
51930 esac
51931 _ACEOF
51933 # Neutralize VPATH when `$srcdir' = `.'.
51934 # Shell code in configure.ac might set extrasub.
51935 # FIXME: do we really want to maintain this feature?
51936 cat >>$CONFIG_STATUS <<_ACEOF
51937 sed "$ac_vpsub
51938 $extrasub
51939 _ACEOF
51940 cat >>$CONFIG_STATUS <<\_ACEOF
51942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51943 s&@configure_input@&$configure_input&;t t
51944 s&@top_builddir@&$ac_top_builddir_sub&;t t
51945 s&@srcdir@&$ac_srcdir&;t t
51946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51947 s&@top_srcdir@&$ac_top_srcdir&;t t
51948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51949 s&@builddir@&$ac_builddir&;t t
51950 s&@abs_builddir@&$ac_abs_builddir&;t t
51951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51952 s&@INSTALL@&$ac_INSTALL&;t t
51953 $ac_datarootdir_hack
51954 " $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
51956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51957 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51959 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51960 which seems to be undefined. Please make sure it is defined." >&5
51961 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51962 which seems to be undefined. Please make sure it is defined." >&2;}
51964 rm -f "$tmp/stdin"
51965 case $ac_file in
51966 -) cat "$tmp/out"; rm -f "$tmp/out";;
51967 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51968 esac
51972 # CONFIG_HEADER
51974 _ACEOF
51976 # Transform confdefs.h into a sed script `conftest.defines', that
51977 # substitutes the proper values into config.h.in to produce config.h.
51978 rm -f conftest.defines conftest.tail
51979 # First, append a space to every undef/define line, to ease matching.
51980 echo 's/$/ /' >conftest.defines
51981 # Then, protect against being on the right side of a sed subst, or in
51982 # an unquoted here document, in config.status. If some macros were
51983 # called several times there might be several #defines for the same
51984 # symbol, which is useless. But do not sort them, since the last
51985 # AC_DEFINE must be honored.
51986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51987 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51988 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51989 # PARAMS is the parameter list in the macro definition--in most cases, it's
51990 # just an empty string.
51991 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
51992 ac_dB='\\)[ (].*,\\1define\\2'
51993 ac_dC=' '
51994 ac_dD=' ,'
51996 uniq confdefs.h |
51997 sed -n '
51998 t rset
51999 :rset
52000 s/^[ ]*#[ ]*define[ ][ ]*//
52001 t ok
52004 s/[\\&,]/\\&/g
52005 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52006 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52007 ' >>conftest.defines
52009 # Remove the space that was appended to ease matching.
52010 # Then replace #undef with comments. This is necessary, for
52011 # example, in the case of _POSIX_SOURCE, which is predefined and required
52012 # on some systems where configure will not decide to define it.
52013 # (The regexp can be short, since the line contains either #define or #undef.)
52014 echo 's/ $//
52015 s,^[ #]*u.*,/* & */,' >>conftest.defines
52017 # Break up conftest.defines:
52018 ac_max_sed_lines=50
52020 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52021 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52022 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52023 # et cetera.
52024 ac_in='$ac_file_inputs'
52025 ac_out='"$tmp/out1"'
52026 ac_nxt='"$tmp/out2"'
52028 while :
52030 # Write a here document:
52031 cat >>$CONFIG_STATUS <<_ACEOF
52032 # First, check the format of the line:
52033 cat >"\$tmp/defines.sed" <<\\CEOF
52034 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
52035 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
52037 :def
52038 _ACEOF
52039 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52040 echo 'CEOF
52041 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52042 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52043 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52044 grep . conftest.tail >/dev/null || break
52045 rm -f conftest.defines
52046 mv conftest.tail conftest.defines
52047 done
52048 rm -f conftest.defines conftest.tail
52050 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52051 cat >>$CONFIG_STATUS <<\_ACEOF
52052 if test x"$ac_file" != x-; then
52053 echo "/* $configure_input */" >"$tmp/config.h"
52054 cat "$ac_result" >>"$tmp/config.h"
52055 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52056 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52057 echo "$as_me: $ac_file is unchanged" >&6;}
52058 else
52059 rm -f $ac_file
52060 mv "$tmp/config.h" $ac_file
52062 else
52063 echo "/* $configure_input */"
52064 cat "$ac_result"
52066 rm -f "$tmp/out12"
52070 esac
52072 done # for ac_tag
52075 { (exit 0); exit 0; }
52076 _ACEOF
52077 chmod +x $CONFIG_STATUS
52078 ac_clean_files=$ac_clean_files_save
52081 # configure is writing to config.log, and then calls config.status.
52082 # config.status does its own redirection, appending to config.log.
52083 # Unfortunately, on DOS this fails, as config.log is still kept open
52084 # by configure, so config.status won't be able to write to it; its
52085 # output is simply discarded. So we exec the FD to /dev/null,
52086 # effectively closing config.log, so it can be properly (re)opened and
52087 # appended to by config.status. When coming back to configure, we
52088 # need to make the FD available again.
52089 if test "$no_create" != yes; then
52090 ac_cs_success=:
52091 ac_config_status_args=
52092 test "$silent" = yes &&
52093 ac_config_status_args="$ac_config_status_args --quiet"
52094 exec 5>/dev/null
52095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52096 exec 5>>config.log
52097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52098 # would make configure fail if this is the last instruction.
52099 $ac_cs_success || { (exit 1); exit 1; }
52103 if test "x${silent}" != "xyes" ; then
52104 echo
52105 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
52106 echo " .\$7\$7.. .7\$\$7:. "
52107 echo " .\$\$:. ,\$7.7 "
52108 echo " .\$7. 7\$\$\$\$ .\$\$77 "
52109 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
52110 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
52111 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
52112 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
52113 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
52114 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
52115 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
52116 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
52117 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
52118 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
52119 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
52120 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
52121 echo " \$\$\$\$\$ \$\$\$ "
52122 echo " \$\$\$\$7. \$\$ (TM) "
52123 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
52124 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
52125 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
52126 echo
52129 { echo "$as_me:$LINENO: Package configured for: " >&5
52130 echo "$as_me: Package configured for: " >&6;}
52131 { echo "$as_me:$LINENO: OS type : $host_os" >&5
52132 echo "$as_me: OS type : $host_os" >&6;}
52133 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
52134 echo "$as_me: Host CPU : $host_cpu" >&6;}
52135 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
52136 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
52137 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
52138 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
52139 if test "${cross_compiling}" = "yes"; then
52140 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
52141 echo "$as_me: Cross Compilation = YES" >&6;}